Fixes for Khomp call processing
Added Khomp Quick Stats Report git-svn-id: svn://192.168.202.10@3877 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -129,6 +129,7 @@
|
||||
# 220524-1746 - Changed SHARED_ campaign in-group transfers to use 'SRDROP' log status instead of 'DROP'
|
||||
# 230309-0952 - Added abandon_check_queue feature
|
||||
# 240804-1218 - Remove ding and sleep for dropped calls going to an extension(message)
|
||||
# 241001-2222 - Fixes for Khomp call processing
|
||||
#
|
||||
|
||||
$script = 'agi-VDAD_ALL_outbound.agi';
|
||||
@@ -892,6 +893,8 @@ if ($VDACaffected_rows > 0)
|
||||
$khomp_api_pass = '';
|
||||
$khomp_header = '';
|
||||
$khomp_id_format = '';
|
||||
$khomp_api_token = '';
|
||||
$khomp_api_token_expire = '';
|
||||
|
||||
$stmtA = "SELECT container_entry FROM vicidial_settings_containers WHERE container_id = 'KHOMPSETTINGS';";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
@@ -1647,6 +1650,8 @@ if ($call_handle_method =~ /REMIND/)
|
||||
$khomp_api_pass,
|
||||
$khomp_header,
|
||||
$khomp_id_format,
|
||||
$khomp_api_token,
|
||||
$khomp_api_token_expire,
|
||||
$external_server_ip,
|
||||
$VDADcampaign,
|
||||
$callerid,
|
||||
@@ -1752,6 +1757,8 @@ if ($call_handle_method =~ /SURVEY/)
|
||||
$khomp_api_pass,
|
||||
$khomp_header,
|
||||
$khomp_id_format,
|
||||
$khomp_api_token,
|
||||
$khomp_api_token_expire,
|
||||
$external_server_ip,
|
||||
$VDADcampaign,
|
||||
$callerid,
|
||||
@@ -2636,6 +2643,8 @@ if (( $amd_type eq 'KHOMP' ) && ( $khomp_enabled ) )
|
||||
$khomp_api_pass,
|
||||
$khomp_header,
|
||||
$khomp_id_format,
|
||||
$khomp_api_token,
|
||||
$khomp_api_token_expire,
|
||||
$external_server_ip,
|
||||
$VDADcampaign,
|
||||
$callerid,
|
||||
@@ -5260,7 +5269,9 @@ sub process_khomp_analytics
|
||||
$khomp_api_user,
|
||||
$khomp_api_pass,
|
||||
$khomp_header,
|
||||
$khomp_id_format,
|
||||
$khomp_id_format,
|
||||
$khomp_api_token,
|
||||
$khomp_api_token_expire,
|
||||
$external_server_ip,
|
||||
$campaign_id,
|
||||
$callerid,
|
||||
@@ -5281,7 +5292,8 @@ sub process_khomp_analytics
|
||||
{ $khomp_id = $callerid . '_' . $campaign_id . '_' . $external_server_ip; }
|
||||
|
||||
my $api_auth_time = 0;
|
||||
if ( ($khomp_api_token_expire < time() ) or ( $khomp_api_token eq 'TOKENTOKENTOKEN' ))
|
||||
if ( ( !( $khomp_api_token_expire ) ) and ( $khomp_api_token_expire != 0 ) ) { $khomp_api_token_expire = 0; }
|
||||
if ( ( $khomp_api_token_expire < time() ) or ( $khomp_api_token eq 'TOKENTOKENTOKEN' ))
|
||||
{
|
||||
if ($AGILOG) {$agi_string = "-- KHOMP API Token $khomp_api_token has expired at $khomp_api_token_expire"; &agi_output;}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user