]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
automerge commit
authorAutomerge Script <automerge@asterisk.org>
Fri, 18 May 2007 16:24:42 +0000 (16:24 +0000)
committerAutomerge Script <automerge@asterisk.org>
Fri, 18 May 2007 16:24:42 +0000 (16:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@65120 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 308b02edee7547d467a19746d732b3de30b1e1c9..8188168a8cac6ba773bf9e93a283a9fb9013fbf0 100644 (file)
@@ -9969,10 +9969,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 */