From: Matthew Jordan Date: Wed, 4 Jun 2014 14:09:59 +0000 (+0000) Subject: res_pjsip_session: Add debug statement for session refreshes X-Git-Tag: 12.4.0-rc1~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=137c86c60266f6ed9afdc82cdf6032cbacad43e0;p=thirdparty%2Fasterisk.git 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. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@415115 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c index 7c8eea1815..a721612a4e 100644 --- a/res/res_pjsip_session.c +++ b/res/res_pjsip_session.c @@ -777,6 +777,9 @@ int ast_sip_session_refresh(struct ast_sip_session *session, 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; }