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

CID Superfecta, CallerID Service module code error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 13
    • Component/s: CID Superfecta
    • Labels:
      None
    • Bug Tracker:
      Customer Issue
    • Asterisk Version:
      13
    • Distro Version:
      10.13.66-13
    • Distro:
      FreePBX Distro

      Description

      I have versionĀ 13.0.4.1 of the CID Superfecta module

      There is an error in the code in module: /var/www/admin/modules/superfecta/sources/source-CallerID_Service.module on Line 59

      the variable $st_unknown is misspelled.
      Error marked in red, fix marked in green.

      This is what is there now..
      {{ else {
      $url = "http://cnam.calleridservice.com/query?u=".$run_$
      $this->DebugPrint("URL: $url",3);

      $sname = $this->get_url_contents($url);

      // CallerID service returns CNAM with the following pre$
      $st_error = strstr($sname, "CNAM ");
      $st_unknown = strstr($sname, "UNKNOWN");
      $st_unavail = strstr($sname, "UNAVAILABLE");

      // give up if any errors
      if($st_error || $st_unkown || $st_unavail)

      { $this->DebugPrint(_("Error in Lookup.")); return; }}}

      this change fixes it..

      {{ else {
      $url = "http://cnam.calleridservice.com/query?u=".$run_$
      $this->DebugPrint("URL: $url",3);

      $sname = $this->get_url_contents($url);

      // CallerID service returns CNAM with the following pre$
      $st_error = strstr($sname, "CNAM ");
      $st_unknown = strstr($sname, "UNKNOWN");
      $st_unavail = strstr($sname, "UNAVAILABLE");

      // give up if any errors
      if($st_error || $st_unknown || $st_unavail) { $this->DebugPrint(_("Error in Lookup.")); return; }

      }}

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  lgaetz Lorne Gaetz
                  Reporter:
                  gerryloc Gerry Lockhart
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    NextupJiraPlusStatus

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