diff --git a/app/xml_cdr/app_languages.php b/app/xml_cdr/app_languages.php index be989695a1..cfe264dc02 100644 --- a/app/xml_cdr/app_languages.php +++ b/app/xml_cdr/app_languages.php @@ -630,6 +630,27 @@ $text['label-variables']['ru-ru'] = "Переменные"; $text['label-variables']['sv-se'] = "Variabler"; $text['label-variables']['uk-ua'] = "Змінні"; +$text['label-call-stats']['en-us'] = "Call Stats: Audio"; +$text['label-call-stats']['en-gb'] = "Call Stats: Audio"; +$text['label-call-stats']['ar-eg'] = ""; +$text['label-call-stats']['de-at'] = ""; +$text['label-call-stats']['de-ch'] = ""; +$text['label-call-stats']['de-de'] = ""; +$text['label-call-stats']['es-cl'] = ""; +$text['label-call-stats']['es-mx'] = ""; +$text['label-call-stats']['fr-ca'] = ""; +$text['label-call-stats']['fr-fr'] = ""; +$text['label-call-stats']['he-il'] = ""; +$text['label-call-stats']['it-it'] = ""; +$text['label-call-stats']['nl-nl'] = ""; +$text['label-call-stats']['pl-pl'] = ""; +$text['label-call-stats']['pt-br'] = ""; +$text['label-call-stats']['pt-pt'] = ""; +$text['label-call-stats']['ro-ro'] = ""; +$text['label-call-stats']['ru-ru'] = ""; +$text['label-call-stats']['sv-se'] = ""; +$text['label-call-stats']['uk-ua'] = ""; + $text['label-uuid']['en-us'] = "UUID"; $text['label-uuid']['en-gb'] = "UUID"; $text['label-uuid']['ar-eg'] = ""; diff --git a/app/xml_cdr/xml_cdr_details.php b/app/xml_cdr/xml_cdr_details.php index 3e76933f16..e02059fd31 100644 --- a/app/xml_cdr/xml_cdr_details.php +++ b/app/xml_cdr/xml_cdr_details.php @@ -278,6 +278,44 @@ echo ""; echo "

\n"; +//call stats + $c = 0; + $row_style["0"] = "row_style0"; + $row_style["1"] = "row_style1"; + if (is_array($array["call-stats"])) { + if (is_array($array["call-stats"]['audio'])) { + foreach($array["call-stats"]['audio'] as $audio_direction => $stat) { + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo "
".$text['label-call-stats'].": ".$audio_direction."  
\n"; + + echo "\n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + foreach($stat as $key => $value) { + if (is_array($value)) { $value = implode($value); } + $value = urldecode($value); + echo "\n"; + echo " \n"; + echo " \n"; + echo "\n"; + $c = $c ? 0 : 1; + } + echo " \n"; + echo " \n"; + echo " \n"; + echo "
".$text['label-name']."".$text['label-value']."
".escape($key)."".escape(wordwrap($value,75,"\n", true))." 


\n"; + } + } + } + echo ""; + echo "

\n"; + //channel data loop $c = 0; $row_style["0"] = "row_style0";