Changeset 13792

Show
Ignore:
Timestamp:
03/09/12 18:03:41 (1 year ago)
Author:
p_lindheimer
Message:

Merged revisions 13780 via svnmerge from
http://www.freepbx.org/v2/svn/freepbx/branches/2.10

........

r13780 | p_lindheimer | 2012-03-07 20:05:52 -0800 (Wed, 07 Mar 2012) | 1 line


add Reload action and call instead of CLI module reload to trigger reload, re #5646 fixes the issue but other versions of FreePBX still broke as it's a real Asterisk bug

........

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.9

    • Property svn:mergeinfo changed from /freepbx/branches/2.10:13073,13075-13076,13078-13081,13084,13087 to /freepbx/branches/2.10:13073,13075-13076,13078-13081,13084,13087,13780
    • Property svnmerge-integrated changed from /freepbx/branches/2.8:1-11479,12035 /freepbx/branches/2.10:1-12618,12932,13073-13081,13084,13087 to /freepbx/branches/2.10:1-12618,12932,13073-13081,13084,13087,13780 /freepbx/branches/2.8:1-11479,12035
  • freepbx/branches/2.9/amp_conf/htdocs/admin/functions.inc.php

    r12168 r13792  
    278278   
    279279  //reload MOH to get around 'reload' not actually doing that. 
    280   $astman->send_request('Command', array('Command'=>'moh reload')); 
    281280   
    282281  //reload asterisk 
    283282  if (version_compare($version,'1.4','lt')) { 
     283    $astman->send_request('Command', array('Command'=>'moh reload')); 
    284284    $astman->send_request('Command', array('Command'=>'reload'));  
    285285  } else { 
    286     $astman->send_request('Command', array('Command'=>'module reload'));   
     286    $astman->Reload(); 
    287287  } 
    288288   
  • freepbx/branches/2.9/amp_conf/htdocs/admin/libraries/php-asmanager.php

    r13088 r13792  
    960960    return $this->command($pre . ' set global ' . $var . ' ' . $val); 
    961961  } 
     962 
     963  /** 
     964  * Reload module(s) 
     965  * 
     966  * @link http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Reload 
     967  * @param string $module 
     968  * @param string $actionid 
     969  */ 
     970  function Reload($module=NULL, $actionid=NULL) { 
     971    $parameters = array(); 
     972 
     973    if ($actionid) { 
     974      $parameters['ActionID'] = $actionid; 
     975    } 
     976    if ($module) { 
     977      $parameters['Module'] = $module; 
     978    } 
     979    return $this->send_request('Reload', $parameters); 
     980  } 
    962981} 
    963982?>