Solved - 3 GV Accounts, 2 OBI110s, 1 Asterisk Server

<< < (2/3) > >>

DocM:
I used that exact setup as described in those links on the first OBI (a GV on SP1 and Asterisk connection on SP2). However, I can't use it on the second OBI (2 GV accounts) without sacrificing one of the GV accounts.

I am at the moment, trying to set the InBoundCallRoute on the first OBI's SP2 to redirect specified calls to either the OBITALK Service or a Voice Gateway. However, even after reading the Voice Gateway description in the OBI Admin Guide, I am unable to understand how it functions. Is a voice gateway just used to bypass the authorization code asked by the OBITALK Service? As far as I can understand, the OBITALK Service isn't redirected to the AA if a number is sent along with the caller id, thus no authorization code is asked. If that's true, then whats the point of the Voice Gateway?

OBITALK Service's InboundCallRoute: {(111111111)>(xx.):sp1},{(111111111):aa},{ph}

QBZappy:
DocM,

I think the gateways where originally intended to connect any OBi/OBiAPP to any OBi. OBihai was thinking "World Domination" when they designed this feature. IMO the plan was to create interconnected OBi's around the world, on either a small or big scale. Other uses for the gateway can be found for services which do not need to be registered. Plenty of examples on the forum.

RonR:
DocM,

Try this for outbound calls to three Google Voice accounts across two OBi's:

OBi #1 (200111111) : SP1 = Google Voice / SP2 = SIP

Voice Services -> SP2 Service -> X_InboundCallRoute : {sip_userid>(Mtg1):tg1},{ph}

Voice Services -> Gateways and Trunk Groups -> Trunk Group1
TrunkList : sp1,vg1
DigitMap : (<1aaa>[2-9]xxxxxx|<1>[2-9]xxxxxxxxx|1xxxxxxxxxx|011xx.)

where aaa is your local area code.

Voice Services -> Gateways and Trunk Groups -> Voice Gateway1
AccessNumber : 200222222

OBi #2 (200222222) : SP1 = Google Voice / SP2 = Google Voice

Voice Services -> OBiTALK Service -> InboundCallRoute : {200111111>(Mtg1}:tg1},{ph}

Voice Services -> Gateways and Trunk Groups -> Trunk Group1
TrunkList : sp1,sp2
DigitMap : (<1aaa>[2-9]xxxxxx|<1>[2-9]xxxxxxxxx|1xxxxxxxxxx|011xx.)

where aaa is your local area code.


SIP calls to OBi #1 SP2 will use OBi #1 SP1 first, followed by OBi #2 SP1, followed by OBi #2 SP2.

MichiganTelephone:
Quote from: DocM on March 20, 2012, 05:31:52 pm

I was wondering if I could get three GV Accounts (one on the first OBI and two on the second OBI) connected to my asterisk server. I was able to get the OBI with one GV account working by placing the GV account on SP1 and connecting to the asterisk server on SP2. Now I am wondering if I can somehow get the second OBI with two GV accounts to connect to my asterisk server. The only solution I came up with is attempting to send all calls from and to the second OBI's GV accounts via a Voice Gateway to the first OBI's SP2 asterisk connection. I am unclear how the Voice Gateway functions (like how to redirect calls sent through the Voice Gateway to SP2) so I am unable to implement my idea. I would be grateful for any help provided.

Thanks in advance for any help provided.


Don't forget that every OBi device has a connection to the OBiTALK network, which can be thought of as a third service provider.  So you could (in theory, anyway) forward calls from one OBi device to the other via OBiTALK and then send them from there to your Asterisk server.

I really wish there were an OBiTALK client that ran under Linux and could act as a direct bridge between the OBiTALK network and Asterisk.  OR that you could set up a Voice Gateway to a SIP-based server even if all of your main service providers are set to Google Voice.

When the OBi202 is released it will be a BIG help in situations like this, since it has four Service Provider configurations and you'd only need to use one of them for the link to your Asterisk server, or maybe even none of them as long as at least one is connected to some SIP-based service (like a commercial VoIP provider) and all you care about is incoming calls, not outgoing - see How to divert incoming Google Voice calls from an Obihai VoIP device to an Asterisk server for additional processing (such as Caller ID lookup) which shows a way to use a Voice Gateway for your connection to Asterisk.

And for calls in the reverse direction (Asterisk to Obihai to Google Voice) see How to use the Obihai OBi100, OBi110, or OBi202 VoIP device as a gateway between Asterisk/F—PBX and Google Voice and/or the OBiTALK network (UPDATED).  But again, it won't work unless one of your Service Providers is configured for SIP, not Google Voice.

DocM:
Thanks for all the great replies.

@QBZappy: World Domination LOL!

@RonR: Your setup was great. I tweaked it a bit so that the asterisk server could target what number to use:
On OBi110 #1 (200111111):
Voice Services > SP2 Service > X_InboundCallRoute: {>(801):ph},{>(*101(Msp1)):vg1},{>(*102(Msp2)):vg1},{sp1}
Voice Services > Gateway and Trunk Groups > Voice Gateway 1 > AccessNumber: 200222222

On OBi110 #2 (200222222):
Voice Services > OBiTalk Service > InboundCallRoute: {(200111111)>(<*101:>(Msp1)):sp1},{(200111111)>(<*102:>(Msp2)):sp2}

These work perfectly, so far.

However, I can't seem to receive incoming calls from OBi110 #2 and redirect them to OBi110 #1. I confirmed the GV lines are functioning (changed SP1 and SP2's X_InboundCallRoute to ph).

The following is what I've tried:
On OBi110 #1 (200111111):
Voice Services > OBiTalk Service > InboundCallRoute: {(200222222)>(xx.):ph}

On OBi110 #2 (200222222):
Voice Services > Gateway and Trunk Groups > Voice Gateway 1 > AccessNumber: 200111111
Voice Services > SP2 Service > X_InboundCallRoute: vg1

I tried replacing vg1 with numerous combinations (i.e. vg1(200111111) or vg1($1) or vg1(GV number)). Any time any call is made to the GV number, nothing shows up on the call logs. Not sure what to do here.

Btw, do you know whats the largest number that Voice Services > SP2 Service > MaxSessions can reach?

Thanks again for your help. Your example helped me understand Voice Gateways and Trunk Groups a bit more.

@MichiganTelephone: Its an honor to speak with you. Thanks for all the great detailed articles that helped me so far through my personal project. Without them, I doubt I would understand the obi as much as I do today. The OBi202 would have been perfect if it was available at the time of my purchase :( . Unfortunately, neither articles that you linked would be useful to me since I am using both SP1 and SP2 for GV accounts on my OBi110 #2.

Navigation

[0] Message Index

[#] Next page

[*] Previous page