|
|
|
@@ -2000,6 +2000,10 @@ if (isset($_GET["am_message_wildcards"])) {$am_message_wildcards=$_GET["am_me
|
|
|
|
|
elseif (isset($_POST["am_message_wildcards"])) {$am_message_wildcards=$_POST["am_message_wildcards"];}
|
|
|
|
|
if (isset($_GET["cache_carrier_stats_realtime"])) {$cache_carrier_stats_realtime=$_GET["cache_carrier_stats_realtime"];}
|
|
|
|
|
elseif (isset($_POST["cache_carrier_stats_realtime"])) {$cache_carrier_stats_realtime=$_POST["cache_carrier_stats_realtime"];}
|
|
|
|
|
if (isset($_GET["unavail_dialplan_fwd_exten"])) {$unavail_dialplan_fwd_exten=$_GET["unavail_dialplan_fwd_exten"];}
|
|
|
|
|
elseif (isset($_POST["unavail_dialplan_fwd_exten"])) {$unavail_dialplan_fwd_exten=$_POST["unavail_dialplan_fwd_exten"];}
|
|
|
|
|
if (isset($_GET["unavail_dialplan_fwd_context"])) {$unavail_dialplan_fwd_context=$_GET["unavail_dialplan_fwd_context"];}
|
|
|
|
|
elseif (isset($_POST["unavail_dialplan_fwd_context"])) {$unavail_dialplan_fwd_context=$_POST["unavail_dialplan_fwd_context"];}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isset($script_id)) {$script_id= strtoupper($script_id);}
|
|
|
|
@@ -2806,6 +2810,8 @@ if ($non_latin < 1)
|
|
|
|
|
$container_id = preg_replace('/[^-_0-9a-zA-Z]/','',$container_id);
|
|
|
|
|
$container_type = preg_replace('/[^-_0-9a-zA-Z]/','',$container_type);
|
|
|
|
|
$status_group_id = preg_replace('/[^-_0-9a-zA-Z]/','',$status_group_id);
|
|
|
|
|
$unavail_dialplan_fwd_exten = preg_replace('/[^-_0-9a-zA-Z]/','',$unavail_dialplan_fwd_exten);
|
|
|
|
|
$unavail_dialplan_fwd_context = preg_replace('/[^-_0-9a-zA-Z]/','',$unavail_dialplan_fwd_context);
|
|
|
|
|
|
|
|
|
|
### ALPHA-NUMERIC and underscore and dash and slash and dot
|
|
|
|
|
$menu_timeout_prompt = preg_replace('/[^-\/\|\._0-9a-zA-Z]/','',$menu_timeout_prompt);
|
|
|
|
@@ -3635,12 +3641,13 @@ else
|
|
|
|
|
# 151124-1141 - Added cache_carrier_stats_realtime settings option
|
|
|
|
|
# 151125-0010 - Added oldest_logs_date display field to system settings
|
|
|
|
|
# 151203-2142 - Added links to search page from called counts within this list table of list modify page
|
|
|
|
|
# 151204-0615 - Added phone options to have call go to dialplan extension instead of voicemail if phone not answered
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time
|
|
|
|
|
|
|
|
|
|
$admin_version = '2.12-521a';
|
|
|
|
|
$build = '151203-2142';
|
|
|
|
|
$admin_version = '2.12-522a';
|
|
|
|
|
$build = '151204-0615';
|
|
|
|
|
|
|
|
|
|
$STARTtime = date("U");
|
|
|
|
|
$SQLdate = date("Y-m-d H:i:s");
|
|
|
|
@@ -14631,7 +14638,7 @@ if ($ADD==41111111111)
|
|
|
|
|
if ( ($voicemail_greeting == '') and (strlen($old_voicemail_greeting) > 0) )
|
|
|
|
|
{$voicemail_greeting = '---DELETE---';}
|
|
|
|
|
|
|
|
|
|
$stmt="UPDATE phones set extension='$extension', dialplan_number='$dialplan_number', voicemail_id='$voicemail_id', phone_ip='$phone_ip', computer_ip='$computer_ip', server_ip='$server_ip', login='$login', pass='$pass', status='$status', active='$active', phone_type='$phone_type', fullname='$fullname', company='$company', picture='$picture', protocol='$protocol', local_gmt='$local_gmt', ASTmgrUSERNAME='$ASTmgrUSERNAME', ASTmgrSECRET='$ASTmgrSECRET', login_user='$login_user', login_pass='$login_pass', login_campaign='$login_campaign', park_on_extension='$park_on_extension', conf_on_extension='$conf_on_extension', VICIDIAL_park_on_extension='$VICIDIAL_park_on_extension', VICIDIAL_park_on_filename='$VICIDIAL_park_on_filename', monitor_prefix='$monitor_prefix', recording_exten='$recording_exten', voicemail_exten='$voicemail_exten', voicemail_dump_exten='$voicemail_dump_exten', ext_context='$ext_context', dtmf_send_extension='$dtmf_send_extension', call_out_number_group='$call_out_number_group', client_browser='$client_browser', install_directory='$install_directory', local_web_callerID_URL='" . mysqli_real_escape_string($link, $local_web_callerID_URL) . "', VICIDIAL_web_URL='" . mysqli_real_escape_string($link, $VICIDIAL_web_URL) . "', AGI_call_logging_enabled='$AGI_call_logging_enabled', user_switching_enabled='$user_switching_enabled', conferencing_enabled='$conferencing_enabled', admin_hangup_enabled='$admin_hangup_enabled', admin_hijack_enabled='$admin_hijack_enabled', admin_monitor_enabled='$admin_monitor_enabled', call_parking_enabled='$call_parking_enabled', updater_check_enabled='$updater_check_enabled', AFLogging_enabled='$AFLogging_enabled', QUEUE_ACTION_enabled='$QUEUE_ACTION_enabled', CallerID_popup_enabled='$CallerID_popup_enabled', voicemail_button_enabled='$voicemail_button_enabled', enable_fast_refresh='$enable_fast_refresh', fast_refresh_rate='$fast_refresh_rate', enable_persistant_mysql='$enable_persistant_mysql', auto_dial_next_number='$auto_dial_next_number', VDstop_rec_after_each_call='$VDstop_rec_after_each_call', DBX_server='$DBX_server', DBX_database='$DBX_database', DBX_user='$DBX_user', DBX_pass='$DBX_pass', DBX_port='$DBX_port', DBY_server='$DBY_server', DBY_database='$DBY_database', DBY_user='$DBY_user', DBY_pass='$DBY_pass', DBY_port='$DBY_port', outbound_cid='$outbound_cid', enable_sipsak_messages='$enable_sipsak_messages', email='$email', template_id='$template_id', conf_override='$conf_override',phone_context='$phone_context',phone_ring_timeout='$phone_ring_timeout',conf_secret='$conf_secret', delete_vm_after_email='$delete_vm_after_email',is_webphone='$is_webphone',use_external_server_ip='$use_external_server_ip',codecs_list='$codecs_list',codecs_with_template='$codecs_with_template',webphone_dialpad='$webphone_dialpad',on_hook_agent='$on_hook_agent',webphone_auto_answer='$webphone_auto_answer',voicemail_timezone='$voicemail_timezone',voicemail_options='$voicemail_options',user_group='$user_group',voicemail_greeting='$voicemail_greeting',voicemail_dump_exten_no_inst='$voicemail_dump_exten_no_inst',voicemail_instructions='$voicemail_instructions',on_login_report='$show_vm_on_summary' where extension='$old_extension' and server_ip='$old_server_ip';";
|
|
|
|
|
$stmt="UPDATE phones set extension='$extension', dialplan_number='$dialplan_number', voicemail_id='$voicemail_id', phone_ip='$phone_ip', computer_ip='$computer_ip', server_ip='$server_ip', login='$login', pass='$pass', status='$status', active='$active', phone_type='$phone_type', fullname='$fullname', company='$company', picture='$picture', protocol='$protocol', local_gmt='$local_gmt', ASTmgrUSERNAME='$ASTmgrUSERNAME', ASTmgrSECRET='$ASTmgrSECRET', login_user='$login_user', login_pass='$login_pass', login_campaign='$login_campaign', park_on_extension='$park_on_extension', conf_on_extension='$conf_on_extension', VICIDIAL_park_on_extension='$VICIDIAL_park_on_extension', VICIDIAL_park_on_filename='$VICIDIAL_park_on_filename', monitor_prefix='$monitor_prefix', recording_exten='$recording_exten', voicemail_exten='$voicemail_exten', voicemail_dump_exten='$voicemail_dump_exten', ext_context='$ext_context', dtmf_send_extension='$dtmf_send_extension', call_out_number_group='$call_out_number_group', client_browser='$client_browser', install_directory='$install_directory', local_web_callerID_URL='" . mysqli_real_escape_string($link, $local_web_callerID_URL) . "', VICIDIAL_web_URL='" . mysqli_real_escape_string($link, $VICIDIAL_web_URL) . "', AGI_call_logging_enabled='$AGI_call_logging_enabled', user_switching_enabled='$user_switching_enabled', conferencing_enabled='$conferencing_enabled', admin_hangup_enabled='$admin_hangup_enabled', admin_hijack_enabled='$admin_hijack_enabled', admin_monitor_enabled='$admin_monitor_enabled', call_parking_enabled='$call_parking_enabled', updater_check_enabled='$updater_check_enabled', AFLogging_enabled='$AFLogging_enabled', QUEUE_ACTION_enabled='$QUEUE_ACTION_enabled', CallerID_popup_enabled='$CallerID_popup_enabled', voicemail_button_enabled='$voicemail_button_enabled', enable_fast_refresh='$enable_fast_refresh', fast_refresh_rate='$fast_refresh_rate', enable_persistant_mysql='$enable_persistant_mysql', auto_dial_next_number='$auto_dial_next_number', VDstop_rec_after_each_call='$VDstop_rec_after_each_call', DBX_server='$DBX_server', DBX_database='$DBX_database', DBX_user='$DBX_user', DBX_pass='$DBX_pass', DBX_port='$DBX_port', DBY_server='$DBY_server', DBY_database='$DBY_database', DBY_user='$DBY_user', DBY_pass='$DBY_pass', DBY_port='$DBY_port', outbound_cid='$outbound_cid', enable_sipsak_messages='$enable_sipsak_messages', email='$email', template_id='$template_id', conf_override='$conf_override',phone_context='$phone_context',phone_ring_timeout='$phone_ring_timeout',conf_secret='$conf_secret', delete_vm_after_email='$delete_vm_after_email',is_webphone='$is_webphone',use_external_server_ip='$use_external_server_ip',codecs_list='$codecs_list',codecs_with_template='$codecs_with_template',webphone_dialpad='$webphone_dialpad',on_hook_agent='$on_hook_agent',webphone_auto_answer='$webphone_auto_answer',voicemail_timezone='$voicemail_timezone',voicemail_options='$voicemail_options',user_group='$user_group',voicemail_greeting='$voicemail_greeting',voicemail_dump_exten_no_inst='$voicemail_dump_exten_no_inst',voicemail_instructions='$voicemail_instructions',on_login_report='$show_vm_on_summary',unavail_dialplan_fwd_exten='$unavail_dialplan_fwd_exten',unavail_dialplan_fwd_context='$unavail_dialplan_fwd_context' where extension='$old_extension' and server_ip='$old_server_ip';";
|
|
|
|
|
$rslt=mysql_to_mysqli($stmt, $link);
|
|
|
|
|
|
|
|
|
|
$stmtA="UPDATE servers SET rebuild_conf_files='Y' where generate_vicidial_conf='Y' and active_asterisk_server='Y' and server_ip='$server_ip';";
|
|
|
|
@@ -29901,7 +29908,7 @@ if ($ADD==31111111111)
|
|
|
|
|
echo "<TABLE><TR><TD>\n";
|
|
|
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
|
|
|
|
|
|
$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 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 from phones where extension='$extension' and server_ip='$server_ip' $LOGadmin_viewable_groupsSQL;";
|
|
|
|
|
$rslt=mysql_to_mysqli($stmt, $link);
|
|
|
|
|
$row=mysqli_fetch_row($rslt);
|
|
|
|
|
|
|
|
|
@@ -29940,8 +29947,9 @@ if ($ADD==31111111111)
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Phone Type").": </td><td align=left><input type=text name=phone_type size=20 maxlength=50 value=\"$row[10]\">$NWB#phones-phone_type$NWE</td></tr>\n";
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Full Name").": </td><td align=left><input type=text name=fullname size=20 maxlength=50 value=\"$row[11]\">$NWB#phones-fullname$NWE</td></tr>\n";
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Email").": </td><td align=left><input type=text name=email size=50 maxlength=100 value=\"$row[67]\"> $NWB#phones-email$NWE</td></tr>\n";
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Delete Voicemail After Email").": </td><td align=left><select size=1 name=delete_vm_after_email><option value='Y'>"._QXZ("Y")."</option><option value='N'>"._QXZ("N")."</option><option value='$row[73]' selected>"._QXZ("$row[73]")."</option></select>$NWB#phones-delete_vm_after_email$NWE</td></tr>\n";
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Voicemail Zone").": </td><td align=left><select size=1 name=voicemail_timezone>";
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#8EBCFD><td align=right>"._QXZ("Delete Voicemail After Email").": </td><td align=left><select size=1 name=delete_vm_after_email><option value='Y'>"._QXZ("Y")."</option><option value='N'>"._QXZ("N")."</option><option value='$row[73]' selected>"._QXZ("$row[73]")."</option></select>$NWB#phones-delete_vm_after_email$NWE</td></tr>\n";
|
|
|
|
|
echo "<tr bgcolor=#8EBCFD><td align=right>"._QXZ("Voicemail Zone").": </td><td align=left><select size=1 name=voicemail_timezone>";
|
|
|
|
|
$vm_zones = explode("\n",$SSvoicemail_timezones);
|
|
|
|
|
$z=0;
|
|
|
|
|
$vm_zones_ct = count($vm_zones);
|
|
|
|
@@ -29958,20 +29966,19 @@ if ($ADD==31111111111)
|
|
|
|
|
$z++;
|
|
|
|
|
}
|
|
|
|
|
echo "<option selected>$row[81]</option></select> $NWB#phones-voicemail_timezone$NWE</td></tr>\n";
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Voicemail Options").": </td><td align=left><input type=hidden name=old_voicemail_greeting value=\"$row[84]\"><input type=text name=voicemail_options size=50 maxlength=100 value=\"$row[82]\">$NWB#phones-voicemail_options$NWE</td></tr>\n";
|
|
|
|
|
echo "<tr bgcolor=#8EBCFD><td align=right>"._QXZ("Voicemail Options").": </td><td align=left><input type=hidden name=old_voicemail_greeting value=\"$row[84]\"><input type=text name=voicemail_options size=50 maxlength=100 value=\"$row[82]\">$NWB#phones-voicemail_options$NWE</td></tr>\n";
|
|
|
|
|
if ($SSallow_voicemail_greeting > 0)
|
|
|
|
|
{
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Voicemail Greeting").": </td><td><input type=text size=50 maxlength=100 name=voicemail_greeting id=voicemail_greeting value=\"$row[84]\"> <a href=\"javascript:launch_chooser('voicemail_greeting','date',700);\">"._QXZ("audio chooser")."</a> $NWB#phones-voicemail_greeting$NWE</td></tr>\n";
|
|
|
|
|
echo "<tr bgcolor=#8EBCFD><td align=right>"._QXZ("Voicemail Greeting").": </td><td><input type=text size=50 maxlength=100 name=voicemail_greeting id=voicemail_greeting value=\"$row[84]\"> <a href=\"javascript:launch_chooser('voicemail_greeting','date',700);\">"._QXZ("audio chooser")."</a> $NWB#phones-voicemail_greeting$NWE</td></tr>\n";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo "<input type=hidden name=voicemail_greeting value=\"$row[84]\">";
|
|
|
|
|
echo "<input type=hidden name=old_voicemail_greeting value=\"$row[84]\">";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Voicemail Instructions").": </td><td align=left><select size=1 name=voicemail_instructions><option value='Y'>"._QXZ("Y")."</option><option value='N'>"._QXZ("N")."</option><option value='$row[86]' selected>"._QXZ("$row[86]")."</option></select>$NWB#phones-voicemail_instructions$NWE</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Show VM on Summary Screen").": </td><td align=left><select size=1 name=show_vm_on_summary><option value='Y'>"._QXZ("Y")."</option><option value='N'>"._QXZ("N")."</option><option value='$row[87]' selected>"._QXZ("$row[87]")."</option></select>$NWB#phones-show_vm_on_summary$NWE</td></tr>\n";
|
|
|
|
|
echo "<tr bgcolor=#8EBCFD><td align=right>"._QXZ("Voicemail Instructions").": </td><td align=left><select size=1 name=voicemail_instructions><option value='Y'>"._QXZ("Y")."</option><option value='N'>"._QXZ("N")."</option><option value='$row[86]' selected>"._QXZ("$row[86]")."</option></select>$NWB#phones-voicemail_instructions$NWE</td></tr>\n";
|
|
|
|
|
echo "<tr bgcolor=#8EBCFD><td align=right>"._QXZ("Show VM on Summary Screen").": </td><td align=left><select size=1 name=show_vm_on_summary><option value='Y'>"._QXZ("Y")."</option><option value='N'>"._QXZ("N")."</option><option value='$row[87]' selected>"._QXZ("$row[87]")."</option></select>$NWB#phones-show_vm_on_summary$NWE</td></tr>\n";
|
|
|
|
|
echo "<tr bgcolor=#8EBCFD><td align=right>"._QXZ("Unavailable Dialplan Forward").": </td><td align=left><input type=text name=unavail_dialplan_fwd_exten size=20 maxlength=40 value=\"$row[88]\"> "._QXZ("context").": <input type=text name=unavail_dialplan_fwd_context size=20 maxlength=100 value=\"$row[89]\">$NWB#phones-unavail_dialplan_fwd_exten$NWE</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Company").": </td><td align=left><input type=text name=company size=10 maxlength=10 value=\"$row[12]\">$NWB#phones-company$NWE</td></tr>\n";
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Picture").": </td><td align=left><input type=text name=picture size=20 maxlength=19 value=\"$row[13]\">$NWB#phones-picture$NWE</td></tr>\n";
|
|
|
|
|