Add rtp_audio_in_mos to the Call Detail Record indexed details

This commit is contained in:
Mark Crane
2014-06-12 11:53:52 +00:00
parent 889e57b2d0
commit 3173af6be8
2 changed files with 10 additions and 1 deletions

View File

@@ -255,6 +255,10 @@
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "smallint";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Post Dial Delay (PDD) in miliseconds. Divide by 1000 for seconds.";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "rtp_audio_in_mos";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "last_app";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Save the last application in the leg.";

View File

@@ -115,6 +115,11 @@
$database->fields['conference_name'] = check_str(urldecode($xml->variables->conference_name));
$database->fields['conference_uuid'] = check_str(urldecode($xml->variables->conference_uuid));
$database->fields['conference_member_id'] = check_str(urldecode($xml->variables->conference_member_id));
//call quality
$rtp_audio_in_mos = check_str(urldecode($xml->variables->rtp_audio_in_mos));
if (strlen($rtp_audio_in_mos) > 0) {
$database->fields['rtp_audio_in_mos'] = $rtp_audio_in_mos;
}
//get the values from the callflow.
$x = 0;
@@ -148,7 +153,7 @@
//get the domain values from the xml
$domain_name = check_str(urldecode($xml->variables->domain_name));
$domain_uuid = check_str(urldecode($xml->variables->domain_uuid));
$domain_uuid = check_str(urldecode($xml->variables->domain_uuid));
//get the domain_uuid with the domain_name
if (strlen($domain_uuid) == 0) {