diff options
author | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-17 08:22:36 +0000 |
---|---|---|
committer | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-17 08:22:36 +0000 |
commit | fea9ace809a136593a202bdd55d4e615b64eadfe (patch) | |
tree | 32264ac7b7bdbc60c44f41ac8587727a407b6eac | |
parent | 0c821fa882c8cb4e56bfd4c52758974fff3a4fdc (diff) |
sometimes we don't need to signal dtmf tones to asterisk, we just want them to go through as inband. Otherwise they might be generated by the other channel partner and then there is a double tone.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@79833 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_misdn.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index 0c49a0bf4..84d34b888 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -4988,6 +4988,7 @@ static int load_module(void) " s - send Non Inband DTMF as inband\n" " vr - rxgain control\n" " vt - txgain control\n" + " i - Ignore detected dtmf tones, don't signal them to asterisk, they will be transported inband.\n" ); @@ -5343,11 +5344,11 @@ static int misdn_set_opt_exec(struct ast_channel *chan, void *data) } else if (strstr(tok,"not_screened")) { ch->bc->pres=1; } - - break; - - + case 'i' : + chan_misdn_log(1, ch->bc->port, "Ignoring dtmf tones, just use them inband\n"); + ch->ignore_dtmf=1; + break; default: break; } |