[svn-commits] dvossel: trunk r276392 - /trunk/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jul 14 11:40:53 CDT 2010


Author: dvossel
Date: Wed Jul 14 11:40:42 2010
New Revision: 276392

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=276392
Log:
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.


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=276392&r1=276391&r2=276392
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Jul 14 11:40:42 2010
@@ -3241,13 +3241,20 @@
 		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 @@
 
 			/* 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)) {




More information about the svn-commits mailing list