From: Tilghman Lesher Date: Fri, 22 Feb 2008 22:45:14 +0000 (+0000) Subject: Backwards debug message. X-Git-Tag: 1.4.19~151 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=638ca62698dd59f9da4e6bcae7148b03f903ff59;p=thirdparty%2Fasterisk.git Backwards debug message. (closes issue #12052) Reported by: flefoll Patches: chan_sip.c.br14.patch_found-notfound uploaded by flefoll (license 244) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@104037 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 78444c39a6..77ebf5a3be 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2171,7 +2171,7 @@ static void __sip_ack(struct sip_pvt *p, int seqno, int resp, int sipmethod) } ast_mutex_unlock(&p->lock); if (option_debug) - ast_log(LOG_DEBUG, "Stopping retransmission on '%s' of %s %d: Match %s\n", p->callid, resp ? "Response" : "Request", seqno, res ? "Not Found" : "Found"); + ast_log(LOG_DEBUG, "Stopping retransmission on '%s' of %s %d: Match %s\n", p->callid, resp ? "Response" : "Request", seqno, res == FALSE ? "Not Found" : "Found"); } /*! \brief Pretend to ack all packets @@ -2212,7 +2212,7 @@ static int __sip_semi_ack(struct sip_pvt *p, int seqno, int resp, int sipmethod) } } if (option_debug) - ast_log(LOG_DEBUG, "(Provisional) Stopping retransmission (but retaining packet) on '%s' %s %d: %s\n", p->callid, resp ? "Response" : "Request", seqno, res ? "Not Found" : "Found"); + ast_log(LOG_DEBUG, "(Provisional) Stopping retransmission (but retaining packet) on '%s' %s %d: %s\n", p->callid, resp ? "Response" : "Request", seqno, res == -1 ? "Not Found" : "Found"); return res; }