Hide digits_dialed and dsn variable from the CDR table as a security enhancement.

This commit is contained in:
Mark Crane 2013-05-22 01:07:59 +00:00
parent 6cf82027e7
commit f556d35fe2
2 changed files with 35 additions and 34 deletions

View File

@ -77,7 +77,7 @@
$database->fields['accountcode'] = check_str(urldecode($xml->variables->accountcode));
$database->fields['default_language'] = check_str(urldecode($xml->variables->default_language));
$database->fields['bridge_uuid'] = check_str(urldecode($xml->variables->bridge_uuid));
$database->fields['digits_dialed'] = check_str(urldecode($xml->variables->digits_dialed));
//$database->fields['digits_dialed'] = check_str(urldecode($xml->variables->digits_dialed));
$database->fields['sip_hangup_disposition'] = check_str(urldecode($xml->variables->sip_hangup_disposition));
//time
$database->fields['start_epoch'] = check_str(urldecode($xml->variables->start_epoch));

View File

@ -178,7 +178,6 @@ else {
//$tmp_file_array = explode("\.",$file);
echo $caller_id_name.' ';
echo " </a>";
}
else {
echo $caller_id_name.' ';
@ -257,6 +256,7 @@ else {
foreach($xml->variables->children() as $child) {
$key = $child->getName();
$value = urldecode($child);
if ($key != "digits_dialed" && $key != "dsn") {
echo "<tr >\n";
echo " <td valign='top' align='left' class='".$row_style[$c]."'>".$key."</td>\n";
if ($key == "bridge_uuid" || $key == "signal_bond") {
@ -292,6 +292,7 @@ else {
echo " <td valign='top' align='left' class='".$row_style[$c]."'>".wordwrap($value,75,"<br />\n", TRUE)."&nbsp;</td>\n";
}
echo "</tr>\n";
}
if ($c==0) { $c=1; } else { $c=0; }
}
echo "</table>";