Fix '*' hangup
authorMark Spencer <markster@digium.com>
Thu, 24 Apr 2003 00:00:20 +0000 (00:00 +0000)
committerMark Spencer <markster@digium.com>
Thu, 24 Apr 2003 00:00:20 +0000 (00:00 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@903 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index 3219e78..a5bf3c3 100755 (executable)
@@ -454,8 +454,8 @@ static int dial_exec(struct ast_channel *chan, void *data)
                                tmp->dataquality = 1;
                         else    tmp->dataquality = 0;
                        if (strchr(transfer, 'H'))
-                               tmp->allowdisconnect = 1;
-                        else    tmp->allowdisconnect = 0;
+                               allowdisconnect = tmp->allowdisconnect = 1;
+                        else    allowdisconnect = tmp->allowdisconnect = 0;
                        if (strchr(transfer, 'c'))
                                clearchannel = 1;
             else