From 7fd7e53acb9ba13ddbbc7d19053898a884bc0e3f Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Wed, 21 Oct 2009 02:37:52 +0000 Subject: More ticket #937 (presence revamping): - Added couple of SIPp scenario files to test various retry scenarios: - uas-subscribe-refresh-481.xml: client should resubscribe immediately on receiving 481 on resubscription - uas-subscribe-terminated-retry.xml: client should resubscribe upon receiving NOTIFY with some specific termination reasons - Added log message when PJSUA-LIB is resubscribing automatically due to above git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2959 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/pjsua-lib/pjsua_pres.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pjsip') diff --git a/pjsip/src/pjsua-lib/pjsua_pres.c b/pjsip/src/pjsua-lib/pjsua_pres.c index 88a0f66b..1c8fc61a 100644 --- a/pjsip/src/pjsua-lib/pjsua_pres.c +++ b/pjsip/src/pjsua-lib/pjsua_pres.c @@ -1406,6 +1406,12 @@ static void buddy_resubscribe(pjsua_buddy *buddy, pj_bool_t resched, if (resched) { pj_time_val delay; + PJ_LOG(4,(THIS_FILE, + "Resubscribing buddy id %u in %u ms (reason: %.*s)", + buddy->index, msec_interval, + (int)buddy->term_reason.slen, + buddy->term_reason.ptr)); + pj_timer_entry_init(&buddy->timer, 0, buddy, &buddy_timer_cb); delay.sec = 0; delay.msec = msec_interval; -- cgit v1.2.3