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

No method to set globals in dial plan

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • 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 (i.e. addGlobal()). 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)";

      }

      }

      This proposed method is similar to the set()/setvar() method in extension.class but it affects the global dial plan variables instead of the local context dial plan variables through the inclusion of the "g" as the third parameter.

          • This is a corrected version of ticket FREEPBX-2442 but I could not find any way to reopen it without starting a new ticket

      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.