Monday, December 7, 2020

GoogleVoice through Obi200 to IncrediblePBX (FreePBX) on a Pi4 (part3)

Parts one and two had to do with setting up the Obi and Phones.

It doesn't matter in what order, I think it makes  more sense to me in this order.


The PORTS used depend on what SP you use etc...the screen shots are of mine...if you use a different config, then doublecheck the ports...mine are consistent, so you can start with your Obi and convert from mine to yours.

Also btw...I removed my GV number from the caller ID spots in the pictures...but it was only in a few places that I should have mentioned...if I didn't mention caller ID, then you probably don't need to put the GV number in...in other words there are blank caller ID spots and filled caller ID spots...I think CID is only need in two spots.

I will not get into installing Incredible PBX.  BTW, if you are googling for help you can use FreePBX also in your search...the menus are the same.


This last part is the settings I used to get the PBX to talk to the Obi,  For the Phones to talk to the PBX, and for the phones to make calls and ring, and even intercom.


First...PBX talks to Obi.

Log into your Incredible PBX as Admin  (when you installed you should have created a new password?)

We are starting from zero...nothing other than default entries on the PBX.

After each step, hit submit...when done with a section click the Red button in the upper right that says Apply Config

 ---------------------------------

You need a Trunk.


Click on Connectivity > Trunks


There are a ton of Trunks there for using all sorts of VOIP phone services...I am not using those, so I deleted all the trunks.


+Add Trunk > +Add SIP (chan_sip) Trunk     (I could not get anything to work using the pjsip anywhere                                                                             in my install...just plane old legacy SIP)

General Tab

Trunk Name = {something useful to you  - I used obi200 to match the Obi settings}

Outbound CallerID = {your Google Voice number}

sip Settings Tab

 type=friend
defaultuser=obi200
secret={password you put into the obi}
qualify=yes
port=5062
nat=yes
host=dynamic
dtmfmode=rfc2833
disallow=all
context=from-trunk
canreinvite=no
allow=ulaw
insecure=port,invite

 Thats it for Trunks.

 ---------------------

 You now need an Outbound Route

 

Delete any existing Outbound Routes, or you will have a bad time.


Route Settings Tab

Route Name = {something useful to you - I chose OBiOut}

Route CID =  {same Google Voice phone number}

Trunk Sequence for Matched Routes = {you just built it... obi200 for me}

Dial Patterns Tab

You can try to learn them...or just click the 'Dial patterns wizards' and select all the appropriate ones

 

Thats it for Outbound Route

 -------------------------------

We will have to do the Extensions before we do anything else...these are the different physical phones (in my case) you want to access the PBX.

 

Applications > Extensions

There will already be a bunch there and you can use them...or roll your own...I rolled my own and did some experiments, so there are some extras there...don't worry about them.

They are pretty simple.

+Add Extension > +Add New SIP (Legacy)[chan_sip] Extension


again, I could not make the pjsip extensions work...my phone wouldn't log in, and it wasn't worth it to fight it.

If you edited your phones and gave them numbers like 201, 202 whatever. you make an Extension for each one.

In my case I have two, 200 and 201.  (ignore the others in the pictures)

So 

General Tab

Extension = 200 {whatever you put in that particular phone}

Display name = 200 {or whatever you want}

Secret = {same password as you put in your phone}

That is all you NEED to do...you can add voicemail etc...that is beyond the scope of this article.


Once you have made an Extension for each phone...you are done.  (BTW the user manager settings are to allow logging into a user dashboard)

Now I have two Extensions...and probably my phones are showing online...but we aren't done yet.

------------------

We want to be able to answer the phone.   If you wanted only one phone to ring you would set it up a bit differently from here...


...but I want all phones to ring, so I can pick up whatever extension I am near.

 

So I need a Ring Group

 

Applications > Ring Groups

+ Add Ring Group

 Name= {some number, this is considered an extension, I made it 222}

Group Description = {anything you want, sales, admin, or in my case bothphones}

Extension List = {all the extensions that are in this particular ring group...in my case both phones, yo

u                                 can use the User Quick Select. In my case 200 and 201}

Ring Strategy = {this is awesome...so many choices...but I simply want all the phones to ring                                            simultaneously so... ringall}

Destination if no answer = {for now I have an extension chosen...but voicemail is probably a good choice...outside the scope of this discussion}

You are done with ring groups...

-----------------------------

NOW time to do the Inbound Routes

 

Connectivity > Inbound Routes

(there should not be any old routes here...if there are, delete them)

+Add Inbound Route

Set Destination = Ring Groups   {and select the Ring Group extension you created - in my case 222}


That is it for Inbound Routes.

--------------------------------

Bonus section

 

Put all the phones on intercom...

Applications > Paging and Intercom

+Add Page Group

Paging Extension = {this is the phone dialpad sequence you type to start the intercom -  in my case 22}

Group Description = {whatever you want}

Device list = {pulldown - which extensions do you want involved in the paging - for me all of them}

 

Done with paging.   When I select the PBX line (EXT3 on my SPA504) and type 22 on the dialpad, all the phones (both) go on speakerphone and connect to each other.

----------------------------

That is everything I modified...and attached are my screen shots in case something doesn't make sense.   If it doesn't work, break down WHICH part doesn't work.


Some examples...I could phone in and one phone would ring, but I couldn't call out.  I had to delete the default (extra) outbound route to get the phone to dial out.

Only one phone rang during ringall...because one of my phones was not set up to Register on the PBX.

lines wouldn't connect to the pbx at all...because phones wouldn't use pjsip extensions

Latest example...one phone could dial voicemail and the other couldn't...the one that couldn't had just XX in the dial plan...it needed to be (*xx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)

 

Pics...lots... hope it helps someone ... Of course there is much more to set up...but this gets your phones working.

 

 































No comments: