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

No method to set globals in dial plan

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Resolution: Works For Me
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: Core

      Description

      I am adding some modified modules that provide specific features for our freepbx installation (2.2.1). However some of these modules require not only to add global variables to the dial plan but also to modify these globals while asterisk is running. The extension.class file seems to contain a method only to add global variables to the dialplan (setvar()/set()). There needs to be another to set them as follows:

      class ext_setglobal {
      var $var;
      var $value;

      function ext_setglobal($var, $value) {
      $this->var = $var;
      $this->value = $value;
      }

      function output() {
      return "Set(".$this->var."=".$this->value.",g)";
      }
      }

      Best Regards
      Nick

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                plindheimer PL
                Reporter:
                Nick_Lewis Nick_Lewis
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

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