res_pjsip_session: Add debug statement for session refreshes
authorMatthew Jordan <mjordan@digium.com>
Wed, 4 Jun 2014 14:12:00 +0000 (14:12 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 4 Jun 2014 14:12:00 +0000 (14:12 +0000)
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.
........

Merged revisions 415115 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@415116 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_pjsip_session.c

index 7c8eea1..a721612 100644 (file)
@@ -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;
 }