Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv6144/channels

Modified Files:
        chan_sip.c 
Log Message:
properly handle '100 Trying' that arrives after a dialog has been dropped 
(issue #5475)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.904
retrieving revision 1.905
diff -u -d -r1.904 -r1.905
--- chan_sip.c  31 Oct 2005 22:58:54 -0000      1.904
+++ chan_sip.c  31 Oct 2005 23:03:44 -0000      1.905
@@ -9404,6 +9404,11 @@
                        ast_log(LOG_DEBUG, "SIP response %d to standard 
invite\n", resp);
        }
 
+       if (ast_test_flag(p, SIP_ALREADYGONE)) { /* This call is already gone */
+               ast_log(LOG_DEBUG, "Got response on call that is already 
terminated: %s (ignoring)\n", p->callid);
+               return;
+       }
+
        switch (resp) {
        case 100:       /* Trying */
                sip_cancel_destroy(p);

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to