diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-09-29 03:25:25 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-09-29 03:25:25 +0000 |
commit | 13519f72e728c371baff4bfd4b62500bb8ed57b9 (patch) | |
tree | 1bd4bbc2b3da2f17ee3df706e8e1815dac3e0b12 /channels/chan_zap.c | |
parent | 35b5891b74c52d589e74e34b96eb57b397b29bf8 (diff) |
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
Diffstat (limited to 'channels/chan_zap.c')
-rwxr-xr-x | channels/chan_zap.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 84c2e43a2..a1642dafc 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -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; |