Hi all,
The API Docs for sipxConfigureSubscribe() say that :
sipXtapi will automatically refresh subscriptions until
sipxConfigUnsubscribe is called. Please make sure you call
sipxCallUnsubscribe before tearing down your instance of
sipXtapi.*
But , for me when i use this api to send a subscribe, the
SUBSCRIBE message goes out as desired with 3600 as the expiry time of the
Subscription. Then i get a
202 Accepted from the server which sets the refresh time to 300
seconds( Expires: 300 ). I see that the SUBSCRIBE is not send to renew this
Subscription within 300
seconds and i get a NOTIFY indicating the expiry of this
subscription, with Subscription-state:terminated and reason:timeout.
My code follows.
iReturn = sipxConfigSubscribe(g_SubInst, g_SubLine, toSipUri,
event, acceptHeader, 1, &g_SubHandle);
if( iReturn == SIPX_RESULT_SUCCESS )
return 1; // success
Could someone tell me if i have missed something ?
Thanks for your time.
Best,
Amith.
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/