Call Center handle spaces in queue name by replacing them with a dash.
This commit is contained in:
parent
78768afaea
commit
d8aec93c7a
|
|
@ -51,6 +51,7 @@ else {
|
|||
|
||||
//get http post variables and set them to php variables
|
||||
if (count($_POST)>0) {
|
||||
//get the post variables a run a security chack on them
|
||||
//$domain_uuid = check_str($_POST["domain_uuid"]);
|
||||
$queue_name = check_str($_POST["queue_name"]);
|
||||
$queue_extension = check_str($_POST["queue_extension"]);
|
||||
|
|
@ -71,6 +72,9 @@ else {
|
|||
$queue_cid_prefix = check_str($_POST["queue_cid_prefix"]);
|
||||
$queue_description = check_str($_POST["queue_description"]);
|
||||
|
||||
//replace the space in the queue name with a dash
|
||||
$queue_name = str_replace(" ", "-", $queue_name);
|
||||
|
||||
//remove invalid characters
|
||||
$queue_cid_prefix = str_replace(":", "-", $queue_cid_prefix);
|
||||
$queue_cid_prefix = str_replace("\"", "", $queue_cid_prefix);
|
||||
|
|
@ -269,11 +273,13 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
$queue_abandoned_resume_allowed = $row["queue_abandoned_resume_allowed"];
|
||||
$queue_cid_prefix = $row["queue_cid_prefix"];
|
||||
$queue_description = $row["queue_description"];
|
||||
break; //limit to 1 row
|
||||
}
|
||||
unset ($prep_statement);
|
||||
}
|
||||
|
||||
//replace the dash in the queue name with a space
|
||||
$queue_name = str_replace("-", " ", $queue_name);
|
||||
|
||||
//set default values
|
||||
if (strlen($queue_strategy) == 0) { $queue_strategy = "longest-idle-agent"; }
|
||||
if (strlen($queue_moh_sound) == 0) { $queue_moh_sound = "\$\${hold_music}"; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue