if no extension is specified on an overlap call, use the 's' extension (bug #4317)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2005-06-13 22:18:44 +00:00
parent 320be7fff9
commit 0ad6773b76

View File

@@ -4638,6 +4638,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->callerid)) {
/* Start the real PBX */