diff --git a/UPGRADE b/UPGRADE index 491f9441..66464522 100644 --- a/UPGRADE +++ b/UPGRADE @@ -246,6 +246,8 @@ OTHER CHANGES: 64. Added Alternate IVR(Call Menu) Logging options +65. Added option to define a carrier across all active asterisk servers + diff --git a/bin/ADMIN_keepalive_ALL.pl b/bin/ADMIN_keepalive_ALL.pl index f05a4fe9..3fb49473 100644 --- a/bin/ADMIN_keepalive_ALL.pl +++ b/bin/ADMIN_keepalive_ALL.pl @@ -108,9 +108,10 @@ # 151229-1623 - Added asterisk output logger launching, tied to server setting, runs every 5 minutes if active # 160305-2253 - Added --teod flag to log Timeclock End of Day processes to log file # Limited max-stats process to only run on voicemail server, also added alt-logging flags to cm.agi calls +# 160306-1040 - Added option for carriers to be defined for all active asterisk servers # -$build = '160305-2253'; +$build = '160306-1040'; $DB=0; # Debug flag $teodDB=0; # flag to log Timeclock End of Day processes to log file @@ -2112,7 +2113,7 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r ##### BEGIN Generate the IAX carriers for this server_ip ##### - $stmtA = "SELECT carrier_id,carrier_name,registration_string,template_id,account_entry,globals_string,dialplan_entry,carrier_description FROM vicidial_server_carriers where server_ip='$server_ip' and active='Y' and protocol='IAX2' order by carrier_id;"; + $stmtA = "SELECT carrier_id,carrier_name,registration_string,template_id,account_entry,globals_string,dialplan_entry,carrier_description FROM vicidial_server_carriers where server_ip IN('$server_ip','0.0.0.0') and active='Y' and protocol='IAX2' order by carrier_id;"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows; @@ -2169,7 +2170,7 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r ##### BEGIN Generate the SIP carriers for this server_ip ##### - $stmtA = "SELECT carrier_id,carrier_name,registration_string,template_id,account_entry,globals_string,dialplan_entry,carrier_description FROM vicidial_server_carriers where server_ip='$server_ip' and active='Y' and protocol='SIP' order by carrier_id;"; + $stmtA = "SELECT carrier_id,carrier_name,registration_string,template_id,account_entry,globals_string,dialplan_entry,carrier_description FROM vicidial_server_carriers where server_ip IN('$server_ip','0.0.0.0') and active='Y' and protocol='SIP' order by carrier_id;"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows; diff --git a/extras/MySQL_AST_CREATE_tables.sql b/extras/MySQL_AST_CREATE_tables.sql index 81a975c5..36242761 100644 --- a/extras/MySQL_AST_CREATE_tables.sql +++ b/extras/MySQL_AST_CREATE_tables.sql @@ -95,6 +95,10 @@ nva_error_filename VARCHAR(255) default '', nva_new_list_id BIGINT(14) UNSIGNED default '995', nva_new_phone_code VARCHAR(10) default '1', nva_new_status VARCHAR(6) default 'NVAINS', +webphone_dialbox ENUM('Y','N') default 'Y', +webphone_mute ENUM('Y','N') default 'Y', +webphone_volume ENUM('Y','N') default 'Y', +webphone_debug ENUM('Y','N') default 'N', index (server_ip), index (voicemail_id), index (dialplan_number), @@ -152,7 +156,8 @@ system_uptime VARCHAR(255) default '', auto_restart_asterisk ENUM('Y','N') default 'N', asterisk_temp_no_restart ENUM('Y','N') default 'N', voicemail_dump_exten_no_inst VARCHAR(20) default '85026666666667', -gather_asterisk_output ENUM('Y','N') default 'N' +gather_asterisk_output ENUM('Y','N') default 'N', +web_socket_url VARCHAR(255) default '' ) ENGINE=MyISAM; CREATE UNIQUE INDEX server_id on servers (server_id); @@ -3737,4 +3742,4 @@ UPDATE vicidial_configuration set value='1766' where name='qc_database_version'; UPDATE system_settings set vdc_agent_api_active='1'; -UPDATE system_settings SET db_schema_version='1454',db_schema_update_date=NOW(),reload_timestamp=NOW(); +UPDATE system_settings SET db_schema_version='1455',db_schema_update_date=NOW(),reload_timestamp=NOW(); diff --git a/extras/upgrade_2.12.sql b/extras/upgrade_2.12.sql index ea94f79d..160e80ac 100644 --- a/extras/upgrade_2.12.sql +++ b/extras/upgrade_2.12.sql @@ -545,3 +545,12 @@ ALTER TABLE vicidial_call_menu ADD alt_dtmf_log ENUM('0','1') default '0'; ALTER TABLE vicidial_call_menu ADD question INT(11) DEFAULT NULL; UPDATE system_settings SET db_schema_version='1454',db_schema_update_date=NOW() where db_schema_version < 1454; + +ALTER TABLE servers ADD web_socket_url VARCHAR(255) default ''; + +ALTER TABLE phones ADD webphone_dialbox ENUM('Y','N') default 'Y'; +ALTER TABLE phones ADD webphone_mute ENUM('Y','N') default 'Y'; +ALTER TABLE phones ADD webphone_volume ENUM('Y','N') default 'Y'; +ALTER TABLE phones ADD webphone_debug ENUM('Y','N') default 'N'; + +UPDATE system_settings SET db_schema_version='1455',db_schema_update_date=NOW() where db_schema_version < 1455; diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index 2f26346e..d4b93ef2 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -516,10 +516,11 @@ # 160101-1131 - Added code to handle routing initiated recordings # 160104-1237 - Added images for live chat and email, and dead chat # 160106-2215 - Deactivated several call action buttons while Email/Chat handling +# 160306-1019 - Added more webphone options # -$version = '2.12-485c'; -$build = '160106-2215'; +$version = '2.12-486c'; +$build = '160306-1019'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=87; $one_mysql_log=0; @@ -2599,7 +2600,7 @@ else ##### END phone login load balancing functions ##### echo "
\n";
echo "";
- $stmt="SELECT extension,dialplan_number,voicemail_id,phone_ip,computer_ip,server_ip,login,pass,status,active,phone_type,fullname,company,picture,messages,old_messages,protocol,local_gmt,ASTmgrUSERNAME,ASTmgrSECRET,login_user,login_pass,login_campaign,park_on_extension,conf_on_extension,VICIDIAL_park_on_extension,VICIDIAL_park_on_filename,monitor_prefix,recording_exten,voicemail_exten,voicemail_dump_exten,ext_context,dtmf_send_extension,call_out_number_group,client_browser,install_directory,local_web_callerID_URL,VICIDIAL_web_URL,AGI_call_logging_enabled,user_switching_enabled,conferencing_enabled,admin_hangup_enabled,admin_hijack_enabled,admin_monitor_enabled,call_parking_enabled,updater_check_enabled,AFLogging_enabled,QUEUE_ACTION_enabled,CallerID_popup_enabled,voicemail_button_enabled,enable_fast_refresh,fast_refresh_rate,enable_persistant_mysql,auto_dial_next_number,VDstop_rec_after_each_call,DBX_server,DBX_database,DBX_user,DBX_pass,DBX_port,DBY_server,DBY_database,DBY_user,DBY_pass,DBY_port,outbound_cid,enable_sipsak_messages,email,template_id,conf_override,phone_context,phone_ring_timeout,conf_secret,delete_vm_after_email,is_webphone,use_external_server_ip,codecs_list,codecs_with_template,webphone_dialpad,on_hook_agent,webphone_auto_answer,voicemail_timezone,voicemail_options,user_group,voicemail_greeting,voicemail_dump_exten_no_inst,voicemail_instructions,on_login_report,unavail_dialplan_fwd_exten,unavail_dialplan_fwd_context,nva_call_url,nva_search_method,nva_error_filename,nva_new_list_id,nva_new_phone_code,nva_new_status from phones where extension='$extension' and server_ip='$server_ip' $LOGadmin_viewable_groupsSQL;";
+ $stmt="SELECT extension,dialplan_number,voicemail_id,phone_ip,computer_ip,server_ip,login,pass,status,active,phone_type,fullname,company,picture,messages,old_messages,protocol,local_gmt,ASTmgrUSERNAME,ASTmgrSECRET,login_user,login_pass,login_campaign,park_on_extension,conf_on_extension,VICIDIAL_park_on_extension,VICIDIAL_park_on_filename,monitor_prefix,recording_exten,voicemail_exten,voicemail_dump_exten,ext_context,dtmf_send_extension,call_out_number_group,client_browser,install_directory,local_web_callerID_URL,VICIDIAL_web_URL,AGI_call_logging_enabled,user_switching_enabled,conferencing_enabled,admin_hangup_enabled,admin_hijack_enabled,admin_monitor_enabled,call_parking_enabled,updater_check_enabled,AFLogging_enabled,QUEUE_ACTION_enabled,CallerID_popup_enabled,voicemail_button_enabled,enable_fast_refresh,fast_refresh_rate,enable_persistant_mysql,auto_dial_next_number,VDstop_rec_after_each_call,DBX_server,DBX_database,DBX_user,DBX_pass,DBX_port,DBY_server,DBY_database,DBY_user,DBY_pass,DBY_port,outbound_cid,enable_sipsak_messages,email,template_id,conf_override,phone_context,phone_ring_timeout,conf_secret,delete_vm_after_email,is_webphone,use_external_server_ip,codecs_list,codecs_with_template,webphone_dialpad,on_hook_agent,webphone_auto_answer,voicemail_timezone,voicemail_options,user_group,voicemail_greeting,voicemail_dump_exten_no_inst,voicemail_instructions,on_login_report,unavail_dialplan_fwd_exten,unavail_dialplan_fwd_context,nva_call_url,nva_search_method,nva_error_filename,nva_new_list_id,nva_new_phone_code,nva_new_status,webphone_dialbox,webphone_mute,webphone_volume,webphone_debug from phones where extension='$extension' and server_ip='$server_ip' $LOGadmin_viewable_groupsSQL;";
$rslt=mysql_to_mysqli($stmt, $link);
$row=mysqli_fetch_row($rslt);
@@ -30163,6 +30185,10 @@ if ($ADD==31111111111)
echo "| "._QXZ("Set As Webphone").": | $NWB#phones-is_webphone$NWE | "._QXZ("Webphone Dialpad").": | $NWB#phones-webphone_dialpad$NWE | "._QXZ("Webphone Auto-Answer").": | $NWB#phones-webphone_auto_answer$NWE | "._QXZ("Webphone Dialbox").": | $NWB#phones-webphone_dialbox$NWE | "._QXZ("Webphone Mute").": | $NWB#phones-webphone_mute$NWE | "._QXZ("Webphone Volume").": | $NWB#phones-webphone_volume$NWE | "._QXZ("Webphone Debug").": | $NWB#phones-webphone_debug$NWE | "._QXZ("Use External Server IP").": | $NWB#phones-use_external_server_ip$NWE | "._QXZ("Status").": | $NWB#phones-status$NWE | "._QXZ("Active Account").": | $NWB#phones-active$NWE |
- + + + + - + + + + + - + + + + + - + + + + + - + @@ -4516,9 +4537,14 @@ if ($SSoutbound_autodial_active > 0) - - + - - + - + + + + + - @@ -4666,7 +4692,7 @@ if ($SSoutbound_autodial_active > 0) - - + - | |||||||||||||||||||||||||||