mirror of
https://github.com/asterisk/asterisk.git
synced 2026-01-21 17:12:24 +00:00
support both regular and Feature Group D dialing syntax on EM_WINK trunks (issue #5323)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6690 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5280,6 +5280,18 @@ static void *ss_thread(void *data)
|
||||
res = my_getsigstr(chan, dtmfbuf + 1, "#", 3000);
|
||||
if ((res < 1) && (p->dsp)) ast_dsp_digitreset(p->dsp);
|
||||
break;
|
||||
case SIG_EMWINK:
|
||||
/* if we received a '*', we are actually receiving Feature Group D
|
||||
dial syntax, so use that mode; otherwise, fall through to normal
|
||||
mode
|
||||
*/
|
||||
if (res == '*') {
|
||||
res = my_getsigstr(chan, dtmfbuf + 1, "*", 3000);
|
||||
if (res > 0)
|
||||
res = my_getsigstr(chan, dtmfbuf + strlen(dtmfbuf), "*", 3000);
|
||||
if ((res < 1) && (p->dsp)) ast_dsp_digitreset(p->dsp);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
/* If we got the first digit, get the rest */
|
||||
len = 1;
|
||||
|
||||
Reference in New Issue
Block a user