From 8a08f73fe01e40e6d7f9245757c83f3cf43f5f8e Mon Sep 17 00:00:00 2001 From: Kevin Harwell Date: Wed, 30 Oct 2013 17:52:55 +0000 Subject: [PATCH] pjsip_messaging: Added debug for in dialog messaging (issue ASTERISK-22777) Reported by: Matt Jordan git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@402265 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_pjsip.c | 2 ++ res/res_pjsip_messaging.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c index 8eb6be38b4..80cf270afe 100644 --- a/channels/chan_pjsip.c +++ b/channels/chan_pjsip.c @@ -1815,6 +1815,8 @@ static int sendtext(void *obj) return 0; } + ast_debug(3, "Sending in dialog SIP message\n"); + ast_sip_create_request("MESSAGE", data->session->inv_session->dlg, data->session->endpoint, NULL, &tdata); ast_sip_add_body(tdata, &body); ast_sip_send_request(tdata, data->session->inv_session->dlg, data->session->endpoint); diff --git a/res/res_pjsip_messaging.c b/res/res_pjsip_messaging.c index 5d9e44fc1f..c2dea7f192 100644 --- a/res/res_pjsip_messaging.c +++ b/res/res_pjsip_messaging.c @@ -642,6 +642,8 @@ static int incoming_in_dialog_request(struct ast_sip_session *session, struct pj return 0; } + ast_debug(3, "Received in dialog SIP message\n"); + memset(&f, 0, sizeof(f)); f.frametype = AST_FRAME_TEXT; f.subclass.integer = 0; -- 2.47.2