Hello guys! I'm from Brasil and I need a little customization on the CallCenter module!
I need to delay the origination of the calls by half second, let me explain better:
When an agent login, I want the dialer to make the calls like this:
- call1
wait 0.5s
- call2
wait 0.5s
call3
wait 0.5s
and so on
2 asterisk developers already tried, but with some strange behavior like agents being kicked of the dashboard.
We trying by putting this sleep code on the file: /opt/issabel/dialer/CampaignProcess.class.php
// Mandar a ejecutar la llamada a través de AMIEventProcess
$this->_tuberia->AMIEventProcess_ejecutarOriginate(
$tupla['actionid'], $iTimeoutOriginate, $iTimestampInicioOriginate,
(is_null($tupla['agent']) ? $infoCampania['context'] : 'llamada_agendada'),
(isset($datosTrunk['CID']) ? $datosTrunk['CID'] : substr($tupla['phone'], 0, -7).rand(1000000,9999999)),
//(isset($datosTrunk['CID']) ? $datosTrunk['CID'] : $tupla['phone']),
$sCadenaVar, (is_null($tupla['retries']) ? 0 : $tupla['retries']) + 1,
$infoCampania['trunk']);
///////////////// Time de disparo entre contatos /////////////////////
usleep(500000);
//////////////////////////////////////////////////////////////////////
}
With this code the dialer have strange behaviors, like kick out the agent and be very slow to dial again after an agent be free. We tried a usleep with lower time, solve the issue of the slow dialing after an agent back to free status, but the kick off dashboard not.
I need to know if there is some other possible solution.
I need the SIP trunk to be set on the campaign, its not an option to let the campaign dial by dialplan because I already have another customization on the system, and I need to dial directly to the trunk.
We tried to make a custom trunk to delay the calls, but the dialer dont dial with a custom trunk and I dont know why.
so, I WANT TO PAY to someone solve this problem for us, because I need this with some URGENCY.