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

Modified Files:
      Tag: v1-0
        chan_zap.c 
Log Message:
Null out call number on release complete when number is unallocated (bug #4633)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.344.2.25
retrieving revision 1.344.2.26
diff -u -d -r1.344.2.25 -r1.344.2.26
--- chan_zap.c  24 Sep 2005 21:24:35 -0000      1.344.2.25
+++ chan_zap.c  25 Sep 2005 17:24:53 -0000      1.344.2.26
@@ -4686,6 +4686,9 @@
                        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;

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

Reply via email to