diff --git a/app/call_center/call_center_agent_edit.php b/app/call_center/call_center_agent_edit.php index 098b23d2a7..e8571bca4a 100644 --- a/app/call_center/call_center_agent_edit.php +++ b/app/call_center/call_center_agent_edit.php @@ -99,7 +99,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { } //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"; + //if you change this variable, also change resources/switch.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) { @@ -110,6 +111,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //add the call_timeout and confirm $tmp_agent_contact = $tmp_first.',call_timeout='.$agent_call_timeout.$tmp_last; $tmp_agent_contact = "{".$tmp_confirm.",call_timeout=".$agent_call_timeout."}".$agent_contact; + echo "\n\n".$tmp_agent_contact."\n\n"; } } else { diff --git a/resources/switch.php b/resources/switch.php index f893235a14..ab96ba471c 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -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) {