From 3173af6be8bb0601acdc5113b447880616211a2a Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 12 Jun 2014 11:53:52 +0000 Subject: [PATCH] Add rtp_audio_in_mos to the Call Detail Record indexed details --- app/xml_cdr/app_config.php | 4 ++++ app/xml_cdr/v_xml_cdr_import.php | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/xml_cdr/app_config.php b/app/xml_cdr/app_config.php index 561c8d1fe7..f7ddd05d63 100644 --- a/app/xml_cdr/app_config.php +++ b/app/xml_cdr/app_config.php @@ -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."; diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php index 15287c2727..6e8666cdc7 100644 --- a/app/xml_cdr/v_xml_cdr_import.php +++ b/app/xml_cdr/v_xml_cdr_import.php @@ -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) {