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-2442but I could not find any way to reopen it without starting a new ticket
- This is a corrected version of ticket
-
Best Regards
Nick