mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-09 01:58:44 +00:00
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:
@@ -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
|
//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) {
|
if(strstr($agent_contact, '}') === FALSE) {
|
||||||
//not found
|
//not found
|
||||||
if(stristr($agent_contact, 'sofia/gateway') === FALSE) {
|
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
|
//add the call_timeout and confirm
|
||||||
$tmp_agent_contact = $tmp_first.',call_timeout='.$agent_call_timeout.$tmp_last;
|
$tmp_agent_contact = $tmp_first.',call_timeout='.$agent_call_timeout.$tmp_last;
|
||||||
$tmp_agent_contact = "{".$tmp_confirm.",call_timeout=".$agent_call_timeout."}".$agent_contact;
|
$tmp_agent_contact = "{".$tmp_confirm.",call_timeout=".$agent_call_timeout."}".$agent_contact;
|
||||||
|
echo "\n\n".$tmp_agent_contact."\n\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -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
|
//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) {
|
if(strstr($agent_contact, '}') === FALSE) {
|
||||||
//not found
|
//not found
|
||||||
if(stristr($agent_contact, 'sofia/gateway') === FALSE) {
|
if(stristr($agent_contact, 'sofia/gateway') === FALSE) {
|
||||||
|
|||||||
Reference in New Issue
Block a user