Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-7898

Grandstreams need to have Equal ( = ) signs encoded inside of a parameter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.11
    • Fix Version/s: None
    • Component/s: Endpoint (Commercial)
    • 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

      Description

      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; }

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                datorherren United States
                Reporter:
                joe1981alAPR joe1981alAPR
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.