pjsip_messaging: Added debug for in dialog messaging
authorKevin Harwell <kharwell@digium.com>
Wed, 30 Oct 2013 17:54:26 +0000 (17:54 +0000)
committerKevin Harwell <kharwell@digium.com>
Wed, 30 Oct 2013 17:54:26 +0000 (17:54 +0000)
(issue ASTERISK-22777)
Reported by: Matt Jordan
........

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

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

channels/chan_pjsip.c
res/res_pjsip_messaging.c

index 8eb6be3..80cf270 100644 (file)
@@ -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);
index 5d9e44f..c2dea7f 100644 (file)
@@ -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;