I can see that in SipSubscribeClient::addSubscription function we register for
receiving NOTIFYs with
mpUserAgent->addMessageObserver(*(getMessageQueue()),
SIP_NOTIFY_METHOD,
This means the mpUserAgent will post a message to our queue when notify is
received. Incoming messages are processed in
UtlBoolean handleMessage(OsMsg &eventMessage);
which calls
void handleNotifyRequest(const SipMessage& notifyRequest);
Try to check these functions whether they are called when NOTIFY is received.
A little help is that all classes derived from OsServerTask are running a
thread that processes messages through handleMessage(OsMsg &eventMessage).
Usually when a function is called, it does some work, then calls another
function of another class which just posts a message to the same class. Then
result is posted to the message queue of the original class or an event is
signalled. Once you understand this it's pretty easy to do the debugging.
Jaroslav Libak
>Hi all,
> I use the callback function SubscribeEventCallBack , as an
>argument to
> iReturn = sipxEventListenerAdd(g_SubInst,
>SubscribeEventCallBack, NULL) ;
>
> And i see that SUBSCRIBE goes out when i call the
>appropriate functions, but i don't get notified about the NOTIFY mesg
>arrival in the application
> through the callback.
>
> EVENT_CATEGORY_NOTIFY,
> /**< NOTIFY evens are sent to the application layer after
>a remote publisher has sent data to the
> application. The application layer can retrieve
>the data from this event. */
>
> I never get the callback EVENT_CATEGORY_NOTIFY. Even
>though i see NOTIFY's coming in on the SUBSCRIBE dialog..
> Any ideas why ?. Has the presence framework been tested
>with SipxTapi ?
>
>
>best,
>Amith
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/