Show
Ignore:
Timestamp:
02/06/12 16:17:59 (1 year ago)
Author:
p_lindheimer
Message:

closes #5117 adds fpbx_ami_update that expects to either have an active ami socket open or if none will go through the command line, update manager.conf to the passed in creds and force the manager to reload

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.10/core/page.advancedsettings.php

    r12995 r13399  
    2828      //special case for manager related changes - these need to be applied right away re #5117 
    2929      switch ($keyword) { 
    30         case 'ASTMANAGERHOST': 
     30        //case 'ASTMANAGERHOST': 
     31        //case 'ASTMANAGERPORT': 
     32        //case 'ASTMANAGERPROXYPORT': 
    3133        case 'AMPMGRPASS': 
    32         case 'ASTMANAGERPORT': 
    33         case 'ASTMANAGERPROXYPORT': 
     34        fpbx_ami_update(false, $var['value']); 
     35        break; 
    3436        case 'AMPMGRUSER': 
    35           //$astman->Command('module reload manager'); 
    36         break; 
     37          fpbx_ami_update($var['value'], false); 
     38        break; 
    3739      } 
    3840