diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-25 17:24:53 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-25 17:24:53 +0000 |
commit | b2951e6b76b50f45a7999aef1e09e90fb1c4c8cf (patch) | |
tree | 2ef8e21b87e119bcaa941dee95af3bf6f783e025 | |
parent | 6c66eaba054ad685755ec705779c4407a97f5467 (diff) |
Null out call number on release complete when number is unallocated (bug #4633)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@6646 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | channels/chan_zap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 05a65118a..f09553a1f 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; |