DTMF tones from AGI script

Hi,

I am using Asterisk 1.6.0.17. I have a problem with DTMF tones being passed by a combination of .call files and agi scripts. My sip provider uses rfc2833, when i test DTMF tones from a range of SIP phones everything works 100% of the time. From the agi script i get about 90%.

My AGI script(perl) sends it this way:

In my sip.conf i have set dtmfmode=rfc2833 for my provider. I have also tried rfc2833compensate=yes and setting the DTMF mode in the agi with this code:

But it doesn’t work. Would anybody have any ideas, thanks for the help.

[quote=“cassanata”]In my sip.conf i have set dtmfmode=rfc2833 for my provider. I have also tried rfc2833compensate=yes and setting the DTMF mode in the agi with this code:

But it doesn’t work.[/quote]
What is your default CoDec?

Sorry really should have put that in. I am using G711u by default but have tried G711a and G729 with no difference.