In case the Phonenumber of an Inbound-Call is not found in the CallerID Database, the actual Phonenumber should be provided to the Extension. (Phonenumber = CallerID)
Since Module Version 16.0.13 the CallerID Lookup (Type MySql) is giving out the string “Unknown” instead of the Phonenumber.
diff --git a/cidlookup_mysql.agi b/cidlookup_mysql.agi
index bd0ad0c..7b9526d 100644
--- a/cidlookup_mysql.agi
+++ b/cidlookup_mysql.agi
@@ -51,8 +51,6 @@
dbug($e->getMessage());
}
- $name = _("Unknown");
-
foreach($ret as $key => $val){
$name = $val;
break;
152275[2023-11-28 15:40:22] VERBOSE[2847539][C-000001ff] res_agi.c: agi://127.0.0.1/dialparties.agi: Caller ID name is 'Unknown' number is '06991234567'
152276[2023-11-28 15:40:22] VERBOSE[2847539][C-000001ff] pbx.c: Executing [s@macro-user-callerid:48] Set("PJSIP/xxx-000006d6", "CALLERID(name)=Unknown") in new stack
152277[2023-11-28 15:40:22] VERBOSE[2847539][C-000001ff] pbx.c: Executing [s@macro-user-callerid:50] Set("PJSIP/xxx-000006d6", "CDR(cnam)=Unknown") in new stack
152278[2023-11-28 16:12:01] VERBOSE[2850025][C-00000201] pbx.c: Executing [s@macro-user-callerid:48] Set("PJSIP/xxx-000006dc", "CALLERID(name)=Unknown") in new stack
152279[2023-11-28 16:12:01] VERBOSE[2850025][C-00000201] pbx.c: Executing [s@macro-user-callerid:50] Set("PJSIP/xxx-000006dc", "CDR(cnam)=Unknown") in new stack