make incoming overlap calls with no number specified use the 's' extension (bug ...
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 9 Jun 2005 22:34:29 +0000 (22:34 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 9 Jun 2005 22:34:29 +0000 (22:34 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5893 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 65e7496..3b1c735 100755 (executable)
@@ -4992,6 +4992,13 @@ static void *ss_thread(void *data)
                        } 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->cid_num)) {
                        /* Start the real PBX */