Page 1 of 1

DTMF tempermental due to silence issue

PostPosted: Wed Nov 22, 2006 4:57 pm
by kchung
When I use the DTMF, the first tone sometimes get cut off. I've traced this to the following error message at the astrisk cli:
Code: Select all
    -- Executing Answer("Local/8500998@default-43d4,2", "") in new stack
       > Channel Local/8500998@default-43d4,1 was answered.
    -- Executing MeetMe("Local/8500998@default-43d4,1", "8600051|q") in new stack
    -- Executing Playback("Local/8500998@default-43d4,2", "silence") in new stack
    -- Playing 'silence' (language 'en')
Nov 22 13:56:03 WARNING[6373]: file.c:1039 ast_waitstream: Unexpected control subclass '-1'
    -- Executing AGI("Local/8500998@default-43d4,2", "agi-dtmf.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-dtmf.agi


Any idea why the silence didn't kick in?

PostPosted: Wed Nov 22, 2006 5:05 pm
by kchung
Actually, ext 8500998 works fine by itself!

From extensions.conf
Code: Select all
exten => 8500998,1,Answer
exten => 8500998,2,Playback(silence)
exten => 8500998,3,AGI(agi-dtmf.agi)
exten => 8500998,4,Hangup


also, silence.wav exists

When I dial it myself, it works and gives me the full tones.

Asterisk 1.2.10 + snapshot release, but this problem has been around since 1.x for me.

PostPosted: Wed Nov 22, 2006 11:20 pm
by mflorell
What happens if you add a comma "," to the beginning of the DTMF to be played field?

PostPosted: Mon Nov 27, 2006 2:46 pm
by kchung
Adding a comma solves the delay problem, but the error still comes up in the cli.

PostPosted: Mon Nov 27, 2006 3:53 pm
by mflorell
What Asterisk version are you using?

Is the silence.gsm file present in your /var/lib/asterisk/sounds folder?

PostPosted: Mon Nov 27, 2006 9:06 pm
by kchung
I've got Asterisk 1.2.10.

I have silence.wav in that directory instead.

PostPosted: Tue Nov 28, 2006 7:43 am
by mflorell
Does the error appear if you use Asterisk 1.2.13?

PostPosted: Tue Nov 28, 2006 10:39 am
by kchung
Haven't upgraded there yet. Is it safe for production?

PostPosted: Tue Nov 28, 2006 3:39 pm
by mflorell
I am running it in production now on one server and it seems to work fine for me.