From: Kevin P. Fleming Date: Thu, 9 Jun 2005 22:34:29 +0000 (+0000) Subject: make incoming overlap calls with no number specified use the 's' extension (bug ... X-Git-Tag: 1.2.0-beta1~471 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d102efb7a9092b63264bead5725f152e8260a52;p=thirdparty%2Fasterisk.git make incoming overlap calls with no number specified use the 's' extension (bug #4317) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5893 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 65e7496e6c..3b1c735450 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -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 */