[asterisk-commits] mjordan: branch 12 r415115 - /branches/12/res/res_pjsip_session.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 4 09:10:06 CDT 2014


Author: mjordan
Date: Wed Jun  4 09:09:59 2014
New Revision: 415115

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=415115
Log:
res_pjsip_session: Add debug statement for session refreshes

This small patch adds a debug level 3 statement indicating how a session
refresh is being sent - either as a re-INVITE or as an UPDATE - and where
the session refresh is going.

Modified:
    branches/12/res/res_pjsip_session.c

Modified: branches/12/res/res_pjsip_session.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_pjsip_session.c?view=diff&rev=415115&r1=415114&r2=415115
==============================================================================
--- branches/12/res/res_pjsip_session.c (original)
+++ branches/12/res/res_pjsip_session.c Wed Jun  4 09:09:59 2014
@@ -777,6 +777,9 @@
 			return -1;
 		}
 	}
+	ast_debug(3, "Sending session refresh SDP via %s to %s\n",
+		method == AST_SIP_SESSION_REFRESH_METHOD_INVITE ? "re-INVITE" : "UPDATE",
+		ast_sorcery_object_get_id(session->endpoint));
 	ast_sip_session_send_request_with_cb(session, tdata, on_response);
 	return 0;
 }




More information about the asterisk-commits mailing list