Non-agent api small fix
git-svn-id: svn://192.168.202.10@3989 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
# non_agent_api.php
|
# non_agent_api.php
|
||||||
#
|
#
|
||||||
# Copyright (C) 2025 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
# Copyright (C) 2026 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||||
#
|
#
|
||||||
# This script is designed as an API(Application Programming Interface) to allow
|
# This script is designed as an API(Application Programming Interface) to allow
|
||||||
# other programs to interact with all non-agent-screen VICIDIAL functions
|
# other programs to interact with all non-agent-screen VICIDIAL functions
|
||||||
@@ -227,10 +227,11 @@
|
|||||||
# 250720-1841 - Added hopper_bulk_insert function
|
# 250720-1841 - Added hopper_bulk_insert function
|
||||||
# 251205-1456 - Added ADAPT_PERCENTMAX dial_method
|
# 251205-1456 - Added ADAPT_PERCENTMAX dial_method
|
||||||
# 260123-1020 - pause_sec fix in agent_stats_export
|
# 260123-1020 - pause_sec fix in agent_stats_export
|
||||||
|
# 260506-1525 - small fix for campaign changes
|
||||||
#
|
#
|
||||||
|
|
||||||
$version = '2.14-202';
|
$version = '2.14-203';
|
||||||
$build = '251205-1456';
|
$build = '260506-1525';
|
||||||
$php_script='non_agent_api.php';
|
$php_script='non_agent_api.php';
|
||||||
$api_url_log = 0;
|
$api_url_log = 0;
|
||||||
$camp_lead_order_random=1;
|
$camp_lead_order_random=1;
|
||||||
@@ -9226,7 +9227,7 @@ if ($function == 'update_campaign')
|
|||||||
}
|
}
|
||||||
if (strlen($list_order) > 0)
|
if (strlen($list_order) > 0)
|
||||||
{
|
{
|
||||||
if ( ($camp_lead_order_random > 0) and (preg_match("/RANDOM/i",$list_order)) )
|
if ( ($camp_lead_order_random < 1) and (preg_match("/RANDOM/i",$list_order)) )
|
||||||
{
|
{
|
||||||
$result = 'ERROR';
|
$result = 'ERROR';
|
||||||
$result_reason = "update_campaign LIST ORDER INCLUDING RANDOM ARE NOT ALLOWED, THIS IS AN OPTIONAL FIELD";
|
$result_reason = "update_campaign LIST ORDER INCLUDING RANDOM ARE NOT ALLOWED, THIS IS AN OPTIONAL FIELD";
|
||||||
|
|||||||
Reference in New Issue
Block a user