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

Wrong Config for EPM Snom XML Button generated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: 14
    • Fix Version/s: None
    • Component/s: EPM
    • Labels:
      None
    • ToDo:
    • Asterisk Version:
      15.5.0
    • Distro Version:
      FreePBX 14.0.5.25
    • Distro:
      FreePBX Distro

      Description

      If I define an extension key for a Snom D345 and a D765 as XML in the EPM, this is incorrectly encoded.

      Tested in EPMĀ 14.0.2.179

      Example:
      Line 12, Type XML, entry:

      <general type="PrivacyToggle"/>
      <initialization>
      <state value='off'/>
      <identity value='1'/>
      </initialization>
      <action>
      <url when="on press" states="off" target="http://127.0.0.1/settings.htm?settings=save&user_ringer1=Silent"/>
      <url when="on press" states="on" target="http://127.0.0.1/settings.htm?settings=save&user_ringer1=Ringer1"/>
      <assign when="on press" states="on">
      <source value="off"/>
      <destination context="this entity" id="state"/>
      </assign>
      <assign when="on press" states="off">
      <source value="on"/>
      <destination context="this entity" id="state"/>
      </assign>
      </action>

      Created by the EPM:

      <fkey idx="11" context="1" label="Stille" perm="">xml general type="PrivacyToggle"/ initialization state value=off/ identity value=1/ /initialization action url when="on pres</fkey>

      Correct would be however :

      <fkey idx="11" context="active" label="Mute" lp="on" default_text="$name" perm="">
      <general type="PrivacyToggle"/>
      <initialization>
      <state value='off'/>
      <identity value='4'/>
      </initialization>
      <action>
      <url when="on press" states="off" target="http://127.0.0.1/settings.htm?settings=save&user_ringer1=Silent"/>
      <url when="on press" states="on" target="http://127.0.0.1/settings.htm?settings=save&user_ringer1=Ringer1"/>
      <assign when="on press" states="on">
      <source value="off"/>
      <destination context="this entity" id="state"/>
      </assign>
      <assign when="on press" states="off">
      <source value="on"/>
      <destination context="this entity" id="state"/>
      </assign>
      </action>
      </fkey>

      Enclosed the appropriate link to the Snom Wiki:

      http://wiki.snom.com/Features/Mass_Deployment/Setting_Files/XML/XmlSubTags

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kgupta Kapil Gupta
                Reporter:
                rkraemer2 rkraemer2
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Feedback Requested:

                  NextupJiraPlusStatus

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