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

RE: [reSIProcate] When NOTIFY arrived, it can not get ClientSubscriptionHandler, why?


You must call:  dum->addClientSubscriptionHandler("refer", &handler);  

And pass a pointer to your class that implements SubscriptionHandler.

-----Original Message-----
From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx 
[mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of ??
Sent: Friday, August 19, 2005 10:55 AM
To: resiprocate-devel
Subject: [reSIProcate] When NOTIFY arrived,it can not get 
ClientSubscriptionHandler, why?

Hi all,

I am implementing Transfer.
now,
B send a NOTIFY to A by calling makeInviteSessionFromRefer(), 
When NOTIFY arrive to A, A has an Assert Error, which can not get 
ClientSubscriptionHandler.

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

I have heritage SubscriptionHandler Classes as
class TestInviteSessionHandler : public InviteSessionHandler, public 
ClientRegistrationHandler, public OutOfDialogHandler, public 
ClientPagerMessageHandler, public ServerPagerMessageHandler, public 
ClientSubscriptionHandler, public ServerSubscriptionHandler
{
...
} 
and I have rewrite some virtual functions.

is there anything i was lost?

Thanks very much.

John, Beijing China




_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxx
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel