How to report dialed numbers by Elastix Dialer
When originating calls from the Elastix Dialer, the dialed number is not registered in the queue_log file, thus is not available on Asternic generated reports.
The attached patch will modify the dialer so it sets the CallerID to the dialed number, in this way the queue_log will reflect the callerid and Asternic will be able to show it.
--- DialerProcess.class.php.original 2012-07-16 18:46:14.000000000 -0300
+++ DialerProcess.class.php 2012-07-16 18:58:11.000000000 -0300
@@ -1165,7 +1165,7 @@
$sCanalTrunk,
NULL, NULL, NULL,
"Wait" , "5" , NULL,
- (isset($datosTrunk['CID']) ? $datosTrunk['CID'] : NULL),
+ (isset($datosTrunk['CID']) ? $datosTrunk['CID'] : $tupla->phone),
$sCadenaVar,
NULL,
TRUE, $sKey);
@@ -1480,7 +1480,7 @@
$resultado = $this->_astConn->Originate(
$sCanalTrunk, $infoCampania->queue, $infoCampania->context, 1,
NULL, NULL, NULL,
- (isset($datosTrunk['CID']) ? $datosTrunk['CID'] : NULL),
+ (isset($datosTrunk['CID']) ? $datosTrunk['CID'] : $tupla->phone),
$sCadenaVar,
NULL,
TRUE, $sKey);