I have been trying to get a Grandstream GXP-2130 to provision. I have followed all of the steps to configure the EPM, create the template, and extension mapping found on the Configuring a Phone Using EndPoint Manager (EPM) page on the FreePBX wiki.
When the phone attempts to register, I get the following in the Asterisk logs:
[2022-11-29 13:38:03] NOTICE res_pjsip/pjsip_distributor.c: Request 'SUBSCRIBE' from '<sip:MAC%[email protected]>' failed for '192.168.101.100:5080' (callid: [email protected]) - Failed to authenticate
This message does not change at all even though I have attempted many different provisioning methods. I have enabled TFTP - same error message. I have enabled password protection for HTTP(S) and included the HTTP username and password on the provisioning request - same error message. I have removed the HTTP authentication - same error message.
I can manually provision the phone without a problem. The problem seems to be when using the provisioning template I created in the EPM. Any thoughts?
I am trying to use the EPM to save time before I provision the rest of the phones in our two offices. Would prefer a solution that allows me to use the purchased EPM module and avoids manually provisioning a ton of phones. Thanks in advance!
@mvogel4949 you got the wheels turning in my head. I wonder what would happen if I just delete the configs and create a new config to apply to my extension. In theory it should create a new cfgc file with a normal file size. Have you tried something similar to that?
V16.0.72 does now seem to be creating the proper cfg files for the Grandstream phone which is great. I am still receiving an error though when I attempt to Save, Rebuild and Update phones from the template page. If I do the same from extension mapping, no problem.
Whoops\Exception\ErrorException thrown with message "A non-numeric value encountered"
#6 Whoops\Exception\ErrorException in /var/www/html/admin/modules/endpoint/functions.inc/functions_grandstream.php:157
#5 Whoops\Run:handleError in /var/www/html/admin/modules/endpoint/functions.inc/functions_grandstream.php:157
#4 endpoint_write_grandstream_ext in /var/www/html/admin/modules/endpoint/functions.inc/functions_common.php:59
#3 endpoint_write_ext in /var/www/html/admin/modules/endpoint/functions.inc/functions_common.php:1733
#2 endpoint_rebuild_template in /var/www/html/admin/modules/endpoint/views/page.endpoint.php:406
#1 unknown in /var/www/html/admin/modules/endpoint/page.endpoint.php:10
#0 include in /var/www/html/admin/config.php:647