]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
When calling some peer/host that may not exist/reply back... don't keep the dialog...
authorJoshua Colp <jcolp@digium.com>
Wed, 30 May 2007 17:21:06 +0000 (17:21 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 30 May 2007 17:21:06 +0000 (17:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66637 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 644dc4b6a1d1b4ffef55441442b322bc4f48d232..08f721d68a657b43e51c11b1d0982e33d6877f28 100644 (file)
@@ -3416,7 +3416,8 @@ static int sip_hangup(struct ast_channel *ast)
                                if (p->invitestate == INV_CALLING) {
                                        /* We can't send anything in CALLING state */
                                        ast_set_flag(&p->flags[0], SIP_PENDINGBYE);
-                                       /* Do we need a timer here if we don't hear from them at all? */
+                                       /* Do we need a timer here if we don't hear from them at all? Yes we do or else we will get hung dialogs and those are no fun. */
+                                       sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT);
                                        sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT);
                                        append_history(p, "DELAY", "Not sending cancel, waiting for timeout");
                                } else {