ASTERISK: Extensions.conf Conditional Statement by CallerID
EPISODE WATCH STREAMING ONLINE |
ASTERISK: Extensions.conf Conditional Statement by CallerID
| >>>> WATCH HERE ONLINE <<< |
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:
- CCNA: Cisco Certified Network Associates : EXAM UDPATE
- Install: Asterisk 1.4 + Debian Etch 4 + H323 + G729 + G723
- Predictive Dialer Software Free Download
- Babby - How Babby is formed. How to make a babby.
- Cisco: New From Cisco Career Certifications: CCNA Concentrations and the Cisco Learning Network
ASTERISK: Extensions.conf Conditional Statement by CallerID
ASTERISK: Extensions.conf Conditional Statement by CallerID
RELATED POST- CCNA: Cisco Certified Network Associates : EXAM UDPATE
- Install: Asterisk 1.4 + Debian Etch 4 + H323 + G729 + G723
- Predictive Dialer Software Free Download
- Babby - How Babby is formed. How to make a babby.
- Cisco: New From Cisco Career Certifications: CCNA Concentrations and the Cisco Learning Network