Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv31569/channels

Modified Files:
        chan_zap.c 
Log Message:
ensure that exten field is cleared when incoming number is not matched to an 
extension (issue #5203)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.510
retrieving revision 1.511
diff -u -d -r1.510 -r1.511
--- chan_zap.c  14 Sep 2005 01:10:20 -0000      1.510
+++ chan_zap.c  14 Sep 2005 02:41:05 -0000      1.511
@@ -5173,6 +5173,7 @@
                        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 @@
                                                                        
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);

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to