Skip to content

Commit

Permalink
Merge branch 'bugfix/FREEPBX-11760' of ssh://git.freepbx.org/freepbx/…
Browse files Browse the repository at this point in the history
…superfecta into release/13.0
  • Loading branch information
tm1000 committed Mar 16, 2016
2 parents ea2f404 + cb2da47 commit fbea72c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sources/source-TrueCNAM.module
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* 06.04.2014 initial release by James Finstrom [email protected]
*
*/

class TrueCNAM extends superfecta_base{
public $description = "truecnam.com lookup module can pull CNAM, stored CNAM and spam score.";
public $version_requirement = "2.11";
Expand All @@ -46,6 +46,11 @@ class TrueCNAM extends superfecta_base{
)
);
function get_caller_id($thenumber, $run_param=array()) {
$run_param['APIKey'] = isset($run_param['APIKey'])?$run_param['APIKey']:'';
$run_param['Password'] = isset($run_param['Password'])?$run_param['Password']:'';
$run_param['TrueSpam'] = isset($run_param['TrueSpam'])?$run_param['TrueSpam']:'checked';
$run_param['TrueSpam_Threshold'] = isset($run_param['TrueSpam_Threshold'])?$run_param['TrueSpam_Threshold']:'6';

$debug = $this->debug;
if(empty($run_param['APIKey']) || empty($run_param['Password'])) {
$this->DebugPrint("TrueCNAM requires a registered account.");
Expand Down Expand Up @@ -80,4 +85,4 @@ class TrueCNAM extends superfecta_base{
}
return($data['name']);
}
}
}

0 comments on commit fbea72c

Please sign in to comment.