]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
sometimes we don't need to signal dtmf tones to asterisk, we just want them to go...
authorChristian Richter <christian.richter@beronet.com>
Fri, 17 Aug 2007 08:22:36 +0000 (08:22 +0000)
committerChristian Richter <christian.richter@beronet.com>
Fri, 17 Aug 2007 08:22:36 +0000 (08:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@79833 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index 0c49a0bf4aa477cfe80db309835ffb4124ede4b1..84d34b888f35dc0744f60409088ce2d0cce37f73 100644 (file)
@@ -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;
                }