aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-29 03:25:25 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-29 03:25:25 +0000
commit83b6865c31a297871e7267835c1600d0c35acd5b (patch)
tree1bd4bbc2b3da2f17ee3df706e8e1815dac3e0b12
parentccf77f70407a83aff690c2edbfc097fe0d55d53f (diff)
support both regular and Feature Group D dialing syntax on EM_WINK trunks (issue #5323)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6690 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xchannels/chan_zap.c12
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;