]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Null out call number on release complete when number is unallocated (bug #4633)
authorRussell Bryant <russell@russellbryant.com>
Sun, 25 Sep 2005 17:24:53 +0000 (17:24 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sun, 25 Sep 2005 17:24:53 +0000 (17:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6646 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 05a65118a255f126b82e4e632bb45fb6552ac0d2..f09553a1f029148434dd63a9773cc16538db4ec4 100755 (executable)
@@ -4686,6 +4686,9 @@ static void *ss_thread(void *data)
                        ast_log(LOG_DEBUG, "No such possible extension '%s' in context '%s'\n", exten, chan->context);
                        chan->hangupcause = AST_CAUSE_UNALLOCATED;
                        ast_hangup(chan);
+                       p->exten[0] = '\0';
+                       /* Since we send release complete here, we won't get one */
+                       p->call = NULL;
                }
                return NULL;
                break;