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

Wrong match for cidlookup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 15.0.17.52
    • Fix Version/s: None
    • Component/s: Contact Manager
    • Labels:
      None
    • Asterisk Version:
      16.8
    • Distro Version:
      10
    • Distro:
      Self Install Debian

      Description

      When performing cidlookups with Contact Manager as a source, some numbers are wrongly matched. Setting the locale of all phone numbers for all contacts to unknown will "fix" the problem.
      My example :
      In asterisk logs, we see the CID 0000000000 matched with a contact from Contact Manager with a completely different number (0546556660)
      In contactmanager.agi :
      $data = $cm->getNamebyNumber($argv[1], explode('_',$argv[2]));
      returns the wrong value.
      In contactmanager/Contactmanager.class.php we get a match for the wrong number line 2817 :
      case \libphonenumber\MatchType::SHORT_NSN_MATCH:
      the function performing the match (isNumberMatch) is a libphonenumber-for-php function.
      debugging show that the arguments passed to isNumberMatch are "0000000000" and "+33546556660".

      Is there any way to fix that ?
      Would an update of the library resolve that particular problem ?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jbaron jbaron
              • 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.