aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-31 23:03:44 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-31 23:03:44 +0000
commitacab2b46a3cdf1efdff48a447f9d7beacceea2c1 (patch)
tree2a58961114a749e822f77c2e597911f0e747f990
parent916e56aa98ba1b4ffba0f9bf4be89f69079fb0e8 (diff)
properly handle '100 Trying' that arrives after a dialog has been dropped (issue #5475)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6912 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xchannels/chan_sip.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index fa0431aff..df406483c 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -9404,6 +9404,11 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru
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);