watch 24 season 7 online streaming video, watch heroes season 3 free streaming video, watch smallville season 8 free online streaming video, Watch SUpernatural streaming video, watch LOST season 5 free streaming video




July 2, 2008

ASTERISK: Extensions.conf Conditional Statement by CallerID


EPISODE WATCH STREAMING ONLINE

 

ASTERISK: Extensions.conf Conditional Statement by CallerID

>>>> WATCH HERE ONLINE <<<

Filed under: Asterisk — nelson @ 3:57 am

TIP on how to make conditional statement in extensions.conf based on CallerID in Asterisk. This tip is made because of my Client in Korea requested it.

Say, you want to filter an Incoming call based on CallerID and want to re-route an incoming call for specific user or Context based on their callerid. This can be done in extensions.conf using gotoif statement.

Ex.

1) User1 = CLID = 11111

2) User2 = CLID = 22222

3) DID = 800123456

You want to make a rule that if User1 will call 800123456 it should be routed to a mobile number and if User2 call the 800123456 number he will be routed to IVR and if unknown CallerID will be routed to IVR as well.

exten => 800123456,1,NoOp
exten => 800123456,n,GotoIf($["${CALLERID(num)}" = "11111"]?mobile)
exten => 800123456,n,GotoIf($["${CALLERID(num)}" = "22222"]?ivr)
exten => 800123456,n,GotoIf($["${CALLERID(num)}" != "any"]?ivr)
exten => 800123456,n(mobile),Dial(H323/639173957876@mci,,R)
exten => 800123456,n(ivr),NoOp
exten => 800123456,n(ivr),goto(my-a2billing,,1)

Similar Posts:

Share/Save/Bookmark

ASTERISK: Extensions.conf Conditional Statement by CallerID

ASTERISK: Extensions.conf Conditional Statement by CallerID

RELATED POST

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress