News:

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

Main Menu

Using a different ougoing SIP provider with Callcentric

Started by proteus, July 24, 2014, 10:43:40 AM

Previous topic - Next topic

proteus

I have SP1 as Google Voice and SP2 as Callcentric to get free CNAM on incoming calls. I want to configure LocalPhone as the outgoing SIP provider on SP2 since their rates are better than Callcentric. Can this be done? I was looking at Voice Gateways but could not figure them out.

azrobert

Yes, it can be done with a Voice gateway.
Do you want Localphone to be your primary route or do you want to dial a prefix like "**3"?

What is Localphone's proxy server name?

proteus

Quote from: azrobert on July 24, 2014, 11:37:01 AM
Yes, it can be done with a Voice gateway.
Do you want Localphone to be your primary route or do you want to dial a prefix like "**3"?

What is Localphone's proxy server name?

I would like to learn about both options, at this time I want Localphone to be primary for SP2 but having Callcentric as outgoing allows me to use their (PBX-like) Extensions feature.

Their server is localphone.com (same as the domain name).

azrobert

Voice Services -> Gateways and Trunk Groups

Voice Gateway1
Name: LocalPhone
AccessNumber: sp2(localphone.com)
DigitMap: (1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|<1aaa>xxxxxxx|011xx.)
aaa = Your local area code
Add any other patterns you need
AuthUserID: Your_LP_UserID
AuthPassword: Your_LP_PW

Trunk Group1
TrunkList: vg1
DigitMap: (Mvg1)

Physical Interfaces -> Phone Port
Add following to the DigitMap
**3(Mvg1)|
It can be anywhere, but add it after **2(Msp2)|

Add following to the OutboundCallRoute:
{(<**3:>(Mvg1)):vg1},
It can be anywhere, but add it after {(<**2:>(Msp2)):sp2},

Dial **314805551212 to route call to LocalPhone.
Set TG1 as the Phone Port Primary route when you want to route calls to LP without a prefix.
You cannot set a Voice Gateway as the Primary Route.
Pointing TG1 to a Voice Gateway then making TG1 the primary route is a trick to circumvent this restriction.


proteus

Worked great, thanks!
Quote from: azrobert on July 24, 2014, 02:17:49 PM
Voice Services -> Gateways and Trunk Groups

Voice Gateway1
Name: LocalPhone
AccessNumber: sp2(localphone.com)
DigitMap: (1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|<1aaa>xxxxxxx|011xx.)
aaa = Your local area code
Add any other patterns you need
AuthUserID: Your_LP_UserID
AuthPassword: Your_LP_PW

Trunk Group1
TrunkList: vg1
DigitMap: (Mvg1)

Physical Interfaces -> Phone Port
Add following to the DigitMap
**3(Mvg1)|
It can be anywhere, but add it after **2(Msp2)|

Add following to the OutboundCallRoute:
{(<**3:>(Mvg1)):vg1},
It can be anywhere, but add it after {(<**2:>(Msp2)):sp2},

Dial **314805551212 to route call to LocalPhone.
Set TG1 as the Phone Port Primary route when you want to route calls to LP without a prefix.
You cannot set a Voice Gateway as the Primary Route.
Pointing TG1 to a Voice Gateway then making TG1 the primary route is a trick to circumvent this restriction.



Shiblee

I will use a OBi200 (1) SP1 as gateway. If I call from another OBi200 (2) how to ring at attached phone (of 1)?

azrobert

The easiest way is to setup a Speed Dial like this:
pp(510111111)

Then dial the speed dial number.
Change 510111111 to the OBi number of OBi200#1

Shiblee

Thanks...you reply quite quick...

However, I have two scenario here..
1. Calling through the OBi200 (1) SP1 directly from OBi200 (2).
2. Calling OBi200 (1) attached phone PH1 from OBi200 (2).

How to do it?

azrobert

Do you have any outbound trunks on OBi200#2?
In other words, are you routing ALL outbound calls from OBi200#2 thru OBi200#1?
or
Are some outbound calls going out a trunk on OBi200#2?

It will make a difference how you dial the outbound number.
If you are routing calls out both OBi200s then you will need to dial a prefix to tell OBi200#2 to route the call to OBi200#1.

Are the numbers being dialed for the US?
If not what is the format (like number of digits)?

Shiblee

It is in Asia, calls are 9-15 digit (Local/international excluding + or 00).

1. OBi200 (1) has a ip telephone connection (SP1) & attached phone PH1.
2. OBi200 (2) has only attached phone PH1.

#1. Make calls through OBi200 (1) SP1 directly from OBi200 (2) attached PH1 to phone network. I need also call to attached phone of Obi200 (1).

#2. All incoming calls  at OBi200 (1) SP1 will be routed to OBi200 (2). I got answer,
Voice Services -> SP1 Services -> X_InboundCallRoute
The default is: ph >> Change it to: pp(OBI200 (2) NO)

Thanks.

azrobert

On the OBi200#2

Physical Interfaces -> Phone port
Add to beginning of the OutboundCallRoute:
{(<510111111*>@@.):pp},

