[asterisk-users] DTMF tones mid conversation
Andrew Thomas
andy at datavox.co.uk
Thu Mar 19 09:27:52 CDT 2009
Just to add....
P[ 1] Transmitting 128 samples 2 misdn
P[ 1] writing 128 bytes 2 asterisk
P[ 1] Sending :160 bytes 2 MISDN
P[ 0] misdn_jb_fill: written:160 | Buffer status:256 p:861fee0
P[ 0] misdn_jb_empty: read:128 | Buffer status:128 p:861fee0
P[ 1] Transmitting 128 samples 2 misdn
P[ 1] writing 128 bytes 2 asterisk
P[ 1] PH_CONTROL: channel:1 oad2:07nnnnnnnnn dad0:820055
P[ 1] --> DTMF TONE: 7
P[ 0] get_index: event not found!
P[ 1] I IND :DTMF_TONE oad:07nnnnnnnnn dad:820055 pid:64 state:CONNECTED
P[ 1] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:820055
P[ 1] --> info_dad: onumplan:2 dnumplan:0 rnumplan: cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:50010102 l3id:2000b b_stid:10010100 layer_id:50010180
P[ 1] --> facility:Fac_None out_facility:Fac_None
P[ 1] --> urate:0 rate:16 mode:0 user1:0
P[ 1] --> bc:81aecfc h:0 sh:0
P[ 1] --> bc_state:BCHAN_ACTIVATED
P[ 1] --> DTMF:7
P[ 1] Sending :160 bytes 2 MISDN
P[ 0] misdn_jb_fill: written:160 | Buffer status:288 p:861fee0
P[ 1] * IND : Indication [20] from s
P[ 1] --> * Unknown Indication:20 pid:64
P[ 1] * IND : Indication [20] from s
P[ 1] --> * Unknown Indication:20 pid:64
P[ 0] misdn_jb_empty: read:128 | Buffer status:160 p:861fee0
P[ 1] Transmitting 128 samples 2 misdn
P[ 1] writing 128 bytes 2 asterisk
P[ 0] misdn_jb_empty: read:128 | Buffer status:32 p:861fee0
P[ 1] Transmitting 128 samples 2 misdn
P[ 1] writing 128 bytes 2 asterisk
mISDN is the culprit (as some have already concluded). That "DTMF TONE: 7" was produced in mid call. Has anyone come up with a plan to fix this yet?
Ta
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of stoffell
Sent: 26 February 2009 19:11
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] DTMF tones mid conversation
On Thu, Feb 26, 2009 at 6:08 PM, Simon Dixey <simon_qro at hotmail.co.uk> wrote:
I wonder if anyone is able to offer any [polite ;-)] words of wisdom??
I can be polite, I'm not sure about the wisdom .. :-)
DTMF threshold in misdn-init look high doesn't it... I'm not entirely sure what it "should" be set to, to be honest.. (min-max values for tuning); have read max value is 100, but others suggest it'll go higher - but what exactly is it tuning the sensitivity value of specifically? (i.e. what is the threshold value). DTMF detection works well for *genuine* DTMF digits dialled over the ISDN trunk, but mISDN/Asterisk still recognises them incorrectly at times during calls (to/from cell phones).
I'm using almost the same setup but I'm in Belgium. Also a b410p. The dtmf seems to get triggered more by some calls then other. It also depends on the voice. (higher tones trigger dtmf more easily) My dtmfthreshold is set to 100. Guess it's the (in)sane default ? :-)
Oh, are you having "random" crashes on your mISDN setup too ?
I've also seen other posts refer to settings in Dahdi.conf (such as relaxdtmf) - surely Dahdi doesn't have anything to do with this if I'm using chan_misdn??
Correct. Only has anything to do with it if you're using chan_dahdi.
I can't reproduce the same behaviour on dahdi.
Is anyone able to confirm exactly whether mISDN's hardware DSP and driver is responsible for detecting DTMF, or whether it's Asterisk analysing the inbound audio? Scanning the README.misdn (sourced separately) the chan_misdn driver readme comments a feature as "DTMF Detection in HW+mISDNdsp (much better than asterisks internal!)" - so surely DTMF is recognised and passed on by mISDN to Asterisk. The fact that the log messages prefixed by P[ 1] are mISDN - I think I've answered my own question there...
Yes, it's mISDN that detects the dtmf.
Prior to going down the mISDN route, I looked at Dahdi as the Dahdi configs mention native Dahdi B410P support. But, the conclusion I came to (although what I read didn't make it clear me) is that the readme was referring to Dahdi B410P support in Ast 1.6, not 1.4. That sound right? Dahdi readme:
Right again. i've been experimenting with Dahdi's b410p for a while now, it's only available in asterisk 1.6, with the latest libpri and dahdi releases.
It's much cleaner, imho, but I'm having issues with receiving faxes when using dahdi, so I'm stuck with mISDN for the moment :-)
Enough reading.. if you're still awake! Any help would be very much appreciated.
Nice to see someone else is using the same setup. I was beginning to think that people with BRI stopped using asterisk in Europe :-)
Keep in touch or post to the mailing list if you have any further news/experiences..
cheers,
stoffell
More information about the asterisk-users
mailing list