]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip_session: Add debug statement for session refreshes
authorMatthew Jordan <mjordan@digium.com>
Wed, 4 Jun 2014 14:09:59 +0000 (14:09 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 4 Jun 2014 14:09:59 +0000 (14:09 +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.

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

res/res_pjsip_session.c

index 7c8eea1815261bda11e47ca69484d66268c55e54..a721612a4efc8de8fa57f8ebc7a77b30704f5a2b 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;
 }