[asterisk-commits] oej: branch 1.4 r99501 - /branches/1.4/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 22 10:40:01 CST 2008


Author: oej
Date: Tue Jan 22 09:08:14 2008
New Revision: 99501

URL: http://svn.digium.com/view/asterisk?view=rev&rev=99501
Log:
Cleaning up some documentation that led to confusion in a bug report

Modified:
    branches/1.4/channels/chan_sip.c

Change Statistics:
 branches/1.4/channels/chan_sip.c |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=99501&r1=99500&r2=99501
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Tue Jan 22 09:08:14 2008
@@ -12274,17 +12274,18 @@
 		}
 		break;
 	case 491: /* Pending */
-		/* we really should have to wait a while, then retransmit */
-			/* We should support the retry-after at some point */
-		/* At this point, we treat this as a congestion */
+		/* we really should have to wait a while, then retransmit
+		 * We should support the retry-after at some point 
+		 * At this point, we treat this as a congestion if the call is not in UP state 
+ 		 */
 		xmitres = transmit_request(p, SIP_ACK, seqno, XMIT_UNRELIABLE, FALSE);
 		if (p->owner && !ast_test_flag(req, SIP_PKT_IGNORE)) {
 			if (p->owner->_state != AST_STATE_UP) {
 				ast_queue_control(p->owner, AST_CONTROL_CONGESTION);
 				ast_set_flag(&p->flags[0], SIP_NEEDDESTROY);	
 			} else {
-				/* This is a re-invite that failed. */
-				/* Reset the flag after a while 
+				/* This is a re-invite that failed.
+				 * Reset the flag after a while 
 				 */
 				int wait = 3 + ast_random() % 5;
 				p->waitid = ast_sched_add(sched, wait, sip_reinvite_retry, p); 




More information about the asterisk-commits mailing list