]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Adding a debug line
authorOlle Johansson <oej@edvina.net>
Wed, 17 May 2006 18:19:17 +0000 (18:19 +0000)
committerOlle Johansson <oej@edvina.net>
Wed, 17 May 2006 18:19:17 +0000 (18:19 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27892 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 964eee1d3858a4a0246e644384accdedda4ad299..c776517b5d6c9877d2c1a2945058f340a444bd6a 100644 (file)
@@ -9902,6 +9902,8 @@ static void check_pendings(struct sip_pvt *p)
 {
        /* Go ahead and send bye at this point */
        if (ast_test_flag(&p->flags[0], SIP_PENDINGBYE)) {
+               if (option_debug)
+                       ast_log(LOG_DEBUG, "Sending pending bye on '%s'\n", p->callid);
                transmit_request_with_auth(p, SIP_BYE, 0, XMIT_RELIABLE, TRUE);
                ast_set_flag(&p->flags[0], SIP_NEEDDESTROY);    
                ast_clear_flag(&p->flags[0], SIP_NEEDREINVITE);