Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-17330

FreePBX 14 - Superfecta - CallerIDServer module bug

    XMLWordPrintable

    Details

    • 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

      Description

      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}

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  sf1965 Steve Furgison
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    NextupJiraPlusStatus

                    Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.