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

(1/4) > >>

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.




Navigation

[0] Message Index

[#] Next page