Changeset 13792
- Timestamp:
- 03/09/12 18:03:41 (1 year ago)
- Files:
-
- freepbx/branches/2.9 (modified) (2 props)
- freepbx/branches/2.9/amp_conf/htdocs/admin/functions.inc.php (modified) (1 diff)
- freepbx/branches/2.9/amp_conf/htdocs/admin/libraries/php-asmanager.php (modified) (1 diff)
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 278 278 279 279 //reload MOH to get around 'reload' not actually doing that. 280 $astman->send_request('Command', array('Command'=>'moh reload'));281 280 282 281 //reload asterisk 283 282 if (version_compare($version,'1.4','lt')) { 283 $astman->send_request('Command', array('Command'=>'moh reload')); 284 284 $astman->send_request('Command', array('Command'=>'reload')); 285 285 } else { 286 $astman->send_request('Command', array('Command'=>'module reload')); 286 $astman->Reload(); 287 287 } 288 288 freepbx/branches/2.9/amp_conf/htdocs/admin/libraries/php-asmanager.php
r13088 r13792 960 960 return $this->command($pre . ' set global ' . $var . ' ' . $val); 961 961 } 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 } 962 981 } 963 982 ?>
