< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] DUM REFER crash


Dialog.cxx 
 
DebugLog (<< "Making subscription from NOTIFY: " << msg);
ClientSubscription* sub = makeClientSubscription(msg);
mClientSubscriptions.push_back(sub);
ClientSubscriptionHandle client = sub->getHandle();
mDum.mInviteSessionHandler->onReferAccepted(mInviteSession->getSessionHa
ndle(), client, msg); 
mInviteSession->mSentRefer = false;
sub->dispatch(request);



ClientSubscription.cxx

void
ClientSubscription::dispatch(const SipMessage& msg)
{
   ClientSubscriptionHandler* handler =
mDum.getClientSubscriptionHandler(mEventType);
   assert(handler);

   !!! UGG
   handler is null, I have no handlers for event=refer


Maybe I should have a subscription handler for a NOTIFY, event=refer.
crashing seems to be an extreme side affect, if I don't..
At least check the pointer before calling the method.