ensure that exten field is cleared when incoming number is not matched to an extensio...
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 14 Sep 2005 02:41:05 +0000 (02:41 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 14 Sep 2005 02:41:05 +0000 (02:41 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6588 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index d403bfb..3d3a341 100755 (executable)
@@ -5173,6 +5173,7 @@ 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';
                }
                return NULL;
                break;
@@ -8451,6 +8452,7 @@ static void *pri_dchannel(void *vpri)
                                                                        pri->pvts[chanpos]->prioffset, pri->span);
                                                pri_hangup(pri->pri, e->ring.call, PRI_CAUSE_UNALLOCATED);
                                                pri->pvts[chanpos]->call = NULL;
+                                               pri->pvts[chanpos]->exten[0] = '\0';
                                        }
                                        if (crv)
                                                ast_mutex_unlock(&crv->lock);