Multiple GV outgoing on Obi thru FreePBX/Asterisk
hapollo:
Ok. so I decided to set up an Asterisk with FreePBX GUI running on a Raspberry pi (RasPBX) to avoid the OBiPortal. Due to the latest recent permanent downtime since SSL was deprecated for TLS after July 6, I set this up to allow future expansion and other reasons.
It was not as smooth as I had first thought b/c of so many layers in my setup- between callcentric incoming for caller ID, multiple google voice outgoing on asterisk and call routing on Obi110/200s, I spent a good part of the weekend troubleshoot various issues.
The part that I stumped on after searching all over the fourms is how to route GV Outgoing calls on OBi SP2 vs SP4 through Asterisk. In the past, dialing 10 digits went out SP2, **4 went out SP4. Now, **4 doesn't work and the call only goes out the 1st Outbound Route in the FreePBX setup. If I move the 1st outbound route down one, the other that moves up becomes the default outgoing. How do I tie a specific SPx to a specific outbound route and not the first in the Outbound Route order? Is it based on dialing patterns?
I'm pretty sure, I'm missing something on the outbound routes GUI to distinguish SP2 from SP4 to route the call through the respective GV.
OBi Call History shows **4 goes out on SP4 but Asterisk sends it out on whatever is on the 1st Outbound Route. Even tried to Prefix Dial Patterns on Outbound Routes to **4. Seems the **4 gets stripped somewhere between Obi and Asterisk.
Soultion? Any Asterisk/FreePBX gurus!
restamp:
I must confess I don't understand your "sp2 vs sp4" thing. What worked for me is to set up routes to Service Provider profiles (trunks) on the OBi that connect to Asterisk as internal extensions. Then to Asterisk, when you send a 10-digit number to SP2, it's the equivalent to Asterisk of someone picking up a local phone and dialing that number. You also get the benefit of any other Asterisk features on these lines. On my Asterisk, I used pjsip to configure the local extensions.
By default, all external calls originated on the server (i.e., on its local extensions) will go to the first Asterisk outbound trunk which was set up. If you want to route different extensions to different Asterisk outbound trunks, you'll have to play with the "Dial Patterns that will use this Route" options under Connectivity > Outbound Routes. (Normally, you would simply configure the CallerID that a given outbound channel will reflect for that call so that the actual hardware over which the call is placed wouldn't matter, but since GV lines do not allow their CallerID to be altered, I suppose juggling the trunks themselves becomes a practical necessity.)
hapollo:
Thanks for the replied suggestion . I resolved it by inserting a dial prefix
in the dial patterns for each Outbound Route with a modification in the OBi Phone port OutboundCallRoute from {(<**2:>(Msp2)):sp2} to (<**2:"Prefix">(Msp2)):sp2}. This way I kept the existing **X outbound routes on the obi and let Obi replace the **X with the appropriate Prefix # for the correction google line.
Should I add a few more Google voice accounts to Asterisk, I'll need to rethink this to accommodate more extensions. But for now, all I wanted to do was solve my SSL to TLS authentication issue after Google finally shut it down this month after a few outages ad keep the existing calling scheme we've used for nearly 5 years with GV.
restamp:
Glad you got your problem resolved to your satisfaction hapollo. (Your solution is essentially the same one that I would have chosen).
This thread, though, touches on a question that has been floating around in the back of my mind for some time concerning Google Voice: Does Google take an interest in or care how many XMPP sessions terminate on a given IP address and if so, at what point do they consider that number excessive? I've been reluctant to assign too many GV lines to my Asterisk server or OBis for that reason, although I could certainly use a few more. (Unlike hapollo, my Asterisk server resides on an external VPS with its own IPv4 address.)
Anyone know?
SteveInWA:
Quote from: restamp on July 24, 2016, 10:48:18 am
Glad you got your problem resolved to your satisfaction hapollo. (Your solution is essentially the same one that I would have chosen).
This thread, though, touches on a question that has been floating around in the back of my mind for some time concerning Google Voice: Does Google take an interest in or care how many XMPP sessions terminate on a given IP address and if so, at what point do they consider that number excessive? I've been reluctant to assign too many GV lines to my Asterisk server or OBis for that reason, although I could certainly use a few more. (Unlike hapollo, my Asterisk server resides on an external VPS with its own IPv4 address.)
Anyone know?
You can have several different Google accounts signed in at the same location. Keep in mind that Google Voice is intended for individual/personal use, and it's not intended to be a source of free PBX trunks. Creating multiple accounts for commercial purposes is a violation of the Acceptable Use Policy, and if certain usage patterns are detected, Google will shut down the account(s).
Navigation
[0] Message Index
[#] Next page