From 33b77709a73c796837a68fd8f88dbd03ca7a07cf Mon Sep 17 00:00:00 2001 From: Olle Johansson Date: Tue, 22 Jan 2008 15:08:14 +0000 Subject: [PATCH] Cleaning up some documentation that led to confusion in a bug report git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@99501 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 4e54467656..1b7dfe33c1 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -12274,17 +12274,18 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru } 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);