In case it might help someone, here is what I did:
I uploaded 2 fax icons to /var/www/fusionpbx/themes/default/images, I named them icon_cdr_inbound_fax.png and icon_cdr_outbound_fax.png
In /var/www/fusionpbx/app/xml_cdr/resources/classes/xml_cdr.php I added the following code:
PHP:
if(isset($xml->variables->fax_uuid) && $xml->variables->direction == "inbound") {
$this->array[$key]['direction'] = "FAXin";
}
if(isset($xml->variables->fax_uuid) && $xml->variables->direction == "outbound") {
$this->array[$key]['direction'] = "FAXout";
}
I also played with the idea of having billsec display the number of pages sent instead of the length of the call, I'm not implementing it now but I can get done it with the following code:
PHP:
if(isset($xml->variables->fax_uuid) && $xml->variables->fax_document_transferred_pages > 0) {
$this->array[$key]['billsec'] = urldecode($xml->variables->fax_document_transferred_pages);
}
In /var/www/fusionpbx/app/xml_cdr/xml_cdr.php I added the following code:
PHP:
echo "<option value='FAXin' ".(($direction == "FAXin") ? "selected='selected'" : null).">".$text['label-faxin']."</option>\n";
echo "<option value='FAXout' ".(($direction == "FAXout") ? "selected='selected'" : null).">".$text['label-faxout']."</option>\n";
PHP:
file_exists($theme_image_path."icon_cdr_outbound_fax.png")&&
file_exists($theme_image_path."icon_cdr_inbound_fax.png")&&
PHP:
else if ($row['direction'] == 'FAXin' || $row['direction'] == 'FAXout') {
$call_result = 'fax';
if ( $row['direction'] == 'FAXin') { $row[direction] = 'inbound'; }
else if ($row['direction'] == 'FAXout') { $row[direction] = 'outbound';}
}
In /var/www/fusionpbx/app/xml_cdr/app_language.php I added the following code:
PHP:
$text['label-fax']['en-us'] = "Fax";
$text['label-fax']['en-gb'] = "Fax";
$text['label-fax']['ar-eg'] = "";
$text['label-fax']['de-at'] = "Fax";
$text['label-fax']['de-ch'] = "Fax";
$text['label-fax']['de-de'] = "Fax";
$text['label-fax']['es-cl'] = "Fax";
$text['label-fax']['es-mx'] = "Fax";
$text['label-fax']['fr-ca'] = "Fax";
$text['label-fax']['fr-fr'] = "Fax";
$text['label-fax']['he-il'] = "";
$text['label-fax']['it-it'] = "Fax";
$text['label-fax']['nl-nl'] = "Fax";
$text['label-fax']['pl-pl'] = "Faks";
$text['label-fax']['pt-br'] = "Fax";
$text['label-fax']['pt-pt'] = "Fax";
$text['label-fax']['ro-ro'] = "Fax";
$text['label-fax']['ru-ru'] = "факс";
$text['label-fax']['sv-se'] = "Fax";
$text['label-fax']['uk-ua'] = "факс";
$text['label-faxin']['en-us'] = "Fax Inbound";
$text['label-faxin']['en-gb'] = "Fax Inbound";
$text['label-faxin']['ar-eg'] = "";
$text['label-faxin']['de-at'] = "Fax Eingehend";
$text['label-faxin']['de-ch'] = "Fax Eingehend";
$text['label-faxin']['de-de'] = "Fax Eingehend";
$text['label-faxin']['es-cl'] = "Fax Entrada";
$text['label-faxin']['es-mx'] = "Fax Entrada";
$text['label-faxin']['fr-ca'] = "Fax Entrant";
$text['label-faxin']['fr-fr'] = "Fax Entrant";
$text['label-faxin']['he-il'] = "";
$text['label-faxin']['it-it'] = "Fax In Ingresso";
$text['label-faxin']['nl-nl'] = "Fax Inkomend";
$text['label-faxin']['pl-pl'] = "Faks Przychodzące";
$text['label-faxin']['pt-br'] = "Fax Entrada" ;
$text['label-faxin']['pt-pt'] = "Fax Entrada";
$text['label-faxin']['ro-ro'] = "Fax De Intrare";
$text['label-faxin']['ru-ru'] = "факс Входящие";
$text['label-faxin']['sv-se'] = "Fax Inkommande";
$text['label-faxin']['uk-ua'] = "факс Входящие";
$text['label-faxout']['en-us'] = "Fax Outbound";
$text['label-faxout']['en-gb'] = "Fax Outbound";
$text['label-faxout']['ar-eg'] = "";
$text['label-faxout']['de-at'] = "Fax Ausgehend";
$text['label-faxout']['de-ch'] = "Fax Ausgehend";
$text['label-faxout']['de-de'] = "Fax Ausgehend";
$text['label-faxout']['es-cl'] = "Fax Salida";
$text['label-faxout']['es-mx'] = "Fax Salida";
$text['label-faxout']['fr-ca'] = "Fax Sortant";
$text['label-faxout']['fr-fr'] = "Fax Sortant";
$text['label-faxout']['he-il'] = "";
$text['label-faxout']['it-it'] = "Fax In Uscita";
$text['label-faxout']['nl-nl'] = "Fax Uitgaand";
$text['label-faxout']['pl-pl'] = "Faks Wychodzące";
$text['label-faxout']['pt-br'] = "Fax Saída" ;
$text['label-faxout']['pt-pt'] = "Fax Saída";
$text['label-faxout']['ro-ro'] = "Fax De Ieșire";
$text['label-faxout']['ru-ru'] = "факс Исходящие";
$text['label-faxout']['sv-se'] = "Fax Utgående";
$text['label-faxout']['uk-ua'] = "факс Исходящие";