diff --git a/UPGRADE b/UPGRADE index 29b912a4..8c26bd3d 100644 --- a/UPGRADE +++ b/UPGRADE @@ -78,6 +78,11 @@ NOTE: Upgrading from 1.1.12-3 to 2.0.1 is at the bottom 16. AST_agent_performance_detail.php report script has been completely rewritten +17. REQUIRED CHANGE! If you use Fronter/Closer campaigns where an agent is sending + calls to a closer, you will need to define the new "Default Transfer Group" + field with the inbound group that you want to take the calls. Transfers + are now allowed from a list of definable in-groups that you have to set + in the campaign detail screen. diff --git a/docs/INBOUND-CLOSER_PROCESS.txt b/docs/INBOUND-CLOSER_PROCESS.txt index 056fbed6..bbc9ac92 100644 --- a/docs/INBOUND-CLOSER_PROCESS.txt +++ b/docs/INBOUND-CLOSER_PROCESS.txt @@ -3,10 +3,18 @@ INOUND/CLOSER proces flow 2007-05-02 ** THIS FULLY REDONE INBOUND-CLOSER PROSESS IS PLANNED FOR THE 2.0.4 RELEASE ** This will outline the process I have thought through in my head for rewriting the inbound and closer call queueing and handling processes within VICIDIAL. The objective is to add the following features to make VICIDIAL a more well-rounded product: -- consolidate the 12 VDAD inbound and closer scripts into one script with CLI options +- consolidate the 13 VDAD inbound and closer scripts into one script with CLI options - custom hold music per in-group - put call_times into effect for in-groups allowing calls coming in after hours to be directed to another extension or voicemail box - allow any campaign to take inbound calls, removing the restriction on campaign_id name for that purpose + + + + + + + +***** Here are some planned features that will have to wait for the next release: - add concurrent-transfers options to inbound groups - announce estimated time on hold - announce place in line diff --git a/extras/MySQL_AST_CREATE_tables.sql b/extras/MySQL_AST_CREATE_tables.sql index f6e27364..77a20331 100644 --- a/extras/MySQL_AST_CREATE_tables.sql +++ b/extras/MySQL_AST_CREATE_tables.sql @@ -530,7 +530,9 @@ disable_alter_custdata ENUM('Y','N') default 'N', no_hopper_leads_logins ENUM('Y','N') default 'N', list_order_mix VARCHAR(20) default 'DISABLED', campaign_allow_inbound ENUM('Y','N') default 'N', -manual_dial_list_id BIGINT(14) UNSIGNED +manual_dial_list_id BIGINT(14) UNSIGNED, +default_xfer_group VARCHAR(20) default '---NONE---', +xfer_groups TEXT default '' ); CREATE TABLE vicidial_lists ( @@ -615,7 +617,8 @@ moh_context VARCHAR(50) default 'default', onhold_prompt_filename VARCHAR(50) default 'generic_hold', prompt_interval SMALLINT(5) UNSIGNED default '60', agent_alert_exten VARCHAR(20) default '8304', -agent_alert_delay INT(6) default '1000' +agent_alert_delay INT(6) default '1000', +default_xfer_group VARCHAR(20) default '---NONE---' ); CREATE TABLE vicidial_stations ( diff --git a/extras/sip-iax_phones.sql b/extras/sip-iax_phones.sql index e0ec074a..5a8c36dc 100644 --- a/extras/sip-iax_phones.sql +++ b/extras/sip-iax_phones.sql @@ -1,106 +1,106 @@ -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('100','100','100','10.10.10.15','100','test','ACTIVE','Y','CCagent','station 100','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('101','101','101','10.10.10.15','101','test','ACTIVE','Y','CCagent','station 101','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('102','102','102','10.10.10.15','102','test','ACTIVE','Y','CCagent','station 102','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('103','103','103','10.10.10.15','103','test','ACTIVE','Y','CCagent','station 103','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('104','104','104','10.10.10.15','104','test','ACTIVE','Y','CCagent','station 104','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('105','105','105','10.10.10.15','105','test','ACTIVE','Y','CCagent','station 105','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('106','106','106','10.10.10.15','106','test','ACTIVE','Y','CCagent','station 106','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('107','107','107','10.10.10.15','107','test','ACTIVE','Y','CCagent','station 107','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('108','108','108','10.10.10.15','108','test','ACTIVE','Y','CCagent','station 108','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('109','109','109','10.10.10.15','109','test','ACTIVE','Y','CCagent','station 109','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('110','110','110','10.10.10.15','110','test','ACTIVE','Y','CCagent','station 110','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('111','111','111','10.10.10.15','111','test','ACTIVE','Y','CCagent','station 111','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('112','112','112','10.10.10.15','112','test','ACTIVE','Y','CCagent','station 112','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('113','113','113','10.10.10.15','113','test','ACTIVE','Y','CCagent','station 113','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('114','114','114','10.10.10.15','114','test','ACTIVE','Y','CCagent','station 114','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('115','115','115','10.10.10.15','115','test','ACTIVE','Y','CCagent','station 115','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('116','116','116','10.10.10.15','116','test','ACTIVE','Y','CCagent','station 116','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('117','117','117','10.10.10.15','117','test','ACTIVE','Y','CCagent','station 117','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('118','118','118','10.10.10.15','118','test','ACTIVE','Y','CCagent','station 118','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('119','119','119','10.10.10.15','119','test','ACTIVE','Y','CCagent','station 119','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('120','120','120','10.10.10.15','120','test','ACTIVE','Y','CCagent','station 120','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('121','121','121','10.10.10.15','121','test','ACTIVE','Y','CCagent','station 121','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('122','122','122','10.10.10.15','122','test','ACTIVE','Y','CCagent','station 122','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('123','123','123','10.10.10.15','123','test','ACTIVE','Y','CCagent','station 123','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('124','124','124','10.10.10.15','124','test','ACTIVE','Y','CCagent','station 124','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('125','125','125','10.10.10.15','125','test','ACTIVE','Y','CCagent','station 125','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('126','126','126','10.10.10.15','126','test','ACTIVE','Y','CCagent','station 126','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('127','127','127','10.10.10.15','127','test','ACTIVE','Y','CCagent','station 127','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('128','128','128','10.10.10.15','128','test','ACTIVE','Y','CCagent','station 128','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('129','129','129','10.10.10.15','129','test','ACTIVE','Y','CCagent','station 129','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('130','130','130','10.10.10.15','130','test','ACTIVE','Y','CCagent','station 130','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('131','131','131','10.10.10.15','131','test','ACTIVE','Y','CCagent','station 131','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('132','132','132','10.10.10.15','132','test','ACTIVE','Y','CCagent','station 132','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('133','133','133','10.10.10.15','133','test','ACTIVE','Y','CCagent','station 133','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('134','134','134','10.10.10.15','134','test','ACTIVE','Y','CCagent','station 134','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('135','135','135','10.10.10.15','135','test','ACTIVE','Y','CCagent','station 135','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('136','136','136','10.10.10.15','136','test','ACTIVE','Y','CCagent','station 136','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('137','137','137','10.10.10.15','137','test','ACTIVE','Y','CCagent','station 137','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('138','138','138','10.10.10.15','138','test','ACTIVE','Y','CCagent','station 138','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('139','139','139','10.10.10.15','139','test','ACTIVE','Y','CCagent','station 139','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('140','140','140','10.10.10.15','140','test','ACTIVE','Y','CCagent','station 140','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('141','141','141','10.10.10.15','141','test','ACTIVE','Y','CCagent','station 141','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('142','142','142','10.10.10.15','142','test','ACTIVE','Y','CCagent','station 142','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('143','143','143','10.10.10.15','143','test','ACTIVE','Y','CCagent','station 143','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('144','144','144','10.10.10.15','144','test','ACTIVE','Y','CCagent','station 144','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('145','145','145','10.10.10.15','145','test','ACTIVE','Y','CCagent','station 145','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('146','146','146','10.10.10.15','146','test','ACTIVE','Y','CCagent','station 146','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('147','147','147','10.10.10.15','147','test','ACTIVE','Y','CCagent','station 147','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('148','148','148','10.10.10.15','148','test','ACTIVE','Y','CCagent','station 148','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('149','149','149','10.10.10.15','149','test','ACTIVE','Y','CCagent','station 149','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('150','150','150','10.10.10.15','150','test','ACTIVE','Y','CCagent','station 150','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc100','100','100','10.10.10.15','100','test','ACTIVE','Y','CCagent','station 100','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc101','101','101','10.10.10.15','101','test','ACTIVE','Y','CCagent','station 101','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc102','102','102','10.10.10.15','102','test','ACTIVE','Y','CCagent','station 102','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc103','103','103','10.10.10.15','103','test','ACTIVE','Y','CCagent','station 103','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc104','104','104','10.10.10.15','104','test','ACTIVE','Y','CCagent','station 104','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc105','105','105','10.10.10.15','105','test','ACTIVE','Y','CCagent','station 105','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc106','106','106','10.10.10.15','106','test','ACTIVE','Y','CCagent','station 106','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc107','107','107','10.10.10.15','107','test','ACTIVE','Y','CCagent','station 107','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc108','108','108','10.10.10.15','108','test','ACTIVE','Y','CCagent','station 108','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc109','109','109','10.10.10.15','109','test','ACTIVE','Y','CCagent','station 109','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc110','110','110','10.10.10.15','110','test','ACTIVE','Y','CCagent','station 110','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc111','111','111','10.10.10.15','111','test','ACTIVE','Y','CCagent','station 111','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc112','112','112','10.10.10.15','112','test','ACTIVE','Y','CCagent','station 112','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc113','113','113','10.10.10.15','113','test','ACTIVE','Y','CCagent','station 113','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc114','114','114','10.10.10.15','114','test','ACTIVE','Y','CCagent','station 114','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc115','115','115','10.10.10.15','115','test','ACTIVE','Y','CCagent','station 115','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc116','116','116','10.10.10.15','116','test','ACTIVE','Y','CCagent','station 116','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc117','117','117','10.10.10.15','117','test','ACTIVE','Y','CCagent','station 117','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc118','118','118','10.10.10.15','118','test','ACTIVE','Y','CCagent','station 118','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc119','119','119','10.10.10.15','119','test','ACTIVE','Y','CCagent','station 119','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc120','120','120','10.10.10.15','120','test','ACTIVE','Y','CCagent','station 120','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc121','121','121','10.10.10.15','121','test','ACTIVE','Y','CCagent','station 121','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc122','122','122','10.10.10.15','122','test','ACTIVE','Y','CCagent','station 122','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc123','123','123','10.10.10.15','123','test','ACTIVE','Y','CCagent','station 123','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc124','124','124','10.10.10.15','124','test','ACTIVE','Y','CCagent','station 124','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc125','125','125','10.10.10.15','125','test','ACTIVE','Y','CCagent','station 125','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc126','126','126','10.10.10.15','126','test','ACTIVE','Y','CCagent','station 126','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc127','127','127','10.10.10.15','127','test','ACTIVE','Y','CCagent','station 127','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc128','128','128','10.10.10.15','128','test','ACTIVE','Y','CCagent','station 128','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc129','129','129','10.10.10.15','129','test','ACTIVE','Y','CCagent','station 129','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc130','130','130','10.10.10.15','130','test','ACTIVE','Y','CCagent','station 130','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc131','131','131','10.10.10.15','131','test','ACTIVE','Y','CCagent','station 131','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc132','132','132','10.10.10.15','132','test','ACTIVE','Y','CCagent','station 132','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc133','133','133','10.10.10.15','133','test','ACTIVE','Y','CCagent','station 133','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc134','134','134','10.10.10.15','134','test','ACTIVE','Y','CCagent','station 134','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc135','135','135','10.10.10.15','135','test','ACTIVE','Y','CCagent','station 135','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc136','136','136','10.10.10.15','136','test','ACTIVE','Y','CCagent','station 136','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc137','137','137','10.10.10.15','137','test','ACTIVE','Y','CCagent','station 137','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc138','138','138','10.10.10.15','138','test','ACTIVE','Y','CCagent','station 138','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc139','139','139','10.10.10.15','139','test','ACTIVE','Y','CCagent','station 139','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc140','140','140','10.10.10.15','140','test','ACTIVE','Y','CCagent','station 140','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc141','141','141','10.10.10.15','141','test','ACTIVE','Y','CCagent','station 141','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc142','142','142','10.10.10.15','142','test','ACTIVE','Y','CCagent','station 142','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc143','143','143','10.10.10.15','143','test','ACTIVE','Y','CCagent','station 143','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc144','144','144','10.10.10.15','144','test','ACTIVE','Y','CCagent','station 144','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc145','145','145','10.10.10.15','145','test','ACTIVE','Y','CCagent','station 145','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc146','146','146','10.10.10.15','146','test','ACTIVE','Y','CCagent','station 146','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc147','147','147','10.10.10.15','147','test','ACTIVE','Y','CCagent','station 147','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc148','148','148','10.10.10.15','148','test','ACTIVE','Y','CCagent','station 148','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc149','149','149','10.10.10.15','149','test','ACTIVE','Y','CCagent','station 149','SIP','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc150','150','150','10.10.10.15','150','test','ACTIVE','Y','CCagent','station 150','SIP','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('300','300','300','10.10.10.15','300','test','ACTIVE','Y','CCagent','station 300','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('301','301','301','10.10.10.15','301','test','ACTIVE','Y','CCagent','station 301','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('302','302','302','10.10.10.15','302','test','ACTIVE','Y','CCagent','station 302','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('303','303','303','10.10.10.15','303','test','ACTIVE','Y','CCagent','station 303','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('304','304','304','10.10.10.15','304','test','ACTIVE','Y','CCagent','station 304','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('305','305','305','10.10.10.15','305','test','ACTIVE','Y','CCagent','station 305','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('306','306','306','10.10.10.15','306','test','ACTIVE','Y','CCagent','station 306','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('307','307','307','10.10.10.15','307','test','ACTIVE','Y','CCagent','station 307','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('308','308','308','10.10.10.15','308','test','ACTIVE','Y','CCagent','station 308','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('309','309','309','10.10.10.15','309','test','ACTIVE','Y','CCagent','station 309','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('310','310','310','10.10.10.15','310','test','ACTIVE','Y','CCagent','station 310','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('311','311','311','10.10.10.15','311','test','ACTIVE','Y','CCagent','station 311','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('312','312','312','10.10.10.15','312','test','ACTIVE','Y','CCagent','station 312','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('313','313','313','10.10.10.15','313','test','ACTIVE','Y','CCagent','station 313','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('314','314','314','10.10.10.15','314','test','ACTIVE','Y','CCagent','station 314','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('315','315','315','10.10.10.15','315','test','ACTIVE','Y','CCagent','station 315','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('316','316','316','10.10.10.15','316','test','ACTIVE','Y','CCagent','station 316','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('317','317','317','10.10.10.15','317','test','ACTIVE','Y','CCagent','station 317','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('318','318','318','10.10.10.15','318','test','ACTIVE','Y','CCagent','station 318','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('319','319','319','10.10.10.15','319','test','ACTIVE','Y','CCagent','station 319','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('320','320','320','10.10.10.15','320','test','ACTIVE','Y','CCagent','station 320','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('321','321','321','10.10.10.15','321','test','ACTIVE','Y','CCagent','station 321','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('322','322','322','10.10.10.15','322','test','ACTIVE','Y','CCagent','station 322','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('323','323','323','10.10.10.15','323','test','ACTIVE','Y','CCagent','station 323','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('324','324','324','10.10.10.15','324','test','ACTIVE','Y','CCagent','station 324','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('325','325','325','10.10.10.15','325','test','ACTIVE','Y','CCagent','station 325','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('326','326','326','10.10.10.15','326','test','ACTIVE','Y','CCagent','station 326','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('327','327','327','10.10.10.15','327','test','ACTIVE','Y','CCagent','station 327','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('328','328','328','10.10.10.15','328','test','ACTIVE','Y','CCagent','station 328','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('329','329','329','10.10.10.15','329','test','ACTIVE','Y','CCagent','station 329','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('330','330','330','10.10.10.15','330','test','ACTIVE','Y','CCagent','station 330','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('331','331','331','10.10.10.15','331','test','ACTIVE','Y','CCagent','station 331','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('332','332','332','10.10.10.15','332','test','ACTIVE','Y','CCagent','station 332','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('333','333','333','10.10.10.15','333','test','ACTIVE','Y','CCagent','station 333','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('334','334','334','10.10.10.15','334','test','ACTIVE','Y','CCagent','station 334','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('335','335','335','10.10.10.15','335','test','ACTIVE','Y','CCagent','station 335','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('336','336','336','10.10.10.15','336','test','ACTIVE','Y','CCagent','station 336','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('337','337','337','10.10.10.15','337','test','ACTIVE','Y','CCagent','station 337','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('338','338','338','10.10.10.15','338','test','ACTIVE','Y','CCagent','station 338','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('339','339','339','10.10.10.15','339','test','ACTIVE','Y','CCagent','station 339','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('340','340','340','10.10.10.15','340','test','ACTIVE','Y','CCagent','station 340','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('341','341','341','10.10.10.15','341','test','ACTIVE','Y','CCagent','station 341','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('342','342','342','10.10.10.15','342','test','ACTIVE','Y','CCagent','station 342','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('343','343','343','10.10.10.15','343','test','ACTIVE','Y','CCagent','station 343','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('344','344','344','10.10.10.15','344','test','ACTIVE','Y','CCagent','station 344','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('345','345','345','10.10.10.15','345','test','ACTIVE','Y','CCagent','station 345','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('346','346','346','10.10.10.15','346','test','ACTIVE','Y','CCagent','station 346','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('347','347','347','10.10.10.15','347','test','ACTIVE','Y','CCagent','station 347','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('348','348','348','10.10.10.15','348','test','ACTIVE','Y','CCagent','station 348','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('349','349','349','10.10.10.15','349','test','ACTIVE','Y','CCagent','station 349','IAX2','-5','0000000000'); -INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('350','350','350','10.10.10.15','350','test','ACTIVE','Y','CCagent','station 350','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc300','300','300','10.10.10.15','300','test','ACTIVE','Y','CCagent','station 300','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc301','301','301','10.10.10.15','301','test','ACTIVE','Y','CCagent','station 301','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc302','302','302','10.10.10.15','302','test','ACTIVE','Y','CCagent','station 302','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc303','303','303','10.10.10.15','303','test','ACTIVE','Y','CCagent','station 303','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc304','304','304','10.10.10.15','304','test','ACTIVE','Y','CCagent','station 304','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc305','305','305','10.10.10.15','305','test','ACTIVE','Y','CCagent','station 305','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc306','306','306','10.10.10.15','306','test','ACTIVE','Y','CCagent','station 306','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc307','307','307','10.10.10.15','307','test','ACTIVE','Y','CCagent','station 307','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc308','308','308','10.10.10.15','308','test','ACTIVE','Y','CCagent','station 308','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc309','309','309','10.10.10.15','309','test','ACTIVE','Y','CCagent','station 309','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc310','310','310','10.10.10.15','310','test','ACTIVE','Y','CCagent','station 310','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc311','311','311','10.10.10.15','311','test','ACTIVE','Y','CCagent','station 311','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc312','312','312','10.10.10.15','312','test','ACTIVE','Y','CCagent','station 312','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc313','313','313','10.10.10.15','313','test','ACTIVE','Y','CCagent','station 313','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc314','314','314','10.10.10.15','314','test','ACTIVE','Y','CCagent','station 314','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc315','315','315','10.10.10.15','315','test','ACTIVE','Y','CCagent','station 315','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc316','316','316','10.10.10.15','316','test','ACTIVE','Y','CCagent','station 316','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc317','317','317','10.10.10.15','317','test','ACTIVE','Y','CCagent','station 317','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc318','318','318','10.10.10.15','318','test','ACTIVE','Y','CCagent','station 318','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc319','319','319','10.10.10.15','319','test','ACTIVE','Y','CCagent','station 319','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc320','320','320','10.10.10.15','320','test','ACTIVE','Y','CCagent','station 320','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc321','321','321','10.10.10.15','321','test','ACTIVE','Y','CCagent','station 321','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc322','322','322','10.10.10.15','322','test','ACTIVE','Y','CCagent','station 322','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc323','323','323','10.10.10.15','323','test','ACTIVE','Y','CCagent','station 323','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc324','324','324','10.10.10.15','324','test','ACTIVE','Y','CCagent','station 324','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc325','325','325','10.10.10.15','325','test','ACTIVE','Y','CCagent','station 325','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc326','326','326','10.10.10.15','326','test','ACTIVE','Y','CCagent','station 326','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc327','327','327','10.10.10.15','327','test','ACTIVE','Y','CCagent','station 327','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc328','328','328','10.10.10.15','328','test','ACTIVE','Y','CCagent','station 328','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc329','329','329','10.10.10.15','329','test','ACTIVE','Y','CCagent','station 329','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc330','330','330','10.10.10.15','330','test','ACTIVE','Y','CCagent','station 330','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc331','331','331','10.10.10.15','331','test','ACTIVE','Y','CCagent','station 331','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc332','332','332','10.10.10.15','332','test','ACTIVE','Y','CCagent','station 332','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc333','333','333','10.10.10.15','333','test','ACTIVE','Y','CCagent','station 333','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc334','334','334','10.10.10.15','334','test','ACTIVE','Y','CCagent','station 334','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc335','335','335','10.10.10.15','335','test','ACTIVE','Y','CCagent','station 335','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc336','336','336','10.10.10.15','336','test','ACTIVE','Y','CCagent','station 336','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc337','337','337','10.10.10.15','337','test','ACTIVE','Y','CCagent','station 337','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc338','338','338','10.10.10.15','338','test','ACTIVE','Y','CCagent','station 338','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc339','339','339','10.10.10.15','339','test','ACTIVE','Y','CCagent','station 339','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc340','340','340','10.10.10.15','340','test','ACTIVE','Y','CCagent','station 340','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc341','341','341','10.10.10.15','341','test','ACTIVE','Y','CCagent','station 341','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc342','342','342','10.10.10.15','342','test','ACTIVE','Y','CCagent','station 342','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc343','343','343','10.10.10.15','343','test','ACTIVE','Y','CCagent','station 343','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc344','344','344','10.10.10.15','344','test','ACTIVE','Y','CCagent','station 344','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc345','345','345','10.10.10.15','345','test','ACTIVE','Y','CCagent','station 345','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc346','346','346','10.10.10.15','346','test','ACTIVE','Y','CCagent','station 346','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc347','347','347','10.10.10.15','347','test','ACTIVE','Y','CCagent','station 347','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc348','348','348','10.10.10.15','348','test','ACTIVE','Y','CCagent','station 348','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc349','349','349','10.10.10.15','349','test','ACTIVE','Y','CCagent','station 349','IAX2','-5','0000000000'); +INSERT INTO phones (extension,dialplan_number,voicemail_id,server_ip,login,pass,status,active,phone_type,fullname,protocol,local_gmt,outbound_cid) values('cc350','350','350','10.10.10.15','350','test','ACTIVE','Y','CCagent','station 350','IAX2','-5','0000000000'); diff --git a/extras/upgrade_2.0.4.sql b/extras/upgrade_2.0.4.sql index 128f9079..522189a6 100644 --- a/extras/upgrade_2.0.4.sql +++ b/extras/upgrade_2.0.4.sql @@ -147,8 +147,11 @@ ALTER TABLE vicidial_inbound_groups MODIFY next_agent_call ENUM('random','oldest ALTER TABLE vicidial_campaigns MODIFY next_agent_call ENUM('random','oldest_call_start','oldest_call_finish','campaign_rank','overall_user_level','fewest_calls') default 'oldest_call_finish'; +ALTER TABLE vicidial_campaigns ADD default_xfer_group VARCHAR(20) default '---NONE---'; +ALTER TABLE vicidial_inbound_groups ADD default_xfer_group VARCHAR(20) default '---NONE---'; +ALTER TABLE vicidial_campaigns ADD xfer_groups TEXT default ''; diff --git a/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.4.txt b/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.4.txt index aad8385b..04301e71 100644 --- a/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.4.txt +++ b/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.4.txt @@ -125,6 +125,10 @@ COPY USER|| Copy In-Group|| COPY INBOUND GROUP|| campaign_rank: orders by the rank given to the agent for the campaign. Highest to Lowest|| +Default Transfer Group -<\/B> This field is the default In-Group that will be automatically selected when the agent goes to the transfer-conference frame in their agent interface|| +Default Transfer Group: || +Allowed Transfer Groups: || +Allowed Transfer Groups -<\/B> With these checkbox listings you can select the groups that agents in this campaign can transfer calls to. Allow Closers must be enabled for this option to show up|| ############################################################ CLIENT diff --git a/www/agc/vdc_db_query.php b/www/agc/vdc_db_query.php index 782a0e1d..de3820c9 100644 --- a/www/agc/vdc_db_query.php +++ b/www/agc/vdc_db_query.php @@ -136,10 +136,11 @@ # 71030-2047 - added hopper priority for auto alt dial entries # 71116-1011 - added calls_today count updating of the vicidial_live_agents upon INCALL # 71120-1520 - added LogiNCamPaigns to show only allowed campaigns for agents upon login +# 71125-1751 - Added inbound-group default inbound group sending to vicidial.php # -$version = '2.0.4-63'; -$build = '71120-1520'; +$version = '2.0.4-64'; +$build = '71125-1751'; require("dbconnect.php"); @@ -1703,6 +1704,7 @@ if ($ACTION == 'VDADcheckINCOMING') $VDCL_xferconf_a_number = $row[11]; $VDCL_xferconf_b_dtmf = $row[12]; $VDCL_xferconf_b_number = $row[13]; + $VDCL_default_xfer_group= $row[28]; ### update the comments in vicidial_live_agents record $stmt = "UPDATE vicidial_live_agents set comments='INBOUND' where user='$user' and server_ip='$server_ip';"; @@ -1730,8 +1732,8 @@ if ($ACTION == 'VDADcheckINCOMING') } ### if web form is set then send on to vicidial.php for override of WEB_FORM address - if (strlen($VDCL_group_web)>5) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|\n";} - else {echo "|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|\n";} + if ( (strlen($VDCL_group_web)>5) or (strlen($VDCL_group_name)>0) ) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|\n";} + else {echo "|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|\n";} $stmt = "SELECT full_name from vicidial_users where user='$tsr';"; if ($DB) {echo "$stmt\n";} diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index 675bc1ae..7444e53c 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -168,10 +168,11 @@ # 71116-0957 - Added campaign_weight and calls_today to the vla table insertion # 71120-1719 - Added XMLHTPRequest lookup of allowable campaigns for agents during login # 71122-0256 - Added auto-pause notification +# 71125-1751 - Changed Transfer section to allow for selection of in-groups to send calls to # -$version = '2.0.4-139'; -$build = '71122-0256'; +$version = '2.0.4-140'; +$build = '71125-1751'; require("dbconnect.php"); @@ -708,7 +709,7 @@ $VDloginDISPLAY=0; $HKstatusnames = substr("$HKstatusnames", 0, -1); ##### grab the statuses to be dialed for your campaign as well as other campaign settings - $stmt="SELECT park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,agent_pause_codes_active,no_hopper_leads_logins,campaign_allow_inbound,manual_dial_list_id FROM vicidial_campaigns where campaign_id = '$VD_campaign';"; + $stmt="SELECT park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,agent_pause_codes_active,no_hopper_leads_logins,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,xfer_groups FROM vicidial_campaigns where campaign_id = '$VD_campaign';"; if ($non_latin > 0) {$rslt=mysql_query("SET NAMES 'UTF8'");} $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} @@ -744,6 +745,8 @@ $VDloginDISPLAY=0; $no_hopper_leads_logins = $row[28]; $campaign_allow_inbound = $row[29]; $manual_dial_list_id = $row[30]; + $default_xfer_group = $row[31]; + $xfer_groups = $row[32]; if ( (!ereg('DISABLED',$VU_vicidial_recording_override)) and ($VU_vicidial_recording > 0) ) { @@ -791,7 +794,7 @@ $VDloginDISPLAY=0; if ($campaign_allow_inbound == 'Y') { $VARingroups=''; - $stmt="select group_id from vicidial_inbound_groups where active = 'Y' and group_id IN($closer_campaigns) order by group_id limit 20;"; + $stmt="select group_id from vicidial_inbound_groups where active = 'Y' and group_id IN($closer_campaigns) order by group_id limit 60;"; if ($non_latin > 0) {$rslt=mysql_query("SET NAMES 'UTF8'");} $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} @@ -807,6 +810,32 @@ $VDloginDISPLAY=0; $VARingroups = substr("$VARingroups", 0, -1); } + ##### grab the allowable inbound groups to choose from for transfer options + $xfer_groups = preg_replace("/^ | -$/","",$xfer_groups); + $xfer_groups = preg_replace("/ /","','",$xfer_groups); + $xfer_groups = "'$xfer_groups'"; + $VARxfergroups="''"; + if ($allow_closers == 'Y') + { + $VARxfergroups=''; + $stmt="select group_id,group_name from vicidial_inbound_groups where active = 'Y' and group_id IN($xfer_groups) order by group_id limit 60;"; + if ($non_latin > 0) {$rslt=mysql_query("SET NAMES 'UTF8'");} + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $xfer_ct = mysql_num_rows($rslt); + $XFgrpCT=0; + while ($XFgrpCT < $xfer_ct) + { + $row=mysql_fetch_row($rslt); + $VARxfergroups = "$VARxfergroups'$row[0]',"; + $VARxfergroupsnames = "$VARxfergroupsnames'$row[1]',"; + if ($row[0] == "$default_xfer_group") {$default_xfer_group_name = $row[1];} + $XFgrpCT++; + } + $VARxfergroups = substr("$VARxfergroups", 0, -1); + $VARxfergroupsnames = substr("$VARxfergroupsnames", 0, -1); + } + ##### grab the number of leads in the hopper for this campaign $stmt="SELECT count(*) FROM vicidial_hopper where campaign_id = '$VD_campaign' and status='READY';"; if ($non_latin > 0) {$rslt=mysql_query("SET NAMES 'UTF8'");} @@ -1539,6 +1568,12 @@ $CCAL_OUT .= ""; var VD_statuses_ct = ''; VARingroups = new Array(); var INgroupCOUNT = ''; + VARxfergroups = new Array(); + VARxfergroupsnames = new Array(); + var XFgroupCOUNT = ''; + var default_xfer_group = ''; + var default_xfer_group_name = ''; + var LIVE_default_xfer_group = ''; var HK_statuses_camp = ''; HKhotkeys = new Array(); HKstatuses = new Array(); @@ -1997,8 +2032,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var Ctasknum = tasknum_string.replace(regCXFvars, ''); if (Ctasknum.length < 2) {Ctasknum = '990009';} - var closerxfercamptail = '_L' + document.vicidial_form.xfercode.value; - tasknum = Ctasknum + "*CL_" + campaign + '' + closerxfercamptail + '*CXFER*' + document.vicidial_form.lead_id.value + '**' + document.vicidial_form.phone_number.value + '*' + user + '*'; + var XfeRSelecT = document.getElementById("XfeRGrouP"); + tasknum = Ctasknum + "*" + XfeRSelecT.value + '*CXFER*' + document.vicidial_form.lead_id.value + '**' + document.vicidial_form.phone_number.value + '*' + user + '*'; CustomerData_update(); @@ -2568,10 +2603,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } if (taskvar == 'XfeRLOCAL') { - var closerxfercamptail = '_L' + document.vicidial_form.xfercode.value; + var XfeRSelecT = document.getElementById("XfeRGrouP"); var queryCID = "XLvdcW" + epoch_sec + user_abb; - // "90009*CL_$campaign$park_exten_suffix**$lead_id**$phone_number*$user*"; - var redirectdestination = closerxferinternal + '90009*CL_' + campaign + '' + closerxfercamptail + '**' + document.vicidial_form.lead_id.value + '**' + document.vicidial_form.phone_number.value + '*' + user + '*'; + // "90009*$group**$lead_id**$phone_number*$user*"; + var redirectdestination = closerxferinternal + '90009*' + XfeRSelecT.value + '**' + document.vicidial_form.lead_id.value + '**' + document.vicidial_form.phone_number.value + '*' + user + '*'; xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectVD&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&exten=" + redirectdestination + "&ext_context=" + ext_context + "&ext_priority=1&auto_dial_level=" + auto_dial_level + "&campaign=" + campaign + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&lead_id=" + document.vicidial_form.lead_id.value + "&secondS=" + VD_live_call_secondS; } @@ -2601,7 +2636,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var redirectdestination = "NEXTAVAILABLE"; var redirectXTRAvalue = XDchannel; var redirecttype_test = document.vicidial_form.xfernumber.value; - var closerxfercamptail = '_L' + document.vicidial_form.xfercode.value; + var XfeRSelecT = document.getElementById("XfeRGrouP"); var regRXFvars = new RegExp("CXFER","g"); if ( (redirecttype_test.match(regRXFvars)) && (local_consult_xfers > 0) ) {var redirecttype = 'RedirectXtraCX';} @@ -2613,7 +2648,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} DispO3wayCalLxfernumber = document.vicidial_form.xfernumber.value; DispO3wayCalLcamptail = document.vicidial_form.xfercode.value; - xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + redirecttype + "&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&exten=" + redirectdestination + "&ext_context=" + ext_context + "&ext_priority=1&extrachannel=" + redirectXTRAvalue + "&lead_id=" + document.vicidial_form.lead_id.value + "&phone_code=" + document.vicidial_form.phone_code.value + "&phone_number=" + document.vicidial_form.phone_number.value+ "&filename=" + taskdebugnote + "&campaign=CL_" + campaign + '' + closerxfercamptail; + xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + redirecttype + "&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&exten=" + redirectdestination + "&ext_context=" + ext_context + "&ext_priority=1&extrachannel=" + redirectXTRAvalue + "&lead_id=" + document.vicidial_form.lead_id.value + "&phone_code=" + document.vicidial_form.phone_code.value + "&phone_number=" + document.vicidial_form.phone_number.value+ "&filename=" + taskdebugnote + "&campaign=" + XfeRSelecT.value; if (taskdebugnote == 'FIRST') { @@ -3156,8 +3191,6 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("LocalCloser").innerHTML = "\"LOCAL"; - document.getElementById("InternalCloser").innerHTML = "\"INTERNAL"; - document.getElementById("DialBlindTransfer").innerHTML = "\"Dial"; document.getElementById("DialBlindVMail").innerHTML = "\"Blind"; @@ -3826,6 +3859,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} CalL_XC_a_NuMber = VDIC_data_VDIG[8]; CalL_XC_b_Dtmf = VDIC_data_VDIG[9]; CalL_XC_b_NuMber = VDIC_data_VDIG[10]; + if (VDIC_data_VDIG[11].length > 0) + {LIVE_default_xfer_group = VDIC_data_VDIG[11];} + else + {LIVE_default_xfer_group = default_xfer_group;} var VDIC_data_VDFR=check_VDIC_array[3].split("|"); if ( (VDIC_data_VDFR[1].length > 1) && (VDCL_fronter_display == 'Y') ) @@ -3924,8 +3961,6 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("LocalCloser").innerHTML = "\"LOCAL"; - document.getElementById("InternalCloser").innerHTML = "\"INTERNAL"; - document.getElementById("DialBlindTransfer").innerHTML = "\"Dial"; document.getElementById("DialBlindVMail").innerHTML = "\"Blind"; @@ -4306,7 +4341,6 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("HangupControl").innerHTML = "\"Hangup"; document.getElementById("XferControl").innerHTML = "\"Transfer"; document.getElementById("LocalCloser").innerHTML = "\"LOCAL"; - document.getElementById("InternalCloser").innerHTML = "\"INTERNAL"; document.getElementById("DialBlindTransfer").innerHTML = "\"Dial"; document.getElementById("DialBlindVMail").innerHTML = "\"Blind"; document.getElementById("VolumeUpSpan").innerHTML = ""; @@ -5714,7 +5748,6 @@ else } if (VICIDiaL_allow_closers < 1) { - document.getElementById("InternalCloser").style.visibility = 'hidden'; document.getElementById("LocalCloser").style.visibility = 'hidden'; } document.getElementById("sessionIDspan").innerHTML = session_id; @@ -5757,6 +5790,7 @@ else DispoSelectContent_create('','ReSET'); WaitingForNextStep=1; open_dispo_screen=0; + LIVE_default_xfer_group = default_xfer_group; document.getElementById("DispoSelectPhonE").innerHTML = document.vicidial_form.phone_number.value; if (auto_dial_level == 0) { @@ -6137,6 +6171,19 @@ else HKbutton_allowed = 0; showDiv('TransferMain'); document.getElementById("XferControl").innerHTML = "\"Transfer"; + var loop_ct = 0; + var live_XfeR_HTML = ''; + var XfeR_SelecT = ''; + while (loop_ct < XFgroupCOUNT) + { + if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) + {XfeR_SelecT = 'SELECTED ';} + else {XfeR_SelecT = '';} + live_XfeR_HTML = live_XfeR_HTML + "\n"; + loop_ct++; + } + + document.getElementById("XfeRGrouPLisT").innerHTML = ""; } else { @@ -6272,7 +6319,7 @@ echo "\n";
- +
Calls Dialing:
Transfer - Conference
- INTERNAL CLOSER + + LOCAL CLOSER - CODE Hangup Xfer Line Hangup Both Lines
Number to call   - seconds   - channel DIAL OVERRIDE   + LEAVE 3-WAY CALL + Dial Blind Transfer D1 D2
+ seconds   + channel Dial With Customer Park Customer Dial - LEAVE 3-WAY CALL - Dial Blind Transfer Blind Transfer VMail Message
@@ -6380,6 +6442,15 @@ Your Status:
Calls Dialing: \n"; $o=0; @@ -1689,6 +1716,7 @@ if ( ( (strlen($ADD)>4) && ($ADD < 99998) ) or ($ADD==3) or (($ADD>20) and ($ADD {$bgcolor='bgcolor="#9BB9FB"';} $groups_list .= "4) && ($ADD < 99998) ) or ($ADD==3) or (($ADD>20) and ($ADD } $p++; } + $p=0; + $XFERgroup_ct = count($XFERgroups); + while ($p < $XFERgroup_ct) + { + if ($group_id_values[$o] == $XFERgroups[$p]) + { + $XFERgroups_list .= " CHECKED"; + $XFERgroups_value .= " $group_id_values[$o]"; + } + $p++; + } $groups_list .= "> $group_id_values[$o] - $group_name_values[$o]
\n"; + $XFERgroups_list .= "> $group_id_values[$o] - $group_name_values[$o]
\n"; $RANKgroups_list .= "> $group_id_values[$o] - $group_name_values[$o] "; $RANKgroups_list .= "
Lead Dispositioned As:

diff --git a/www/vicidial/admin.php b/www/vicidial/admin.php index 98f57358..1ef03470 100644 --- a/www/vicidial/admin.php +++ b/www/vicidial/admin.php @@ -324,6 +324,8 @@ if (isset($_GET["group_name"])) {$group_name=$_GET["group_name"];} elseif (isset($_POST["group_name"])) {$group_name=$_POST["group_name"];} if (isset($_GET["groups"])) {$groups=$_GET["groups"];} elseif (isset($_POST["groups"])) {$groups=$_POST["groups"];} +if (isset($_GET["XFERgroups"])) {$XFERgroups=$_GET["XFERgroups"];} + elseif (isset($_POST["XFERgroups"])) {$XFERgroups=$_POST["XFERgroups"];} if (isset($_GET["HKstatus"])) {$HKstatus=$_GET["HKstatus"];} elseif (isset($_POST["HKstatus"])) {$HKstatus=$_POST["HKstatus"];} if (isset($_GET["hopper_level"])) {$hopper_level=$_GET["hopper_level"];} @@ -665,6 +667,8 @@ if (isset($_GET["source_user_id"])) {$source_user_id=$_GET["source_user_id"]; elseif (isset($_POST["source_user_id"])) {$source_user_id=$_POST["source_user_id"];} if (isset($_GET["source_group_id"])) {$source_group_id=$_GET["source_group_id"];} elseif (isset($_POST["source_group_id"])) {$source_group_id=$_POST["source_group_id"];} +if (isset($_GET["default_xfer_group"])) {$default_xfer_group=$_GET["default_xfer_group"];} + elseif (isset($_POST["default_xfer_group"])) {$default_xfer_group=$_POST["default_xfer_group"];} if (isset($script_id)) {$script_id= strtoupper($script_id);} @@ -935,6 +939,7 @@ $agent_alert_exten = ereg_replace("[^-\_0-9a-zA-Z]","",$agent_alert_exten); $source_campaign_id = ereg_replace("[^-\_0-9a-zA-Z]","",$source_campaign_id); $source_user_id = ereg_replace("[^-\_0-9a-zA-Z]","",$source_user_id); $source_group_id = ereg_replace("[^-\_0-9a-zA-Z]","",$source_group_id); +$default_xfer_group = ereg_replace("[^-\_0-9a-zA-Z]","",$default_xfer_group); ### ALPHA-NUMERIC and spaces $lead_order = ereg_replace("[^ 0-9a-zA-Z]","",$lead_order); @@ -1134,12 +1139,14 @@ $list_mix_container = ereg_replace(";","",$list_mix_container); # - Added ability to Copy a campaign's setting to a new campaign # 71113-2225 - Added ability to copy user and in-group settings to new users and in-groups # 71116-0942 - Added campaign_rank and fewest_calls as methods for agent call routing +# 71122-1135 - Added default transfer group for campaigns and inbound groups +# 71125-1751 - Added allowable transfer groups to campaign detail screen # # # 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.0.4-117'; -$build = '71116-0942'; +$admin_version = '2.0.4-119'; +$build = '71125-1751'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -1565,13 +1572,13 @@ if ( ( (strlen($ADD)>4) && ($ADD < 99998) ) or ($ADD==3) or (($ADD>20) and ($ADD $allowed_campaigns = preg_replace("/ -$/","",$allowed_campaigns); $UGcampaigns = explode(" ", $allowed_campaigns); - $p=0; $RANK_camp_active=0; + $p=0; $RANK_camp_active=0; $CR_disabled = ''; if (eregi('-ALL-CAMPAIGNS-',$allowed_campaigns)) {$RANK_camp_active++;} else { $UGcampaign_ct = count($UGcampaigns); - while ($p < $campaign_ct) + while ($p < $UGcampaign_ct) { if ($campaign_id_values[$o] == $UGcampaigns[$p]) {$RANK_camp_active++;} @@ -1579,7 +1586,6 @@ if ( ( (strlen($ADD)>4) && ($ADD < 99998) ) or ($ADD==3) or (($ADD>20) and ($ADD } } if ($RANK_camp_active < 1) {$CR_disabled = 'DISABLED';} - else {$CR_disabled = '';} $RANKcampaigns_list .= "
"; $campaigns_list .= "$campaign_id_values[$o] - $campaign_name_values[$o]
\n"; @@ -1602,14 +1608,34 @@ if ( ( (strlen($ADD)>4) && ($ADD < 99998) ) or ($ADD==3) or (($ADD>20) and ($ADD ##### BEGIN get inbound groups listing for checkboxes ##### + $xfer_groupsSQL=''; if ( (($ADD>20) and ($ADD<70)) and ($ADD!=41) ) { - $stmt="SELECT closer_campaigns from vicidial_campaigns where campaign_id='$campaign_id';"; + $stmt="SELECT closer_campaigns,xfer_groups from vicidial_campaigns where campaign_id='$campaign_id';"; $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $closer_campaigns = $row[0]; - $closer_campaigns = preg_replace("/ -$/","",$closer_campaigns); - $groups = explode(" ", $closer_campaigns); + $closer_campaigns = preg_replace("/ -$/","",$closer_campaigns); + $groups = explode(" ", $closer_campaigns); + $xfer_groups = $row[1]; + $xfer_groups = preg_replace("/ -$/","",$xfer_groups); + $XFERgroups = explode(" ", $xfer_groups); + $xfer_groupsSQL = preg_replace("/^ | -$/","",$xfer_groups); + $xfer_groupsSQL = preg_replace("/ /","','",$xfer_groupsSQL); + $xfer_groupsSQL = "WHERE group_id IN('$xfer_groupsSQL')"; + } + if ($ADD==41) + { + $p=0; + $XFERgroup_ct = count($XFERgroups); + while ($p < $XFERgroup_ct) + { + $xfer_groups .= " $XFERgroups[$p]"; + $p++; + } + $xfer_groupsSQL = preg_replace("/^ | -$/","",$xfer_groups); + $xfer_groupsSQL = preg_replace("/ /","','",$xfer_groupsSQL); + $xfer_groupsSQL = "WHERE group_id IN('$xfer_groupsSQL')"; } if ( (($ADD==31111) or ($ADD==31111)) and (count($groups)<1) ) @@ -1637,6 +1663,7 @@ if ( ( (strlen($ADD)>4) && ($ADD < 99998) ) or ($ADD==3) or (($ADD>20) and ($ADD $groups_to_print = mysql_num_rows($rslt); $groups_list=''; $groups_value=''; + $XFERgroups_list=''; $RANKgroups_list="
INBOUND GROUP     RANK     CALLS
    \n"; echo "\n"; echo "\n"; + echo "\n"; + echo "\n"; $o=0; while ($Ds_to_print > $o) @@ -10811,6 +10924,32 @@ if ($ADD==3111) $prompt_interval = $row[25]; $agent_alert_exten = $row[26]; $agent_alert_delay = $row[27]; + $default_xfer_group = $row[28]; + + ##### get in-groups listings for dynamic pulldown + $stmt="SELECT group_id,group_name from vicidial_inbound_groups order by group_id"; + $rslt=mysql_query($stmt, $link); + $Xgroups_to_print = mysql_num_rows($rslt); + $Xgroups_menu=''; + $Xgroups_selected=0; + $o=0; + while ($Xgroups_to_print > $o) + { + $rowx=mysql_fetch_row($rslt); + $Xgroups_menu .= "\n"; + $o++; + } + if ($Xgroups_selected < 1) + {$Xgroups_menu .= "\n";} + else + {$Xgroups_menu .= "\n";} + echo "
MODIFY A GROUPS RECORD: $row[0]\n"; echo "\n"; @@ -10871,6 +11010,10 @@ if ($ADD==3111) echo "\n"; + echo "\n"; + echo "\n"; echo "
Allow Closers - This is where you can set whether the users of this campaign will have the option to send the call to a closer. +
+ +
+Default Transfer Group - This field is the default In-Group that will be automatically selected when the agent goes to the transfer-conference frame in their agent interface. + +
+
+
+Allowed Transfer Groups - With these checkbox listings you can select the groups that agents in this campaign can transfer calls to. Allow Closers must be enabled for this option to show up. +

@@ -2527,6 +2578,11 @@ echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; $o=0; @@ -9109,10 +9208,7 @@ if ($ADD==31) echo "\n"; - $stmt="SELECT count(*) from vicidial_campaigns where campaign_id='$campaign_id' and campaign_allow_inbound='Y'"; - $rslt=mysql_query($stmt, $link); - $row=mysql_fetch_row($rslt); - if ($row[0] > 0) + if ($campaign_allow_inbound == 'Y') { echo "\n"; } + echo "\n"; + + if ($allow_closers == 'Y') + { + echo "\n"; + } + echo "\n"; echo "
Agent Alert Delay - The length of time in milliseconds to wait before sending the call to the agent after playing the on Agent Alert Extension. Default is 1000. +
+ +
+Default Transfer Group - This field is the default In-Group that will be automatically selected when the agent goes to the transfer-conference frame in their agent interface. +



@@ -4789,31 +4845,39 @@ if ($ADD==21) {echo "
CAMPAIGN NOT ADDED - there is already a campaign in the system with this ID\n";} else { - if ( (strlen($campaign_id) < 2) or (strlen($campaign_id) > 8) or (strlen($campaign_name) < 6) or (strlen($campaign_name) > 40) ) + $stmt="SELECT count(*) from vicidial_inbound_groups where group_id='$campaign_id';"; + $rslt=mysql_query($stmt, $link); + $row=mysql_fetch_row($rslt); + if ($row[0] > 0) + {echo "
CAMPAIGN NOT ADDED - there is already an inbound group in the system with this ID\n";} + else { - echo "
CAMPAIGN NOT ADDED - Please go back and look at the data you entered\n"; - echo "
campaign ID must be between 2 and 8 characters in length\n"; - echo "
campaign name must be between 6 and 40 characters in length\n"; - } - else - { - echo "
CAMPAIGN ADDED: $campaign_id\n"; - - $stmt="INSERT INTO vicidial_campaigns (campaign_id,campaign_name,campaign_description,active,dial_status_a,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,campaign_script,get_call_launch,campaign_changedate,campaign_stats_refresh,list_order_mix) values('$campaign_id','$campaign_name','$campaign_description','$active','NEW','DOWN','$park_ext','$park_file_name','" . mysql_real_escape_string($web_form_address) . "','$allow_closers','$hopper_level','$auto_dial_level','$next_agent_call','$local_call_time','$voicemail_ext','$script_id','$get_call_launch','$SQLdate','Y','DISABLED');"; - $rslt=mysql_query($stmt, $link); - - $stmt="INSERT INTO vicidial_campaign_stats (campaign_id) values('$campaign_id');"; - $rslt=mysql_query($stmt, $link); - - echo ""; - ### LOG CHANGES TO LOG FILE ### - if ($WeBRooTWritablE > 0) + if ( (strlen($campaign_id) < 2) or (strlen($campaign_id) > 8) or (strlen($campaign_name) < 6) or (strlen($campaign_name) > 40) ) { - $fp = fopen ("./admin_changes_log.txt", "a"); - fwrite ($fp, "$date|ADD A NEW CAMPAIGN |$PHP_AUTH_USER|$ip|$stmt|\n"); - fclose($fp); + echo "
CAMPAIGN NOT ADDED - Please go back and look at the data you entered\n"; + echo "
campaign ID must be between 2 and 8 characters in length\n"; + echo "
campaign name must be between 6 and 40 characters in length\n"; } + else + { + echo "
CAMPAIGN ADDED: $campaign_id\n"; + $stmt="INSERT INTO vicidial_campaigns (campaign_id,campaign_name,campaign_description,active,dial_status_a,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,campaign_script,get_call_launch,campaign_changedate,campaign_stats_refresh,list_order_mix) values('$campaign_id','$campaign_name','$campaign_description','$active','NEW','DOWN','$park_ext','$park_file_name','" . mysql_real_escape_string($web_form_address) . "','$allow_closers','$hopper_level','$auto_dial_level','$next_agent_call','$local_call_time','$voicemail_ext','$script_id','$get_call_launch','$SQLdate','Y','DISABLED');"; + $rslt=mysql_query($stmt, $link); + + $stmt="INSERT INTO vicidial_campaign_stats (campaign_id) values('$campaign_id');"; + $rslt=mysql_query($stmt, $link); + + echo ""; + ### LOG CHANGES TO LOG FILE ### + if ($WeBRooTWritablE > 0) + { + $fp = fopen ("./admin_changes_log.txt", "a"); + fwrite ($fp, "$date|ADD A NEW CAMPAIGN |$PHP_AUTH_USER|$ip|$stmt|\n"); + fclose($fp); + } + + } } } $ADD=31; @@ -4844,7 +4908,7 @@ if ($ADD==20) { echo "
CAMPAIGN COPIED: $campaign_id copied from $source_campaign_id\n"; - $stmt="INSERT INTO vicidial_campaigns (campaign_name,campaign_id,active,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,amd_send_to_vmx,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,lead_filter_id,drop_call_seconds,safe_harbor_message,safe_harbor_exten,display_dialable_count,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,dial_method,available_only_ratio_tally,adaptive_dropped_percentage,adaptive_maximum_level,adaptive_latest_server_time,adaptive_intensity,adaptive_dl_diff_target,concurrent_transfers,auto_alt_dial,auto_alt_dial_statuses,agent_pause_codes_active,campaign_description,campaign_changedate,campaign_stats_refresh,campaign_logindate,dial_statuses,disable_alter_custdata,no_hopper_leads_logins,list_order_mix,campaign_allow_inbound,manual_dial_list_id) SELECT \"$campaign_name\",\"$campaign_id\",\"N\",dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,amd_send_to_vmx,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,lead_filter_id,drop_call_seconds,safe_harbor_message,safe_harbor_exten,display_dialable_count,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,dial_method,available_only_ratio_tally,adaptive_dropped_percentage,adaptive_maximum_level,adaptive_latest_server_time,adaptive_intensity,adaptive_dl_diff_target,concurrent_transfers,auto_alt_dial,auto_alt_dial_statuses,agent_pause_codes_active,campaign_description,campaign_changedate,campaign_stats_refresh,campaign_logindate,dial_statuses,disable_alter_custdata,no_hopper_leads_logins,\"DISABLED\",campaign_allow_inbound,manual_dial_list_id from vicidial_campaigns where campaign_id='$source_campaign_id';"; + $stmt="INSERT INTO vicidial_campaigns (campaign_name,campaign_id,active,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,amd_send_to_vmx,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,lead_filter_id,drop_call_seconds,safe_harbor_message,safe_harbor_exten,display_dialable_count,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,dial_method,available_only_ratio_tally,adaptive_dropped_percentage,adaptive_maximum_level,adaptive_latest_server_time,adaptive_intensity,adaptive_dl_diff_target,concurrent_transfers,auto_alt_dial,auto_alt_dial_statuses,agent_pause_codes_active,campaign_description,campaign_changedate,campaign_stats_refresh,campaign_logindate,dial_statuses,disable_alter_custdata,no_hopper_leads_logins,list_order_mix,campaign_allow_inbound,manual_dial_list_id,default_xfer_group) SELECT \"$campaign_name\",\"$campaign_id\",\"N\",dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,amd_send_to_vmx,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,lead_filter_id,drop_call_seconds,safe_harbor_message,safe_harbor_exten,display_dialable_count,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,dial_method,available_only_ratio_tally,adaptive_dropped_percentage,adaptive_maximum_level,adaptive_latest_server_time,adaptive_intensity,adaptive_dl_diff_target,concurrent_transfers,auto_alt_dial,auto_alt_dial_statuses,agent_pause_codes_active,campaign_description,campaign_changedate,campaign_stats_refresh,campaign_logindate,dial_statuses,disable_alter_custdata,no_hopper_leads_logins,\"DISABLED\",campaign_allow_inbound,manual_dial_list_id,default_xfer_group from vicidial_campaigns where campaign_id='$source_campaign_id';"; $rslt=mysql_query($stmt, $link); $stmtA="INSERT INTO vicidial_campaign_stats (campaign_id) values('$campaign_id');"; @@ -5205,25 +5269,33 @@ if ($ADD==2111) {echo "
GROUP NOT ADDED - there is already a group in the system with this ID\n";} else { - if ( (strlen($group_id) < 2) or (strlen($group_name) < 2) or (strlen($group_color) < 2) or (strlen($group_id) > 20) or (eregi(' ',$group_id)) or (eregi("\-",$group_id)) or (eregi("\+",$group_id)) ) + $stmt="SELECT count(*) from vicidial_campaigns where campaign_id='$group_id';"; + $rslt=mysql_query($stmt, $link); + $row=mysql_fetch_row($rslt); + if ($row[0] > 0) + {echo "
GROUP NOT ADDED - there is already a campaign in the system with this ID\n";} + else { - echo "
GROUP NOT ADDED - Please go back and look at the data you entered\n"; - echo "
Group ID must be between 2 and 20 characters in length and contain no ' -+'.\n"; - echo "
Group name and group color must be at least 2 characters in length\n"; - } - 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) values('$group_id','$group_name','$group_color','$active','" . mysql_real_escape_string($web_form_address) . "','$voicemail_ext','$next_agent_call','$fronter_display','$script_id','$get_call_launch');"; - $rslt=mysql_query($stmt, $link); - - echo "
GROUP ADDED: $group_id\n"; - - ### LOG CHANGES TO LOG FILE ### - if ($WeBRooTWritablE > 0) + if ( (strlen($group_id) < 2) or (strlen($group_name) < 2) or (strlen($group_color) < 2) or (strlen($group_id) > 20) or (eregi(' ',$group_id)) or (eregi("\-",$group_id)) or (eregi("\+",$group_id)) ) { - $fp = fopen ("./admin_changes_log.txt", "a"); - fwrite ($fp, "$date|ADD A NEW GROUP |$PHP_AUTH_USER|$ip|$stmt|\n"); - fclose($fp); + echo "
GROUP NOT ADDED - Please go back and look at the data you entered\n"; + echo "
Group ID must be between 2 and 20 characters in length and contain no ' -+'.\n"; + echo "
Group name and group color must be at least 2 characters in length\n"; + } + 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) values('$group_id','$group_name','$group_color','$active','" . mysql_real_escape_string($web_form_address) . "','$voicemail_ext','$next_agent_call','$fronter_display','$script_id','$get_call_launch');"; + $rslt=mysql_query($stmt, $link); + + echo "
GROUP ADDED: $group_id\n"; + + ### LOG CHANGES TO LOG FILE ### + if ($WeBRooTWritablE > 0) + { + $fp = fopen ("./admin_changes_log.txt", "a"); + fwrite ($fp, "$date|ADD A NEW GROUP |$PHP_AUTH_USER|$ip|$stmt|\n"); + fclose($fp); + } } } } @@ -5253,7 +5325,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_message,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) 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_message,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 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_message,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) 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_message,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 from vicidial_inbound_groups where group_id=\"$source_group_id\";"; $rslt=mysql_query($stmt, $link); echo "
GROUP ADDED: $group_id\n"; @@ -5959,7 +6031,7 @@ if ($ADD==41) if ( (!ereg("DISABLED",$list_order_mix)) and ($hopper_level < 100) ) {$hopper_level='100';} - $stmtA="UPDATE vicidial_campaigns set campaign_name='$campaign_name',active='$active',dial_status_a='$dial_status_a',dial_status_b='$dial_status_b',dial_status_c='$dial_status_c',dial_status_d='$dial_status_d',dial_status_e='$dial_status_e',lead_order='$lead_order',allow_closers='$allow_closers',hopper_level='$hopper_level', $adlSQL next_agent_call='$next_agent_call', local_call_time='$local_call_time', voicemail_ext='$voicemail_ext', dial_timeout='$dial_timeout', dial_prefix='$dial_prefix', campaign_cid='$campaign_cid', campaign_vdad_exten='$campaign_vdad_exten', web_form_address='" . mysql_real_escape_string($web_form_address) . "', park_ext='$park_ext', park_file_name='$park_file_name', campaign_rec_exten='$campaign_rec_exten', campaign_recording='$campaign_recording', campaign_rec_filename='$campaign_rec_filename', campaign_script='$script_id', get_call_launch='$get_call_launch', am_message_exten='$am_message_exten', amd_send_to_vmx='$amd_send_to_vmx', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number', xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',lead_filter_id='$lead_filter_id',alt_number_dialing='$alt_number_dialing',scheduled_callbacks='$scheduled_callbacks',safe_harbor_message='$safe_harbor_message',drop_call_seconds='$drop_call_seconds',safe_harbor_exten='$safe_harbor_exten',wrapup_seconds='$wrapup_seconds',wrapup_message='$wrapup_message',closer_campaigns='$groups_value',use_internal_dnc='$use_internal_dnc',allcalls_delay='$allcalls_delay',omit_phone_code='$omit_phone_code',dial_method='$dial_method',available_only_ratio_tally='$available_only_ratio_tally',adaptive_dropped_percentage='$adaptive_dropped_percentage',adaptive_maximum_level='$adaptive_maximum_level',adaptive_latest_server_time='$adaptive_latest_server_time',adaptive_intensity='$adaptive_intensity',adaptive_dl_diff_target='$adaptive_dl_diff_target',concurrent_transfers='$concurrent_transfers',auto_alt_dial='$auto_alt_dial',agent_pause_codes_active='$agent_pause_codes_active',campaign_description='$campaign_description',campaign_changedate='$SQLdate',campaign_stats_refresh='$campaign_stats_refresh',disable_alter_custdata='$disable_alter_custdata',no_hopper_leads_logins='$no_hopper_leads_logins',list_order_mix='$list_order_mix',campaign_allow_inbound='$campaign_allow_inbound',manual_dial_list_id='$manual_dial_list_id' where campaign_id='$campaign_id';"; + $stmtA="UPDATE vicidial_campaigns set campaign_name='$campaign_name',active='$active',dial_status_a='$dial_status_a',dial_status_b='$dial_status_b',dial_status_c='$dial_status_c',dial_status_d='$dial_status_d',dial_status_e='$dial_status_e',lead_order='$lead_order',allow_closers='$allow_closers',hopper_level='$hopper_level', $adlSQL next_agent_call='$next_agent_call', local_call_time='$local_call_time', voicemail_ext='$voicemail_ext', dial_timeout='$dial_timeout', dial_prefix='$dial_prefix', campaign_cid='$campaign_cid', campaign_vdad_exten='$campaign_vdad_exten', web_form_address='" . mysql_real_escape_string($web_form_address) . "', park_ext='$park_ext', park_file_name='$park_file_name', campaign_rec_exten='$campaign_rec_exten', campaign_recording='$campaign_recording', campaign_rec_filename='$campaign_rec_filename', campaign_script='$script_id', get_call_launch='$get_call_launch', am_message_exten='$am_message_exten', amd_send_to_vmx='$amd_send_to_vmx', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number', xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',lead_filter_id='$lead_filter_id',alt_number_dialing='$alt_number_dialing',scheduled_callbacks='$scheduled_callbacks',safe_harbor_message='$safe_harbor_message',drop_call_seconds='$drop_call_seconds',safe_harbor_exten='$safe_harbor_exten',wrapup_seconds='$wrapup_seconds',wrapup_message='$wrapup_message',closer_campaigns='$groups_value',use_internal_dnc='$use_internal_dnc',allcalls_delay='$allcalls_delay',omit_phone_code='$omit_phone_code',dial_method='$dial_method',available_only_ratio_tally='$available_only_ratio_tally',adaptive_dropped_percentage='$adaptive_dropped_percentage',adaptive_maximum_level='$adaptive_maximum_level',adaptive_latest_server_time='$adaptive_latest_server_time',adaptive_intensity='$adaptive_intensity',adaptive_dl_diff_target='$adaptive_dl_diff_target',concurrent_transfers='$concurrent_transfers',auto_alt_dial='$auto_alt_dial',agent_pause_codes_active='$agent_pause_codes_active',campaign_description='$campaign_description',campaign_changedate='$SQLdate',campaign_stats_refresh='$campaign_stats_refresh',disable_alter_custdata='$disable_alter_custdata',no_hopper_leads_logins='$no_hopper_leads_logins',list_order_mix='$list_order_mix',campaign_allow_inbound='$campaign_allow_inbound',manual_dial_list_id='$manual_dial_list_id',default_xfer_group='$default_xfer_group',xfer_groups='$XFERgroups_value' where campaign_id='$campaign_id';"; $rslt=mysql_query($stmtA, $link); if ($reset_hopper == 'Y') @@ -6608,7 +6680,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_message='$drop_message',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' 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_message='$drop_message',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' where group_id='$group_id';"; $rslt=mysql_query($stmt, $link); ### LOG CHANGES TO LOG FILE ### @@ -8760,6 +8832,7 @@ if ($ADD==31) $dial_status_d = $row[6]; $dial_status_e = $row[7]; $lead_order = $row[8]; + $allow_closers = $row[12]; $hopper_level = $row[13]; $auto_dial_level = $row[14]; $next_agent_call = $row[15]; @@ -8815,6 +8888,7 @@ if ($ADD==31) $list_order_mix = $row[64]; $campaign_allow_inbound = $row[65]; $manual_dial_list_id = $row[66]; + $default_xfer_group = $row[67]; if (ereg("DISABLED",$list_order_mix)) {$DEFlistDISABLE = ''; $DEFstatusDISABLED=0;} @@ -8885,6 +8959,31 @@ if ($ADD==31) $Dstatuses = explode(" ", $dial_statuses); $Ds_to_print = (count($Dstatuses) -1); + ##### get in-groups listings for dynamic pulldown list menu + $stmt="SELECT group_id,group_name from vicidial_inbound_groups $xfer_groupsSQL order by group_id"; + $rslt=mysql_query($stmt, $link); + $Xgroups_to_print = mysql_num_rows($rslt); + $Xgroups_menu=''; + $Xgroups_selected=0; + $o=0; + while ($Xgroups_to_print > $o) + { + $rowx=mysql_fetch_row($rslt); + $Xgroups_menu .= "\n"; + $o++; + } + if ($Xgroups_selected < 1) + {$Xgroups_menu .= "\n";} + else + {$Xgroups_menu .= "\n";} + + if ($SUB<1) {$camp_detail_color=$subcamp_color;} else {$camp_detail_color=$campaigns_color;} if ($SUB==22) {$camp_statuses_color=$subcamp_color;} @@ -8931,7 +9030,7 @@ if ($ADD==31) echo "
Active: $NWB#vicidial_campaigns-active$NWE
Park Extension: - Filename: $NWB#vicidial_campaigns-park_ext$NWE
Web Form: $NWB#vicidial_campaigns-web_form_address$NWE
Allow Closers: $NWB#vicidial_campaigns-allow_closers$NWE
Allow Closers: $NWB#vicidial_campaigns-allow_closers$NWE
Allow Inbound and Blended: $NWB#vicidial_campaigns-campaign_allow_inbound$NWE
Manual Dial List ID: $NWB#vicidial_campaigns-manual_dial_list_id$NWE
Allowed Inbound Groups:
"; echo " $NWB#vicidial_campaigns-closer_campaigns$NWE
\n"; @@ -9120,6 +9216,18 @@ if ($ADD==31) echo "
Default Transfer Group: $NWB#vicidial_campaigns-default_xfer_group$NWE
Allowed Transfer Groups:
"; + echo " $NWB#vicidial_campaigns-xfer_groups$NWE
\n"; + echo "$XFERgroups_list"; + echo "
\n"; @@ -9524,6 +9632,9 @@ if ($ADD==34) $campaign_logindate = $row[60]; $dial_statuses = $row[61]; $list_order_mix = $row[64]; + $default_xfer_group = $row[67]; + $campaign_allow_inbound = $row[65]; + $default_xfer_group = $row[67]; if (ereg("DISABLED",$list_order_mix)) {$DEFlistDISABLE = ''; $DEFstatusDISABLED=0;} @@ -9634,6 +9745,8 @@ if ($ADD==34) echo "
Park Extension: $row[9] - $row[10]$NWB#vicidial_campaigns-park_ext$NWE
Web Form: $row[11]$NWB#vicidial_campaigns-web_form_address$NWE
Allow Closers: $row[12] $NWB#vicidial_campaigns-allow_closers$NWE
Default Transfer Group: $default_xfer_group $NWB#vicidial_campaigns-default_xfer_group$NWE
Allow Inbound and Blended: $campaign_allow_inbound $NWB#vicidial_campaigns-campaign_allow_inbound$NWE
Agent Alert Delay: $NWB#vicidial_inbound_groups-agent_alert_delay$NWE
Default Transfer Group: $NWB#vicidial_inbound_groups-default_xfer_group$NWE
\n";