Added Transfer Presets to Campaigns allowing many dial presets for agent interface transfer-conf frame, new Campaigns sub-menu for Presets created, also reporting added on presets calling stats
Added ability on a per-campaign basis to hide the Number-to-Dial field in the transfer-conf frame git-svn-id: svn://192.168.202.10@1501 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -282,6 +282,17 @@ OTHER CHANGES:
|
||||
60. Added new beta script for faster checking of leave-3way conferences,
|
||||
AST_conf_update_3way.pl, read the comments before using.
|
||||
|
||||
61. Added Transfer Presets to Campaigns allowing for unlimited dial presets for
|
||||
agents to use in the transfer-conf frame of the agent interface. Also,
|
||||
real-time and outbound report reporting have been added to show call
|
||||
counts for these presets. Presets can optionally have their numbers
|
||||
hidden from agents allowing agents only to select a preset name to
|
||||
transfer or conference a call to. You must Enable Transfer Presets in a
|
||||
campaign before you can define them in the Presets sub-menu.
|
||||
|
||||
62. Added ability to hide the "Number to dial" field in the Transfer-conf frame
|
||||
of the agent interface. This is a Campaign-level setting.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
# 100703-2137 - Added memory table reset nightly
|
||||
# 100811-2221 - Added --cu3way flag for new optional leave3way cleaning script
|
||||
# 100812-0515 - Added --cu3way-delay= flag for setting delay in the leave3way cleaning script
|
||||
# 100814-2206 - Added clearing and optimization for vicidial_xfer_stats table
|
||||
#
|
||||
|
||||
$DB=0; # Debug flag
|
||||
@@ -680,6 +681,20 @@ if ($timeclock_end_of_day_NOW > 0)
|
||||
if ($Tsec < 10) {$Tsec = "0$Tsec";}
|
||||
$TDSQLdate = "$Tyear-$Tmon-$Tmday $Thour:$Tmin:$Tsec";
|
||||
|
||||
$stmtA = "UPDATE vicidial_xfer_stats SET xfer_count='0';";
|
||||
if($DBX){print STDERR "\n|$stmtA|\n";}
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
if($DB){print STDERR "\n|$affected_rows vicidial_xfer_stats records reset|\n";}
|
||||
|
||||
$stmtA = "optimize table vicidial_xfer_stats;";
|
||||
if($DBX){print STDERR "\n|$stmtA|\n";}
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
if ($DB) {print "|",$aryA[0],"|",$aryA[1],"|",$aryA[2],"|",$aryA[3],"|","\n";}
|
||||
$sthA->finish();
|
||||
|
||||
$stmtA = "UPDATE vicidial_campaign_stats SET dialable_leads='0', calls_today='0', answers_today='0', drops_today='0', drops_today_pct='0', drops_answers_today_pct='0', calls_hour='0', answers_hour='0', drops_hour='0', drops_hour_pct='0', calls_halfhour='0', answers_halfhour='0', drops_halfhour='0', drops_halfhour_pct='0', calls_fivemin='0', answers_fivemin='0', drops_fivemin='0', drops_fivemin_pct='0', calls_onemin='0', answers_onemin='0', drops_onemin='0', drops_onemin_pct='0', differential_onemin='0', agents_average_onemin='0', balance_trunk_fill='0', status_category_count_1='0', status_category_count_2='0', status_category_count_3='0', status_category_count_4='0';";
|
||||
if($DBX){print STDERR "\n|$stmtA|\n";}
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
|
||||
@@ -330,15 +330,21 @@ exten => 8300,1,Hangup
|
||||
|
||||
; astGUIclient conferences
|
||||
exten => _86000[0-4]X,1,Meetme,${EXTEN}|q
|
||||
exten => _86000[0-4]X,n,Hangup
|
||||
; VICIDIAL conferences
|
||||
exten => _86000[5-9]X,1,Meetme,${EXTEN}|F
|
||||
exten => _86000[5-9]X,n,Hangup
|
||||
exten => _8600[1-2]XX,1,Meetme,${EXTEN}|F
|
||||
exten => _8600[1-2]XX,n,Hangup
|
||||
; quiet entry and leaving conferences for VICIDIAL (inbound announce and SendDTMF)
|
||||
exten => _78600XXX,1,Meetme,${EXTEN:1}|Fq
|
||||
exten => _78600XXX,n,Hangup
|
||||
; quiet monitor-only extensions for meetme rooms (for room managers)
|
||||
exten => _68600XXX,1,Meetme,${EXTEN:1}|Fmq
|
||||
exten => _68600XXX,n,Hangup
|
||||
; quiet monitor-only entry and leaving conferences for VICIDIAL (recording)
|
||||
exten => _58600XXX,1,Meetme,${EXTEN:1}|Fmq
|
||||
exten => _58600XXX,n,Hangup
|
||||
|
||||
; voicelab exten
|
||||
exten => _86009XX,1,Meetme,${EXTEN}|Fmq
|
||||
|
||||
@@ -335,15 +335,21 @@ exten => 8300,1,Hangup
|
||||
|
||||
; astGUIclient conferences
|
||||
exten => _86000[0-4]X,1,Meetme,${EXTEN}|q
|
||||
exten => _86000[0-4]X,n,Hangup
|
||||
; VICIDIAL conferences
|
||||
exten => _86000[5-9]X,1,Meetme,${EXTEN}|F
|
||||
exten => _86000[5-9]X,n,Hangup
|
||||
exten => _8600[1-2]XX,1,Meetme,${EXTEN}|F
|
||||
exten => _8600[1-2]XX,n,Hangup
|
||||
; quiet entry and leaving conferences for VICIDIAL (inbound announce and SendDTMF)
|
||||
exten => _78600XXX,1,Meetme,${EXTEN:1}|Fq
|
||||
exten => _78600XXX,n,Hangup
|
||||
; quiet monitor-only extensions for meetme rooms (for room managers)
|
||||
exten => _68600XXX,1,Meetme,${EXTEN:1}|Fmq
|
||||
exten => _68600XXX,n,Hangup
|
||||
; quiet monitor-only entry and leaving conferences for VICIDIAL (recording)
|
||||
exten => _58600XXX,1,Meetme,${EXTEN:1}|Fmq
|
||||
exten => _58600XXX,n,Hangup
|
||||
|
||||
; voicelab exten
|
||||
exten => _86009XX,1,Meetme,${EXTEN}|Fmq
|
||||
|
||||
@@ -755,7 +755,9 @@ blind_monitor_warning ENUM('DISABLED','ALERT','NOTICE','AUDIO','ALERT_NOTICE','A
|
||||
blind_monitor_message VARCHAR(255) default 'Someone is blind monitoring your session',
|
||||
blind_monitor_filename VARCHAR(100) default '',
|
||||
inbound_queue_no_dial ENUM('DISABLED','ENABLED','ALL_SERVERS') default 'DISABLED',
|
||||
timer_action_destination VARCHAR(30) default ''
|
||||
timer_action_destination VARCHAR(30) default '',
|
||||
enable_xfer_presets ENUM('DISABLED','ENABLED') default 'DISABLED',
|
||||
hide_xfer_number_to_dial ENUM('DISABLED','ENABLED') default 'DISABLED'
|
||||
);
|
||||
|
||||
CREATE TABLE vicidial_lists (
|
||||
@@ -1707,6 +1709,8 @@ number_dialed VARCHAR(30),
|
||||
lead_id INT(9) UNSIGNED,
|
||||
callerid VARCHAR(20),
|
||||
group_alias_id VARCHAR(30),
|
||||
preset_name VARCHAR(40) default '',
|
||||
campaign_id VARCHAR(20) default '',
|
||||
index (user),
|
||||
index (call_date),
|
||||
index (group_alias_id)
|
||||
@@ -2189,6 +2193,22 @@ index (phone_number),
|
||||
unique index phonefilter (phone_number, filter_phone_group_id)
|
||||
);
|
||||
|
||||
CREATE TABLE vicidial_xfer_presets (
|
||||
campaign_id VARCHAR(20) NOT NULL,
|
||||
preset_name VARCHAR(40) NOT NULL,
|
||||
preset_number VARCHAR(50) NOT NULL,
|
||||
preset_dtmf VARCHAR(50) default '',
|
||||
preset_hide_number ENUM('Y','N') default 'N',
|
||||
index (preset_name)
|
||||
);
|
||||
|
||||
CREATE TABLE vicidial_xfer_stats (
|
||||
campaign_id VARCHAR(20) NOT NULL,
|
||||
preset_name VARCHAR(40) NOT NULL,
|
||||
xfer_count SMALLINT(5) UNSIGNED default '0',
|
||||
index (campaign_id)
|
||||
);
|
||||
|
||||
ALTER TABLE vicidial_campaign_server_stats ENGINE=MEMORY;
|
||||
|
||||
ALTER TABLE live_channels ENGINE=MEMORY;
|
||||
@@ -2331,7 +2351,7 @@ ALTER TABLE vicidial_agent_log_archive MODIFY agent_log_id INT(9) UNSIGNED NOT N
|
||||
|
||||
CREATE TABLE vicidial_carrier_log_archive LIKE vicidial_carrier_log;
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1240',db_schema_update_date=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1241',db_schema_update_date=NOW();
|
||||
|
||||
GRANT RELOAD ON *.* TO cron@'%';
|
||||
GRANT RELOAD ON *.* TO cron@localhost;
|
||||
|
||||
+24
-4
@@ -489,12 +489,32 @@ ALTER TABLE vicidial_inbound_dids ADD filter_clean_cid_number VARCHAR(20) defaul
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1239',db_schema_update_date=NOW();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ALTER TABLE vicidial_user_groups ADD webphone_url_override VARCHAR(255) default '';
|
||||
|
||||
ALTER TABLE vicidial_inbound_groups ADD calculate_estimated_hold_seconds SMALLINT(5) UNSIGNED default '0';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1240',db_schema_update_date=NOW();
|
||||
|
||||
ALTER TABLE vicidial_campaigns ADD enable_xfer_presets ENUM('DISABLED','ENABLED') default 'DISABLED';
|
||||
ALTER TABLE vicidial_campaigns ADD hide_xfer_number_to_dial ENUM('DISABLED','ENABLED') default 'DISABLED';
|
||||
|
||||
CREATE TABLE vicidial_xfer_presets (
|
||||
campaign_id VARCHAR(20) NOT NULL,
|
||||
preset_name VARCHAR(40) NOT NULL,
|
||||
preset_number VARCHAR(50) NOT NULL,
|
||||
preset_dtmf VARCHAR(50) default '',
|
||||
preset_hide_number ENUM('Y','N') default 'N',
|
||||
index (preset_name)
|
||||
);
|
||||
|
||||
ALTER TABLE user_call_log ADD preset_name VARCHAR(40) default '';
|
||||
ALTER TABLE user_call_log ADD campaign_id VARCHAR(20) default '';
|
||||
|
||||
CREATE TABLE vicidial_xfer_stats (
|
||||
campaign_id VARCHAR(20) NOT NULL,
|
||||
preset_name VARCHAR(40) NOT NULL,
|
||||
xfer_count SMALLINT(5) UNSIGNED default '0',
|
||||
index (campaign_id)
|
||||
);
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1241',db_schema_update_date=NOW();
|
||||
|
||||
@@ -354,6 +354,29 @@ Webphone URL Override||
|
||||
This setting allows you to set an alternate webphone URL just for the members of one user group. Default is empty||
|
||||
Calculate Estimated Hold Seconds||
|
||||
This defines the number of seconds into the queue that the customer will wait before the Estimated Hold Time will be calculated and optionally played. Minimum is 3 seconds, even if set lower than 3. Default is 0||
|
||||
Campaign Preset Added||
|
||||
Campaign Presets||
|
||||
Modify Campaign Preset||
|
||||
Campaign Preset Removed||
|
||||
If the Campaign setting for presets is set to ENABLED then you have the ability to define Transfer-Conference presets that will be available to the agent allowing them to 3-way call these presets or blind transfer calls to these preset numbers. These presets also have an option to hide the number associated with each preset from the agent||
|
||||
PRESET NOT ADDED||
|
||||
there is already an entry for this campaign with this preset||
|
||||
PRESET NOT MODIFIED||
|
||||
>Presets<||
|
||||
Hide Transfer Number to Dial||
|
||||
Enable Transfer Presets||
|
||||
This option will enable the Presets sub menu to appear at the top of the Campaign Modification page, and also you will have the ability to specify Preset dialing numbers for Agents to use in the Transfer-Conference frame of the agent interface. Default is DISABLED||
|
||||
This option will hide the Number to Dial field in the Transfer-Conference frame of the agent interface. Default is DISABLED||
|
||||
PRESETS FOR THIS CAMPAIGN||
|
||||
ADD NEW PRESET||
|
||||
Hide Number||
|
||||
Preset Name||
|
||||
Preset Number||
|
||||
Preset DTMF||
|
||||
CAMPAIGN PRESET LISTINGS||
|
||||
CAMPAIGN PRESET NOT DELETED||
|
||||
Show Presets Stats||
|
||||
AGENT DIAL PRESETS NAMES||
|
||||
|
||||
|
||||
AST_VICIDIAL_ingrouplist.php
|
||||
@@ -366,6 +389,9 @@ YOU MUST BE PAUSED TO VIEW YOUR CALL LOG||
|
||||
Close Info Box||
|
||||
No calls on this day||
|
||||
You are in ALT dial mode, you must finish the lead before logging out||
|
||||
Presets Button||
|
||||
SELECT A PRESET||
|
||||
|
||||
|
||||
|
||||
############################################################ MANAGER Manual
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 734 B |
Binary file not shown.
|
After Width: | Height: | Size: 817 B |
Binary file not shown.
|
After Width: | Height: | Size: 816 B |
Binary file not shown.
|
After Width: | Height: | Size: 810 B |
@@ -42,6 +42,7 @@
|
||||
# - $agent_dialed_type - ('MANUAL_OVERRIDE','MANUAL_DIALNOW','MANUAL_PREVIEW',...)
|
||||
# - $nodeletevdac - ('0','1')
|
||||
# - $alertCID - ('0','1')
|
||||
# - $preset_name = ('TESTING PRESET',...)
|
||||
#
|
||||
# CHANGELOG:
|
||||
# 50401-1002 - First build of script, Hangup function only
|
||||
@@ -98,10 +99,11 @@
|
||||
# 100327-0846 - Fix for list_id override answering machine message
|
||||
# 100423-2304 - Added alertCID
|
||||
# 100527-1014 - Added SysCIDdtmfOriginate function
|
||||
# 100813-0833 - Added preset_name variable and logging
|
||||
#
|
||||
|
||||
$version = '2.4-49';
|
||||
$build = '100527-1014';
|
||||
$version = '2.4-50';
|
||||
$build = '100813-0833';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=85;
|
||||
$one_mysql_log=0;
|
||||
@@ -191,6 +193,9 @@ if (isset($_GET["nodeletevdac"])) {$nodeletevdac=$_GET["nodeletevdac"];}
|
||||
elseif (isset($_POST["nodeletevdac"])) {$nodeletevdac=$_POST["nodeletevdac"];}
|
||||
if (isset($_GET["alertCID"])) {$alertCID=$_GET["alertCID"];}
|
||||
elseif (isset($_POST["alertCID"])) {$alertCID=$_POST["alertCID"];}
|
||||
if (isset($_GET["preset_name"])) {$preset_name=$_GET["preset_name"];}
|
||||
elseif (isset($_POST["preset_name"])) {$preset_name=$_POST["preset_name"];}
|
||||
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
@@ -442,10 +447,31 @@ if ($ACTION=="Originate")
|
||||
|
||||
if ($agent_dialed_number > 0)
|
||||
{
|
||||
$stmt = "INSERT INTO user_call_log (user,call_date,call_type,server_ip,phone_number,number_dialed,lead_id,callerid,group_alias_id) values('$user','$NOW_TIME','$agent_dialed_type','$server_ip','$exten','$channel','0','$outbound_cid','$RAWaccount')";
|
||||
if (strlen($lead_id)<1) {$lead_id='0';}
|
||||
$stmt = "INSERT INTO user_call_log (user,call_date,call_type,server_ip,phone_number,number_dialed,lead_id,callerid,group_alias_id,preset_name,campaign_id) values('$user','$NOW_TIME','$agent_dialed_type','$server_ip','$exten','$channel','$lead_id','$outbound_cid','$RAWaccount','$preset_name','$campaign')";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00192',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
|
||||
if (strlen($preset_name) > 0)
|
||||
{
|
||||
$stmt = "SELECT count(*) from vicidial_xfer_stats where campaign_id='$campaign' and preset_name='$preset_name';";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02XXX',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$row=mysql_fetch_row($rslt);
|
||||
if ($row[0] > 0)
|
||||
{
|
||||
$stmt = "UPDATE vicidial_xfer_stats SET xfer_count=(xfer_count+1) where campaign_id='$campaign' and preset_name='$preset_name';";
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt = "INSERT INTO vicidial_xfer_stats SET campaign_id='$campaign',preset_name='$preset_name',xfer_count='1';";
|
||||
}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -754,6 +780,32 @@ if ($ACTION=="RedirectVD")
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02024',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
}
|
||||
|
||||
if (strlen($preset_name) > 0)
|
||||
{
|
||||
$stmt = "INSERT INTO user_call_log (user,call_date,call_type,server_ip,phone_number,number_dialed,lead_id,preset_name,campaign_id) values('$user','$NOW_TIME','BLIND_XFER','$server_ip','$exten','$channel','$lead_id','$preset_name','$campaign')";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
|
||||
$stmt = "SELECT count(*) from vicidial_xfer_stats where campaign_id='$campaign' and preset_name='$preset_name';";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02XXX',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$row=mysql_fetch_row($rslt);
|
||||
if ($row[0] > 0)
|
||||
{
|
||||
$stmt = "UPDATE vicidial_xfer_stats SET xfer_count=(xfer_count+1) where campaign_id='$campaign' and preset_name='$preset_name';";
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt = "INSERT INTO vicidial_xfer_stats SET campaign_id='$campaign',preset_name='$preset_name',xfer_count='1';";
|
||||
}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
}
|
||||
|
||||
$ACTION="Redirect";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3709,7 +3709,9 @@ if ($stage == "end")
|
||||
{
|
||||
if (strlen($hangup_channels[$loop_count])>5)
|
||||
{
|
||||
$stmt="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Hangup','CH12346$StarTtime$loop_count','Channel: $hangup_channels[$loop_count]','','','','','','','','','');";
|
||||
$variable = "Variable: ctuserserverconfleadphone=$loop_count$US$user$US$server_ip$US$conf_exten$US$lead_id$US$phone_number";
|
||||
|
||||
$stmt="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Hangup','CH12346$StarTtime$loop_count','Channel: $hangup_channels[$loop_count]','$variable','','','','','','','','');";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00096',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
|
||||
+220
-39
@@ -305,10 +305,11 @@
|
||||
# 100726-1233 - Added HANGUP, CALLMENU, EXTENSION, IN_GROUP timer actions
|
||||
# 100803-2324 - Cleanup of URLDecode (issue #375)
|
||||
# 100811-0810 - Added webphone_url_override option from user Groups
|
||||
# 100813-0554 - Added Campaign presets
|
||||
#
|
||||
|
||||
$version = '2.4-283';
|
||||
$build = '100811-0810';
|
||||
$version = '2.4-284';
|
||||
$build = '100813-0554';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=66;
|
||||
$one_mysql_log=0;
|
||||
@@ -1250,7 +1251,7 @@ else
|
||||
$HKstatusnames = substr("$HKstatusnames", 0, -1);
|
||||
|
||||
##### grab the campaign settings
|
||||
$stmt="SELECT park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,agent_pause_codes_active,no_hopper_leads_logins,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,xfer_groups,disable_alter_custphone,display_queue_count,manual_dial_filter,agent_clipboard_copy,use_campaign_dnc,three_way_call_cid,dial_method,three_way_dial_prefix,web_form_target,vtiger_screen_login,agent_allow_group_alias,default_group_alias,quick_transfer_button,prepopulate_transfer_preset,view_calls_in_queue,view_calls_in_queue_launch,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,timer_action_destination FROM vicidial_campaigns where campaign_id = '$VD_campaign';";
|
||||
$stmt="SELECT park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,agent_pause_codes_active,no_hopper_leads_logins,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,xfer_groups,disable_alter_custphone,display_queue_count,manual_dial_filter,agent_clipboard_copy,use_campaign_dnc,three_way_call_cid,dial_method,three_way_dial_prefix,web_form_target,vtiger_screen_login,agent_allow_group_alias,default_group_alias,quick_transfer_button,prepopulate_transfer_preset,view_calls_in_queue,view_calls_in_queue_launch,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial FROM vicidial_campaigns where campaign_id = '$VD_campaign';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01013',$VD_login,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -1329,6 +1330,8 @@ else
|
||||
$blind_monitor_message = $row[71];
|
||||
$blind_monitor_filename = $row[72];
|
||||
$timer_action_destination = $row[73];
|
||||
$enable_xfer_presets = $row[74];
|
||||
$hide_xfer_number_to_dial = $row[75];
|
||||
|
||||
if ($manual_dial_override == 'ALLOW_ALL')
|
||||
{$agentcall_manual = 1;}
|
||||
@@ -1393,6 +1396,41 @@ else
|
||||
{$preset_populate = $xferconf_e_number;}
|
||||
}
|
||||
|
||||
$VARpreset_names='';
|
||||
$VARpreset_numbers='';
|
||||
$VARpreset_dtmfs='';
|
||||
$VARpreset_hide_numbers='';
|
||||
if ($enable_xfer_presets == 'ENABLED')
|
||||
{
|
||||
##### grab the presets for this campaign
|
||||
$stmt="SELECT preset_name,preset_number,preset_dtmf,preset_hide_number FROM vicidial_xfer_presets WHERE campaign_id='$VD_campaign' order by preset_name limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01XXX',$VD_login,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$VD_presets = mysql_num_rows($rslt);
|
||||
$j=0;
|
||||
while ($j < $VD_presets)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$preset_names[$j] = $row[0];
|
||||
$preset_numbers[$j] = $row[1];
|
||||
$preset_dtmfs[$j] = $row[2];
|
||||
$preset_hide_numbers[$j] = $row[3];
|
||||
$VARpreset_names = "$VARpreset_names'$preset_names[$j]',";
|
||||
$VARpreset_numbers = "$VARpreset_numbers'$preset_numbers[$j]',";
|
||||
$VARpreset_dtmfs = "$VARpreset_dtmfs'$preset_dtmfs[$j]',";
|
||||
$VARpreset_hide_numbers = "$VARpreset_hide_numbers'$preset_hide_numbers[$j]',";
|
||||
$j++;
|
||||
}
|
||||
$VARpreset_names = substr("$VARpreset_names", 0, -1);
|
||||
$VARpreset_numbers = substr("$VARpreset_numbers", 0, -1);
|
||||
$VARpreset_dtmfs = substr("$VARpreset_dtmfs", 0, -1);
|
||||
$VARpreset_hide_numbers = substr("$VARpreset_hide_numbers", 0, -1);
|
||||
$VD_preset_names_ct = $j;
|
||||
if ($j < 1)
|
||||
{$enable_xfer_presets='DISABLED';}
|
||||
}
|
||||
|
||||
$default_group_alias_cid='';
|
||||
if (strlen($default_group_alias)>1)
|
||||
{
|
||||
@@ -2448,6 +2486,7 @@ $SSwidth = ($MASTERwidth + 176); # 606 - scroll script
|
||||
$SDwidth = ($MASTERwidth + 170); # 600 - scroll script, customer data and calls-in-session
|
||||
$HKwidth = ($MASTERwidth + 20); # 450 - Hotkeys button
|
||||
$HSwidth = ($MASTERwidth + 1); # 431 - Header spacer
|
||||
$PBwidth = ($MASTERwidth + 0); # 430 - Presets list
|
||||
$CLwidth = ($MASTERwidth - 160); # 270 - Calls in queue link
|
||||
|
||||
$WRheight = ($MASTERheight + 160); # 460 - Warning boxes
|
||||
@@ -2639,6 +2678,11 @@ $CCAL_OUT .= "</table>";
|
||||
VARpause_codes = new Array(<?php echo $VARpause_codes ?>);
|
||||
VARpause_code_names = new Array(<?php echo $VARpause_code_names ?>);
|
||||
var VD_pause_codes_ct = '<?php echo $VD_pause_codes_ct ?>';
|
||||
VARpreset_names = new Array(<?php echo $VARpreset_names ?>);
|
||||
VARpreset_numbers = new Array(<?php echo $VARpreset_numbers ?>);
|
||||
VARpreset_dtmfs = new Array(<?php echo $VARpreset_dtmfs ?>);
|
||||
VARpreset_hide_numbers = new Array(<?php echo $VARpreset_hide_numbers ?>);
|
||||
var VD_preset_names_ct = '<?php echo $VD_preset_names_ct ?>';
|
||||
VARstatuses = new Array(<?php echo $VARstatuses ?>);
|
||||
VARstatusnames = new Array(<?php echo $VARstatusnames ?>);
|
||||
var VD_statuses_ct = '<?php echo $VD_statuses_ct ?>';
|
||||
@@ -3001,9 +3045,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var api_transferconf_override='';
|
||||
var api_parkcustomer='';
|
||||
var API_selected_xfergroup='';
|
||||
var API_selected_callmenu=''
|
||||
var API_selected_callmenu='';
|
||||
var custom_fields_enabled='<?php echo $custom_fields_enabled ?>';
|
||||
var form_contents_loaded=0;
|
||||
var enable_xfer_presets='<?php echo $enable_xfer_presets ?>';
|
||||
var hide_xfer_number_to_dial='<?php echo $hide_xfer_number_to_dial ?>';
|
||||
var Presets_HTML='';
|
||||
var DiaLControl_auto_HTML = "<IMG SRC=\"./images/vdc_LB_pause_OFF.gif\" border=0 alt=\" Pause \"><a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready');\"><IMG SRC=\"./images/vdc_LB_resume.gif\" border=0 alt=\"Resume\"></a>";
|
||||
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause');\"><IMG SRC=\"./images/vdc_LB_pause.gif\" border=0 alt=\" Pause \"></a><IMG SRC=\"./images/vdc_LB_resume_OFF.gif\" border=0 alt=\"Resume\">";
|
||||
var DiaLControl_auto_HTML_OFF = "<IMG SRC=\"./images/vdc_LB_pause_OFF.gif\" border=0 alt=\" Pause \"><IMG SRC=\"./images/vdc_LB_resume_OFF.gif\" border=0 alt=\"Resume\">";
|
||||
@@ -3276,6 +3323,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
document.getElementById("ParkCustomerDial").innerHTML ="<IMG SRC=\"./images/vdc_XB_parkcustomerdial_OFF.gif\" border=0 alt=\"Park Customer Dial\" style=\"vertical-align:middle\"></a>";
|
||||
|
||||
var manual_number = document.vicidial_form.xfernumber.value;
|
||||
var manual_number_hidden = document.vicidial_form.xfernumhidden.value;
|
||||
if ( (manual_number.length < 1) && (manual_number_hidden.length > 0) )
|
||||
{manual_number=manual_number_hidden;}
|
||||
var manual_string = manual_number.toString();
|
||||
var dial_conf_exten = session_id;
|
||||
threeway_cid = '';
|
||||
@@ -3319,17 +3369,18 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
else
|
||||
{agent_dialed_type='XFER_OVERRIDE';}
|
||||
}
|
||||
var sending_preset_name = document.vicidial_form.xfername.value;
|
||||
if (taskFromConf == 'YES')
|
||||
{basic_originate_call(manual_string,'NO','YES',dial_conf_exten,'NO',taskFromConf,threeway_cid,sending_group_alias);}
|
||||
{basic_originate_call(manual_string,'NO','YES',dial_conf_exten,'NO',taskFromConf,threeway_cid,sending_group_alias,'',sending_preset_name);}
|
||||
else
|
||||
{basic_originate_call(manual_string,'NO','NO','','','','1',sending_group_alias);}
|
||||
{basic_originate_call(manual_string,'NO','NO','','','','1',sending_group_alias,sending_preset_name);}
|
||||
|
||||
MD_ring_secondS=0;
|
||||
}
|
||||
|
||||
// ################################################################################
|
||||
// Send Originate command to manager to place a phone call
|
||||
function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait,taskconfxfer,taskcid,taskusegroupalias,taskalert)
|
||||
function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait,taskconfxfer,taskcid,taskusegroupalias,taskalert,taskpresetname)
|
||||
{
|
||||
if (taskalert == '1')
|
||||
{
|
||||
@@ -3459,7 +3510,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{var call_cid = campaign_cid;}
|
||||
}
|
||||
|
||||
VMCoriginate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=Originate&format=text&channel=" + originatevalue + "&queryCID=" + queryCID + "&exten=" + call_prefix + "" + dialnum + "&ext_context=" + ext_context + "&ext_priority=1&outbound_cid=" + call_cid + "&usegroupalias=" + usegroupalias + "&account=" + active_group_alias + "&agent_dialed_number=" + agent_dialed_number + "&agent_dialed_type=" + agent_dialed_type + "&" + alertquery;
|
||||
VMCoriginate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=Originate&format=text&channel=" + originatevalue + "&queryCID=" + queryCID + "&exten=" + call_prefix + "" + dialnum + "&ext_context=" + ext_context + "&ext_priority=1&outbound_cid=" + call_cid + "&usegroupalias="+ usegroupalias + "&preset_name=" + taskpresetname + "&campaign=" + campaign + "&account=" + active_group_alias + "&agent_dialed_number=" + agent_dialed_number + "&agent_dialed_type=" + agent_dialed_type + "&lead_id=" + document.vicidial_form.lead_id.value + "&" + alertquery;
|
||||
xmlhttp.open('POST', 'manager_send.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(VMCoriginate_query);
|
||||
@@ -4250,6 +4301,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{document.vicidial_form.xfernumber.value = quick_transfer_button_orig;}
|
||||
var queryCID = "XBvdcW" + epoch_sec + user_abb;
|
||||
var blindxferdialstring = document.vicidial_form.xfernumber.value;
|
||||
var blindxferhiddendialstring = document.vicidial_form.xfernumhidden.value;
|
||||
if ( (blindxferdialstring.length < 1) && (blindxferhiddendialstring.length > 0) )
|
||||
{blindxferdialstring=blindxferhiddendialstring;}
|
||||
var regXFvars = new RegExp("XFER","g");
|
||||
if (blindxferdialstring.match(regXFvars))
|
||||
{
|
||||
@@ -4299,7 +4353,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
}
|
||||
else
|
||||
{
|
||||
xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectVD&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&exten=" + blindxferdialstring + "&ext_context=" + blindxfercontext + "&ext_priority=1&auto_dial_level=" + auto_dial_level + "&campaign=" + campaign + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&lead_id=" + document.vicidial_form.lead_id.value + "&secondS=" + VD_live_call_secondS + "&session_id=" + session_id + "&nodeletevdac=" + no_delete_VDAC;
|
||||
xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectVD&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&exten=" + blindxferdialstring + "&ext_context=" + blindxfercontext + "&ext_priority=1&auto_dial_level=" + auto_dial_level + "&campaign=" + campaign + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&lead_id=" + document.vicidial_form.lead_id.value + "&secondS=" + VD_live_call_secondS + "&session_id=" + session_id + "&nodeletevdac=" + no_delete_VDAC + "&preset_name=" + document.vicidial_form.xfername.value;
|
||||
}
|
||||
}
|
||||
if (taskvar == 'XfeRINTERNAL')
|
||||
@@ -4315,6 +4369,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
CustomerData_update();
|
||||
|
||||
document.vicidial_form.xfername.value='';
|
||||
var XfeRSelecT = document.getElementById("XfeRGrouP");
|
||||
var XfeR_GrouP = XfeRSelecT.value;
|
||||
if (API_selected_xfergroup.length > 1)
|
||||
@@ -5071,7 +5126,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
XD_live_call_secondS = 0;
|
||||
MD_channel_look=0;
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Called 3rd party: " + document.vicidial_form.xfernumber.value + " UID: " + CIDcheck;
|
||||
var called3rdparty = document.vicidial_form.xfernumber.value;
|
||||
if (hide_xfer_number_to_dial=='ENABLED')
|
||||
{called3rdparty=' ';}
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Called 3rd party: " + called3rdparty + " UID: " + CIDcheck;
|
||||
|
||||
document.getElementById("Leave3WayCall").innerHTML ="<a href=\"#\" onclick=\"leave_3way_call('FIRST');return false;\"><IMG SRC=\"./images/vdc_XB_leave3waycall.gif\" border=0 alt=\"LEAVE 3-WAY CALL\" style=\"vertical-align:middle\"></a>";
|
||||
|
||||
@@ -5150,28 +5208,28 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
if (prepopulate_transfer_preset_enabled > 0)
|
||||
{
|
||||
if ( (prepopulate_transfer_preset == 'PRESET_1') || (prepopulate_transfer_preset == 'LOCKED_PRESET_1') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_a_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_a_NuMber; document.vicidial_form.xfername.value='D1';}
|
||||
if ( (prepopulate_transfer_preset == 'PRESET_2') || (prepopulate_transfer_preset == 'LOCKED_PRESET_2') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_b_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_b_NuMber; document.vicidial_form.xfername.value='D2';}
|
||||
if ( (prepopulate_transfer_preset == 'PRESET_3') || (prepopulate_transfer_preset == 'LOCKED_PRESET_3') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_c_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_c_NuMber; document.vicidial_form.xfername.value='D3';}
|
||||
if ( (prepopulate_transfer_preset == 'PRESET_4') || (prepopulate_transfer_preset == 'LOCKED_PRESET_4') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_d_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_d_NuMber; document.vicidial_form.xfername.value='D4';}
|
||||
if ( (prepopulate_transfer_preset == 'PRESET_5') || (prepopulate_transfer_preset == 'LOCKED_PRESET_5') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_e_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_e_NuMber; document.vicidial_form.xfername.value='D5';}
|
||||
}
|
||||
if ( (quick_transfer_button == 'PRESET_1') || (quick_transfer_button == 'PRESET_2') || (quick_transfer_button == 'PRESET_3') || (quick_transfer_button == 'PRESET_4') || (quick_transfer_button == 'PRESET_5') || (quick_transfer_button == 'LOCKED_PRESET_1') || (quick_transfer_button == 'LOCKED_PRESET_2') || (quick_transfer_button == 'LOCKED_PRESET_3') || (quick_transfer_button == 'LOCKED_PRESET_4') || (quick_transfer_button == 'LOCKED_PRESET_5') )
|
||||
{
|
||||
if ( (quick_transfer_button == 'PRESET_1') || (quick_transfer_button == 'LOCKED_PRESET_1') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_a_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_a_NuMber; document.vicidial_form.xfername.value='D1';}
|
||||
if ( (quick_transfer_button == 'PRESET_2') || (quick_transfer_button == 'LOCKED_PRESET_2') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_b_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_b_NuMber; document.vicidial_form.xfername.value='D2';}
|
||||
if ( (quick_transfer_button == 'PRESET_3') || (quick_transfer_button == 'LOCKED_PRESET_3') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_c_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_c_NuMber; document.vicidial_form.xfername.value='D3';}
|
||||
if ( (quick_transfer_button == 'PRESET_4') || (quick_transfer_button == 'LOCKED_PRESET_4') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_d_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_d_NuMber; document.vicidial_form.xfername.value='D4';}
|
||||
if ( (quick_transfer_button == 'PRESET_5') || (quick_transfer_button == 'LOCKED_PRESET_5') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_e_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_e_NuMber; document.vicidial_form.xfername.value='D5';}
|
||||
quick_transfer_button_orig='';
|
||||
if (quick_transfer_button_locked > 0)
|
||||
{quick_transfer_button_orig = document.vicidial_form.xfernumber.value;}
|
||||
@@ -6552,7 +6610,6 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
agent_dialed_type='';
|
||||
CalL_ScripT_id='';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -7096,28 +7153,28 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
if (prepopulate_transfer_preset_enabled > 0)
|
||||
{
|
||||
if ( (prepopulate_transfer_preset == 'PRESET_1') || (prepopulate_transfer_preset == 'LOCKED_PRESET_1') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_a_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_a_NuMber; document.vicidial_form.xfername.value='D1';}
|
||||
if ( (prepopulate_transfer_preset == 'PRESET_2') || (prepopulate_transfer_preset == 'LOCKED_PRESET_2') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_b_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_b_NuMber; document.vicidial_form.xfername.value='D2';}
|
||||
if ( (prepopulate_transfer_preset == 'PRESET_3') || (prepopulate_transfer_preset == 'LOCKED_PRESET_3') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_c_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_c_NuMber; document.vicidial_form.xfername.value='D3';}
|
||||
if ( (prepopulate_transfer_preset == 'PRESET_4') || (prepopulate_transfer_preset == 'LOCKED_PRESET_4') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_d_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_d_NuMber; document.vicidial_form.xfername.value='D4';}
|
||||
if ( (prepopulate_transfer_preset == 'PRESET_5') || (prepopulate_transfer_preset == 'LOCKED_PRESET_5') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_e_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_e_NuMber; document.vicidial_form.xfername.value='D5';}
|
||||
}
|
||||
if ( (quick_transfer_button == 'PRESET_1') || (quick_transfer_button == 'PRESET_2') || (quick_transfer_button == 'PRESET_3') || (quick_transfer_button == 'PRESET_4') || (quick_transfer_button == 'PRESET_5') || (quick_transfer_button == 'LOCKED_PRESET_1') || (quick_transfer_button == 'LOCKED_PRESET_2') || (quick_transfer_button == 'LOCKED_PRESET_3') || (quick_transfer_button == 'LOCKED_PRESET_4') || (quick_transfer_button == 'LOCKED_PRESET_5') )
|
||||
{
|
||||
if ( (quick_transfer_button == 'PRESET_1') || (quick_transfer_button == 'LOCKED_PRESET_1') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_a_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_a_NuMber; document.vicidial_form.xfername.value='D1';}
|
||||
if ( (quick_transfer_button == 'PRESET_2') || (quick_transfer_button == 'LOCKED_PRESET_2') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_b_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_b_NuMber; document.vicidial_form.xfername.value='D2';}
|
||||
if ( (quick_transfer_button == 'PRESET_3') || (quick_transfer_button == 'LOCKED_PRESET_3') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_c_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_c_NuMber; document.vicidial_form.xfername.value='D3';}
|
||||
if ( (quick_transfer_button == 'PRESET_4') || (quick_transfer_button == 'LOCKED_PRESET_4') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_d_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_d_NuMber; document.vicidial_form.xfername.value='D4';}
|
||||
if ( (quick_transfer_button == 'PRESET_5') || (quick_transfer_button == 'LOCKED_PRESET_5') )
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_e_NuMber;}
|
||||
{document.vicidial_form.xfernumber.value = CalL_XC_e_NuMber; document.vicidial_form.xfername.value='D5';}
|
||||
if (quick_transfer_button_locked > 0)
|
||||
{quick_transfer_button_orig = document.vicidial_form.xfernumber.value;}
|
||||
|
||||
@@ -8386,6 +8443,86 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ################################################################################
|
||||
// Generate the Presets Chooser span content
|
||||
function generate_presets_pulldown()
|
||||
{
|
||||
showDiv('PresetsSelectBox');
|
||||
Presets_HTML = '';
|
||||
document.vicidial_form.PresetSelection.value = '';
|
||||
Presets_HTML = "<table cellpadding=5 cellspacing=5 width=400><tr><td bgcolor=\"#CCCCFF\" height=<?php echo $HTheight ?> width=400 valign=bottom><font class=\"log_text\">";
|
||||
var loop_ct = 0;
|
||||
while (loop_ct < VD_preset_names_ct)
|
||||
{
|
||||
Presets_HTML = Presets_HTML + "<font size=3 style=\"BACKGROUND-COLOR: #FFFFFF\"><b><a href=\"#\" onclick=\"PresetSelect_submit('" + VARpreset_names[loop_ct] + "','" + VARpreset_numbers[loop_ct] + "','" + VARpreset_dtmfs[loop_ct] + "','" + VARpreset_hide_numbers[loop_ct] + "');return false;\">" + VARpreset_names[loop_ct];
|
||||
if (VARpreset_hide_numbers[loop_ct]=='N')
|
||||
{Presets_HTML = Presets_HTML + " - " + VARpreset_numbers[loop_ct];}
|
||||
Presets_HTML = Presets_HTML + "</a></b></font><BR>";
|
||||
loop_ct++;
|
||||
}
|
||||
|
||||
if ( (CalL_XC_a_NuMber.length > 0) || (CalL_XC_a_Dtmf.length > 0) )
|
||||
{
|
||||
Presets_HTML = Presets_HTML + "<font size=3 style=\"BACKGROUND-COLOR: #FFFFFF\"><b><a href=\"#\" onclick=\"PresetSelect_submit('D1','" + CalL_XC_a_NuMber + "','" + CalL_XC_a_Dtmf + "');return false;\">D1";
|
||||
if (hide_xfer_number_to_dial=='DISABLED')
|
||||
{Presets_HTML = Presets_HTML + " - " + CalL_XC_a_NuMber;}
|
||||
Presets_HTML = Presets_HTML + "</a></b></font><BR>";
|
||||
}
|
||||
if ( (CalL_XC_b_NuMber.length > 0) || (CalL_XC_b_Dtmf.length > 0) )
|
||||
{
|
||||
Presets_HTML = Presets_HTML + "<font size=3 style=\"BACKGROUND-COLOR: #FFFFFF\"><b><a href=\"#\" onclick=\"PresetSelect_submit('D2','" + CalL_XC_b_NuMber + "','" + CalL_XC_b_Dtmf + "');return false;\">D2";
|
||||
if (hide_xfer_number_to_dial=='DISABLED')
|
||||
{Presets_HTML = Presets_HTML + " - " + CalL_XC_b_NuMber;}
|
||||
Presets_HTML = Presets_HTML + "</a></b></font><BR>";
|
||||
}
|
||||
if (CalL_XC_c_NuMber.length > 0)
|
||||
{
|
||||
Presets_HTML = Presets_HTML + "<font size=3 style=\"BACKGROUND-COLOR: #FFFFFF\"><b><a href=\"#\" onclick=\"PresetSelect_submit('D3','" + CalL_XC_c_NuMber + "','');return false;\">D3";
|
||||
if (hide_xfer_number_to_dial=='DISABLED')
|
||||
{Presets_HTML = Presets_HTML + " - " + CalL_XC_c_NuMber;}
|
||||
Presets_HTML = Presets_HTML + "</a></b></font><BR>";
|
||||
}
|
||||
if (CalL_XC_d_NuMber.length > 0)
|
||||
{
|
||||
Presets_HTML = Presets_HTML + "<font size=3 style=\"BACKGROUND-COLOR: #FFFFFF\"><b><a href=\"#\" onclick=\"PresetSelect_submit('D4','" + CalL_XC_d_NuMber + "','');return false;\">D4";
|
||||
if (hide_xfer_number_to_dial=='DISABLED')
|
||||
{Presets_HTML = Presets_HTML + " - " + CalL_XC_d_NuMber;}
|
||||
Presets_HTML = Presets_HTML + "</a></b></font><BR>";
|
||||
}
|
||||
if (CalL_XC_e_NuMber.length > 0)
|
||||
{
|
||||
Presets_HTML = Presets_HTML + "<font size=3 style=\"BACKGROUND-COLOR: #FFFFFF\"><b><a href=\"#\" onclick=\"PresetSelect_submit('D5','" + CalL_XC_e_NuMber + "','');return false;\">D5";
|
||||
if (hide_xfer_number_to_dial=='DISABLED')
|
||||
{Presets_HTML = Presets_HTML + " - " + CalL_XC_e_NuMber;}
|
||||
Presets_HTML = Presets_HTML + "</a></b></font><BR>";
|
||||
}
|
||||
|
||||
Presets_HTML = Presets_HTML + "</td></tr></table><BR><BR><table cellpadding=0 cellspacing=0><tr><td width=330 align=left><font size=3 style=\"BACKGROUND-COLOR: #CCCCFF\"><b><a href=\"#\" onclick=\"hideDiv('PresetsSelectBox');return false;\">Close [X]</a></b></font></td></tr></table>";
|
||||
document.getElementById("PresetsSelectBoxContent").innerHTML = Presets_HTML;
|
||||
}
|
||||
|
||||
|
||||
// ################################################################################
|
||||
// Submit chosen Preset
|
||||
function PresetSelect_submit(taskpresetname,taskpresetnumber,taskpresetdtmf,taskhidenumber)
|
||||
{
|
||||
hideDiv('PresetsSelectBox');
|
||||
document.vicidial_form.conf_dtmf.value = taskpresetdtmf;
|
||||
document.vicidial_form.xfername.value = taskpresetname;
|
||||
if ( (taskhidenumber=='Y') && (hide_xfer_number_to_dial=='DISABLED') )
|
||||
{
|
||||
document.vicidial_form.xfernumhidden.value = taskpresetnumber;
|
||||
document.vicidial_form.xfernumber.value='';
|
||||
}
|
||||
else
|
||||
{
|
||||
document.vicidial_form.xfernumhidden.value = '';
|
||||
document.vicidial_form.xfernumber.value = taskpresetnumber;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ################################################################################
|
||||
// Generate the Group Alias Chooser panel
|
||||
function GroupAliasSelectContent_create(task3way)
|
||||
@@ -8591,6 +8728,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
timer_action_seconds='';
|
||||
timer_action_mesage='';
|
||||
timer_action_destination='';
|
||||
document.vicidial_form.xfername.value='';
|
||||
document.vicidial_form.xfernumhidden.value='';
|
||||
|
||||
if (manual_dial_in_progress==1)
|
||||
{
|
||||
@@ -8735,23 +8874,28 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
document.vicidial_form.conf_dtmf.value = CalL_XC_a_Dtmf;
|
||||
document.vicidial_form.xfernumber.value = CalL_XC_a_NuMber;
|
||||
document.vicidial_form.xfername.value = 'D1';
|
||||
}
|
||||
function DtMf_PreSet_b()
|
||||
{
|
||||
document.vicidial_form.conf_dtmf.value = CalL_XC_b_Dtmf;
|
||||
document.vicidial_form.xfernumber.value = CalL_XC_b_NuMber;
|
||||
document.vicidial_form.xfername.value = 'D2';
|
||||
}
|
||||
function DtMf_PreSet_c()
|
||||
{
|
||||
document.vicidial_form.xfernumber.value = CalL_XC_c_NuMber;
|
||||
document.vicidial_form.xfername.value = 'D3';
|
||||
}
|
||||
function DtMf_PreSet_d()
|
||||
{
|
||||
document.vicidial_form.xfernumber.value = CalL_XC_d_NuMber;
|
||||
document.vicidial_form.xfername.value = 'D4';
|
||||
}
|
||||
function DtMf_PreSet_e()
|
||||
{
|
||||
document.vicidial_form.xfernumber.value = CalL_XC_e_NuMber;
|
||||
document.vicidial_form.xfername.value = 'D5';
|
||||
}
|
||||
|
||||
function DtMf_PreSet_a_DiaL()
|
||||
@@ -10122,6 +10266,7 @@ function phone_number_format(formatphone) {
|
||||
AgentsViewOpen('AgentXferViewSelect','open');
|
||||
refresh_agents_view('AgentXferViewSelect',agent_status_view)
|
||||
xfer_select_agents_active=1;
|
||||
document.vicidial_form.xfername.value='';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10603,6 +10748,7 @@ else
|
||||
hideDiv('CallBacKsLisTBox');
|
||||
hideDiv('NeWManuaLDiaLBox');
|
||||
hideDiv('PauseCodeSelectBox');
|
||||
hideDiv('PresetsSelectBox');
|
||||
hideDiv('GroupAliasSelectBox');
|
||||
hideDiv('AgentViewSpan');
|
||||
hideDiv('AgentXferViewSpan');
|
||||
@@ -11840,9 +11986,24 @@ if ($agent_display_dialable_leads > 0)
|
||||
<TD ALIGN=LEFT COLSPAN=2>
|
||||
<IMG SRC="./images/vdc_XB_number.gif" border=0 alt="Number to call" style="vertical-align:middle">
|
||||
|
||||
<input type=text size=20 name=xfernumber maxlength=25 class="cust_form" value="<?php echo $preset_populate ?>">
|
||||
<?php
|
||||
if ($hide_xfer_number_to_dial=='ENABLED')
|
||||
{
|
||||
?>
|
||||
<input type=hidden name=xfernumber value="<?php echo $preset_populate ?>">
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<input type=text size=20 name=xfernumber maxlength=25 class="cust_form" value="<?php echo $preset_populate ?>">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<span id=agentdirectlink><font class="body_small_bold"><a href="#" onclick="XferAgentSelectLaunch();return false;">AGENTS</a></font></span>
|
||||
<input type=hidden name=xferuniqueid>
|
||||
<input type=hidden name=xfername>
|
||||
<input type=hidden name=xfernumhidden>
|
||||
</TD>
|
||||
<TD ALIGN=LEFT>
|
||||
<span id=dialoverride_checkbox><input type=checkbox name=xferoverride size=1 value="0"><font class="body_tiny"> DIAL OVERRIDE</font></span>
|
||||
@@ -11860,13 +12021,26 @@ if ($agent_display_dialable_leads > 0)
|
||||
|
||||
<span STYLE="background-color: <?php echo $MAIN_COLOR ?>" id="ParkCustomerDial"><a href="#" onclick="xfer_park_dial();return false;"><IMG SRC="./images/vdc_XB_parkcustomerdial.gif" border=0 alt="Park Customer Dial" style="vertical-align:middle"></a></span>
|
||||
|
||||
<font class="body_tiny">
|
||||
<a href="#" onclick="DtMf_PreSet_a();return false;">D1</a>
|
||||
<a href="#" onclick="DtMf_PreSet_b();return false;">D2</a>
|
||||
<a href="#" onclick="DtMf_PreSet_c();return false;">D3</a>
|
||||
<a href="#" onclick="DtMf_PreSet_d();return false;">D4</a>
|
||||
<a href="#" onclick="DtMf_PreSet_e();return false;">D5</a>
|
||||
</font>
|
||||
<?php
|
||||
if ($enable_xfer_presets=='ENABLED')
|
||||
{
|
||||
?>
|
||||
<span STYLE="background-color: <?php echo $MAIN_COLOR ?>" id="PresetPullDown"><a href="#" onclick="generate_presets_pulldown();return false;"><IMG SRC="./images/vdc_XB_presetsbutton.gif" border=0 alt="Presets Button" style="vertical-align:middle"></a></span>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<font class="body_tiny">
|
||||
<a href="#" onclick="DtMf_PreSet_a();return false;">D1</a>
|
||||
<a href="#" onclick="DtMf_PreSet_b();return false;">D2</a>
|
||||
<a href="#" onclick="DtMf_PreSet_c();return false;">D3</a>
|
||||
<a href="#" onclick="DtMf_PreSet_d();return false;">D4</a>
|
||||
<a href="#" onclick="DtMf_PreSet_e();return false;">D5</a>
|
||||
</font>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<span STYLE="background-color: <?php echo $MAIN_COLOR ?>" id="DialBlindVMail"><IMG SRC="./images/vdc_XB_ammessage_OFF.gif" border=0 alt="Blind Transfer VMail Message" style="vertical-align:middle"></span>
|
||||
</TD>
|
||||
@@ -12187,6 +12361,13 @@ Available Agents Transfer: <span id="AgentXferViewSelect"></span></CENTER></font
|
||||
</TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:<?php echo $PBwidth ?>px;top:40px;z-index:<?php $zi++; echo $zi ?>;" id="PresetsSelectBox">
|
||||
<TABLE border=0 bgcolor="#9999FF" width=400 height=<?php echo $HTheight ?>><TR><TD align=center VALIGN=top> SELECT A PRESET :<BR>
|
||||
<span id="PresetsSelectBoxContent"> Presets Selection </span>
|
||||
<input type=hidden name=PresetSelection>
|
||||
</TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:<?php $zi++; echo $zi ?>;" id="GroupAliasSelectBox">
|
||||
<TABLE border=1 bgcolor="#CCFFCC" width=<?php echo $CAwidth ?> height=<?php echo $WRheight ?>><TR><TD align=center VALIGN=top> SELECT A GROUP ALIAS :<BR>
|
||||
<span id="GroupAliasSelectContent"> Group Alias Selection </span>
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
# 100216-0042 - Added popup date selector
|
||||
# 100712-1324 - Added system setting slave server option
|
||||
# 100802-2347 - Added User Group Allowed Reports option validation and allowed campaigns restrictions
|
||||
# 100814-2307 - Added display of preset dials if presets are enabled in the campaign
|
||||
#
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
@@ -1032,7 +1033,7 @@ else
|
||||
if ( ($carrier_logging_active > 0) and ($carrier_stats == 'YES') )
|
||||
{
|
||||
##############################
|
||||
######### STATUS CATEGORY STATS
|
||||
######### CARRIER STATS
|
||||
|
||||
$OUToutput .= "\n";
|
||||
$OUToutput .= "---------- CARRIER CALL STATUSES\n";
|
||||
@@ -1067,6 +1068,55 @@ else
|
||||
}
|
||||
|
||||
|
||||
## find if any selected campaigns have presets enabled
|
||||
$presets_enabled=0;
|
||||
$stmt="select count(*) from vicidial_campaigns where enable_xfer_presets='ENABLED' $group_SQLand;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {$OUToutput .= "$stmt\n";}
|
||||
$presets_enabled_count = mysql_num_rows($rslt);
|
||||
if ($presets_enabled_count > 0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$presets_enabled = $row[0];
|
||||
}
|
||||
|
||||
if ($presets_enabled > 0)
|
||||
{
|
||||
##############################
|
||||
######### PRESET DIAL STATS
|
||||
|
||||
$OUToutput .= "\n";
|
||||
$OUToutput .= "---------- AGENT PRESET DIALS\n";
|
||||
$OUToutput .= "+------------------------------------------+------------+\n";
|
||||
$OUToutput .= "| PRESET NAME | CALLS |\n";
|
||||
$OUToutput .= "+------------------------------------------+------------+\n";
|
||||
|
||||
## get counts and time totals for all statuses in this campaign
|
||||
$stmt="select preset_name,count(*) from user_call_log where call_date > \"$query_date_BEGIN\" and call_date < \"$query_date_END\" and preset_name!='' and preset_name is not NULL $group_SQLand group by preset_name order by preset_name;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {$OUToutput .= "$stmt\n";}
|
||||
$carrierstatuses_to_print = mysql_num_rows($rslt);
|
||||
$i=0;
|
||||
while ($i < $carrierstatuses_to_print)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$TOTPREcalls = ($TOTPREcalls + $row[1]);
|
||||
$PREstatus = sprintf("%-40s", $row[0]); while(strlen($PREstatus)>40) {$PREstatus = substr("$PREstatus", 0, -1);}
|
||||
$PREcount = sprintf("%10s", $row[1]); while(strlen($PREcount)>10) {$PREcount = substr("$PREcount", 0, -1);}
|
||||
|
||||
$OUToutput .= "| $PREstatus | $PREcount |\n";
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
$TOTPREcalls = sprintf("%10s", $TOTPREcalls); while(strlen($TOTPREcalls)>10) {$TOTPREcalls = substr("$TOTPREcalls", 0, -1);}
|
||||
|
||||
$OUToutput .= "+------------------------------------------+------------+\n";
|
||||
$OUToutput .= "| TOTAL | $TOTPREcalls |\n";
|
||||
$OUToutput .= "+------------------------------------------+------------+\n";
|
||||
}
|
||||
|
||||
|
||||
##############################
|
||||
######### STATUS CATEGORY STATS
|
||||
|
||||
|
||||
@@ -65,10 +65,11 @@
|
||||
# 100709-1054 - Added system setting slave server option
|
||||
# 100802-2347 - Added User Group Allowed Reports option validation and allowed campaigns restrictions
|
||||
# 100805-0704 - Fixed minor bug in campaigns restrictions
|
||||
# 100815-0002 - Added optional display of preset dials if presets are enabled in the campaign
|
||||
#
|
||||
|
||||
$version = '2.4-56';
|
||||
$build = '100805-0704';
|
||||
$version = '2.4-57';
|
||||
$build = '100815-0002';
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -130,6 +131,8 @@ if (isset($_GET["monitor_phone"])) {$monitor_phone=$_GET["monitor_phone"];}
|
||||
elseif (isset($_POST["monitor_phone"])) {$monitor_phone=$_POST["monitor_phone"];}
|
||||
if (isset($_GET["CARRIERstats"])) {$CARRIERstats=$_GET["CARRIERstats"];}
|
||||
elseif (isset($_POST["CARRIERstats"])) {$CARRIERstats=$_POST["CARRIERstats"];}
|
||||
if (isset($_GET["PRESETstats"])) {$PRESETstats=$_GET["PRESETstats"];}
|
||||
elseif (isset($_POST["PRESETstats"])) {$PRESETstats=$_POST["PRESETstats"];}
|
||||
|
||||
$report_name = 'Real-Time Main Report';
|
||||
$db_source = 'M';
|
||||
@@ -490,6 +493,29 @@ $select_list .= "<option value=\"1\"";
|
||||
$select_list .= ">YES</option>";
|
||||
$select_list .= "</SELECT></TD></TR>";
|
||||
|
||||
## find if any selected campaigns have presets enabled
|
||||
$presets_enabled=0;
|
||||
$stmt="select count(*) from vicidial_campaigns where enable_xfer_presets='ENABLED' $group_SQLand;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {$OUToutput .= "$stmt\n";}
|
||||
$presets_enabled_count = mysql_num_rows($rslt);
|
||||
if ($presets_enabled_count > 0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$presets_enabled = $row[0];
|
||||
}
|
||||
if ($presets_enabled > 0)
|
||||
{
|
||||
$select_list .= "<TR><TD align=right>";
|
||||
$select_list .= "Show Presets Stats: </TD><TD align=left><SELECT SIZE=1 NAME=PRESETstats>";
|
||||
$select_list .= "<option value=\"0\"";
|
||||
if ($PRESETstats < 1) {$select_list .= " selected";}
|
||||
$select_list .= ">NO</option>";
|
||||
$select_list .= "<option value=\"1\"";
|
||||
if ($PRESETstats=='1') {$select_list .= " selected";}
|
||||
$select_list .= ">YES</option>";
|
||||
$select_list .= "</SELECT></TD></TR>";
|
||||
}
|
||||
|
||||
$select_list .= "</TABLE><BR>";
|
||||
$select_list .= "<INPUT type=submit NAME=SUBMIT VALUE=SUBMIT><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2> ";
|
||||
@@ -793,7 +819,7 @@ $rslt=mysql_query($stmt, $link);
|
||||
$campaign_allow_inbound = $row[0];
|
||||
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo"<META HTTP-EQUIV=Refresh CONTENT=\"$RR; URL=$PHP_SELF?RR=$RR&DB=$DB$groupQS&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\">\n";
|
||||
echo"<META HTTP-EQUIV=Refresh CONTENT=\"$RR; URL=$PHP_SELF?RR=$RR&DB=$DB$groupQS&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\">\n";
|
||||
echo "<TITLE>$report_name: $group</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
$short_header=1;
|
||||
@@ -821,6 +847,7 @@ echo "<INPUT TYPE=HIDDEN NAME=CUSTPHONEdisplay VALUE=\"$CUSTPHONEdisplay\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=DROPINGROUPstats VALUE=\"$DROPINGROUPstats\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=ALLINGROUPstats VALUE=\"$ALLINGROUPstats\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=CARRIERstats VALUE=\"$CARRIERstats\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=PRESETstats VALUE=\"$PRESETstats\">\n";
|
||||
echo "Real-Time Report \n";
|
||||
echo "<span style=\"position:absolute;left:160px;top:27px;z-index:19;\" id=campaign_select_list>\n";
|
||||
echo "<TABLE WIDTH=250 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#D9E6FE\"><TR><TD ALIGN=CENTER>\n";
|
||||
@@ -830,9 +857,9 @@ echo "</span>\n";
|
||||
echo "<span style=\"position:absolute;left:10px;top:120px;z-index:18;\" id=agent_ingroup_display>\n";
|
||||
echo " ";
|
||||
echo "</span>\n";
|
||||
echo "<a href=\"$PHP_SELF?RR=4000$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\">STOP</a> | ";
|
||||
echo "<a href=\"$PHP_SELF?RR=40$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\">SLOW</a> | ";
|
||||
echo "<a href=\"$PHP_SELF?RR=4$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\">GO</a>";
|
||||
echo "<a href=\"$PHP_SELF?RR=4000$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\">STOP</a> | ";
|
||||
echo "<a href=\"$PHP_SELF?RR=40$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\">SLOW</a> | ";
|
||||
echo "<a href=\"$PHP_SELF?RR=4$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\">GO</a>";
|
||||
if (eregi('ALL-ACTIVE',$group_string))
|
||||
{
|
||||
echo " <a href=\"./admin.php?ADD=10\">MODIFY</a> | \n";
|
||||
@@ -1206,6 +1233,42 @@ if ($CARRIERstats > 0)
|
||||
$CARRIERstatsHTML .= "</TD></TR>";
|
||||
}
|
||||
|
||||
|
||||
##### PRESET STATS TOTALS ###
|
||||
$PRESETstatsHTML='';
|
||||
if ($PRESETstats > 0)
|
||||
{
|
||||
$PRESETstatsHTML .= "<TR BGCOLOR=white><TD ALIGN=left COLSPAN=8>";
|
||||
$PRESETstatsHTML .= "<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0 BGCOLOR=white>";
|
||||
$PRESETstatsHTML .= "<TR BGCOLOR=\"#E6E6E6\">";
|
||||
$PRESETstatsHTML .= "<TD ALIGN=LEFT><font size=2><B> AGENT DIAL PRESETS: </B></TD>";
|
||||
$PRESETstatsHTML .= "<TD ALIGN=LEFT><font size=2><B> PRESET NAMES </B></TD>";
|
||||
$PRESETstatsHTML .= "<TD ALIGN=LEFT><font size=2><B> CALLS </B></TD>";
|
||||
$PRESETstatsHTML .= "</TR>";
|
||||
$stmtB="select preset_name,xfer_count from vicidial_xfer_stats where preset_name!='' and preset_name is not NULL $group_SQLand order by preset_name;";
|
||||
if ($DB > 0) {echo "\n|$stmtB|\n";}
|
||||
$rslt=mysql_query($stmtB, $link);
|
||||
$pre_to_print = mysql_num_rows($rslt);
|
||||
$ctp=0;
|
||||
while ($pre_to_print > $ctp)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$PRESETstatsHTML .= "<TR>";
|
||||
$PRESETstatsHTML .= "<TD><font size=2> </TD>";
|
||||
$PRESETstatsHTML .= "<TD ALIGN=LEFT BGCOLOR=\"#E6E6E6\"><font size=2><B> $row[0] </B></TD>";
|
||||
$PRESETstatsHTML .= "<TD ALIGN=RIGHT BGCOLOR=\"#E6E6E6\"><font size=2> $row[1] </TD>";
|
||||
$PRESETstatsHTML .= "</TR>";
|
||||
$ctp++;
|
||||
}
|
||||
if ($ctp < 1)
|
||||
{
|
||||
$PRESETstatsHTML .= "<TR><TD BGCOLOR=white colspan=2><font size=2>no log entries</TD></TR>";
|
||||
}
|
||||
$PRESETstatsHTML .= "</TABLE>";
|
||||
$PRESETstatsHTML .= "</TD></TR>";
|
||||
}
|
||||
|
||||
|
||||
# http://server/vicidial/AST_timeonVDADall.php?&groups[]=ALL-ACTIVE&RR=4000&DB=0&adastats=&SIPmonitorLINK=&IAXmonitorLINK=&usergroup=&UGdisplay=1&UidORname=1&orderby=timeup&SERVdisplay=0&CALLSdisplay=1&PHONEdisplay=0&CUSTPHONEdisplay=0&with_inbound=Y&monitor_active=&monitor_phone=350a&ALLINGROUPstats=1&DROPINGROUPstats=0&NOLEADSalert=&CARRIERstats=1
|
||||
|
||||
##### INBOUND ONLY ###
|
||||
@@ -1518,6 +1581,7 @@ else
|
||||
|
||||
echo "$DROPINGROUPstatsHTML\n";
|
||||
echo "$CARRIERstatsHTML\n";
|
||||
echo "$PRESETstatsHTML\n";
|
||||
}
|
||||
|
||||
echo "<TR>";
|
||||
@@ -1538,60 +1602,60 @@ echo "$ingroup_detail";
|
||||
|
||||
if ($adastats<2)
|
||||
{
|
||||
echo "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=2&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\"><font size=1>+ VIEW MORE</font></a>";
|
||||
echo "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=2&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\"><font size=1>+ VIEW MORE</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=1&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\"><font size=1>+ VIEW LESS</font></a>";
|
||||
echo "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=1&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\"><font size=1>+ VIEW LESS</font></a>";
|
||||
}
|
||||
if ($UGdisplay>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=0&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\"><font size=1>HIDE USER GROUP</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=0&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\"><font size=1>HIDE USER GROUP</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=1&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\"><font size=1>VIEW USER GROUP</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=1&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\"><font size=1>VIEW USER GROUP</font></a>";
|
||||
}
|
||||
if ($SERVdisplay>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=0&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\"><font size=1>HIDE SERVER INFO</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=0&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\"><font size=1>HIDE SERVER INFO</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=1&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\"><font size=1>SHOW SERVER INFO</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=1&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\"><font size=1>SHOW SERVER INFO</font></a>";
|
||||
}
|
||||
if ($CALLSdisplay>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=0&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\"><font size=1>HIDE WAITING CALLS</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=0&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\"><font size=1>HIDE WAITING CALLS</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=1&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\"><font size=1>SHOW WAITING CALLS</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=1&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\"><font size=1>SHOW WAITING CALLS</font></a>";
|
||||
}
|
||||
|
||||
if ($ALLINGROUPstats>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=0&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\"><font size=1>HIDE IN-GROUP STATS</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=0&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\"><font size=1>HIDE IN-GROUP STATS</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=1&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\"><font size=1>SHOW IN-GROUP STATS</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=1&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\"><font size=1>SHOW IN-GROUP STATS</font></a>";
|
||||
}
|
||||
if ($PHONEdisplay>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=0&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\"><font size=1>HIDE PHONES</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=0&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\"><font size=1>HIDE PHONES</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=1&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\"><font size=1>SHOW PHONES</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=1&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\"><font size=1>SHOW PHONES</font></a>";
|
||||
}
|
||||
if ($CUSTPHONEdisplay>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=0&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\"><font size=1>HIDE CUSTPHONES</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=0&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\"><font size=1>HIDE CUSTPHONES</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=1&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\"><font size=1>SHOW CUSTPHONES</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=1&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\"><font size=1>SHOW CUSTPHONES</font></a>";
|
||||
}
|
||||
echo "</TD>";
|
||||
echo "</TR>";
|
||||
@@ -1849,25 +1913,25 @@ $HTbegin = "|";
|
||||
$HDstation = "----------------+";
|
||||
$HTstation = " STATION |";
|
||||
$HDphone = "-------------+";
|
||||
$HTphone = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$phoneord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\">PHONE</a> |";
|
||||
$HTphone = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$phoneord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\">PHONE</a> |";
|
||||
$HDuser = "------------------------+";
|
||||
|
||||
|
||||
$HTuser = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$userord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\">USER</a> ";
|
||||
$HTuser = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$userord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\">USER</a> ";
|
||||
if ($UidORname>0)
|
||||
{
|
||||
$HTuser .= "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=0&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\">SHOW ID</a> ";
|
||||
$HTuser .= "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=0&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\">SHOW ID</a> ";
|
||||
}
|
||||
else
|
||||
{
|
||||
$HTuser .= "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=1&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\">SHOW NAME</a>";
|
||||
$HTuser .= "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=1&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\">SHOW NAME</a>";
|
||||
}
|
||||
|
||||
$HTuser .= " INFO |";
|
||||
|
||||
|
||||
$HDusergroup = "--------------+";
|
||||
$HTusergroup = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$groupord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\">USER GROUP</a> |";
|
||||
$HTusergroup = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$groupord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\">USER GROUP</a> |";
|
||||
$HDsessionid = "------------------+";
|
||||
$HTsessionid = " SESSIONID |";
|
||||
$HDbarge = "-------+";
|
||||
@@ -1881,9 +1945,9 @@ $HTserver_ip = " SERVER IP |";
|
||||
$HDcall_server_ip = "-----------------+";
|
||||
$HTcall_server_ip = " CALL SERVER IP |";
|
||||
$HDtime = "---------+";
|
||||
$HTtime = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$timeord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\">MM:SS</a> |";
|
||||
$HTtime = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$timeord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\">MM:SS</a> |";
|
||||
$HDcampaign = "------------+";
|
||||
$HTcampaign = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$campaignord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats\">CAMPAIGN</a> |";
|
||||
$HTcampaign = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$campaignord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats\">CAMPAIGN</a> |";
|
||||
$HDcalls = "-------+";
|
||||
$HTcalls = " CALLS |";
|
||||
$HDpause = '';
|
||||
|
||||
+623
-304
File diff suppressed because one or more lines are too long
@@ -992,6 +992,8 @@ $SScustom_fields_enabled = $row[3];
|
||||
else {$pause_sh=''; $pause_fc='BLACK';}
|
||||
if ($sh=='listmix') {$listmix_sh="bgcolor=\"$subcamp_color\""; $listmix_fc="$subcamp_font";}
|
||||
else {$listmix_sh=''; $listmix_fc='BLACK';}
|
||||
if ($sh=='preset') {$preset_sh="bgcolor=\"$subcamp_color\""; $preset_fc="$subcamp_font";}
|
||||
else {$preset_sh=''; $preset_fc='BLACK';}
|
||||
|
||||
?>
|
||||
<TR BGCOLOR=<?php echo $campaigns_color ?>>
|
||||
@@ -1015,6 +1017,8 @@ $SScustom_fields_enabled = $row[3];
|
||||
?>
|
||||
</TR><TR BGCOLOR=<?php echo $campaigns_color ?>>
|
||||
<TD ALIGN=LEFT <?php echo $pause_sh ?>> <a href="<?php echo $ADMIN ?>?ADD=37"><FONT FACE="ARIAL,HELVETICA" COLOR=<?php echo $pause_fc ?> SIZE=<?php echo $subcamp_font_size ?>>Pause Codes</a></TD>
|
||||
</TR><TR BGCOLOR=<?php echo $campaigns_color ?>>
|
||||
<TD ALIGN=LEFT <?php echo $preset_sh ?>> <a href="<?php echo $ADMIN ?>?ADD=301"><FONT FACE="ARIAL,HELVETICA" COLOR=<?php echo $preset_fc ?> SIZE=<?php echo $subcamp_font_size ?>>Presets</a></TD>
|
||||
<?php }
|
||||
?>
|
||||
<!-- LISTS NAVIGATION -->
|
||||
|
||||
@@ -869,9 +869,9 @@ if ($did < 1)
|
||||
|
||||
echo "<B>MANUAL OUTBOUND CALLS FOR THIS TIME PERIOD: (10000 record limit)</B>\n";
|
||||
echo "<TABLE width=750 cellspacing=0 cellpadding=1>\n";
|
||||
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2> CALL TYPE</td><td align=left><font size=2> SERVER</td><td align=left><font size=2> PHONE</td><td align=right><font size=2> DIALED</td><td align=right><font size=2> LEAD</td><td align=right><font size=2> CALLERID</td><td align=right><font size=2> ALIAS</td></tr>\n";
|
||||
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2> CALL TYPE</td><td align=left><font size=2> SERVER</td><td align=left><font size=2> PHONE</td><td align=right><font size=2> DIALED</td><td align=right><font size=2> LEAD</td><td align=right><font size=2> CALLERID</td><td align=right><font size=2> ALIAS</td><td align=right><font size=2> PRESET</td></tr>\n";
|
||||
|
||||
$stmt="select call_date,call_type,server_ip,phone_number,number_dialed,lead_id,callerid,group_alias_id from user_call_log where user='" . mysql_real_escape_string($user) . "' and call_date >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and call_date <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by call_date desc limit 10000;";
|
||||
$stmt="select call_date,call_type,server_ip,phone_number,number_dialed,lead_id,callerid,group_alias_id,preset_name from user_call_log where user='" . mysql_real_escape_string($user) . "' and call_date >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and call_date <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by call_date desc limit 10000;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$logs_to_print = mysql_num_rows($rslt);
|
||||
|
||||
@@ -894,7 +894,8 @@ if ($did < 1)
|
||||
echo "<td align=right><font size=2> $row[4] </td>\n";
|
||||
echo "<td align=right><font size=2> <A HREF=\"admin_modify_lead.php?lead_id=$row[5]\" target=\"_blank\">$row[5]</A> </td>\n";
|
||||
echo "<td align=right><font size=2> $row[6] </td>\n";
|
||||
echo "<td align=right><font size=2> $row[7] </td></tr>\n";
|
||||
echo "<td align=right><font size=2> $row[7] </td>\n";
|
||||
echo "<td align=right><font size=2> $row[8] </td></tr>\n";
|
||||
}
|
||||
echo "</TABLE><BR><BR>\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user