Added CALLID as a recording filename variable
Added IMAP and POP3 debug flag option when --debugX used Added Called Counts List IDs Report git-svn-id: svn://192.168.202.10@2086 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
#
|
||||
# agi-VDAD_RINGALL.agi version 2.6
|
||||
# agi-VDAD_RINGALL.agi version 2.8
|
||||
#
|
||||
# NOTE: this script is used for on-hook agents to be connected to customer calls
|
||||
# when they answer their ringing phones
|
||||
@@ -12,7 +12,7 @@
|
||||
# exten => _8331*.,n,AGI(agi-VDAD_RINGALL.agi,${EXTEN})
|
||||
# exten => _8331*.,n,Hangup
|
||||
#
|
||||
# Copyright (C) 2013 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# changes:
|
||||
# 110303-2325 - First build
|
||||
@@ -20,6 +20,7 @@
|
||||
# 110325-1411 - Added user recording override settings checking for remote agent recording
|
||||
# 121114-1935 - Added INGROUP recording option
|
||||
# 130108-1808 - Changes for Asterisk 1.8 compatibility
|
||||
# 140312-2112 - Added CALLID as recording filename variable
|
||||
#
|
||||
|
||||
$script = 'agi-VDAD_RINGALL.agi';
|
||||
@@ -172,7 +173,7 @@ if ($channel =~ /^Local/)
|
||||
|
||||
|
||||
### Check that the call exists, if not then buzz and hangup ###
|
||||
$stmtA = "SELECT campaign_id,call_type,extension,phone_number,lead_id FROM vicidial_auto_calls where auto_call_id='$auto_call_id';";
|
||||
$stmtA = "SELECT campaign_id,call_type,extension,phone_number,lead_id,callerid FROM vicidial_auto_calls where auto_call_id='$auto_call_id';";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$VACcount=$sthA->rows;
|
||||
@@ -184,6 +185,7 @@ if ($VACcount > 0)
|
||||
$VAC_extension = $aryA[2];
|
||||
$VAC_phone_number = $aryA[3];
|
||||
$VAC_lead_id = $aryA[4];
|
||||
$VAC_call_id = $aryA[5];
|
||||
if ($AGILOG) {$agi_string = "-- VAC Call Found: |$callerid|$VAC_campaign_id|$VAC_call_type|$VAC_extension|$VAC_phone_number|$VAC_lead_id|$auto_call_id|"; &agi_output;}
|
||||
$sthA->finish();
|
||||
}
|
||||
@@ -336,6 +338,7 @@ if ($NAGcount > 0)
|
||||
$campaign_rec_filename =~ s/AGENT/$dial_user/gi;
|
||||
$campaign_rec_filename =~ s/VENDORLEADCODE/$vendor_lead_code/gi;
|
||||
$campaign_rec_filename =~ s/LEADID/$VAC_lead_id/gi;
|
||||
$campaign_rec_filename =~ s/CALLID/$VAC_call_id/gi;
|
||||
$campaign_rec_filename =~ s/\"|\'//gi;
|
||||
|
||||
%ast_ver_str = parse_asterisk_version($asterisk_version);
|
||||
|
||||
Reference in New Issue
Block a user