-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 14
-
Fix Version/s: None
-
Component/s: CID Superfecta
-
Labels:None
-
ToDo:
-
Asterisk Version:13.20.0
-
Distro Version:FreePBX 14.0.2.10
-
Distro:Other
Superfecta module for CallerIDService.com source has a bug at line 59, with the code shown below.
53: // CallerID service returns CNAM with the following prefixes if there are errors
54: $st_error = strstr($sname, "CNAM ");
55: $st_unknown = strstr($sname, "UNKNOWN");
56: $st_unavail = strstr($sname, "UNAVAILABLE");
57:
58: // give up if any errors
59: if($st_error || $st_unkown || $st_unavail)Unknown macro: { 60}
The variable $st_unknown is misspelled at line 59. In the module the variable is spelled as $st_unkown, by changing the variable to the correct spelling the module works without any problems.
Corrected code shown below:
53: // CallerID service returns CNAM with the following prefixes if there are errors
54: $st_error = strstr($sname, "CNAM ");
55: $st_unknown = strstr($sname, "UNKNOWN");
56: $st_unavail = strstr($sname, "UNAVAILABLE");
57:
58: // give up if any errors
59: if($st_error || $st_unknown || $st_unavail)Unknown macro: { 60}
- duplicates
-
FREEPBX-15787 CID Superfecta, CallerID Service module code error
-
- Closed
-