Fixed callcenter so that remote calls will time out properly (leg_timeout) and changed group confirm announce time from default 5 seconds to 2.

This commit is contained in:
James Rose
2014-08-03 20:54:15 +00:00
parent e16716408b
commit e89ffc0cff
2 changed files with 6 additions and 2 deletions

View File

@@ -2836,7 +2836,9 @@ if (!function_exists('save_call_center_xml')) {
}
//get and then set the complete agent_contact with the call_timeout and when necessary confirm
$tmp_confirm = "group_confirm_file=custom/press_1_to_accept_this_call.wav,group_confirm_key=1";
//$tmp_confirm = "group_confirm_file=custom/press_1_to_accept_this_call.wav,group_confirm_key=1";
//if you change this variable also change app/call_center/call_center_agent_edit.php
$tmp_confirm = "group_confirm_file=custom/press_1_to_accept_this_call.wav,group_confirm_key=1,group_confirm_read_timeout=2000,leg_timeout=".$agent_call_timeout;
if(strstr($agent_contact, '}') === FALSE) {
//not found
if(stristr($agent_contact, 'sofia/gateway') === FALSE) {