[Asterisk-Users] DTMF detection in dial macro

Tristan Graham - Skymarket Ltd tristan.graham at skymarket.co.uk
Thu Mar 31 02:39:57 MST 2005


Hi all,

Has anyone got the call screening sample to pickup DTMF correctly ? I
have tried with the latest HEAD release and the dial macro gets executed
all the way up until the Read command where it sits until the timeout is
triggered no matter what DTMF tones you send it. Asterisk responds with
"User entered nothing.". I have tried this on a variety of extensions
with the same result although a simple DTMF test directly on the ingress
leg of the call works perfectly...

The config I am using is as follows:


exten => 123,1,Wait(0.2)
exten => 123,2,Playback(screen-record)
exten => 123,3,SetVar(SCREEN_FILE=/tmp/${CALLERIDNUM}-${EPOCH})
exten => 123,4,Record(${SCREEN_FILE}.gsm|6|25)
exten => 123,5,Dial(Zap/g1/01276459906|60|gM(screen^${SCREEN_FILE}))
exten => 123,6,Voicemail(10 at default)

[macro-screen]
exten => s,1,Wait(0.2)
exten => s,2,Playback(screen-from)
exten => s,3,Playback(${ARG1})
exten => s,4,Read(ACCEPT|screen-accept|1)
exten => s,5,GotoIf($[${ACCEPT} = 1 ] ?7:6)
exten => s,6,SetVar(MACRO_RESULT=CONTINUE)
exten => s,7,System(/bin/rm ${ARG1})

I am guessing this is a bug of sorts relating to the detection code not being applied to the egress
channel but I dont know enough about how this works yet to debug it...

Any help greatfully received !

Tristan.





More information about the asterisk-users mailing list