[ previous ] [ next ] [ threads ]
 To :  yate@v...
 From :  "Roeland Werring" <ruleking@g...>
 Subject :  Re: [yate] DTMF detection on digium card
 Date :  Thu, 19 Apr 2007 11:00:59 +0200
Ok,

i found out that the TE405P is not standard supporting DTMF tones unless you
have the expansion board. Also, i thought there is no standard dtmf tone
recognition in yate, until i ran into the completely unused and un
documented tonedetect module.

Maybe nice to put on the wiki, it works with either chan.attach or
chan.record:

       Message ma("chan.attach");
         ma.addParam("sniffer","tone/");
         ma.addParam("single","yes");
         ma.userData(c);

I you can replace "sniffer" with "consumer" if you like, the difference is
that the sniffer DataEndPoint is an extra output of the CallEndPoint to
"snif" data. So you can be connected to another CallEndPoint, and in the
meanwhile the ToneDetect can recognize the tones. At the moment I have
really no clue what the single variable is about.

Second problem, the module is standard only configured for fax recognition.
Lucky me the dtmf tones were already predefined, so you only have to adapt
the ToneComsume::Consume part to look for the right frequencies (and change
fax handling in my case), i can post my new file if anybody is interested,
will test some more.

Still sucks that it is not in the hardware of my card....

Roeland

On 4/18/07, Roeland Werring  wrote:
>
> Hi,
>
> I'm trying to detect the DTMF tone on a Digium TE405P card. When i call
> the PBX i already see this when starting up:
>  Failed to set 0 echo cancellation taps: error 22: Invalid
> argument
>  Failed to enable DTMF detection: Function not implemented
> (38)
>
> What does that mean, i already put everything in the config files on
> enabled. It has something to do with the ZT_TONEDETECT variable, i hope this
> does not mean that my 1400$ digium card cannot recognize dtmf tones...:(:(?
>
> Thank you,
>
> --
> Roeland Werring
>
>


-- 
Roeland Werring



Ok,

i found out that the TE405P is not standard supporting DTMF tones unless you have the expansion board. Also, i thought there is no standard dtmf tone recognition in yate, until i ran into the completely unused and un documented tonedetect module.

Maybe nice to put on the wiki, it works with either chan.attach or chan.record:

       Message ma("chan.attach");
         ma.addParam("sniffer","tone/");
         ma.addParam ("single","yes");
         ma.userData(c);

I you can replace "sniffer" with "consumer" if you like, the difference is that the sniffer DataEndPoint is an extra output of the CallEndPoint to "snif" data. So you can be connected to another CallEndPoint, and in the meanwhile the ToneDetect can recognize the tones. At the moment I have really no clue what the single variable is about.

Second problem, the module is standard only configured for fax recognition. Lucky me the dtmf tones were already predefined, so you only have to adapt the ToneComsume::Consume part to look for the right frequencies (and change fax handling in my case), i can post my new file if anybody is interested, will test some more.

Still sucks that it is not in the hardware of my card....

Roeland

On 4/18/07, Roeland Werring <ruleking@g... > wrote:
Hi,

I'm trying to detect the DTMF tone on a Digium TE405P card. When i call the PBX i already see this when starting up:
<zap:MILD> Failed to set 0 echo cancellation taps: error 22: Invalid argument
<zap/1:FAIL> Failed to enable DTMF detection: Function not implemented (38)

What does that mean, i already put everything in the config files on enabled. It has something to do with the ZT_TONEDETECT variable, i hope this does not mean that my 1400$ digium card cannot recognize dtmf tones...:(:(?

Thank you,

--
Roeland Werring




--
Roeland Werring