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

Modified Files:
      Tag: v1-0
        chan_zap.c 
Log Message:
if no extension is specified on an overlap call, use the 's' extension (bug 
#4317)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.344.2.18
retrieving revision 1.344.2.19
diff -u -d -r1.344.2.18 -r1.344.2.19
--- chan_zap.c  31 May 2005 02:34:28 -0000      1.344.2.18
+++ chan_zap.c  13 Jun 2005 22:18:44 -0000      1.344.2.19
@@ -4638,6 +4638,13 @@
                        } else
                                break;
                }
+               /* if no extension was received ('unspecified') on overlap 
call, use the 's' extension */
+               if (ast_strlen_zero(exten)) {
+                       if (option_verbose > 2)
+                               ast_verbose(VERBOSE_PREFIX_3 "Going to 
extension s|1 because of empty extension received on overlap call\n");
+                       exten[0] = 's';
+                       exten[1] = '\0';
+               }
                tone_zone_play_tone(p->subs[index].zfd, -1);
                if (ast_exists_extension(chan, chan->context, exten, 1, 
p->callerid)) {
                        /* Start the real PBX */

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

Reply via email to