aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-18 15:12:09 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-18 15:12:09 +0000
commitcc2b66640d57ff9ee283ab4739e254e51b5ab3a4 (patch)
tree86cd2739619272cf5082629503ac2d66dd0e5df1
parent37dc3b8832b0179cf4b96cdb7b66c3a2734d5c67 (diff)
Issue 9235 - part of the problem, maybe not all. Please retry with this patch (and no
other patch) if you have problems with hanging SIP channels. Thank you. A special Thank You to WeBRainstorm that gave me access to his system. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65075 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 81a5c6891..a6104e4da 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -9872,10 +9872,15 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru
This transaction is already scheduled to be killed by sip_hangup().
*/
transmit_request(p, SIP_ACK, seqno, 0, 0);
- if (p->owner && !ignore)
+ if (p->owner && !ignore) {
ast_queue_hangup(p->owner);
- else if (!ignore)
+ append_history(p, "Hangup", "Got 487 on CANCEL request from us. Queued AST hangup request");
+ } else if (!ignore) {
update_call_counter(p, DEC_CALL_LIMIT);
+ append_history(p, "Hangup", "Got 487 on CANCEL request from us on call without owner. Killing this dialog.");
+ ast_set_flag(p, SIP_NEEDDESTROY);
+ ast_set_flag(p, SIP_ALREADYGONE);
+ }
break;
case 491: /* Pending */
/* we have to wait a while, then retransmit */