-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.11
-
Fix Version/s: None
-
Component/s: Endpoint (Commercial)
-
Labels:
-
Environment:
FreePBX Distro 5.211.65-16
Endpoint Manager: 2.11.0.1.86
Grandstream GXP Color Series Devices
-
ToDo:
-
Distro Version:5.211.65-16
-
Distro:FreePBX Distro
Grandstream configs can not have an equal ( = ) inside of a parameter. This will affect settings like LDAP or System Ring Tone frequency/cadence settings.
Example:
P345 = f1=460,f2=500,c=45/10-45/200;
Should encode to P345=f1%3D460,f2%3D500,c%3D45/10-45/200;
I had previoulsy went through this with OSS Endpoint Manager and rewrote part of the gs_gxp_encode. Just for reference I've included that showing which characters I found had to be replaced inside a setting value for the device to accept it.
function gs_gxp_encode($params)
{ $params = str_replace("+","%2B",$params); $params = str_replace("%","%25",$params); $params = str_replace("=","%3D",$params); $params = str_replace("&","%26",$params); return $params; }