October 18, 2018, 05:46:21 pm *
Welcome, Guest. Please login or register.
   Forum Home   Search Login Register OBiTALK  
Pages: [1]
Author Topic: Poorman's (no Trunk) Gateway: Asterisk <---> OBi110 <---> Google Voice  (Read 9832 times)
Jr. Member
Posts: 31

« on: March 18, 2011, 03:53:55 am »

I was setting up this OBi110 and they told me that "... there will be no PSTN line for the LINE port".
So I documented this in case it might help somebody.

First, thanks to RonR, obi-support2, MichiganTelephone, QBZappy, murzik, yhfung and anyone else I missed - for their contributions to these posts:

The caveats:
1.  I heard about the OBi110 about 10 days and received it 5 days ago.  I am just getting my feet wet.
2.  I am not an Asterisk expert and I did not have full access to an Asterisk system. My access was limited to 2 extensions.
3.  I was not authorized to add any Trunks to Asterisk.
4.  There are only 4 extensions on this Asterisk system and they are for internal use only.
5   Currently, there are no VoIP trunks here or any kind of VoIP Service Providers.
6.  This is a small Asterisk setup.  None of the Asterisk ports are exposed to the internet.
7.  There is only 1 new Google Voice account here.
8.  This NOT a very secure setup.  But it works because it is a very small 2-person family owned business.
9.  With only 1 OBi110 in place, you can have a maximum of 1 Google Voice (inbound or outbound) call at any given time.
10.  With additional OBi110 devices, you can increase this capacity.

The objectives:
1.  Google Voice inbound calls should be directed to an Asterisk extension, IVR or Ring Group.
2.  Asterisk outbound calls should only use the 1 Google Voice account.
3.  Keep this OBi110 setup deployed in this Dry Loop location (aka Naked DSL).

The assumptions:
1.  Your Google Voice number is 123-456-7890.
2.  You have a SIP extension 4567 on your Asterisk available for the OBi110.

The SIP extension 4567 settings for Asterisk:

I am sure the Asterisk experts around here can show how the "context=" setting can be used for the 4567 SIP extension to impose limitations on the inbound Google Voice caller.

The steps:
1.  Reset your OBi110 to default factory settings.
2.  Then setup OBi110 SP1 with your Google Voice account as per the http://www.obihai.com/googlevoice.html page.
3.  Reboot your OBi110 and verify that you can make inbound and outbound calls via Google Voice. The calls should utilize the Phone connected to the PHONE port on the OBi110.
4.  Setup OBi110 SP2 with your 4567 SIP extension.  The OBi Dashboard makes this SIP setup easy.
5.  Reboot your OBi110 and verify that you can make and receive calls on the 4567 SIP extension (use the other extensions on the Asterisk to call 4567). The calls should utilize the Phone connected to the PHONE port on the OBi110.
6.  Set the SP1 -> CallForwardUnconditionalEnable (x)
7.  Set the SP1 -> CallForwardUnconditionalNumber SP2(4567)
8.  Click the Submit button and Reboot the OBi110.
9.  Set the SP2 -> CallForwardUnconditionalEnable (x)
10.  Set the SP2 -> CallForwardUnconditionalNumber SP1(1234567890)
11.  Click the Submit button and Reboot the OBi110.
12.  Set the SP2 -> X_Use302ToCallForward (UNCHECKED)
13.  Click the Submit button and Reboot the OBi110.

Steps 6 and 7 will ensure that an inbound Google Voice call gets forwarded to the 4567 Asterisk extension.
You could replace SP2(4567) with SP2(a Ring Group number on your Asterisk) or SP2(an IVR number on your Asterisk).

Steps 9 and 10 will ensure that an outbound Google Voice call gets to your Google Voice IVR.  (Again, this is NOT a secure method.)
The extensions on your Asterisk can dial 4567 to reach Google Voice IVR and then dial 2 to make a call.

Step 12 deals with a possible bug in the current firmware. 
See this http://www.obitalk.com/forum/index.php?topic=365.msg2185#msg2185 post.

Pages: [1]
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC