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
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to