Added ALLFORCE campaign recording option
git-svn-id: svn://192.168.202.10@194 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -452,7 +452,7 @@ dial_prefix VARCHAR(20) default '9',
|
|||||||
campaign_cid VARCHAR(10) default '0000000000',
|
campaign_cid VARCHAR(10) default '0000000000',
|
||||||
campaign_vdad_exten VARCHAR(20) default '8365',
|
campaign_vdad_exten VARCHAR(20) default '8365',
|
||||||
campaign_rec_exten VARCHAR(20) default '8309',
|
campaign_rec_exten VARCHAR(20) default '8309',
|
||||||
campaign_recording ENUM('NEVER','ONDEMAND','ALLCALLS') default 'ONDEMAND',
|
campaign_recording ENUM('NEVER','ONDEMAND','ALLCALLS','ALLFORCE') default 'ONDEMAND',
|
||||||
campaign_rec_filename VARCHAR(50) default 'FULLDATE_CUSTPHONE',
|
campaign_rec_filename VARCHAR(50) default 'FULLDATE_CUSTPHONE',
|
||||||
campaign_script VARCHAR(10),
|
campaign_script VARCHAR(10),
|
||||||
get_call_launch ENUM('NONE','SCRIPT','WEBFORM') default 'NONE',
|
get_call_launch ENUM('NONE','SCRIPT','WEBFORM') default 'NONE',
|
||||||
|
|||||||
@@ -3,3 +3,4 @@ ALTER TABLE servers ADD vd_server_logs ENUM('Y','N') default 'Y';
|
|||||||
ALTER TABLE servers ADD agi_output ENUM('NONE','STDERR','FILE','BOTH') default 'FILE';
|
ALTER TABLE servers ADD agi_output ENUM('NONE','STDERR','FILE','BOTH') default 'FILE';
|
||||||
ALTER TABLE vicidial_campaigns ADD allcalls_delay SMALLINT(3) UNSIGNED default '0';
|
ALTER TABLE vicidial_campaigns ADD allcalls_delay SMALLINT(3) UNSIGNED default '0';
|
||||||
ALTER TABLE vicidial_campaigns ADD omit_phone_code ENUM('Y','N') default 'N';
|
ALTER TABLE vicidial_campaigns ADD omit_phone_code ENUM('Y','N') default 'N';
|
||||||
|
ALTER TABLE vicidial_campaigns MODIFY campaign_recording ENUM('NEVER','ONDEMAND','ALLCALLS','ALLFORCE') default 'ONDEMAND';
|
||||||
|
|||||||
@@ -4,8 +4,9 @@ If you want to allow Consultative Transfers, a fronter to a closer, you can plac
|
|||||||
System Performance -<\/B> Setting this option to Y will enable logging of system performance stats for the server machine including system load, system processes and Asterisk channels in use. Default is N||
|
System Performance -<\/B> Setting this option to Y will enable logging of system performance stats for the server machine including system load, system processes and Asterisk channels in use. Default is N||
|
||||||
Server Logs -<\/B> Setting this option to Y will enable logging of all VICIDIAL related scripts to their text log files. Setting this to N will stop writing logs to files for these processes, also the screen logging of asterisk will be disabled if this is set to N when Asterisk is started. Default is Y||
|
Server Logs -<\/B> Setting this option to Y will enable logging of all VICIDIAL related scripts to their text log files. Setting this to N will stop writing logs to files for these processes, also the screen logging of asterisk will be disabled if this is set to N when Asterisk is started. Default is Y||
|
||||||
AGI Output -<\/B> Setting this option to NONE will disable output from all VICIDIAL related AGI scripts. Setting this to STDERR will send the AGI output to the Asterisk CLI. Setting this to FILE will send the output to a file in the logs directory. Setting this to BOTH will send output to both the Asterisk CLI and a log file. Default is FILE||
|
AGI Output -<\/B> Setting this option to NONE will disable output from all VICIDIAL related AGI scripts. Setting this to STDERR will send the AGI output to the Asterisk CLI. Setting this to FILE will send the output to a file in the logs directory. Setting this to BOTH will send output to both the Asterisk CLI and a log file. Default is FILE||
|
||||||
Recording Delay -<\/B> For ALLCALLS recording only. This setting will delay the starting of the recording on all calls for the number of seconds specified in this field. Default is 0||
|
Recording Delay -<\/B> For ALLCALLS and ALLFORCE recording only. This setting will delay the starting of the recording on all calls for the number of seconds specified in this field. Default is 0||
|
||||||
Omit Phone Code -<\/B> This field allows you to leave out the phone_code field while dialing within VICIDIAL. For instance if you are dialing in the UK from the UK you would have 44 in as your phone_code field for all leads, but you just want to dial 10 digits in your dialplan extensions.conf to place calls instead of 44 then 10 digits. Default is N
|
Omit Phone Code -<\/B> This field allows you to leave out the phone_code field while dialing within VICIDIAL. For instance if you are dialing in the UK from the UK you would have 44 in as your phone_code field for all leads, but you just want to dial 10 digits in your dialplan extensions.conf to place calls instead of 44 then 10 digits. Default is N
|
||||||
|
Campaign Recording -<\/B> This menu allows you to choose what level of recording is allowed on this campaign. NEVER will disable recording on the client. ONDEMAND is the default and allows the agent to start and stop recording as needed. ALLCALLS will start recording on the client whenever a call is sent to an agent. ALLFORCE will start recording on the client whenever a call is sent to an agent giving the agent no option to stop recording. For ALLCALLS and ALLFORCE there is an option to use the Recording Delay to cut down on very short recordings and recude system load
|
||||||
|
|
||||||
############################################################ CLIENT
|
############################################################ CLIENT
|
||||||
|
|
||||||
|
|||||||
@@ -120,6 +120,7 @@
|
|||||||
# 60816-1602 - Added ALLCALLS recording delay option allcalls_delay
|
# 60816-1602 - Added ALLCALLS recording delay option allcalls_delay
|
||||||
# 60816-1716 - Fixed customer time display bug and client DST setting
|
# 60816-1716 - Fixed customer time display bug and client DST setting
|
||||||
# 60821-1555 - Added option to omit phone_code on dialout of leads
|
# 60821-1555 - Added option to omit phone_code on dialout of leads
|
||||||
|
# 60821-1628 - Added ALLFORCE recording option
|
||||||
#
|
#
|
||||||
|
|
||||||
require("dbconnect.php");
|
require("dbconnect.php");
|
||||||
@@ -165,8 +166,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];}
|
|||||||
|
|
||||||
$forever_stop=0;
|
$forever_stop=0;
|
||||||
|
|
||||||
$version = '2.0.94';
|
$version = '2.0.95';
|
||||||
$build = '60821-1555';
|
$build = '60821-1628';
|
||||||
|
|
||||||
if ($force_logout)
|
if ($force_logout)
|
||||||
{
|
{
|
||||||
@@ -1911,16 +1912,31 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
|||||||
var query_recording_exten = recording_exten;
|
var query_recording_exten = recording_exten;
|
||||||
var channelrec = "Local/" + conf_silent_prefix + '' + taskconfrec + "@" + ext_context;
|
var channelrec = "Local/" + conf_silent_prefix + '' + taskconfrec + "@" + ext_context;
|
||||||
var conf_rec_start_html = "<a href=\"#\" onclick=\"conf_send_recording('StopMonitorConf','" + taskconfrec + "','" + filename + "');return false;\"><IMG SRC=\"./images/vdc_LB_stoprecording.gif\" border=0 alt=\"Stop Recording\"></a>";
|
var conf_rec_start_html = "<a href=\"#\" onclick=\"conf_send_recording('StopMonitorConf','" + taskconfrec + "','" + filename + "');return false;\"><IMG SRC=\"./images/vdc_LB_stoprecording.gif\" border=0 alt=\"Stop Recording\"></a>";
|
||||||
|
|
||||||
|
if (campaign_recording == 'ALLFORCE')
|
||||||
|
{
|
||||||
|
document.getElementById("RecorDControl").innerHTML = "<IMG SRC=\"./images/vdc_LB_startrecording_OFF.gif\" border=0 alt=\"Start Recording\">";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
document.getElementById("RecorDControl").innerHTML = conf_rec_start_html;
|
document.getElementById("RecorDControl").innerHTML = conf_rec_start_html;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (taskconfrectype == 'StopMonitorConf')
|
if (taskconfrectype == 'StopMonitorConf')
|
||||||
{
|
{
|
||||||
filename = taskconffile;
|
filename = taskconffile;
|
||||||
var query_recording_exten = session_id;
|
var query_recording_exten = session_id;
|
||||||
var channelrec = "Local/" + conf_silent_prefix + '' + taskconfrec + "@" + ext_context;
|
var channelrec = "Local/" + conf_silent_prefix + '' + taskconfrec + "@" + ext_context;
|
||||||
var conf_rec_start_html = "<a href=\"#\" onclick=\"conf_send_recording('MonitorConf','" + taskconfrec + "','');return false;\"><IMG SRC=\"./images/vdc_LB_startrecording.gif\" border=0 alt=\"Start Recording\"></a>";
|
var conf_rec_start_html = "<a href=\"#\" onclick=\"conf_send_recording('MonitorConf','" + taskconfrec + "','');return false;\"><IMG SRC=\"./images/vdc_LB_startrecording.gif\" border=0 alt=\"Start Recording\"></a>";
|
||||||
|
if (campaign_recording == 'ALLFORCE')
|
||||||
|
{
|
||||||
|
document.getElementById("RecorDControl").innerHTML = "<IMG SRC=\"./images/vdc_LB_startrecording_OFF.gif\" border=0 alt=\"Start Recording\">";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
document.getElementById("RecorDControl").innerHTML = conf_rec_start_html;
|
document.getElementById("RecorDControl").innerHTML = conf_rec_start_html;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1";
|
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1";
|
||||||
xmlhttp.open('POST', 'manager_send.php');
|
xmlhttp.open('POST', 'manager_send.php');
|
||||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||||
@@ -2223,7 +2239,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
|||||||
if ( (taskMDstage != "start") && (VDstop_rec_after_each_call == 1) )
|
if ( (taskMDstage != "start") && (VDstop_rec_after_each_call == 1) )
|
||||||
{
|
{
|
||||||
var conf_rec_start_html = "<a href=\"#\" onclick=\"conf_send_recording('MonitorConf','" + session_id + "','');return false;\"><IMG SRC=\"./images/vdc_LB_startrecording.gif\" border=0 alt=\"Start Recording\"></a>";
|
var conf_rec_start_html = "<a href=\"#\" onclick=\"conf_send_recording('MonitorConf','" + session_id + "','');return false;\"><IMG SRC=\"./images/vdc_LB_startrecording.gif\" border=0 alt=\"Start Recording\"></a>";
|
||||||
if (campaign_recording == 'NEVER')
|
if ( (campaign_recording == 'NEVER') || (campaign_recording == 'ALLFORCE') )
|
||||||
{
|
{
|
||||||
document.getElementById("RecorDControl").innerHTML = "<IMG SRC=\"./images/vdc_LB_startrecording_OFF.gif\" border=0 alt=\"Start Recording\">";
|
document.getElementById("RecorDControl").innerHTML = "<IMG SRC=\"./images/vdc_LB_startrecording_OFF.gif\" border=0 alt=\"Start Recording\">";
|
||||||
}
|
}
|
||||||
@@ -2787,7 +2803,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
|||||||
|
|
||||||
document.getElementById("HangupControl").innerHTML = "<a href=\"#\" onclick=\"dialedcall_send_hangup();\"><IMG SRC=\"./images/vdc_LB_hangupcustomer.gif\" border=0 alt=\"Hangup Customer\"></a>";
|
document.getElementById("HangupControl").innerHTML = "<a href=\"#\" onclick=\"dialedcall_send_hangup();\"><IMG SRC=\"./images/vdc_LB_hangupcustomer.gif\" border=0 alt=\"Hangup Customer\"></a>";
|
||||||
|
|
||||||
if (campaign_recording == 'ALLCALLS')
|
if ( (campaign_recording == 'ALLCALLS') || (campaign_recording == 'ALLFORCE') )
|
||||||
{all_record = 'YES';}
|
{all_record = 'YES';}
|
||||||
|
|
||||||
if ( (view_scripts == 1) && (campaign_script.length > 0) )
|
if ( (view_scripts == 1) && (campaign_script.length > 0) )
|
||||||
@@ -2993,7 +3009,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
|||||||
|
|
||||||
document.getElementById("HangupControl").innerHTML = "<a href=\"#\" onclick=\"dialedcall_send_hangup();\"><IMG SRC=\"./images/vdc_LB_hangupcustomer.gif\" border=0 alt=\"Hangup Customer\"></a>";
|
document.getElementById("HangupControl").innerHTML = "<a href=\"#\" onclick=\"dialedcall_send_hangup();\"><IMG SRC=\"./images/vdc_LB_hangupcustomer.gif\" border=0 alt=\"Hangup Customer\"></a>";
|
||||||
|
|
||||||
if (campaign_recording == 'ALLCALLS')
|
if ( (campaign_recording == 'ALLCALLS') || (campaign_recording == 'ALLFORCE') )
|
||||||
{all_record = 'YES';}
|
{all_record = 'YES';}
|
||||||
|
|
||||||
if ( (view_scripts == 1) && (campaign_script.length > 0) )
|
if ( (view_scripts == 1) && (campaign_script.length > 0) )
|
||||||
@@ -3368,7 +3384,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
|||||||
|
|
||||||
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + VDIC_web_form_address + web_form_vars + "\" target=\"vdcwebform\" onMouseOver=\"WebFormRefresH();\"><IMG SRC=\"./images/vdc_LB_webform.gif\" border=0 alt=\"Web Form\"></a>\n";
|
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + VDIC_web_form_address + web_form_vars + "\" target=\"vdcwebform\" onMouseOver=\"WebFormRefresH();\"><IMG SRC=\"./images/vdc_LB_webform.gif\" border=0 alt=\"Web Form\"></a>\n";
|
||||||
|
|
||||||
if (campaign_recording == 'ALLCALLS')
|
if ( (campaign_recording == 'ALLCALLS') || (campaign_recording == 'ALLFORCE') )
|
||||||
{all_record = 'YES';}
|
{all_record = 'YES';}
|
||||||
|
|
||||||
if ( (view_scripts == 1) && (CalL_ScripT_id.length > 0) )
|
if ( (view_scripts == 1) && (CalL_ScripT_id.length > 0) )
|
||||||
@@ -4643,7 +4659,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
|||||||
document.vicidial_form.LeadLookuP.checked=true;
|
document.vicidial_form.LeadLookuP.checked=true;
|
||||||
|
|
||||||
document.getElementById("sessionIDspan").innerHTML = session_id;
|
document.getElementById("sessionIDspan").innerHTML = session_id;
|
||||||
if (campaign_recording == 'NEVER')
|
if ( (campaign_recording == 'NEVER') || (campaign_recording == 'ALLFORCE') )
|
||||||
{
|
{
|
||||||
document.getElementById("RecorDControl").innerHTML = "<IMG SRC=\"./images/vdc_LB_startrecording_OFF.gif\" border=0 alt=\"Start Recording\">";
|
document.getElementById("RecorDControl").innerHTML = "<IMG SRC=\"./images/vdc_LB_startrecording_OFF.gif\" border=0 alt=\"Start Recording\">";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -506,12 +506,13 @@ $lead_filter_sql = ereg_replace(";","",$lead_filter_sql);
|
|||||||
# 60816-1552 - added allcalls_delay start delay for recordings in vicidial.php
|
# 60816-1552 - added allcalls_delay start delay for recordings in vicidial.php
|
||||||
# 60817-2226 - fixed bug that would not allow lead recycling of non-selectable statuses
|
# 60817-2226 - fixed bug that would not allow lead recycling of non-selectable statuses
|
||||||
# 60821-1543 - added option to Omit Phone Code while dialing in vicidial
|
# 60821-1543 - added option to Omit Phone Code while dialing in vicidial
|
||||||
|
# 60821-1625 - added ALLFORCE recording option for campaign_recording
|
||||||
#
|
#
|
||||||
|
|
||||||
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time
|
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time
|
||||||
|
|
||||||
$version = '2.0.59';
|
$version = '2.0.60';
|
||||||
$build = '60821-1543';
|
$build = '60821-1625';
|
||||||
|
|
||||||
$STARTtime = date("U");
|
$STARTtime = date("U");
|
||||||
|
|
||||||
@@ -1140,7 +1141,7 @@ echo "<TABLE WIDTH=98% BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR><TD ALIGN
|
|||||||
<BR>
|
<BR>
|
||||||
<A NAME="vicidial_campaigns-campaign_recording">
|
<A NAME="vicidial_campaigns-campaign_recording">
|
||||||
<BR>
|
<BR>
|
||||||
<B>Campaign Recording -</B> This menu allows you to choose what level of recording is allowed on this campaign. NEVER will disable recording on the client. ONDEMAND is the default and allows the agent to start and stop recording as needed. ALLCALLS will start recording on the client whenever a call is sent to an agent.
|
<B>Campaign Recording -</B> This menu allows you to choose what level of recording is allowed on this campaign. NEVER will disable recording on the client. ONDEMAND is the default and allows the agent to start and stop recording as needed. ALLCALLS will start recording on the client whenever a call is sent to an agent. ALLFORCE will start recording on the client whenever a call is sent to an agent giving the agent no option to stop recording. For ALLCALLS and ALLFORCE there is an option to use the Recording Delay to cut down on very short recordings and recude system load.
|
||||||
|
|
||||||
<BR>
|
<BR>
|
||||||
<A NAME="vicidial_campaigns-campaign_rec_filename">
|
<A NAME="vicidial_campaigns-campaign_rec_filename">
|
||||||
@@ -1150,7 +1151,7 @@ echo "<TABLE WIDTH=98% BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR><TD ALIGN
|
|||||||
<BR>
|
<BR>
|
||||||
<A NAME="vicidial_campaigns-allcalls_delay">
|
<A NAME="vicidial_campaigns-allcalls_delay">
|
||||||
<BR>
|
<BR>
|
||||||
<B>Recording Delay -</B> For ALLCALLS recording only. This setting will delay the starting of the recording on all calls for the number of seconds specified in this field. Default is 0.
|
<B>Recording Delay -</B> For ALLCALLS and ALLFORCE recording only. This setting will delay the starting of the recording on all calls for the number of seconds specified in this field. Default is 0.
|
||||||
|
|
||||||
<BR>
|
<BR>
|
||||||
<A NAME="vicidial_campaigns-campaign_script">
|
<A NAME="vicidial_campaigns-campaign_script">
|
||||||
@@ -4339,7 +4340,7 @@ echo "<tr bgcolor=#B6D3FC><td align=right>Campaign VDAD exten: </td><td align=le
|
|||||||
|
|
||||||
echo "<tr bgcolor=#B6D3FC><td align=right>Campaign Rec exten: </td><td align=left><input type=text name=campaign_rec_exten size=10 maxlength=10 value=\"$campaign_rec_exten\">$NWB#vicidial_campaigns-campaign_rec_exten$NWE</td></tr>\n";
|
echo "<tr bgcolor=#B6D3FC><td align=right>Campaign Rec exten: </td><td align=left><input type=text name=campaign_rec_exten size=10 maxlength=10 value=\"$campaign_rec_exten\">$NWB#vicidial_campaigns-campaign_rec_exten$NWE</td></tr>\n";
|
||||||
|
|
||||||
echo "<tr bgcolor=#B6D3FC><td align=right>Campaign Recording: </td><td align=left><select size=1 name=campaign_recording><option>NEVER</option><option>ONDEMAND</option><option>ALLCALLS</option><option SELECTED>$campaign_recording</option></select>$NWB#vicidial_campaigns-campaign_recording$NWE</td></tr>\n";
|
echo "<tr bgcolor=#B6D3FC><td align=right>Campaign Recording: </td><td align=left><select size=1 name=campaign_recording><option>NEVER</option><option>ONDEMAND</option><option>ALLCALLS</option><option>ALLFORCE</option><option SELECTED>$campaign_recording</option></select>$NWB#vicidial_campaigns-campaign_recording$NWE</td></tr>\n";
|
||||||
|
|
||||||
echo "<tr bgcolor=#B6D3FC><td align=right>Campaign Rec Filename: </td><td align=left><input type=text name=campaign_rec_filename size=50 maxlength=50 value=\"$campaign_rec_filename\">$NWB#vicidial_campaigns-campaign_rec_filename$NWE</td></tr>\n";
|
echo "<tr bgcolor=#B6D3FC><td align=right>Campaign Rec Filename: </td><td align=left><input type=text name=campaign_rec_filename size=50 maxlength=50 value=\"$campaign_rec_filename\">$NWB#vicidial_campaigns-campaign_rec_filename$NWE</td></tr>\n";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user