From: Russell Bryant Date: Sun, 25 Sep 2005 17:24:53 +0000 (+0000) Subject: Null out call number on release complete when number is unallocated (bug #4633) X-Git-Tag: 1.0.11.1~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=508b3ba6884e48ec9d95b01d73eb32a56977900d;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/branches/v1-0@6646 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 05a65118a2..f09553a1f0 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -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;