Page 1 of 1
Cancel ringing outgoing Call before getting dropped
Posted:
Fri Feb 16, 2018 2:59 am
by phil_discount
Hi guys,
we have setup 30 seconds dial timeout.
Sometimes there is a peak in INBOUND and all OUTBOUND waiting agents are INCALL because of inbound calls.
Now i want to stop the ringing outgoing calls if the calls are older than 15 seconds and hangup with NA.
I tried deleting in vicidial_auto_calls and also in AST_VDauto_dial.pl script.
Changing dial timeout for a short time in vicidial_campaigns doesnt work for active calls, only for new calls.
Anybody an idea where i can do it?
Best regards
Philip
Re: Cancel ringing outgoing Call before getting dropped
Posted:
Fri Feb 16, 2018 5:16 am
by mflorell
There is currently no feature that does what you describe.
A tool would need to be written that once triggered could go through all of the calls and force a hangup and log them appropriately.
Re: Cancel ringing outgoing Call before getting dropped
Posted:
Fri Feb 16, 2018 5:22 am
by phil_discount
Can you tell me where i find the existing code to force a hangup when the dial timeout is reached?
Re: Cancel ringing outgoing Call before getting dropped
Posted:
Fri Feb 16, 2018 7:35 am
by mflorell
That's not in VICIdial, that's an Asterisk function that reads the timeout VICIdial sets when the call is placed. You cannot alter the timeout value in Asterisk once the call has been placed, so that won't get you what you want.
Re: Cancel ringing outgoing Call before getting dropped
Posted:
Fri Feb 16, 2018 7:45 am
by phil_discount
Perhaps its possible to destroy the call over asterisk CLI with the same timeout (NA) result?
Re: Cancel ringing outgoing Call before getting dropped
Posted:
Fri Feb 16, 2018 8:07 am
by mflorell
Not exactly. You can hang the call up, but it will not yield the same "CANCEL" call hangup reason, it will be a call hung up by command.
Re: Cancel ringing outgoing Call before getting dropped
Posted:
Fri Feb 16, 2018 8:25 am
by phil_discount
It works!
OB-Calls ringing: select phone_number from vicidial_auto_calls WHERE status = 'SENT' AND call_type = 'OUT' AND stage = 'START';
Channel Name: select channel from live_sip_channels WHERE extension like '%vicidial_auto_calls.phone_number%';
asterisk: soft hangup channel.live_sip_channels
after hangup you have to delete the vicidial_auto_calls record
vicidial_log / call_log / vicidial_list looks fine