News:

On Tuesday September 6th the forum will be down for maintenance from 9:30 PM to 11:59 PM PDT

Main Menu

X_InboundCallRoute Help

Started by Rodger, January 30, 2012, 11:59:45 AM

Previous topic - Next topic

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.

RonR

Voice Serives -> SP2 Service -> X_InboundCallRoute : {>(<#:>(Mli)):li},{sp1}

Calls to numbers beginning with a # should have the # removed and then be sent to the LINE Port.  All other calls should be sent to SP1.

Rodger

Weird, I tried that originally but it didn't work. I must have typed it wrong because it's working now.


Thanks again!

skpv

The obihai 110 is in India. The following setting doesn't work. It seems like, the obihai doesn't  differentiate  the incoming numbers to Line and despite the following settings transfer all calls to 403zzzzzzzz through sp1. I tried adding the x. , 91 and even 0 as prefixes in the follwoing, nothing worked. I feel like not being able to use the full functionality of obihai.

My current setting is:

Physical interfaces>Line> InboundCallRoute>{(97xxxxxxxx):sp1(403xxxxxxx)},{(96xxxxxxxx|93xxxxxxxx):sp1(403yyyyyyyy)},{(27xxxxxx|1501|1502|1503|1504):ph},{(94xxxxxxxx|92xxxxxxxx):sp2(201xxxxxxxx)},{(98xxxxxxxx):aa},{sp1(403zzzzzzz)}

1501, 1502, 1502, and 1504 are local landline phone companies numbers and I want the calls from these number to ring the phone in India and don't get forwarded through sp1 or sp2.

sp1 is freephoneline.ca
sp2 is GoogleVoice

Please help!


Shammi

Hi Ronr,
Thanks for the tip, would you please let me know what IP address I should add here: the IP address of my internet, computer or the obi's?

also I am wondering if you might have more security tips, I want to use the obihai to record telephonic interviews, can someone access the communication or the recordings?  Is there a way to record ALL calls by default.... please help
Thanks
Shammi

Quote from: RonR on January 30, 2012, 02:18:14 PM
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


RonR

#9
skpv,

97xxxxxxxx:sp1(4031234567)

Incoming calls which show up in the Call History as 10-digits starting with 97 should be sent to 4031234567 via SP1.

(96xxxxxxxx|93xxxxxxxx):sp1(40387654321)

Incoming calls which show up in the Call History as 10-digits starting with 96 or 93 should be sent to 40387654321 via SP1.

(27xxxxxx|1501|1502|1503|1504):ph

Incoming calls which show up in the Call History as 8-digits starting with 27 or 1501, 1502, 1503, or 1504 should be sent to the PHONE Port.

(94xxxxxxxx|92xxxxxxxx):sp2(20112345678)

Incoming calls which show up in the Call History as 10-digits starting with 94 or 92 should be sent to 20112345678 via SP2.

(98xxxxxxxx):aa

Incoming calls which show up in the Call History as 10-digits starting with 98 should be sent to the Auto Attendant.

sp1(4031234321)

All other incoing calls should be sent to 4031234321 using SP1.

RonR

#10
Quote from: Shammi on February 03, 2012, 02:08:55 PM
would you please let me know what IP address I should add here: the IP address of my internet, computer or the obi's?

X_Accesslist should contain the IP address of those allowed to make incoming calls to the OBi.  That's typically your service provider.

Shammi

Hi, Does it mean the IP address what i hear when I dial ***1 in X_Accesslist ?

should be in
Quote from: RonR on February 03, 2012, 02:37:00 PM
Quote from: Shammi on February 03, 2012, 02:08:55 PM
would you please let me know what IP address I should add here: the IP address of my internet, computer or the obi's?

X_Accesslist should contain the IP address of those allowed to make incoming calls to the OBi.  That's typically your service provider.


skpv

RonR, Thanks for the unwinding this all, however, this all doesn't work. It sounds like obihai can't recognize incoming numbers from Line. It sends All incoming calls to 4031234321 using SP1. do I need to do some other settings?



Quote from: RonR on February 03, 2012, 02:32:58 PM
skpv,

97xxxxxxxx:sp1(4031234567)

Incoming calls which show up in the Call History as 10-digits starting with 97 should be sent to 4031234567 via SP1.

(96xxxxxxxx|93xxxxxxxx):sp1(40387654321)

Incoming calls which show up in the Call History as 10-digits starting with 96 or 93 should be sent to 40387654321 via SP1.

(27xxxxxx|1501|1502|1503|1504):ph

Incoming calls which show up in the Call History as 8-digits starting with 27 or 1501, 1502, 1503, or 1504 should be sent to the PHONE Port.

(94xxxxxxxx|92xxxxxxxx):sp2(20112345678)

Incoming calls which show up in the Call History as 10-digits starting with 94 or 92 should be sent to 20112345678 via SP2.

(98xxxxxxxx):aa

Incoming calls which show up in the Call History as 10-digits starting with 98 should be sent to the Auto Attendant.

sp1(4031234321)

All other incoing calls should be sent to 4031234321 using SP1.


RonR

Quote from: skpv on February 03, 2012, 07:41:39 PM
this all doesn't work. It sounds like obihai can't recognize incoming numbers from Line. It sends All incoming calls to 4031234321 using SP1.

What are you seeing in the OBi's Call History?  When you call the OBi's LINE Port from a number such as 9712345678, for example, does the Call History show the incoming CallerID (Peer Number) exactly as 9712345678?  If the incoming CallerID shown in the Call History matches the DigitMap rule in the InboundCallRoute, 97xxxxxxxx in this case, it should execute that rule properly and bridge the call to 4031234567 using SP1.

My guess is the incoming CallerID isn't what you're assuming it is and is therefore not matching the rule.  The Call History should make it clear what you're dealing with and what the rule needs to be to match it.

skpv

Hi RonR,
In the history, the inbound peer number space is empty, no number at all.
The incoming
Quote from: RonR on February 03, 2012, 08:50:30 PM
Quote from: skpv on February 03, 2012, 07:41:39 PM
this all doesn't work. It sounds like obihai can't recognize incoming numbers from Line. It sends All incoming calls to 4031234321 using SP1.

What are you seeing in the OBi's Call History?  When you call the OBi's LINE Port from a number such as 9712345678, for example, does the Call History show the incoming CallerID (Peer Number) exactly as 9712345678?  If the incoming CallerID shown in the Call History matches the DigitMap rule in the InboundCallRoute, 97xxxxxxxx in this case, it should execute that rule properly and bridge the call to 4031234567 using SP1.

My guess is the incoming CallerID isn't what you're assuming it is and is therefore not matching the rule.  The Call History should make it clear what you're dealing with and what the rule needs to be to match it.


RonR

#15
Quote from: skpv on February 03, 2012, 11:53:57 PM
In the history, the inbound peer number space is empty, no number at all.

Then that's why your InboundCallRoute isn't working.  Either your PSTN line doesn't have CallerID service or the OBi isn't recognizing it.

If your PSTN Line does, in fact, have CallerID service, you might try increasing:

Physical Interfaces -> LINE Port -> RingDelay

Until you get caller's numbers showing up in the Call History, the InboundCallRoute won't have anything to work with.