diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-10-20 13:56:26 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-10-20 13:56:26 +0000 |
commit | 89547e9f9d2eff5aa4dd7bbd212ebd7cee8b4e96 (patch) | |
tree | 521151a3f1724381ebf27dffd0f24ba251bc76af /pjsip-apps/src/pjsua | |
parent | c1e884baaed1d9990ede66182d4d535c7b855779 (diff) |
Initial commit for ticket #937: Revamping of presence management to make it more efficient
Presence enhancements:
- finer grained buddy lock object, instead of using global PJSUA-LIB's mutex
- individual resubscription timer for buddies and also add random delay interval so that resubscriptions don't happen simultaneously (may hog processing and bandwidth).
- in general reduced the use of global PJSUA-LIB's mutex for more efficiency
- added last termination code in buddy info
- use the RPID note's text for buddy's offline status rather than the default "offline" status, if available
- resubscribe automatically on several termination causes as explained in the ticket (still untested)
General enhancements:
- added pjsua_schedule_timer() and pjsua_cancel_timer() APIs
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2956 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/pjsua')
-rw-r--r-- | pjsip-apps/src/pjsua/pjsua_app.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pjsip-apps/src/pjsua/pjsua_app.c b/pjsip-apps/src/pjsua/pjsua_app.c index 3109ce86..a4449d81 100644 --- a/pjsip-apps/src/pjsua/pjsua_app.c +++ b/pjsip-apps/src/pjsua/pjsua_app.c @@ -2619,12 +2619,16 @@ static void on_buddy_state(pjsua_buddy_id buddy_id) pjsua_buddy_info info; pjsua_buddy_get_info(buddy_id, &info); - PJ_LOG(3,(THIS_FILE, "%.*s status is %.*s (subscription state is %s)", + PJ_LOG(3,(THIS_FILE, "%.*s status is %.*s, subscription state is %s " + "(last termination reason code=%d %.*s)", (int)info.uri.slen, info.uri.ptr, (int)info.status_text.slen, info.status_text.ptr, - info.sub_state_name)); + info.sub_state_name, + info.sub_term_code, + (int)info.sub_term_reason.slen, + info.sub_term_reason.ptr)); } |