diff --git a/app/xml_cdr/xml_cdr_extension_summary.php b/app/xml_cdr/xml_cdr_extension_summary.php index d509eabb7f..5ae5ed58ea 100644 --- a/app/xml_cdr/xml_cdr_extension_summary.php +++ b/app/xml_cdr/xml_cdr_extension_summary.php @@ -215,7 +215,15 @@ if (permission_exists('number_alias')) { echo " ".$text['label-number_alias']."\n"; } - echo " ".$text['label-answered']."\n"; + if (permission_exists('xml_cdr_answered')) { + echo " ".$text['label-answered']."\n"; + } + if (permission_exists('xml_cdr_answered_inbound')) { + echo " ".$text['label-answered_inbound']."\n"; + } + if (permission_exists('xml_cdr_answered_outbound')) { + echo " ".$text['label-answered_outbound']."\n"; + } echo " ".$text['label-missed']."\n"; echo " ".$text['label-voicemail']."\n"; echo " ".$text['label-no_answer']."\n"; @@ -238,7 +246,15 @@ if (permission_exists('number_alias')) { echo " ".escape($row['number_alias'])." \n"; } - echo " ".escape($row['answered'])." \n"; + if (permission_exists('xml_cdr_answered')) { + echo " ".escape($row['answered'])." \n"; + } + if (permission_exists('xml_cdr_answered_inbound')) { + echo " ".escape($row['answered_inbound'])." \n"; + } + if (permission_exists('xml_cdr_answered_outbound')) { + echo " ".escape($row['answered_outbound'])." \n"; + } echo " ".escape($row['missed'])." \n"; echo " ".escape($row['voicemail'])." \n"; echo " ".escape($row['no_answer'])." \n";