X_InboundCallRoute Help
Rodger:
I was hoping you guys could help me.
I have SP1 linked to my google voice account and SP2 trunked to my Asterisk PBX. When I call out from my SIP phone connected to Asterisk, it goes to LI (my Magicjack). If I change it to SP1, it will dial out my google voice account. How can I make it so that if I dial # plus the number it will route to google voice (sp1) and if I don't dial #, it will route to LI?
All outgoing calls from my SIP phone are treated as incoming calls from asterisk on SP2. So from there we just need to route it to LI or SP1 according to the # prefix.
I'm guessing it's very simple but I can't figure it out. Maybe something like this in the SP2 X_InboundCallRoute {#|.:sp1},{.:li} ---- I know my syntax is completely wrong, but I'm sure you get my idea.
Thank for your help!
-Rodger
RonR:
Bssed on your description:
Voice Serives -> SP2 Service -> X_InboundCallRoute : {>(<#:>(Msp1)):sp1},{li}
Calls to numbers beginning with a # should have the # removed and then sent to SP1. All other calls should be sent to the LINE Port.
Rodger:
That worked perfectly, thank you!
Quote from: RonR on January 30, 2012, 12:40:22 pm
Bssed on your description:
Voice Serives -> SP2 Service -> X_InboundCallRoute : {>(<#:>(Msp1)):sp1},{li}
Calls to numbers beginning with a # should have the # removed and then sent to SP1. All other calls should be sent to the LINE Port.
RonR:
Quote from: Rodger on January 30, 2012, 02:08:30 pm
That worked perfectly, thank you!
Great!
You should be aware that SP2 is vulnerable to anyone sending INVITE's to your OBi's IP Address and making calls through your SP1 and LINE Port if it's exposed to the Internet in any way.
I secure my OBi's by limiting access only to trusted IP addresses at:
Service Providers -> ITSP Profile B -> SIP -> X_AccessList
Rodger:
okay, I'll will add the server to the access list.
What would the syntax be for the opposite? Suppose I wanted the # to be used for LI.
I tried swapping everything, but it didn't work.
Navigation
[0] Message Index
[#] Next page