diff --git a/agc_2-X/trunk/UPGRADE b/agc_2-X/trunk/UPGRADE
index fe75ea5f..dabad681 100644
--- a/agc_2-X/trunk/UPGRADE
+++ b/agc_2-X/trunk/UPGRADE
@@ -149,6 +149,11 @@ OTHER CHANGES:
34. Added Campaign setting for inbound queue no dial that will prohibit outbound
auto-dialing if there are any allowed in-group calls in queue if enabled
+35. Added In-group options for setting the length of the on hold message and the
+ hold time option press message as well as offering the option to have
+ those two prompts be non-blocking and allow existing newer calls through
+ to agents while the prompts are playing
+
diff --git a/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi b/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi
index ef10ec9c..2360da2d 100644
--- a/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi
+++ b/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi
@@ -164,6 +164,7 @@ $start_time=$now_date;
$tsSQLdate = "$year$mon$mday$hour$min$sec";
$SQLdate = "$year-$mon-$mday $hour:$min:$sec";
$SQLdateBEGIN = $SQLdate;
+ $ORIGINAL_call_time = $SQLdate;
$BDtarget = ($now_date_epoch - 5);
($Bsec,$Bmin,$Bhour,$Bmday,$Bmon,$Byear,$Bwday,$Byday,$Bisdst) = localtime($BDtarget);
@@ -548,7 +549,7 @@ $sthA->finish();
### Grab inbound groups values from the database
$cbc=0;
-$stmtA = "SELECT call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,drop_call_seconds,drop_action,drop_exten,next_agent_call,voicemail_ext,queue_priority,drop_inbound_group,afterhours_xfer_group,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,no_agent_no_queue,no_agent_action,no_agent_action_value,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu FROM vicidial_inbound_groups where group_id = '$channel_group';";
+$stmtA = "SELECT call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,drop_call_seconds,drop_action,drop_exten,next_agent_call,voicemail_ext,queue_priority,drop_inbound_group,afterhours_xfer_group,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,no_agent_no_queue,no_agent_action,no_agent_action_value,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds FROM vicidial_inbound_groups where group_id = '$channel_group';";
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
$sthArows=$sthA->rows;
@@ -601,7 +602,11 @@ while ($sthArows > $cbc)
$hold_time_option_minimum = $aryA[37];
$hold_time_option_press_filename = $aryA[38];
$hold_time_option_callmenu = $aryA[39];
-
+ $onhold_prompt_no_block = $aryA[40];
+ $onhold_prompt_seconds = $aryA[41];
+ $hold_time_option_no_block = $aryA[42];
+ $hold_time_option_prompt_seconds = $aryA[43];
+
$custom_call_id='';
if ($uniqueid_status_display =~ /ENABLED/)
{$custom_call_id = "$uniqueid";}
@@ -2748,7 +2753,27 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) )
if ( ($hold_message_counter > $prompt_interval) && ($prompt_interval > 0) )
{
$now_date_epoch = time();
- $FDtarget = ($now_date_epoch + 10);
+ $no_block_SQL = '';
+
+ ### if No-Block is enabled, then set the call time to right now
+ if ($onhold_prompt_no_block =~ /Y/)
+ {
+ $NBDtarget = $now_date_epoch;
+ ($NBsec,$NBmin,$NBhour,$NBmday,$NBmon,$NByear,$NBwday,$NByday,$NBisdst) = localtime($NBDtarget);
+ $NByear = ($NByear + 1900);
+ $NBmon++;
+ if ($NBmon < 10) {$NBmon = "0$NBmon";}
+ if ($NBmday < 10) {$NBmday = "0$NBmday";}
+ if ($NBhour < 10) {$NBhour = "0$NBhour";}
+ if ($NBmin < 10) {$NBmin = "0$NBmin";}
+ if ($NBsec < 10) {$NBsec = "0$NBsec";}
+ $NB_SQLdate = "$NByear-$NBmon-$NBmday $NBhour:$NBmin:$NBsec";
+ $no_block_SQL = ",call_time='$NB_SQLdate'";
+ }
+
+ if ($onhold_prompt_seconds < 0) {$onhold_prompt_seconds=0;}
+ if ($onhold_prompt_seconds > 1000) {$onhold_prompt_seconds=1000;}
+ $FDtarget = ($now_date_epoch + $onhold_prompt_seconds);
($Fsec,$Fmin,$Fhour,$Fmday,$Fmon,$Fyear,$Fwday,$Fyday,$Fisdst) = localtime($FDtarget);
$Fyear = ($Fyear + 1900);
$Fmon++;
@@ -2759,10 +2784,10 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) )
if ($Fsec < 10) {$Fsec = "0$Fsec";}
$FDtsSQLdate = "$Fyear$Fmon$Fmday$Fhour$Fmin$Fsec";
- $stmtA = "UPDATE vicidial_auto_calls set last_update_time='$FDtsSQLdate' where callerid='$callerid' order by call_time desc limit 1;";
+ $stmtA = "UPDATE vicidial_auto_calls set last_update_time='$FDtsSQLdate' $no_block_SQL where callerid='$callerid' order by call_time desc limit 1;";
$affected_rows = $dbhA->do($stmtA);
$dbhP=$dbhA; $mysql_count='02081'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
- if ($AGILOG) {$agi_string = "-- VDAC posttime record: |$affected_rows|$FDtsSQLdate|$callerid|"; &agi_output;}
+ if ($AGILOG) {$agi_string = "-- VDAC posttime record: |$affected_rows|$FDtsSQLdate|$callerid|$no_block_SQL|"; &agi_output;}
if ( (length($onhold_prompt_filename) > 0) && ($onhold_prompt_filename !~ /---NONE---/) )
{
@@ -2784,6 +2809,16 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) )
else
{$AGI->stream_file("$onhold_prompt_filename");} # this prompt must be less than 10 seconds long
}
+
+ ### if No-Block is enabled, then set the call time back to original call time
+ if ($onhold_prompt_no_block =~ /Y/)
+ {
+ $stmtA = "UPDATE vicidial_auto_calls set call_time='$ORIGINAL_call_time' where callerid='$callerid' order by call_time desc limit 1;";
+ $affected_rows = $dbhA->do($stmtA);
+ $dbhP=$dbhA; $mysql_count='02XXX'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
+ if ($AGILOG) {$agi_string = "-- No-Block Prompt Set: |$affected_rows|$ORIGINAL_call_time|$callerid|"; &agi_output;}
+ }
+
$hold_message_counter = 0;
$start_moh=1;
$moh_delay=1;
@@ -2981,7 +3016,27 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) )
if ($hold_time_option =~ /PRESS_/)
{
$now_date_epoch = time();
- $FDtarget = ($now_date_epoch + 10);
+ $HTO_no_block_SQL = '';
+
+ ### if No-Block is enabled, then set the call time to right now
+ if ($hold_time_option_no_block =~ /Y/)
+ {
+ $NBDtarget = $now_date_epoch;
+ ($NBsec,$NBmin,$NBhour,$NBmday,$NBmon,$NByear,$NBwday,$NByday,$NBisdst) = localtime($NBDtarget);
+ $NByear = ($NByear + 1900);
+ $NBmon++;
+ if ($NBmon < 10) {$NBmon = "0$NBmon";}
+ if ($NBmday < 10) {$NBmday = "0$NBmday";}
+ if ($NBhour < 10) {$NBhour = "0$NBhour";}
+ if ($NBmin < 10) {$NBmin = "0$NBmin";}
+ if ($NBsec < 10) {$NBsec = "0$NBsec";}
+ $NB_SQLdate = "$NByear-$NBmon-$NBmday $NBhour:$NBmin:$NBsec";
+ $HTO_no_block_SQL = ",call_time='$NB_SQLdate'";
+ }
+
+ if ($hold_time_option_prompt_seconds < 0) {$hold_time_option_prompt_seconds=0;}
+ if ($hold_time_option_prompt_seconds > 1000) {$hold_time_option_prompt_seconds=1000;}
+ $FDtarget = ($now_date_epoch + $hold_time_option_prompt_seconds);
($Fsec,$Fmin,$Fhour,$Fmday,$Fmon,$Fyear,$Fwday,$Fyday,$Fisdst) = localtime($FDtarget);
$Fyear = ($Fyear + 1900);
$Fmon++;
@@ -2992,10 +3047,10 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) )
if ($Fsec < 10) {$Fsec = "0$Fsec";}
$FDtsSQLdate = "$Fyear$Fmon$Fmday$Fhour$Fmin$Fsec";
- $stmtA = "UPDATE vicidial_auto_calls set last_update_time='$FDtsSQLdate' where callerid='$callerid' order by call_time desc limit 1;";
+ $stmtA = "UPDATE vicidial_auto_calls set last_update_time='$FDtsSQLdate' $HTO_no_block_SQL where callerid='$callerid' order by call_time desc limit 1;";
$affected_rows = $dbhA->do($stmtA);
$dbhP=$dbhA; $mysql_count='02086'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
- if ($AGILOG) {$agi_string = "-- VDAC posttime record for Hold-Time-Option-Press: |$affected_rows|$FDtsSQLdate|$callerid|"; &agi_output;}
+ if ($AGILOG) {$agi_string = "-- VDAC posttime record for Hold-Time-Option-Press: |$affected_rows|$FDtsSQLdate|$callerid|$HTO_no_block_SQL|"; &agi_output;}
if ($drop_timer >= 2) {$drop_timer = ($drop_timer + 10);} # add prompt play time to total queue time
@@ -3005,6 +3060,15 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) )
&press_one_hold_time_option_prompt;
+ ### if No-Block is enabled, then set the call time back to original call time
+ if ($hold_time_option_no_block =~ /Y/)
+ {
+ $stmtA = "UPDATE vicidial_auto_calls set call_time='$ORIGINAL_call_time' where callerid='$callerid' order by call_time desc limit 1;";
+ $affected_rows = $dbhA->do($stmtA);
+ $dbhP=$dbhA; $mysql_count='02XXX'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
+ if ($AGILOG) {$agi_string = "-- No-Block HTO Prompt Set: |$affected_rows|$ORIGINAL_call_time|$callerid|"; &agi_output;}
+ }
+
if ($pin =~ /1/)
{
$now_date_epoch = time();
@@ -3632,12 +3696,20 @@ sub press_one_hold_time_option_prompt
# To be called back when a representative is available, press 1
+ $AGI->stream_file('sip-silence');
+ $AGI->stream_file('sip-silence');
+
$digit='';
undef $digit;
$interrupt_digit='';
undef $interrupt_digit;
$digit_loop_counter=0;
+ $interrupt_digit = $AGI->stream_file('sip-silence','1');
+
+ $interrupt_digit='';
+ undef $interrupt_digit;
+
if ($hold_time_option_press_filename =~ /\|/)
{
@hold_time_option_press_filename_array = split(/\|/,$hold_time_option_press_filename);
@@ -3654,7 +3726,7 @@ sub press_one_hold_time_option_prompt
else
{$interrupt_digit = $AGI->stream_file("$hold_time_option_press_filename",'1');} # this prompt must be less than 10 seconds long
- if ($AGILOG) {$agi_string = "interrupt_digit |$interrupt_digit|"; &agi_output;}
+ if ($AGILOG) {$agi_string = "interrupt_digit |$interrupt_digit| |$hold_time_option_press_filename|"; &agi_output;}
$digits_being_entered=1;
$totalDTMF='';
diff --git a/agc_2-X/trunk/docs/REQUIRED_APPS_INSTALL.txt b/agc_2-X/trunk/docs/REQUIRED_APPS_INSTALL.txt
index 96244e4e..c926f3cc 100644
--- a/agc_2-X/trunk/docs/REQUIRED_APPS_INSTALL.txt
+++ b/agc_2-X/trunk/docs/REQUIRED_APPS_INSTALL.txt
@@ -313,7 +313,7 @@ install Net::Domain
quit
cd /usr/local
-wget http://superb-east.dl.sourceforge.net/sourceforge/mtop/mtop-0.6.6.tar.gz
+wget http://voxel.dl.sourceforge.net/project/mtop/mtop/v0.6.6/mtop-0.6.6.tar.gz
gunzip mtop-0.6.6.tar.gz
tar xvf mtop-0.6.6.tar
cd mtop-0.6.6
diff --git a/agc_2-X/trunk/extras/151_phones_across_3_servers_with_aliases.sql b/agc_2-X/trunk/extras/151_phones_across_3_servers_with_aliases.sql
new file mode 100644
index 00000000..db7a9873
--- /dev/null
+++ b/agc_2-X/trunk/extras/151_phones_across_3_servers_with_aliases.sql
@@ -0,0 +1,176 @@
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2000','2000','2000','10.10.10.15','2000a','test','ACTIVE','Y','CCagent','station 2000','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2001','2001','2001','10.10.10.15','2001a','test','ACTIVE','Y','CCagent','station 2001','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2002','2002','2002','10.10.10.15','2002a','test','ACTIVE','Y','CCagent','station 2002','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2003','2003','2003','10.10.10.15','2003a','test','ACTIVE','Y','CCagent','station 2003','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2004','2004','2004','10.10.10.15','2004a','test','ACTIVE','Y','CCagent','station 2004','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2005','2005','2005','10.10.10.15','2005a','test','ACTIVE','Y','CCagent','station 2005','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2006','2006','2006','10.10.10.15','2006a','test','ACTIVE','Y','CCagent','station 2006','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2007','2007','2007','10.10.10.15','2007a','test','ACTIVE','Y','CCagent','station 2007','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2008','2008','2008','10.10.10.15','2008a','test','ACTIVE','Y','CCagent','station 2008','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2009','2009','2009','10.10.10.15','2009a','test','ACTIVE','Y','CCagent','station 2009','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2010','2010','2010','10.10.10.15','2010a','test','ACTIVE','Y','CCagent','station 2010','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2011','2011','2011','10.10.10.15','2011a','test','ACTIVE','Y','CCagent','station 2011','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2012','2012','2012','10.10.10.15','2012a','test','ACTIVE','Y','CCagent','station 2012','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2013','2013','2013','10.10.10.15','2013a','test','ACTIVE','Y','CCagent','station 2013','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2014','2014','2014','10.10.10.15','2014a','test','ACTIVE','Y','CCagent','station 2014','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2015','2015','2015','10.10.10.15','2015a','test','ACTIVE','Y','CCagent','station 2015','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2016','2016','2016','10.10.10.15','2016a','test','ACTIVE','Y','CCagent','station 2016','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2017','2017','2017','10.10.10.15','2017a','test','ACTIVE','Y','CCagent','station 2017','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2018','2018','2018','10.10.10.15','2018a','test','ACTIVE','Y','CCagent','station 2018','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2019','2019','2019','10.10.10.15','2019a','test','ACTIVE','Y','CCagent','station 2019','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2020','2020','2020','10.10.10.15','2020a','test','ACTIVE','Y','CCagent','station 2020','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2021','2021','2021','10.10.10.15','2021a','test','ACTIVE','Y','CCagent','station 2021','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2022','2022','2022','10.10.10.15','2022a','test','ACTIVE','Y','CCagent','station 2022','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2023','2023','2023','10.10.10.15','2023a','test','ACTIVE','Y','CCagent','station 2023','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2024','2024','2024','10.10.10.15','2024a','test','ACTIVE','Y','CCagent','station 2024','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2025','2025','2025','10.10.10.15','2025a','test','ACTIVE','Y','CCagent','station 2025','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2026','2026','2026','10.10.10.15','2026a','test','ACTIVE','Y','CCagent','station 2026','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2027','2027','2027','10.10.10.15','2027a','test','ACTIVE','Y','CCagent','station 2027','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2028','2028','2028','10.10.10.15','2028a','test','ACTIVE','Y','CCagent','station 2028','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2029','2029','2029','10.10.10.15','2029a','test','ACTIVE','Y','CCagent','station 2029','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2030','2030','2030','10.10.10.15','2030a','test','ACTIVE','Y','CCagent','station 2030','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2031','2031','2031','10.10.10.15','2031a','test','ACTIVE','Y','CCagent','station 2031','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2032','2032','2032','10.10.10.15','2032a','test','ACTIVE','Y','CCagent','station 2032','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2033','2033','2033','10.10.10.15','2033a','test','ACTIVE','Y','CCagent','station 2033','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2034','2034','2034','10.10.10.15','2034a','test','ACTIVE','Y','CCagent','station 2034','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2035','2035','2035','10.10.10.15','2035a','test','ACTIVE','Y','CCagent','station 2035','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2036','2036','2036','10.10.10.15','2036a','test','ACTIVE','Y','CCagent','station 2036','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2037','2037','2037','10.10.10.15','2037a','test','ACTIVE','Y','CCagent','station 2037','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2038','2038','2038','10.10.10.15','2038a','test','ACTIVE','Y','CCagent','station 2038','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2039','2039','2039','10.10.10.15','2039a','test','ACTIVE','Y','CCagent','station 2039','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2040','2040','2040','10.10.10.15','2040a','test','ACTIVE','Y','CCagent','station 2040','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2041','2041','2041','10.10.10.15','2041a','test','ACTIVE','Y','CCagent','station 2041','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2042','2042','2042','10.10.10.15','2042a','test','ACTIVE','Y','CCagent','station 2042','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2043','2043','2043','10.10.10.15','2043a','test','ACTIVE','Y','CCagent','station 2043','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2044','2044','2044','10.10.10.15','2044a','test','ACTIVE','Y','CCagent','station 2044','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2045','2045','2045','10.10.10.15','2045a','test','ACTIVE','Y','CCagent','station 2045','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2046','2046','2046','10.10.10.15','2046a','test','ACTIVE','Y','CCagent','station 2046','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2047','2047','2047','10.10.10.15','2047a','test','ACTIVE','Y','CCagent','station 2047','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2048','2048','2048','10.10.10.15','2048a','test','ACTIVE','Y','CCagent','station 2048','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2049','2049','2049','10.10.10.15','2049a','test','ACTIVE','Y','CCagent','station 2049','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2050','2050','2050','10.10.10.15','2050a','test','ACTIVE','Y','CCagent','station 2050','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2051','2051','2051','10.10.10.15','2051a','test','ACTIVE','Y','CCagent','station 2051','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2052','2052','2052','10.10.10.15','2052a','test','ACTIVE','Y','CCagent','station 2052','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2053','2053','2053','10.10.10.15','2053a','test','ACTIVE','Y','CCagent','station 2053','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2054','2054','2054','10.10.10.15','2054a','test','ACTIVE','Y','CCagent','station 2054','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2055','2055','2055','10.10.10.15','2055a','test','ACTIVE','Y','CCagent','station 2055','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2056','2056','2056','10.10.10.15','2056a','test','ACTIVE','Y','CCagent','station 2056','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2057','2057','2057','10.10.10.15','2057a','test','ACTIVE','Y','CCagent','station 2057','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2058','2058','2058','10.10.10.15','2058a','test','ACTIVE','Y','CCagent','station 2058','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2059','2059','2059','10.10.10.15','2059a','test','ACTIVE','Y','CCagent','station 2059','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2060','2060','2060','10.10.10.15','2060a','test','ACTIVE','Y','CCagent','station 2060','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2061','2061','2061','10.10.10.15','2061a','test','ACTIVE','Y','CCagent','station 2061','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2062','2062','2062','10.10.10.15','2062a','test','ACTIVE','Y','CCagent','station 2062','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2063','2063','2063','10.10.10.15','2063a','test','ACTIVE','Y','CCagent','station 2063','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2064','2064','2064','10.10.10.15','2064a','test','ACTIVE','Y','CCagent','station 2064','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2065','2065','2065','10.10.10.15','2065a','test','ACTIVE','Y','CCagent','station 2065','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2066','2066','2066','10.10.10.15','2066a','test','ACTIVE','Y','CCagent','station 2066','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2067','2067','2067','10.10.10.15','2067a','test','ACTIVE','Y','CCagent','station 2067','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2068','2068','2068','10.10.10.15','2068a','test','ACTIVE','Y','CCagent','station 2068','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2069','2069','2069','10.10.10.15','2069a','test','ACTIVE','Y','CCagent','station 2069','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2070','2070','2070','10.10.10.15','2070a','test','ACTIVE','Y','CCagent','station 2070','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2071','2071','2071','10.10.10.15','2071a','test','ACTIVE','Y','CCagent','station 2071','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2072','2072','2072','10.10.10.15','2072a','test','ACTIVE','Y','CCagent','station 2072','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2073','2073','2073','10.10.10.15','2073a','test','ACTIVE','Y','CCagent','station 2073','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2074','2074','2074','10.10.10.15','2074a','test','ACTIVE','Y','CCagent','station 2074','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2075','2075','2075','10.10.10.15','2075a','test','ACTIVE','Y','CCagent','station 2075','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2076','2076','2076','10.10.10.15','2076a','test','ACTIVE','Y','CCagent','station 2076','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2077','2077','2077','10.10.10.15','2077a','test','ACTIVE','Y','CCagent','station 2077','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2078','2078','2078','10.10.10.15','2078a','test','ACTIVE','Y','CCagent','station 2078','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2079','2079','2079','10.10.10.15','2079a','test','ACTIVE','Y','CCagent','station 2079','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2080','2080','2080','10.10.10.15','2080a','test','ACTIVE','Y','CCagent','station 2080','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2081','2081','2081','10.10.10.15','2081a','test','ACTIVE','Y','CCagent','station 2081','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2082','2082','2082','10.10.10.15','2082a','test','ACTIVE','Y','CCagent','station 2082','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2083','2083','2083','10.10.10.15','2083a','test','ACTIVE','Y','CCagent','station 2083','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2084','2084','2084','10.10.10.15','2084a','test','ACTIVE','Y','CCagent','station 2084','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2085','2085','2085','10.10.10.15','2085a','test','ACTIVE','Y','CCagent','station 2085','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2086','2086','2086','10.10.10.15','2086a','test','ACTIVE','Y','CCagent','station 2086','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2087','2087','2087','10.10.10.15','2087a','test','ACTIVE','Y','CCagent','station 2087','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2088','2088','2088','10.10.10.15','2088a','test','ACTIVE','Y','CCagent','station 2088','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2089','2089','2089','10.10.10.15','2089a','test','ACTIVE','Y','CCagent','station 2089','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2090','2090','2090','10.10.10.15','2090a','test','ACTIVE','Y','CCagent','station 2090','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2091','2091','2091','10.10.10.15','2091a','test','ACTIVE','Y','CCagent','station 2091','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2092','2092','2092','10.10.10.15','2092a','test','ACTIVE','Y','CCagent','station 2092','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2093','2093','2093','10.10.10.15','2093a','test','ACTIVE','Y','CCagent','station 2093','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2094','2094','2094','10.10.10.15','2094a','test','ACTIVE','Y','CCagent','station 2094','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2095','2095','2095','10.10.10.15','2095a','test','ACTIVE','Y','CCagent','station 2095','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2096','2096','2096','10.10.10.15','2096a','test','ACTIVE','Y','CCagent','station 2096','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2097','2097','2097','10.10.10.15','2097a','test','ACTIVE','Y','CCagent','station 2097','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2098','2098','2098','10.10.10.15','2098a','test','ACTIVE','Y','CCagent','station 2098','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2099','2099','2099','10.10.10.15','2099a','test','ACTIVE','Y','CCagent','station 2099','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2100','2100','2100','10.10.10.15','2100a','test','ACTIVE','Y','CCagent','station 2100','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2101','2101','2101','10.10.10.15','2101a','test','ACTIVE','Y','CCagent','station 2101','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2102','2102','2102','10.10.10.15','2102a','test','ACTIVE','Y','CCagent','station 2102','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2103','2103','2103','10.10.10.15','2103a','test','ACTIVE','Y','CCagent','station 2103','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2104','2104','2104','10.10.10.15','2104a','test','ACTIVE','Y','CCagent','station 2104','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2105','2105','2105','10.10.10.15','2105a','test','ACTIVE','Y','CCagent','station 2105','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2106','2106','2106','10.10.10.15','2106a','test','ACTIVE','Y','CCagent','station 2106','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2107','2107','2107','10.10.10.15','2107a','test','ACTIVE','Y','CCagent','station 2107','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2108','2108','2108','10.10.10.15','2108a','test','ACTIVE','Y','CCagent','station 2108','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2109','2109','2109','10.10.10.15','2109a','test','ACTIVE','Y','CCagent','station 2109','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2110','2110','2110','10.10.10.15','2110a','test','ACTIVE','Y','CCagent','station 2110','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2111','2111','2111','10.10.10.15','2111a','test','ACTIVE','Y','CCagent','station 2111','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2112','2112','2112','10.10.10.15','2112a','test','ACTIVE','Y','CCagent','station 2112','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2113','2113','2113','10.10.10.15','2113a','test','ACTIVE','Y','CCagent','station 2113','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2114','2114','2114','10.10.10.15','2114a','test','ACTIVE','Y','CCagent','station 2114','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2115','2115','2115','10.10.10.15','2115a','test','ACTIVE','Y','CCagent','station 2115','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2116','2116','2116','10.10.10.15','2116a','test','ACTIVE','Y','CCagent','station 2116','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2117','2117','2117','10.10.10.15','2117a','test','ACTIVE','Y','CCagent','station 2117','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2118','2118','2118','10.10.10.15','2118a','test','ACTIVE','Y','CCagent','station 2118','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2119','2119','2119','10.10.10.15','2119a','test','ACTIVE','Y','CCagent','station 2119','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2120','2120','2120','10.10.10.15','2120a','test','ACTIVE','Y','CCagent','station 2120','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2121','2121','2121','10.10.10.15','2121a','test','ACTIVE','Y','CCagent','station 2121','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2122','2122','2122','10.10.10.15','2122a','test','ACTIVE','Y','CCagent','station 2122','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2123','2123','2123','10.10.10.15','2123a','test','ACTIVE','Y','CCagent','station 2123','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2124','2124','2124','10.10.10.15','2124a','test','ACTIVE','Y','CCagent','station 2124','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2125','2125','2125','10.10.10.15','2125a','test','ACTIVE','Y','CCagent','station 2125','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2126','2126','2126','10.10.10.15','2126a','test','ACTIVE','Y','CCagent','station 2126','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2127','2127','2127','10.10.10.15','2127a','test','ACTIVE','Y','CCagent','station 2127','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2128','2128','2128','10.10.10.15','2128a','test','ACTIVE','Y','CCagent','station 2128','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2129','2129','2129','10.10.10.15','2129a','test','ACTIVE','Y','CCagent','station 2129','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2130','2130','2130','10.10.10.15','2130a','test','ACTIVE','Y','CCagent','station 2130','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2131','2131','2131','10.10.10.15','2131a','test','ACTIVE','Y','CCagent','station 2131','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2132','2132','2132','10.10.10.15','2132a','test','ACTIVE','Y','CCagent','station 2132','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2133','2133','2133','10.10.10.15','2133a','test','ACTIVE','Y','CCagent','station 2133','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2134','2134','2134','10.10.10.15','2134a','test','ACTIVE','Y','CCagent','station 2134','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2135','2135','2135','10.10.10.15','2135a','test','ACTIVE','Y','CCagent','station 2135','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2136','2136','2136','10.10.10.15','2136a','test','ACTIVE','Y','CCagent','station 2136','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2137','2137','2137','10.10.10.15','2137a','test','ACTIVE','Y','CCagent','station 2137','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2138','2138','2138','10.10.10.15','2138a','test','ACTIVE','Y','CCagent','station 2138','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2139','2139','2139','10.10.10.15','2139a','test','ACTIVE','Y','CCagent','station 2139','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2140','2140','2140','10.10.10.15','2140a','test','ACTIVE','Y','CCagent','station 2140','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2141','2141','2141','10.10.10.15','2141a','test','ACTIVE','Y','CCagent','station 2141','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2142','2142','2142','10.10.10.15','2142a','test','ACTIVE','Y','CCagent','station 2142','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2143','2143','2143','10.10.10.15','2143a','test','ACTIVE','Y','CCagent','station 2143','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2144','2144','2144','10.10.10.15','2144a','test','ACTIVE','Y','CCagent','station 2144','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2145','2145','2145','10.10.10.15','2145a','test','ACTIVE','Y','CCagent','station 2145','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2146','2146','2146','10.10.10.15','2146a','test','ACTIVE','Y','CCagent','station 2146','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2147','2147','2147','10.10.10.15','2147a','test','ACTIVE','Y','CCagent','station 2147','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2148','2148','2148','10.10.10.15','2148a','test','ACTIVE','Y','CCagent','station 2148','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2149','2149','2149','10.10.10.15','2149a','test','ACTIVE','Y','CCagent','station 2149','IAX2','-5','0000000000','test');
+INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid,conf_secret) values('2150','2150','2150','10.10.10.15','2150a','test','ACTIVE','Y','CCagent','station 2150','IAX2','-5','0000000000','test');
+
+
+INSERT IGNORE INTO phones
+(extension,dialplan_number,voicemail_id,outbound_cid,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,conf_secret,company,email,delete_vm_after_email)
+SELECT extension, dialplan_number, voicemail_id, outbound_cid, '10.10.10.16', REPLACE(login,'a','b'), pass, status, active, phone_type, fullname, 'IAX2', local_gmt, conf_secret, company, email, delete_vm_after_email from phones where login LIKE "%a" and dialplan_number > 1000 and dialplan_number < 3000 limit 1000;
+
+INSERT IGNORE INTO phones
+(extension,dialplan_number,voicemail_id,outbound_cid,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,conf_secret,company,email,delete_vm_after_email)
+SELECT extension, dialplan_number, voicemail_id, outbound_cid, '10.10.10.17', REPLACE(login,'a','c'), pass, status, active, phone_type, fullname, 'IAX2', local_gmt, conf_secret, company, email, delete_vm_after_email from phones where login LIKE "%a" and dialplan_number > 1000 and dialplan_number < 3000 limit 1000;
+
+
+UPDATE phones set dialplan_number=CONCAT(dialplan_number,'0') where login LIKE "%a" and dialplan_number > 1000 and dialplan_number < 3000 limit 1000;
+UPDATE phones set dialplan_number=CONCAT(dialplan_number,'1') where login LIKE "%b" and dialplan_number > 1000 and dialplan_number < 3000 limit 1000;
+UPDATE phones set dialplan_number=CONCAT(dialplan_number,'2') where login LIKE "%c" and dialplan_number > 1000 and dialplan_number < 3000 limit 1000;
+
+
+UPDATE phones SET server_ip='192.168.1.21' where server_ip='10.10.10.15';
+UPDATE phones SET server_ip='192.168.1.22' where server_ip='10.10.10.16';
+UPDATE phones SET server_ip='192.168.1.23' where server_ip='10.10.10.17';
+
+
+INSERT INTO phones_alias SELECT REPLACE(login,'a',''),REPLACE(login,'a',' phone'),CONCAT(login, ',', REPLACE(login,'a','b'), ',', REPLACE(login,'a','c')) from phones where login like "%a" limit 1000;
+
+
+UPDATE servers SET rebuild_conf_files='Y';
diff --git a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql
index 1847b78f..e1f7a116 100644
--- a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql
+++ b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql
@@ -903,7 +903,11 @@ uniqueid_status_display ENUM('DISABLED','ENABLED','ENABLED_PREFIX','ENABLED_PRES
uniqueid_status_prefix VARCHAR(50) default '',
hold_time_option_minimum SMALLINT(5) default '0',
hold_time_option_press_filename VARCHAR(255) default 'to-be-called-back|digits/1',
-hold_time_option_callmenu VARCHAR(50) default ''
+hold_time_option_callmenu VARCHAR(50) default '',
+hold_time_option_no_block ENUM('N','Y') default 'N',
+hold_time_option_prompt_seconds SMALLINT(5) default '10',
+onhold_prompt_no_block ENUM('N','Y') default 'N',
+onhold_prompt_seconds SMALLINT(5) default '10'
);
CREATE TABLE vicidial_stations (
@@ -2241,7 +2245,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='1223',db_schema_update_date=NOW();
+UPDATE system_settings SET db_schema_version='1224',db_schema_update_date=NOW();
GRANT RELOAD ON *.* TO cron@'%';
GRANT RELOAD ON *.* TO cron@localhost;
diff --git a/agc_2-X/trunk/extras/upgrade_2.4.sql b/agc_2-X/trunk/extras/upgrade_2.4.sql
index 8fd4aa1b..aa372848 100644
--- a/agc_2-X/trunk/extras/upgrade_2.4.sql
+++ b/agc_2-X/trunk/extras/upgrade_2.4.sql
@@ -330,10 +330,6 @@ UPDATE vicidial_inbound_groups SET hold_time_option_press_filename='to-be-called
UPDATE system_settings SET db_schema_version='1222',db_schema_update_date=NOW();
-
-
-
-
ALTER TABLE vicidial_campaigns ADD inbound_queue_no_dial ENUM('DISABLED','ENABLED','ALL_SERVERS') default 'DISABLED';
ALTER TABLE vicidial_call_times ADD default_afterhours_filename_override VARCHAR(255) default '';
@@ -346,3 +342,10 @@ ALTER TABLE vicidial_call_times ADD friday_afterhours_filename_override VARCHAR(
ALTER TABLE vicidial_call_times ADD saturday_afterhours_filename_override VARCHAR(255) default '';
UPDATE system_settings SET db_schema_version='1223',db_schema_update_date=NOW();
+
+ALTER table vicidial_inbound_groups ADD hold_time_option_no_block ENUM('N','Y') default 'N';
+ALTER table vicidial_inbound_groups ADD hold_time_option_prompt_seconds SMALLINT(5) default '10';
+ALTER table vicidial_inbound_groups ADD onhold_prompt_no_block ENUM('N','Y') default 'N';
+ALTER table vicidial_inbound_groups ADD onhold_prompt_seconds SMALLINT(5) default '10';
+
+UPDATE system_settings SET db_schema_version='1224',db_schema_update_date=NOW();
diff --git a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt
index 5bf18695..934eb0ba 100644
--- a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt
+++ b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt
@@ -194,6 +194,14 @@ Inbound Queue No Dial||
This feature if set to ENABLED allows you to prevent outbound auto-dialing of this campaign if there are any inbound calls waiting in queue that are part of the allowed inbound groups set in this campaign. Setting this to ALL_SERVERS will change the algorithm to calculate all inbound calls as active calls on this server even if they are on another server which will reduce the chance of placing unnecessary outbound calls if you have calls coming in on another server. Default is DISABLED||
After Hours Filename Override||
These fields allow you to override the After Hours message for inbound groups if it is set to something. Default is empty||
+On Hold Prompt No Block||
+Setting this option to Y will allow calls in line behind a call where the on hold prompt is playing to go to an agent if one becomes available while the message is playing. While the On Hold Prompt Filename message is playing to a customer they cannot be sent to an agent. Default is N||
+On Hold Prompt Seconds||
+This field needs to be set to the number of seconds that the On Hold Prompt Filename plays for. Default is 10||
+Hold Time Option Press No Block||
+Setting this option to Y will allow calls in line behind a call where the Hold Time Option Press Filename prompt is playing to go to an agent if one becomes available while the message is playing. While the Hold Time Option Press Filename message is playing to a customer they cannot be sent to an agent. Default is N||
+Hold Time Option Press Filename Seconds||
+This field needs to be set to the number of seconds that the Hold Time Option Press Filename plays for. Default is 10||
AST_VICIDIAL_ingrouplist.php
diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php
index cde08985..2b83504f 100644
--- a/agc_2-X/trunk/www/vicidial/admin.php
+++ b/agc_2-X/trunk/www/vicidial/admin.php
@@ -1277,6 +1277,14 @@ if (isset($_GET["friday_afterhours_filename_override"])) {$friday_afterhours_f
elseif (isset($_POST["friday_afterhours_filename_override"])) {$friday_afterhours_filename_override=$_POST["friday_afterhours_filename_override"];}
if (isset($_GET["saturday_afterhours_filename_override"])) {$saturday_afterhours_filename_override=$_GET["saturday_afterhours_filename_override"];}
elseif (isset($_POST["saturday_afterhours_filename_override"])) {$saturday_afterhours_filename_override=$_POST["saturday_afterhours_filename_override"];}
+if (isset($_GET["onhold_prompt_no_block"])) {$onhold_prompt_no_block=$_GET["onhold_prompt_no_block"];}
+ elseif (isset($_POST["onhold_prompt_no_block"])) {$onhold_prompt_no_block=$_POST["onhold_prompt_no_block"];}
+if (isset($_GET["onhold_prompt_seconds"])) {$onhold_prompt_seconds=$_GET["onhold_prompt_seconds"];}
+ elseif (isset($_POST["onhold_prompt_seconds"])) {$onhold_prompt_seconds=$_POST["onhold_prompt_seconds"];}
+if (isset($_GET["hold_time_option_no_block"])) {$hold_time_option_no_block=$_GET["hold_time_option_no_block"];}
+ elseif (isset($_POST["hold_time_option_no_block"])) {$hold_time_option_no_block=$_POST["hold_time_option_no_block"];}
+if (isset($_GET["hold_time_option_prompt_seconds"])) {$hold_time_option_prompt_seconds=$_GET["hold_time_option_prompt_seconds"];}
+ elseif (isset($_POST["hold_time_option_prompt_seconds"])) {$hold_time_option_prompt_seconds=$_POST["hold_time_option_prompt_seconds"];}
if (isset($script_id)) {$script_id= strtoupper($script_id);}
@@ -1489,6 +1497,8 @@ if ($non_latin < 1)
$codecs_with_template = ereg_replace("[^0-9]","",$codecs_with_template);
$custom_fields_modify = ereg_replace("[^0-9]","",$custom_fields_modify);
$hold_time_option_minimum = ereg_replace("[^0-9]","",$hold_time_option_minimum);
+ $onhold_prompt_seconds = ereg_replace("[^0-9]","",$onhold_prompt_seconds);
+ $hold_time_option_prompt_seconds = ereg_replace("[^0-9]","",$hold_time_option_prompt_seconds);
$drop_call_seconds = ereg_replace("[^-0-9]","",$drop_call_seconds);
@@ -1568,6 +1578,8 @@ if ($non_latin < 1)
$agent_xfer_park_customer_dial = ereg_replace("[^NY]","",$agent_xfer_park_customer_dial);
$agent_fullscreen = ereg_replace("[^NY]","",$agent_fullscreen);
$extension_appended_cidname = ereg_replace("[^NY]","",$extension_appended_cidname);
+ $onhold_prompt_no_block = ereg_replace("[^NY]","",$onhold_prompt_no_block);
+ $hold_time_option_no_block = ereg_replace("[^NY]","",$hold_time_option_no_block);
$qc_enabled = ereg_replace("[^0-9NY]","",$qc_enabled);
$active = ereg_replace("[^0-9NY]","",$active);
@@ -2236,11 +2248,12 @@ else
# 100507-1102 - Added hold_time_option_minimum option to in-groups and copy carrier function
# 100512-1615 - Added more hold time press-1 options
# 100518-0643 - Added inbound_queue_no_dial and call time after hours override features
+# 100523-0840 - Added inbound prompt and no-block options
#
# 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
-$admin_version = '2.4-255';
-$build = '100518-0643';
+$admin_version = '2.4-256';
+$build = '100523-0840';
$STARTtime = date("U");
$SQLdate = date("Y-m-d H:i:s");
@@ -4587,6 +4600,16 @@ if ($ADD==99999)
On Hold Prompt Interval - The length of time in seconds to wait before playing the on hold prompt. Default is 60. To disable the On Hold Prompt, set the interval to 0.
+
+
+
+ On Hold Prompt No Block - Setting this option to Y will allow calls in line behind a call where the on hold prompt is playing to go to an agent if one becomes available while the message is playing. While the On Hold Prompt Filename message is playing to a customer they cannot be sent to an agent. Default is N.
+
+
+
+
+ On Hold Prompt Seconds - This field needs to be set to the number of seconds that the On Hold Prompt Filename plays for. Default is 10.
+
@@ -4637,6 +4660,16 @@ if ($ADD==99999)
Hold Time Option Press Filename - If Hold Time Option is set to one of the PRESS_ options, this is the filename prompt that is played if the estimated hold time exceeds the Hold Time Option Seconds to give the customer the option to press 1 on their phone to run the selected Hold Time Press Option. It is very important that this audio file is 10 seconds or less or there will be problems. Default is to-be-called-back.
+
+
+
+ Hold Time Option Press No Block - Setting this option to Y will allow calls in line behind a call where the Hold Time Option Press Filename prompt is playing to go to an agent if one becomes available while the message is playing. While the Hold Time Option Press Filename message is playing to a customer they cannot be sent to an agent. Default is N.
+
+
+
+
+ Hold Time Option Press Filename Seconds - This field needs to be set to the number of seconds that the Hold Time Option Press Filename plays for. Default is 10.
+
@@ -9710,7 +9743,7 @@ if ($ADD==2011)
}
else
{
- $stmt="INSERT INTO vicidial_inbound_groups (group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu) SELECT \"$group_id\",\"$group_name\",group_color,\"N\",web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu from vicidial_inbound_groups where group_id=\"$source_group_id\";";
+ $stmt="INSERT INTO vicidial_inbound_groups (group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds) SELECT \"$group_id\",\"$group_name\",group_color,\"N\",web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds from vicidial_inbound_groups where group_id=\"$source_group_id\";";
$rslt=mysql_query($stmt, $link);
echo "
GROUP ADDED: $group_id\n";
@@ -12822,7 +12855,7 @@ if ($ADD==4111)
echo "
GROUP MODIFIED: $group_id\n";
- $stmt="UPDATE vicidial_inbound_groups set group_name='$group_name', group_color='$group_color', active='$active', web_form_address='" . mysql_real_escape_string($web_form_address) . "', voicemail_ext='$voicemail_ext', next_agent_call='$next_agent_call', fronter_display='$fronter_display', ingroup_script='$script_id', get_call_launch='$get_call_launch', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number', xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',drop_action='$drop_action',drop_call_seconds='$drop_call_seconds',drop_exten='$drop_exten',call_time_id='$call_time_id',after_hours_action='$after_hours_action',after_hours_message_filename='$after_hours_message_filename',after_hours_exten='$after_hours_exten',after_hours_voicemail='$after_hours_voicemail',welcome_message_filename='$welcome_message_filename',moh_context='$moh_context',onhold_prompt_filename='$onhold_prompt_filename',prompt_interval='$prompt_interval',agent_alert_exten='$agent_alert_exten',agent_alert_delay='$agent_alert_delay',default_xfer_group='$default_xfer_group',queue_priority='$queue_priority',drop_inbound_group='$drop_inbound_group',ingroup_recording_override='$ingroup_recording_override',ingroup_rec_filename='$ingroup_rec_filename',afterhours_xfer_group='$afterhours_xfer_group',qc_enabled='$qc_enabled',qc_statuses='$QC_statuses',qc_shift_id='$qc_shift_id',qc_get_record_launch='$qc_get_record_launch',qc_show_recording='$qc_show_recording',qc_web_form_address='$qc_web_form_address',qc_script='$qc_script',play_place_in_line='$play_place_in_line',play_estimate_hold_time='$play_estimate_hold_time',hold_time_option='$hold_time_option',hold_time_option_seconds='$hold_time_option_seconds',hold_time_option_exten='$hold_time_option_exten',hold_time_option_voicemail='$hold_time_option_voicemail',hold_time_option_xfer_group='$hold_time_option_xfer_group',hold_time_option_callback_filename='$hold_time_option_callback_filename',hold_time_option_callback_list_id='$hold_time_option_callback_list_id',hold_recall_xfer_group='$hold_recall_xfer_group',no_delay_call_route='$no_delay_call_route',play_welcome_message='$play_welcome_message',answer_sec_pct_rt_stat_one='$answer_sec_pct_rt_stat_one',answer_sec_pct_rt_stat_two='$answer_sec_pct_rt_stat_two',default_group_alias='$default_group_alias',no_agent_no_queue='$no_agent_no_queue',no_agent_action='$no_agent_action',no_agent_action_value='$no_agent_action_value',web_form_address_two='" . mysql_real_escape_string($web_form_address_two) . "',timer_action='$timer_action',timer_action_message='$timer_action_message',timer_action_seconds='$timer_action_seconds',start_call_url='" . mysql_real_escape_string($start_call_url) . "',dispo_call_url='" . mysql_real_escape_string($dispo_call_url) . "',xferconf_c_number='$xferconf_c_number',xferconf_d_number='$xferconf_d_number',xferconf_e_number='$xferconf_e_number',ignore_list_script_override='$ignore_list_script_override',extension_appended_cidname='$extension_appended_cidname',uniqueid_status_display='$uniqueid_status_display',uniqueid_status_prefix='$uniqueid_status_prefix',hold_time_option_minimum='$hold_time_option_minimum',hold_time_option_press_filename='$hold_time_option_press_filename',hold_time_option_callmenu='$hold_time_option_callmenu' where group_id='$group_id';";
+ $stmt="UPDATE vicidial_inbound_groups set group_name='$group_name', group_color='$group_color', active='$active', web_form_address='" . mysql_real_escape_string($web_form_address) . "', voicemail_ext='$voicemail_ext', next_agent_call='$next_agent_call', fronter_display='$fronter_display', ingroup_script='$script_id', get_call_launch='$get_call_launch', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number', xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',drop_action='$drop_action',drop_call_seconds='$drop_call_seconds',drop_exten='$drop_exten',call_time_id='$call_time_id',after_hours_action='$after_hours_action',after_hours_message_filename='$after_hours_message_filename',after_hours_exten='$after_hours_exten',after_hours_voicemail='$after_hours_voicemail',welcome_message_filename='$welcome_message_filename',moh_context='$moh_context',onhold_prompt_filename='$onhold_prompt_filename',prompt_interval='$prompt_interval',agent_alert_exten='$agent_alert_exten',agent_alert_delay='$agent_alert_delay',default_xfer_group='$default_xfer_group',queue_priority='$queue_priority',drop_inbound_group='$drop_inbound_group',ingroup_recording_override='$ingroup_recording_override',ingroup_rec_filename='$ingroup_rec_filename',afterhours_xfer_group='$afterhours_xfer_group',qc_enabled='$qc_enabled',qc_statuses='$QC_statuses',qc_shift_id='$qc_shift_id',qc_get_record_launch='$qc_get_record_launch',qc_show_recording='$qc_show_recording',qc_web_form_address='$qc_web_form_address',qc_script='$qc_script',play_place_in_line='$play_place_in_line',play_estimate_hold_time='$play_estimate_hold_time',hold_time_option='$hold_time_option',hold_time_option_seconds='$hold_time_option_seconds',hold_time_option_exten='$hold_time_option_exten',hold_time_option_voicemail='$hold_time_option_voicemail',hold_time_option_xfer_group='$hold_time_option_xfer_group',hold_time_option_callback_filename='$hold_time_option_callback_filename',hold_time_option_callback_list_id='$hold_time_option_callback_list_id',hold_recall_xfer_group='$hold_recall_xfer_group',no_delay_call_route='$no_delay_call_route',play_welcome_message='$play_welcome_message',answer_sec_pct_rt_stat_one='$answer_sec_pct_rt_stat_one',answer_sec_pct_rt_stat_two='$answer_sec_pct_rt_stat_two',default_group_alias='$default_group_alias',no_agent_no_queue='$no_agent_no_queue',no_agent_action='$no_agent_action',no_agent_action_value='$no_agent_action_value',web_form_address_two='" . mysql_real_escape_string($web_form_address_two) . "',timer_action='$timer_action',timer_action_message='$timer_action_message',timer_action_seconds='$timer_action_seconds',start_call_url='" . mysql_real_escape_string($start_call_url) . "',dispo_call_url='" . mysql_real_escape_string($dispo_call_url) . "',xferconf_c_number='$xferconf_c_number',xferconf_d_number='$xferconf_d_number',xferconf_e_number='$xferconf_e_number',ignore_list_script_override='$ignore_list_script_override',extension_appended_cidname='$extension_appended_cidname',uniqueid_status_display='$uniqueid_status_display',uniqueid_status_prefix='$uniqueid_status_prefix',hold_time_option_minimum='$hold_time_option_minimum',hold_time_option_press_filename='$hold_time_option_press_filename',hold_time_option_callmenu='$hold_time_option_callmenu',onhold_prompt_no_block='$onhold_prompt_no_block',onhold_prompt_seconds='$onhold_prompt_seconds',hold_time_option_no_block='$hold_time_option_no_block',hold_time_option_prompt_seconds='$hold_time_option_prompt_seconds' where group_id='$group_id';";
$rslt=mysql_query($stmt, $link);
### LOG INSERTION Admin Log Table ###
@@ -20117,7 +20150,7 @@ if ($ADD==3111)
echo "
\n";
echo "";
- $stmt="SELECT group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu from vicidial_inbound_groups where group_id='$group_id';";
+ $stmt="SELECT group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds from vicidial_inbound_groups where group_id='$group_id';";
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
@@ -20195,6 +20228,10 @@ if ($ADD==3111)
$hold_time_option_minimum = $row[72];
$hold_time_option_press_filename = $row[73];
$hold_time_option_callmenu = $row[74];
+ $onhold_prompt_no_block = $row[75];
+ $onhold_prompt_seconds = $row[76];
+ $hold_time_option_no_block = $row[77];
+ $hold_time_option_prompt_seconds = $row[78];
##### get callmenu listings for dynamic pulldown
$stmt="SELECT menu_id,menu_name from vicidial_call_menu order by menu_id";
@@ -20475,6 +20512,10 @@ if ($ADD==3111)
echo "| On Hold Prompt Interval: | $NWB#vicidial_inbound_groups-prompt_interval$NWE | On Hold Prompt No Block: | $NWB#vicidial_inbound_groups-onhold_prompt_no_block$NWE | On Hold Prompt Seconds: | $NWB#vicidial_inbound_groups-onhold_prompt_seconds$NWE | Play Place in Line: | $NWB#vicidial_inbound_groups-play_place_in_line$NWE | Play Estimated Hold Time: | $NWB#vicidial_inbound_groups-play_estimate_hold_time$NWE | Hold Time Option Press Filename: | audio chooser $NWB#vicidial_inbound_groups-hold_time_option_press_filename$NWE | Hold Time Option Press No Block: | $NWB#vicidial_inbound_groups-hold_time_option_no_block$NWE | Hold Time Option Press Filename Seconds: | $NWB#vicidial_inbound_groups-hold_time_option_prompt_seconds$NWE | Hold Time Option After Press Filename: | audio chooser $NWB#vicidial_inbound_groups-hold_time_option_callback_filename$NWE | Hold Time Option Callback List ID: | $NWB#vicidial_inbound_groups-hold_time_option_callback_list_id$NWE | |