Physical Interfaces -> Phone port -> DigitMap
Add AFTER the beginning parenthesis:
@@.S3|

Replace 510111111 with the OBi number Of OBi200#1                 

On the OBi200#1

Voice Services -> OBiTalk Service
Replace InboundCallRoute:
{510222222>0:ph},{510222222>(@@.):sp1},{ph}

Replace 510222222 with the OBi number Of OBi200#2

Dial 0 to ring the phone port on OBi200#1
Any other number will be routed to SP1 on OBI200#1

You weren't specific enough on the dialed numbers, so I allowed anything including a plus sign.
@@. will allow any character string.
The S3 after the @@. is a 3 second wait after the number is dialed.
This is to prevent the number being sent prematurely if you pause between numbers.
If you have a phone where you dial the number then press Talk/Send you can change it to S1 for a 1 second wait.

Shiblee

Thanks. I am not sure of the digits also as the length of digits are different. I will be working on it later.

azrobert

{(<510111111*>@@.):pp}

FYI when you call a remote OBi the format is:
Destination_OBi * Number : OBiTalk_Network
The * and Number are optional
pp is the ObiTalk network

@@. is checking for any dialed number.
If it matches the dialed number (which it will) then <510111111*> will prefix the number with the destination OBi number and a star.
If you dial 0 then 510111111*0 will be sent to the OBiTalk network.


Receiving a call:
{510222222>0:ph},{510222222>(@@.):sp1},{ph}

Format:
Sending OBi number > dialed number : destination

Shiblee

Quote from: Shiblee on January 13, 2015, 07:38:37 PM
It is in Asia, calls are 9-15 digit (Local/international excluding + or 00).

1. OBi200 (1) has a ip telephone connection (SP1) & attached phone PH1.
2. OBi200 (2) has only attached phone PH1.

#1. Make calls through OBi200 (1) SP1 directly from OBi200 (2) attached PH1 to phone network. I need also call to attached phone of Obi200 (1).

#2. All incoming calls  at OBi200 (1) SP1 will be routed to OBi200 (2). I got answer,
Voice Services -> SP1 Services -> X_InboundCallRoute
The default is: ph >> Change it to: pp(OBI200 (2) NO)

Thanks.

I tested the setup today with ipte.org accounts. for case #2 calls from SP1 (OBi200- 1) forwarded to  (OBi200- 2) but auto attended recieving call. I have changed
Voice Services -> OBitalk ->InboundCallRoute-> ph.

Now, I am getting call but no caller ID. How to get CID?

azrobert

The CID should automatically be passed when using the OBiTalk network.
Can you check the call history on OBI200-1 to see if you are receiving a CID.
Does the CID have any special characters like a plus sign?
Some phone will not display CID when it contains special characters.

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.

Shiblee

Hi,
The caller id was xxxxxx0 (x ->letter, 0->numeric zero). This is a sip call, for initial testing.

azrobert

Did you check the call history on OBI200-1 to see if you are receiving the CID correctly?
It should look like this:
From SP1(Shiblee0)
If you are receiving CID please try an all numeric CID just to see what happens.

Shiblee

Thanks. I was just going to modify my post, as information was not properly given.

I checked that in the obi200. Obi has the CID.

Anyway.. for routing the call to google chat id what to write at,

Voice Services -> SP1 Services -> X_InboundCallRoute
pp(xxxxxxxxx), ? ? ? ? ? ? ?

azrobert

When you use format pp(xxxxxxxxx) pp is the OBiTalk network and you can only route calls to another OBi using an OBi number.

If you have a GV account defined on both OBi200s, then do this:

spn(GV#2_number)

Change spn to the SP number where GV#1 is defined.
The CID received at GV#2 will be GV#1's CID, not the inbound call CID.

Shiblee

Quote from: azrobert on January 13, 2015, 08:20:28 PM
On the OBi200#2

Physical Interfaces -> Phone port
Add to beginning of the OutboundCallRoute:
{(<510111111*>@@.):pp},

Physical Interfaces -> Phone port -> DigitMap
Add AFTER the beginning parenthesis:
@@.S3|

Replace 510111111 with the OBi number Of OBi200#1                 

On the OBi200#1

Voice Services -> OBiTalk Service
Replace InboundCallRoute:
{510222222>0:ph},{510222222>(@@.):sp1},{ph}

Replace 510222222 with the OBi number Of OBi200#2

Dial 0 to ring the phone port on OBi200#1
Any other number will be routed to SP1 on OBI200#1

You weren't specific enough on the dialed numbers, so I allowed anything including a plus sign.
@@. will allow any character string.
The S3 after the @@. is a 3 second wait after the number is dialed.
This is to prevent the number being sent prematurely if you pause between numbers.
If you have a phone where you dial the number then press Talk/Send you can change it to S1 for a 1 second wait.


Hi, Is there a difference (due to left to right precedence) to enter the code {(<510111111*>@@.):pp}
beginning/end of OutboundCallRoute.

My intention here to use **service route access codes while keeping the rule of 0 to call OBi#1:PH and other numbers to OBi#1:SP1, by adding it end of line of OutboundCallRoute.

Thanks