[asterisk-users] SIP peer / Maximum retries exceeded on transmission

Olle E Johansson oej at edvina.net
Wed May 9 06:02:44 MST 2007


We're actually getting two invites and schedules retransmit of both,  
which is bad. One retransmit is stopped and the other one keeps  
going, regardless of the ACKs that keep coming in. Needs to be fixed.

Believe I have fixed this in 1.4 svn, please test.

/O


----- Patch

Index: channels/chan_sip.c
===================================================================
--- channels/chan_sip.c (revision 63252)
+++ channels/chan_sip.c (working copy)
@@ -13643,8 +13643,7 @@
                                 }
                                 /* Respond to normal re-invite */
                                 if (sendok)
-                                       transmit_response_with_sdp(p,  
"200 OK", req, XMIT_CRITICAL);
-
+                                       transmit_response_with_sdp(p,  
"200 OK", req, ast_test_flag(req, SIP_PKT_IGNORE) ?   
XMIT_UNRELIABLE : XMIT_CRITICAL);
                         }
                         p->invitestate = INV_TERMINATED;
                         break;



More information about the asterisk-users mailing list