forked from FreePBX/superfecta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bugfix/FREEPBX-11760' of ssh://git.freepbx.org/freepbx/…
…superfecta into release/13.0
- Loading branch information
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"; | ||
|
@@ -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."); | ||
|
@@ -80,4 +85,4 @@ class TrueCNAM extends superfecta_base{ | |
} | ||
return($data['name']); | ||
} | ||
} | ||
} |