You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Desire off sending ANNY DDI option from an brand or client
File: /etc/kamailio/proxyusers/kamailio.cfg
route[VALIDATE_CLID_NUMBER] {
sql_query("cb", "SELECT id, DDIE164 FROM DDIs WHERE companyId='$dlg_var(companyId)' AND DDIE164='$var(transformated)'", "rc");
if ($dbr(rc=>rows) > 0) {
xinfo("[$dlg_var(cidhash)] VALIDATE-CLID-NUMBER: $var(transformated) is VALID for company $dlg_var(companyId)\n");
$dlg_var(valid_clid) = "yes";
append_hf("X-Info-DdiId: $dbr(rc=>[0,0])\r\n");
} else {
xwarn("[$dlg_var(cidhash)] VALIDATE-CLID-NUMBER: $var(transformated) is NOT VALID for company $dlg_var(companyId)\n");
xerr("[$dlg_var(cidhash)] VALIDATE-CLID-NUMBER: Here /etc/kamailio/proxyusers/kamailio.cfg and using it annyway\n");
$dlg_var(valid_clid) = "yes";
append_hf("X-Info-DdiId: $dbr(rc=>[0,0])\r\n");
}
sql_result_free("rc");
}
We set an red alert on the log
we set the $dlg_var(valid_clid) = "no"; to yes
and append it annyway append_hf("X-Info-DdiId: $dbr(rc=>[0,0])\r\n")
Additional Information
So What ive seen is:
the LOGS only are written if DDIs are filled in ( imo this is poor coded work, we NEVER should log on the "if DDI" but on the unique ID)
So you should make an checkbox in Brand or Client "Make CLID bound to DDI's --> "yes or no" (Discrption = if Yes only DDI CLID's are premitted"
and in code:
$dlg_var(valid_clid) = "yes"; must be triggerd to yes or no
but u need to fix your CLID logs to NOT use DDIs for logging calls
Fun part = in tp_cdrs u log it - so cost is out the global DDI, but brand and client never logged whare u use somehow the DDIs as key to log......
The text was updated successfully, but these errors were encountered:
IvozProvider version: 2.19
2.19.020211109.3402Related sections:
Troubleshooting
Desire off sending ANNY DDI option from an brand or client
File: /etc/kamailio/proxyusers/kamailio.cfg
We set an red alert on the log
we set the $dlg_var(valid_clid) = "no"; to yes
and append it annyway append_hf("X-Info-DdiId: $dbr(rc=>[0,0])\r\n")
Additional Information
So What ive seen is:
the LOGS only are written if DDIs are filled in ( imo this is poor coded work, we NEVER should log on the "if DDI" but on the unique ID)
So you should make an checkbox in Brand or Client "Make CLID bound to DDI's --> "yes or no" (Discrption = if Yes only DDI CLID's are premitted"
and in code:
$dlg_var(valid_clid) = "yes"; must be triggerd to yes or no
but u need to fix your CLID logs to NOT use DDIs for logging calls
Fun part = in tp_cdrs u log it - so cost is out the global DDI, but brand and client never logged whare u use somehow the DDIs as key to log......
The text was updated successfully, but these errors were encountered: