Changeset 1944

Show
Ignore:
Timestamp:
05/18/06 22:18:04 (7 years ago)
Author:
qldrob
Message:

Apply recordingcheck patch to 2.1 branch

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.1/amp_conf/agi-bin/recordingcheck

    r1789 r1944  
    4747      foreach($list as $exten) { 
    4848        $setting = $agi->database_get("AMPUSER",$exten."/recording"); 
     49        if ($setting["result"] == 0) { 
     50          $agi->verbose("No DB Entry AMPUSER/$exten/recording - Not recording"); 
     51          exit(1); 
     52        { 
    4953        //explode recording vars 
    5054        $recording = explode("|",$setting["data"]); 
     
    7074    $options = $agi->database_get("AMPUSER","{$exten['data']}/recording"); 
    7175     
     76    if ($options["result"] == "0") { 
     77      $agi->verbose("No AMPUSER db entry for ".$exten["data"].". Not recording"); 
     78      exit(1);     
     79    } 
     80 
    7281    //explode recording vars 
    7382    $recording = explode("|",$options["data"]); 
     
    9099    $options = $agi->database_get("AMPUSER","{$exten['data']}/recording"); 
    91100     
     101    if ($options["result"] == "0") { 
     102      $agi->verbose("No AMPUSER db entry for ".$exten["data"].". Not recording"); 
     103      exit(1);     
     104    } 
    92105    //explode recording vars 
    93106    $recording = explode("|",$options["data"]);