Re: [reSIProcate] DUM REFER crash
Ug, sent this before I was done...
Now, the question is... SHOULD I have an event handler for that?
My application works fine just off the InviteSessionHandler overrides..
OnReferAccepted
OnReferRejected
Am I not handling things properly?
-----Original Message-----
From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Matt
Porter
Sent: Friday, August 18, 2006 1:19 PM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: [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.
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxx
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel