From: Olle Johansson Date: Wed, 17 May 2006 18:19:17 +0000 (+0000) Subject: Adding a debug line X-Git-Tag: 1.4.0-beta1~1352 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=270d5f61914a2c46a6f8c38aad760b1589ee68b1;p=thirdparty%2Fasterisk.git Adding a debug line git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27892 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 964eee1d38..c776517b5d 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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);