Provisioning Grandstream Devices

Hello,

Are any of you aware of how things need to be configured in GDMS for phones to register to multiple servers?
Mark was using Fusion to provision phones, but I think I want to stick with GDMS, for now at least.
The docs refer to adding the IP to the domains ACL. I have tried adding the WAN IP for the network the phone is on, but I am having no luck.


Does Fusion offer a Contacts endpoint for phones to query and download/search contacts? I am not seeing anything on this.
 
Last edited:

ad5ou

Active Member
Jun 12, 2018
633
145
43
In reverse order, yes Fustionpbx can provision a contacts (phone book download) based on the contacts in Fusionpbx and extension in the domain.
https://docs.fusionpbx.com/en/latest/applications/provision.html#phone-book additional details are also in the member docs.

Last I checked, Grandstream phones do not handle dual registration the way Yealink and Poly(com) phones can where they stay registered to both servers. Grandstream will only use the secondary server or outbound proxy if the primary is unreachable.
I'm not sure the exact options in GDMS since we still use Fusionpbx for most provisioning. We do utilize GDMS for "out of box" provisioning, monitoring, and forced resets by setting just the redirect information in GDMS.

Edit your phone template (we use group templates for each customer/set type) Switch to TXT editor and set as follows:
######System Settings - Security Settings######
2=<custom admin password>
######Account - SIP Settings######
32=2
130=2
212=2
237=customerdomain.mypbx.net/app/provision
1360=<http auth username in fusion default setting>
1361=<http auth password in fusion default setting>

if you don't wan to use fusionpbx provisioning, the text editor will allow you to set any of the P codes available for the endpoint even if they don't show up in the GDMS GUI.
 
I am still comprehending everything you sent. Are your phones connected to both FusionPBX and GDMS at the same time?


-----

I was able to get the phone registered to two servers using the configuration in the image (done directly in the phone's GUI).
When I replicate the configuration in GDMS, it fails. Looking at sngrep, the web GUI sends
From: 465@tenant.domain
To: sip.server (I think)

The GDMS config sends
From: 465@tenant.domain@sip.server
To: 465@tenant.domain@sip.server

I am talking with Grandstream to see if they know what's going on with it.
 

ad5ou

Active Member
Jun 12, 2018
633
145
43
Yes we have both. Fusionpbx handles the actual phone configuration so tenant admins can manipulate button changes etc.
GDMS mainly just handles the redirect to the actual provisioning server much like GAPS. Since each phone is in GDMS, we also have the options for alerts and diagnostics, etc

It sounds like Grandstream is making progress with the dual registration that several of us have requested for a few years now. I stopped waiting and have not kept up with the progress. We have only experienced two unexpected outages in the past 4 years and the DNS failover had the phones registered to the secondary server quickly so have not concerned myself with the additional headache of dual registration since.
 
we also have the options for alerts and diagnostics, etc
This is why I wanted to use GDMS, but a dual system isn't anything I am against.
I assume this would make the contacts seamless since Fusion would handle it. I will toy with it when I am home in half an hour.

GDMS mainly just handles the redirect
To make sure I understand this: GDMS provisions a template, containing the lines you sent in your first response which actually provisions the phone lines & keys? Sounds easy and simple enough.

I had to search GAPS on the forums....It seems you have been using Grandstream for some time. Is there anything I should be aware of? I'm liking everything about them so far, including the pricing. My target is going to be smaller businesses and I think we all know they hate spending money on anything tech related...at least the ones I have interacted with do. My one dislike so far is that the GRP2616 I got lags a bit (it takes a second or two for button presses to occur).
 

ad5ou

Active Member
Jun 12, 2018
633
145
43
You understand correctly. Grandstream phones (and most other brands) will attempt to provision based on info in DHCP options, if there is no options set for config server, then it checks the manufacturer automated provisioning (or redirect) url hard coded in the firmware. GAPS is the default config url but requires assignment from your distributor etc.

GRP series and newer firmware versions for most other models also include the default TR-069 url for GDMS to work. If none of the above provision the phone, or specifically the TR-069 support isn’t disabled from above steps, then the phone reaches out to GDMS. If GDMS has settings to send the phone, it sends it.

With the basic settings I posted, GDMS is telling the phone the correct provisioning url and other required info to reach the url.

Main thing to remember about Grandstream is you get what you pay for. They can be frustrating with odd quirks, usually related to a firmware bug. If you have a phone working trouble free, don’t change firmware unless there is a solid reason to upgrade.

the GRP phones should be pretty responsive. If not, then try a new firmware version. And don’t be afraid to factory reset it if GDMS is setup properly. We have had a few “problem child” phones that needed a factory reset after a few months of ‘mostly’ working.
 
I was able to get the phone to successfully contact Fusion after a few hiccups and searching around. Thank you!

Do you happen to have the list of all these numbers and the configuration field they coordinate with?
######System Settings - Security Settings######
2=<custom admin password>
######Account - SIP Settings######
32=2
130=2
212=2
237=customerdomain.mypbx.net/app/provision
1360=<http auth username in fusion default setting>
1361=<http auth password in fusion default setting>
 

ad5ou

Active Member
Jun 12, 2018
633
145
43
The numbers are Grandstream "P" codes in the provisioning templates. http://www.grandstream.com/sites/default/files/Resources/config-template.zip for the official "raw" templates. The Fusionpbx templates are here or can be found on your system at .../fusionpbx/resources/templates/provision/grandstream/

2=admin password (isn't needed for redirect, but adds a touch of security. ultimately should be set in Fusionpbx default/domain setting)
32= account 1 register expiration (probably shouldn't be included in the redirect but I copied from a template a coworker put in gdms)
130= account 1 sip transport. (also not needed for redirect specifically)

Important part for GDMS to send phone to fusionpbx provisioning server.
212=config via Config Via. 0 - TFTP, 1 - HTTP, 2 - HTTPS, 3 - FTP, 4 - FTPS.
237= Config Server Path
1360=Config HTTP/HTTPS User Name
1361=Config HTTP/HTTPS Password
 
  • Like
Reactions: ict2842