Changeset 3897

Show
Ignore:
Timestamp:
04/02/07 21:18:38 (6 years ago)
Author:
p_lindheimer
Message:

Merged revisions 3726-3727,3729-3732,3734-3735,3737-3738,3740-3741,3743,3745,3747,3752-3753,3756,3758-3769,3771,3773-3774,3778-3793,3797,3799-3804,3807,3809-3825,3827-3829,3831-3836,3838-3845,3847,3850,3852-3856,3859-3869,3871,3873-3882,3884-3885,3887-3890,3892-3896 via svnmerge from
https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/branches/2.2

........

r3896 | p_lindheimer | 2007-04-02 18:17:12 -0700 (Mon, 02 Apr 2007) | 1 line


open one connection to manager at begining of dialparties instead of each time is_ext_avail() is called

........

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk

    • Property svnmerge-integrated changed from /freepbx/branches/2.2:1-3724,3726-3727,3729-3732,3734-3735,3737-3738,3740-3741,3743-3745,3747,3752-3753,3755-3793,3797-3891 to /freepbx/branches/2.2:1-3724,3726-3727,3729-3732,3734-3735,3737-3738,3740-3741,3743-3745,3747,3752-3753,3755-3793,3797-3896
  • freepbx/trunk/amp_conf/agi-bin/dialparties.agi

    r3873 r3897  
    4141$AGI = new AGI(); 
    4242debug("Starting New Dialparties.agi", 1); 
     43 
     44$astman = new AGI_AsteriskManager( );  
     45if (!$astman->connect("127.0.0.1", $config["AMPMGRUSER"] , $config["AMPMGRPASS"])) { 
     46  exit (1); 
     47} 
     48   
    4349 
    4450$priority = get_var( $AGI, "priority" ) + 1; 
     
    607613} 
    608614 
     615$astman->disconnect(); 
     616 
    609617// EOF dialparties.agi 
    610618exit( 0 ); 
     
    684692{ 
    685693  global $config; 
    686      
    687   $astman = new AGI_AsteriskManager( );  
    688   if (!$astman->connect("127.0.0.1", $config["AMPMGRUSER"] , $config["AMPMGRPASS"])) 
    689   { 
    690     return false; 
    691   } 
     694  global $astman; 
    692695   
    693696  $status = $astman->ExtensionState( $extnum, 'from-internal' ); 
    694   $astman->disconnect(); 
    695697     
    696698  $status = $status['Status']; 
    697699  debug("ExtensionState: $status", 4); 
    698700  return $status; 
    699    
    700701} 
    701702