summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorDavid Vossel <dvossel@digium.com>2010-07-14 16:40:42 +0000
committerDavid Vossel <dvossel@digium.com>2010-07-14 16:40:42 +0000
commite2599bc42c07a6a5611a3804ce08495ccdc72b94 (patch)
tree5b52a2f7f052e7f12b96d23a64d9ec643d42cad0 /channels
parent2cf60bb09dbb0b8589be9bbed6d159f7f63b8cdc (diff)
collapse debug code in retrans_pkt into separate lines
I've been working in this function a bunch lately, and these huge debug strings are getting annoying. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@276392 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index d27f3c843..cb981dc86 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -3241,13 +3241,20 @@ static int retrans_pkt(const void *data)
pkt->retrans++;
if (!pkt->timer_t1) { /* Re-schedule using timer_a and timer_t1 */
if (sipdebug) {
- ast_debug(4, "SIP TIMER: Not rescheduling id #%d:%s (Method %d) (No timer T1)\n", pkt->retransid, sip_methods[pkt->method].text, pkt->method);
+ ast_debug(4, "SIP TIMER: Not rescheduling id #%d:%s (Method %d) (No timer T1)\n",
+ pkt->retransid,
+ sip_methods[pkt->method].text,
+ pkt->method);
}
} else {
int siptimer_a;
if (sipdebug) {
- ast_debug(4, "SIP TIMER: Rescheduling retransmission #%d (%d) %s - %d\n", pkt->retransid, pkt->retrans, sip_methods[pkt->method].text, pkt->method);
+ ast_debug(4, "SIP TIMER: Rescheduling retransmission #%d (%d) %s - %d\n",
+ pkt->retransid,
+ pkt->retrans,
+ sip_methods[pkt->method].text,
+ pkt->method);
}
if (!pkt->timer_a) {
pkt->timer_a = 2 ;
@@ -3263,7 +3270,11 @@ static int retrans_pkt(const void *data)
/* Reschedule re-transmit */
reschedule = siptimer_a;
- ast_debug(4, "** SIP timers: Rescheduling retransmission %d to %d ms (t1 %d ms (Retrans id #%d)) \n", pkt->retrans +1, siptimer_a, pkt->timer_t1, pkt->retransid);
+ ast_debug(4, "** SIP timers: Rescheduling retransmission %d to %d ms (t1 %d ms (Retrans id #%d)) \n",
+ pkt->retrans + 1,
+ siptimer_a,
+ pkt->timer_t1,
+ pkt->retransid);
}
if (sip_debug_test_pvt(pkt->owner)) {