]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Backwards debug message.
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 22 Feb 2008 22:45:14 +0000 (22:45 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 22 Feb 2008 22:45:14 +0000 (22:45 +0000)
(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

channels/chan_sip.c

index 78444c39a6547c2e206b710e685161b97a172ef2..77ebf5a3bed9e8c5b16e37d57dcb5527975d6287 100644 (file)
@@ -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;
 }