[Asterisk-Users] GotoIf in Stable 1.0.4
Moody
asterisk.user at gmail.com
Wed Apr 20 21:29:09 MST 2005
Here is a working sample that I use for the same thing on my home
box... note that I use AreskiCC so that I can easily and nicely track
usage..
The SetAccount is used so that AreskiCC doesn't ask for the calling
card number and directly prompts me to dial but if anyone else calls
in it asks for a calling card.
exten => 1,1,Answer
exten => 1,2,Wait,2
exten => 1,3,GotoIf($[${CALLERIDNUM} = 5555551212]?1|100:1|500)
exten => 1,100,SetAccount(1234567890)
exten => 1,101,Goto(1|500)
exten => 1,500,DeadAGI,areskicc.php
exten => 1,501,Wait,2
exten => 1,502,Hangup
More information about the asterisk-users
mailing list