-
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
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 ?