diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-10-31 23:03:44 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-10-31 23:03:44 +0000 |
commit | d8672874efc44f2ee4f296efb51eef16151ce6b0 (patch) | |
tree | 2a58961114a749e822f77c2e597911f0e747f990 /channels | |
parent | 9c25f9d1d51ab92060d54279a89f678d574fcb00 (diff) |
properly handle '100 Trying' that arrives after a dialog has been dropped (issue #5475)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6912 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 5 |
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); |