From 508b3ba6884e48ec9d95b01d73eb32a56977900d Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Sun, 25 Sep 2005 17:24:53 +0000 Subject: [PATCH] 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 --- channels/chan_zap.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.47.2