[Asterisk-Users] i4l-modem dtmf detection

Matthew Enger menger at xi.com.au
Thu Nov 6 16:39:13 MST 2003


And a working patch for linux kernel.


On Fri, 2003-11-07 at 09:30, Matthew Enger wrote:
> The correct URL is http://www.marko.net/asterisk/archives/0301/0849.html
> for those who want it.
> 
> Regards,
> 	Matthew Enger
> 	menger at xi.com.au
> 
> On Thu, 2003-11-06 at 09:34, Matthew Enger wrote:
> > Hello,
> > 
> > You need to apply two patches:
> > 
> > 1) Turns off DTMF detection in the linux kernel (i4l side)
> > 2) Enables DTMF detection on the chan_modem driver.
> > 
> > You can find more information at
> > http://www.marko.net/asterisk/archives/30301/0849.html
> > 
> > The kernel is detecting DTMF tones from your voice :)
> > 
> > I applied this yesterday and it is working great (kernel 2.4.22 and
> > latest asterisk cvs)
> > 
> > Regards,
> > 	Matthew Enger
> > 	menger at xi.com.au
> > 
> > On Thu, 2003-11-06 at 05:34, Tomaz Izanc wrote:
> > > hello!
> > > 
> > > I have active call from i4l modem to ZAP (FXS).When someone on i4l 
> > > (telco side) speaks i hear DTMF tones on other side (ZAP).
> > > How to turn off DTMF detection on  modem-i4l side ?
> > > 
> > > Is it possible to do that ??
> > > 
> > > status of active channels:
> > > 
> > > server*CLI> show channel Modem[i4l]/ttyi0
> > >  -- General --
> > >            Name: Modem[i4l]/ttyI0
> > >            Type: Modem
> > >        UniqueID: 1068056585.53
> > >       Caller ID: 5
> > >     DNID Digits: (N/A)
> > >           State: Up (6)
> > >           Rings: 0
> > >    NativeFormat: 64
> > >     WriteFormat: 64
> > >      ReadFormat: 64
> > > 1st File Descriptor: 8
> > >       Frames in: 10914
> > >      Frames out: 7514
> > >  Time to Hangup: 0
> > >  --   PBX   --
> > >         Context: remote
> > >       Extension: 0346546777
> > >        Priority: 2
> > >      Call Group: 0
> > >    Pickup Group: 0
> > >     Application: Dial
> > >            Data: Zap/1/0346546777wwwww||r
> > >           Stack: 0
> > >     Blocking in: ast_waitfor_nandfds
> > > 
> > > ---------------------------------------------------------------------
> > > server*CLI> show channel Zap/1-1
> > >  -- General --
> > >            Name: Zap/1-1
> > >            Type: Zap
> > >        UniqueID: 1068056588.54
> > >       Caller ID: 5
> > >     DNID Digits: (N/A)
> > >           State: Up (6)
> > >           Rings: 0
> > >    NativeFormat: 68
> > >     WriteFormat: 64
> > >      ReadFormat: 64
> > > 1st File Descriptor: 18
> > >       Frames in: 5536
> > >      Frames out: 6378
> > >  Time to Hangup: 0
> > >  --   PBX   --
> > >         Context: nme
> > >       Extension: s
> > >        Priority: 1
> > >      Call Group: 0
> > >    Pickup Group: 0
> > >     Application: Bridged Call
> > >            Data: Modem[i4l]/ttyI0
> > >           Stack: -1
> > >     Blocking in: ast_waitfor_nandfds
> > > 
> > > 
> > > ---------------------------------------------------------------------
> > > server*CLI> zap show channel 1
> > > Channel: 1>
> > > File Descriptor: 18
> > > Span: 1
> > > Extension:
> > > Context: nmt
> > > Caller ID string:
> > > Destroy: 0
> > > Signalling Type: FXS Kewlstart
> > > Owner: Zap/1-1
> > > Real: Zap/1-1 (Linear)
> > > Callwait: <None>
> > > Threeway: <None>
> > > Confno: -1
> > > Propagated Conference: -1
> > > Real in conference: 0
> > > DSP: yes
> > > Relax DTMF: no
> > > Dialing/CallwaitCAS: 0/0
> > > Default law: ulaw
> > > Fax Handled: no
> > > Pulse phone: no
> > > Echo Cancellation: 128 taps, currently ON
> > > Actual Confinfo: Num/0, Mode/0x0000
> > > Actual Confmute: No
> > > 
> > > 
> > > 
> > > tnx.
> > > Tomaz
> > > 
> > > _______________________________________________
> > > Asterisk-Users mailing list
> > > Asterisk-Users at lists.digium.com
> > > http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Matthew Enger <menger at xi.com.au>
Xintegration
-------------- next part --------------
--- /root/isdn_tty.c	2003-11-05 18:02:49.000000000 +1100
+++ isdn_tty.c	2003-11-05 18:08:46.000000000 +1100
@@ -133,9 +133,9 @@
 			if (info->online) {
 				r = 0;
 #ifdef CONFIG_ISDN_AUDIO
-				isdn_audio_eval_dtmf(info);
-				if ((info->vonline & 1) && (info->emu.vpar[1]))
-					isdn_audio_eval_silence(info);
+				//isdn_audio_eval_dtmf(info);
+				//if ((info->vonline & 1) && (info->emu.vpar[1]))
+				//	isdn_audio_eval_silence(info);
 #endif
 				if ((tty = info->tty)) {
 					if (info->mcr & UART_MCR_RTS) {
@@ -190,10 +190,10 @@
 #ifdef CONFIG_ISDN_AUDIO
 	ifmt = 1;
 	
-	if ((info->vonline) && (!info->emu.vpar[4]))
-		isdn_audio_calc_dtmf(info, skb->data, skb->len, ifmt);
-	if ((info->vonline & 1) && (info->emu.vpar[1]))
-		isdn_audio_calc_silence(info, skb->data, skb->len, ifmt);
+	//if ((info->vonline) && (!info->emu.vpar[4]))
+	//	isdn_audio_calc_dtmf(info, skb->data, skb->len, ifmt);
+	//if ((info->vonline & 1) && (info->emu.vpar[1]))
+	//	isdn_audio_calc_silence(info, skb->data, skb->len, ifmt);
 #endif
 	if ((info->online < 2)
 #ifdef CONFIG_ISDN_AUDIO


More information about the asterisk-users mailing list