News:

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

Main Menu

Call out line port obi110#2 when calling from phone port on obihai#1

Started by magamaga, December 23, 2014, 08:40:45 PM

Previous topic - Next topic

magamaga

Hi I have two obi110's.

I want to be able to make calls to 7 digit numbers from the phone port on obi110#1 be dialed out the line port on obihai#2 .  

I'd appreciate your help as I don't know how to make this work.

Thanks,

Leo


azrobert

OBi110#1
Add check for 7 Digits to Physical interfaces -> Phone Port -> DigitMap
It should look like this:
([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|xxxxxxx|911|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

Add following to the beginning of
Physical interfaces -> Phone Port -> OutboundCallRoute:
{(<200222222*>xxxxxxx):pp},

Change 200222222 to the OBi number of OBi110#2

OBi110#2

Add following to the beginning of
Voice Services -> OBiTalk Service -> InboundCallRoute:
{200111111>(xxxxxxx):li},

Change 200111111 to the OBi number of OBi110#1

If the current inbound route is ph then change it to:
{200111111>(xxxxxxx):li},{ph}

magamaga

That works like a charm!   
 

If I preceed the 7 digit number with a 088 could I just add (088)xxxxxxx to the digitmap and all the other entries?    Some 7 digit numbers required the 088 because they are long distance.

Thanks for helping me .





Quote from: azrobert on December 23, 2014, 09:38:11 PM
OBi110#1
Add check for 7 Digits to Physical interfaces -> Phone Port -> DigitMap
It should look like this:
([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|xxxxxxx|911|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

Add following to the beginning of
Physical interfaces -> Phone Port -> OutboundCallRoute:
{(<200222222*>xxxxxxx):pp},

Change 200222222 to the OBi number of OBi110#2

OBi110#2

Add following to the beginning of
Voice Services -> OBiTalk Service -> InboundCallRoute:
{200111111>(xxxxxxx):li},

Change 200111111 to the OBi number of OBi110#1

If the current inbound route is ph then change it to:
{200111111>(xxxxxxx):li},{ph}


azrobert

OBi110#1
Physical interfaces -> Phone Port -> DigitMap
([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|088xxxxxxx |xxxxxxx|911|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

Physical interfaces -> Phone Port -> OutboundCallRoute:
{(<200222222*>(088xxxxxxx|xxxxxxx)):pp}

OBi110#2

Voice Services -> OBiTalk Service -> InboundCallRoute:
{200111111>(088xxxxxxx|xxxxxxx):li},

An explanation of what I did:

The dialed number must match a rule in the Phone Port DigitMap.
(Mpli) will include the rules for the Primary Line into the Phone Port DigitMap.
Since I didn't know your Primary Line or what rules it had, I added 088xxxxxxx and xxxxxxx directly to the Phone Port DigitMap.

pp is the OBiTalk Network.
To call your other OBi, you would send "200222222" to pp.
To call your other OBi and send a number, you would send "200222222*5551212" to pp.
(088xxxxxxx|xxxxxxx) is comparing for the numbers to route to OBiTalk.
<200222222*> is prepending 200222222* to the dialed number before routing it to OBiTalk.



magamaga

Thank you azrobert. 
    I tried it once and it worked from my android and it worked.  I just tried now from my home phone and it isn't working.     If I dial a 7 digit number,  the call goes out the sp1 interface.

When I look at the call status on obihai #2, it says there are zero calls.

I have double checked your suggestions in the config and it seems straightforward.   

I appreciate your time.

Thanks.



Quote from: azrobert on December 24, 2014, 08:35:55 AM
OBi110#1
Physical interfaces -> Phone Port -> DigitMap
([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|088xxxxxxx |xxxxxxx|911|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

Physical interfaces -> Phone Port -> OutboundCallRoute:
{(<200222222*>(088xxxxxxx|xxxxxxx)):pp}

OBi110#2

Voice Services -> OBiTalk Service -> InboundCallRoute:
{200111111>(088xxxxxxx|xxxxxxx):li},

An explanation of what I did:

The dialed number must match a rule in the Phone Port DigitMap.
(Mpli) will include the rules for the Primary Line into the Phone Port DigitMap.
Since I didn't know your Primary Line or what rules it had, I added 088xxxxxxx and xxxxxxx directly to the Phone Port DigitMap.

pp is the OBiTalk Network.
To call your other OBi, you would send "200222222" to pp.
To call your other OBi and send a number, you would send "200222222*5551212" to pp.
(088xxxxxxx|xxxxxxx) is comparing for the numbers to route to OBiTalk.
<200222222*> is prepending 200222222* to the dialed number before routing it to OBiTalk.




magamaga

What I see it doing is ....it's appending the local area code and it's calling 1-localareacode-7digitnumberdialed via the sp1 interface which is the default on obihai #1.


Here are the digimaps and outbound call routes:

obihai#1

Phone port

Digimap

([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|088*******|*******|911|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

OutboundCallRoute

{(<200222222*>xxxxxxx):pp},{([1-9]x?*(Mpli)):pp},{(<#:>|911):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}


obihai #2

obitalk service

Digimap

(<ob>xxxxxxxxx|obxxxxxxxxx)

InboundCallRoute

{200111111>(088xxxxxxx|xxxxxxx):li},{(200222222|200111111)>(xx.):SP1},{(200222222|200111111):aa},{ph}


azrobert

In the Phone DigitMap why are you using |088*******|******* instead of |088xxxxxxx|xxxxxxx
Are you only routing specific numbers to OBi110#2?

Phone OutboundCallRoute you are missing 088xxxxxxx

In Service -> ITSP Profile A General -> DigitMap
You must have a rule like this: <1localareacode>xxxxxxx
Remove It.

If you are routing just specific numbers to OBi110#2 and want to keep 7 digit dialing for SP1, it can be done.


magamaga

My apologies.   I have corrected the *'s and placed x's instead. 

I want all 7 digit dialing at obi#1 to go out the line port on obi#2.   I dont ever dial 7digit numbers out SP1 on obi#1.

I removed the "localarea" part from the  ITSP Profile A General -> DigitMap on obi#1

I'm now getting a "The number you dialed was rejected by the service provider Reason is 404"

Seven digit calls from obi#2 is working fine and they only go out on port "Line" which is the default one.





Here is the config again:

Obi#1:

Phone Port
Digimap: 

([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|088xxxxxxx|xxxxxxx|911|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

Outboundcallroute:

{(<200222222*>(088xxxxxxx|xxxxxxx)):pp},{([1-9]x?*(Mpli)):pp},{(<#:>|911):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}

ITSP Profile A General -> DigitMap:

(*xx|1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|011xx.|xx.|(Mipd)|[^*]@@.)

Obi#2:

Obitalk Service:
Digimap:

(<ob>xxxxxxxxx|obxxxxxxxxx)

InboundCallRoute:

{200111111>(088xxxxxxx|xxxxxxx):li},{(200111111)>(xx.):SP1},{(200111111):aa},{ph}

ITSP Profile A General -> DigitMap

(*xx|1xxxxxxxxxx|<1localareacode>[2-9]xxxxxx|<1>[2-9]xxxxxxxxx|011xx.|xx.|(Mipd)|[^*]@@.)


Here is the status of the call on obi#1

Number of Active Calls: 1
Call 1             
Terminal 1                      Terminal 2
Terminal ID       PHONE1       Announcement1
State              connected    connected
Peer Name      
Peer Number   2770658   
Start Time        10:29:43    10:29:43
Duration        00:00:01    00:00:01
Direction        Outbound    Inbound


magamaga

So it looks like obi#2 is rejecting the call.  I was able to capture this happening before going to the announcement with the error :

Number of Active Calls: 1
Call 1             

Terminal 1                            Terminal 2
Terminal ID         PHONE1         OBiTALK1
State                 trying            lookup
Peer Name      
Peer Number   2770658   200222222*2770658
Start Time          10:54:22            10:54:22
Duration          00:00:00   00:00:00
Direction   Outbound   Outbound
Peer RTP Address      0.0.0.0:0
Local RTP Address      192.168.2.13:43988
RTP Transport      UDP
Audio Codec      tx=; rx=
RTP Packetization (ms)      tx=0; rx=0
RTP Packet Count      tx=0; rx=0
RTP Byte Count      tx=0; rx=0

magamaga

Sorry again.   I had one wrong digit in obi#2's ob number on the ouboundcallroute in obi#1.  I've corrected it and it now places the call, but it is ringing the phone port on obi#2 instead of routing to the line port.

magamaga

obi#2 isn't getting peer name from obi#1


azrobert

Are you sure you have the correct OBi110#1 OBi number?
I never heard that the OBi number wasn't passed.
Anyway, checking for the OBi number is more a security thing.
You can check for only the two dialed number patterns like this:
{>(088xxxxxxx|xxxxxxx):li}

Please check the call history for both OBi110s.
You can only access the call history via the local interface.

To access Call History:
Log directly into the OBi using the local interface.
Key the IP address of the OBi into a Web Browser.
Hit Enter
The UserID and default Password are both "admin".
Click Status on the left column.
Then click Call History.

azrobert

I called my OBi110 from an OBi200 and the Call Status shows the Peer Number.
What firmware level is installed on each OBi110?  

Be aware that above Build 2824 GV is installed differently.
If you are at 2824 and below and install the current firmware, GV will stop working until you re-install it with the new procedure.

magamaga

I ended up resetting both obi's and it's all working well.   

The caller ID is being passed now.

azrobert, I really appreciate all your help.   


Hadi

Hi azrobert

Can we do that through GV(Sp1) on OBI110#1 and another GV(SP1) on OBI110#2 instead of using obitalk?

For example:

OBi110#1

Physical interfaces -> Phone Port -> DigitMap

([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|xxxxxxx|911|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

Physical interfaces -> Phone Port -> DigitMap
{(<2222222222*>(xxxxxxx)):SP1}

OBi110#2

Voice Services -> SP1service -> X_InboundCallRoute:
{1111111111>(xxxxxxx):li}

which 1111111111 is GV number on OBI110#1 and 2222222222 is GV number on OBI110#2

Actually I tried this but didn't work. If we can how?

Quote from: azrobert on December 23, 2014, 09:38:11 PM
OBi110#1
Add check for 7 Digits to Physical interfaces -> Phone Port -> DigitMap
It should look like this:
([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|xxxxxxx|911|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

Add following to the beginning of
Physical interfaces -> Phone Port -> OutboundCallRoute:
{(<200222222*>xxxxxxx):pp},

Change 200222222 to the OBi number of OBi110#2

OBi110#2

Add following to the beginning of
Voice Services -> OBiTalk Service -> InboundCallRoute:
{200111111>(xxxxxxx):li},

Change 200111111 to the OBi number of OBi110#1

If the current inbound route is ph then change it to:
{200111111>(xxxxxxx):li},{ph}


azrobert

Not the way you want. There is no way to pass an outbound number using 2 GV accounts. You would have to use the Auto Attendant.

If both OBi110s were on the same LAN and SP2 was configured as SIP on both, you could use SP2. I assume these are not on the same LAN. We can try this setup, but you will probably have audio problems (no or one way audio). I currently have no way to test this type of setup.

Why don't you want to use OBiTalk?

Hadi

My OBi110#1 is in the US and OBI110#2 is located at another country. The problem is OBI110#1 to OBI110#2 disconnects after 1-2 min and the OBI110#2 on obitalk shows offline for 2-3 hours and I couldn't call OBI110#2 but the GV on OBI110#2 at that time works great and when I call 2222222222, I can use landline on OBI110#2 by using Auto attendant.

azrobert

On the remote OBi110
Voice Services -> SP1 Service
X_InboundCallRoute: {14801234567:aa},{ph}

Change 14801234567 to the CallerID of the local GV.

Call the remote GV number.
You should get the Auto Attendant prompt.
Enter 2 then the outbound number followed by the # key.
Enter 1 to ring the phone port on the remote OBi110

Hadi

Yes. I knew this one works but you asked me why I didn't use obitalk and I answered that because it disconnected after 2-3 min. refer to my previous post. so I was trying to pass outbound number on 2 GV without using auto attendant
Quote from: azrobert on January 15, 2015, 12:05:15 PM
On the remote OBi110
Voice Services -> SP1 Service
X_InboundCallRoute: {14801234567:aa},{ph}

Change 14801234567 to the CallerID of the local GV.

Call the remote GV number.
You should get the Auto Attendant prompt.
Enter 2 then the outbound number followed by the # key.
Enter 1 to ring the phone port on the remote OBi110


azrobert