Changeset 5912

Show
Ignore:
Timestamp:
07/05/08 04:01:36 (2 months ago)
Author:
pnlarsson
Message:

Patch for #2497, disable events in php-asmanager.php

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/common/php-asmanager.php

    r5263 r5912  
    228228        * @return boolean true on success 
    229229        */ 
    230         function connect($server=NULL, $username=NULL, $secret=NULL
     230        function connect($server=NULL, $username=NULL, $secret=NULL, $events='on'
    231231        { 
    232232                // use config if not specified 
     
    271271                 
    272272                // login 
    273                 $res = $this->send_request('login', array('Username'=>$username, 'Secret'=>$secret)); 
     273                $res = $this->send_request('login', array('Username'=>$username, 'Secret'=>$secret, 'Events'=>$events)); 
    274274                if($res['Response'] != 'Success') 
    275275                { 
  • freepbx/trunk/amp_conf/htdocs/admin/header.php

    r5016 r5912  
    118118 
    119119// attempt to connect to asterisk manager proxy 
    120 if (!isset($amp_conf["ASTMANAGERPROXYPORT"]) || !$res = $astman->connect("127.0.0.1:".$amp_conf["ASTMANAGERPROXYPORT"], $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"])) { 
     120if (!isset($amp_conf["ASTMANAGERPROXYPORT"]) || !$res = $astman->connect("127.0.0.1:".$amp_conf["ASTMANAGERPROXYPORT"], $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"], 'off')) { 
    121121        // attempt to connect directly to asterisk, if no proxy or if proxy failed 
    122         if (!$res = $astman->connect("127.0.0.1:".$amp_conf["ASTMANAGERPORT"], $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"])) { 
     122        if (!$res = $astman->connect("127.0.0.1:".$amp_conf["ASTMANAGERPORT"], $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"], 'off')) { 
    123123                // couldn't connect at all 
    124124                unset( $astman ); 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads