asterisk2billing.org
http://forum.asterisk2billing.org/

dtmf on callback
http://forum.asterisk2billing.org/viewtopic.php?f=21&t=6975
Page 1 of 1

Author:  lopl1360 [ Tue Jan 26, 2010 10:44 am ]
Post subject:  dtmf on callback

Dear,
our call back system, does not recognize the entered digits.
how can I check the DTMF on the added trunk?
how can I add rfcmode to that?

best

Author:  ricardo.provedor [ Tue Jan 26, 2010 3:59 pm ]
Post subject:  Re: DTMF on CallBack

The Following Application uses Read and SayDigits to read 3 digits from user, saying each one as user types.

Code:
Asterisk 1.2:
exten => s,1,Gotoif($[ "${LEN(${extensao})}" < "3"]?3:100)
exten => s,n,NoOp(Executing - ${extensao} - )
exten => s,n,Read(digito||1)
exten => s,n,SayDigits(${digito})
exten => s,n,Set(extensao=${extensao}${digito})
exten => s,n,GoTo(s,1)
exten => s,100,GoTo(from-pstn,s,1)
exten => h,1,hangup()

Asterisk 1.4, 1.6:
exten => s,1(start),Gotoif($[ "${LEN(${extensao})}" < "3"]?collect:pstn)
exten => s,n,NoOp(Executing - ${extensao} - )
exten => s,n(collect),Read(digito,,1)
exten => s,n,SayDigits(${digito})
exten => s,n,Set(extensao=${extensao}${digito})
exten => s,n,GoTo(start)
exten => s,n(pstn),GoTo(from-pstn,s,1)
exten => h,1,hangup()


With this you can test whether the digits that flies are entering are coming correctly to asterisk.

Font: http://www.voip-info.org

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/