From: Mark Spencer Date: Sun, 25 Sep 2005 02:28:31 +0000 (+0000) Subject: Null out call number on release complete when number is unallocated (bug #4633) X-Git-Tag: 1.2.0-beta2~278 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cfabcabae88c498f524e251f1ef014aa6bdcde31;p=thirdparty%2Fasterisk.git Null out call number on release complete when number is unallocated (bug #4633) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6639 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index c76986b90d..ed15c038dc 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -5196,6 +5196,8 @@ static void *ss_thread(void *data) 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;