From 698d595c1ecb1c880adc7874e16cf2611df71e10 Mon Sep 17 00:00:00 2001 From: mattf Date: Sun, 20 Dec 2015 21:28:58 +0000 Subject: [PATCH] Added more phone NVA options and new NVA agi options related to inserting leads where phone number is not found git-svn-id: svn://192.168.202.10@2438 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/agi/agi-NVA_recording.agi | 48 ++++++++++++++++++- agc_2-X/trunk/docs/VICIDIAL_statuses.txt | 1 + .../trunk/extras/MySQL_AST_CREATE_tables.sql | 5 +- agc_2-X/trunk/extras/upgrade_2.12.sql | 6 +++ agc_2-X/trunk/www/vicidial/admin.php | 21 ++++++-- agc_2-X/trunk/www/vicidial/help.php | 16 +++++++ 6 files changed, 91 insertions(+), 6 deletions(-) diff --git a/agc_2-X/trunk/agi/agi-NVA_recording.agi b/agc_2-X/trunk/agi/agi-NVA_recording.agi index 6fa6c9da..ed8e387f 100644 --- a/agc_2-X/trunk/agi/agi-NVA_recording.agi +++ b/agc_2-X/trunk/agi/agi-NVA_recording.agi @@ -17,6 +17,11 @@ # ; 10. if 9 is Y, this is search method (ALLLISTS|PHONE) default ALLLISTS, search all lists, use phone setting, CURRENTLY DOES NOTHING # ; 11. error out and end call if phone number is not found (Y|N) default N # ; 12. run the phone entry's NVA Call URL (Y|N) default N +# ; 13. if 9 is Y, and phone number is not found, insert into phone's NVA List ID (Y|N) default N +# ; 14. if 13 is Y, override phone's NVA List ID with this list ID when lead is inserted +# ; 15. if 13 is Y, override phone's NVA Phone Code with this phone code when lead is inserted +# ; 16. if 13 is Y, override phone's NVA Status with this status when lead is inserted +# # # ;custom dialplan entry example: (similar to the defaultlog Call Menu) #exten => _X.,1,AGI(agi-NVA_recording.agi,BOTH------Y---N---Y---N---N---N) @@ -37,6 +42,11 @@ # ; example of using as Call Menu prompt to record, search for phone number, run NVA call URL and error if not found #agi-NVA_recording.agi,BOTH------Y---N---Y---N---N---N---Y---ALLLISTS---Y---Y # +# ;custom dialplan entry example: (similar to the defaultlog Call Menu) with NVA options +#exten => _X.,1,AGI(agi-NVA_recording.agi,BOTH------Y---N---Y---N---N---N---Y---ALLLISTS---N---Y---Y) +#exten => _X.,n,Goto(default,${EXTEN},1) +#exten => _X.,n,Hangup +# # Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # CHANGELOG @@ -49,6 +59,7 @@ # 150915-1824 - Added recording ID play and filename options # 151211-0932 - Added phone search and phone NVA URL features # 151214-2148 - Added more variables to be used by nva url feature +# 151220-1521 - Added phone NVA List ID option for not found phone numbers # &get_time_now; @@ -156,6 +167,10 @@ if (length($ARGV[0])>1) $search_method = $ARGV_vars[9]; $search_error = $ARGV_vars[10]; $phone_url = $ARGV_vars[11]; + $insert_list = $ARGV_vars[12]; + $override_list = $ARGV_vars[13]; + $override_code = $ARGV_vars[14]; + $override_status = $ARGV_vars[15]; if ($AGI_output =~ /STDERR/) {$AGILOG = '1';} if ($AGI_output =~ /FILE/) {$AGILOG = '2';} @@ -264,7 +279,7 @@ if (length($user) > 0) if ( ($search_phone =~ /Y/) || ($phone_url =~ /Y/) ) { ### Grab phone NVA values from the database phones table - $stmtA = "SELECT nva_call_url,nva_search_method,nva_error_filename FROM phones where extension='$accountcode' and server_ip = '$VARserver_ip';"; + $stmtA = "SELECT nva_call_url,nva_search_method,nva_error_filename,nva_new_list_id,nva_new_phone_code,nva_new_status FROM phones where extension='$accountcode' and server_ip = '$VARserver_ip';"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows; @@ -274,6 +289,9 @@ if ( ($search_phone =~ /Y/) || ($phone_url =~ /Y/) ) $nva_call_url = $aryA[0]; $nva_search_method = $aryA[1]; $nva_error_filename = $aryA[2]; + $nva_new_list_id = $aryA[3]; + $nva_new_phone_code = $aryA[4]; + $nva_new_status = $aryA[5]; } $sthA->finish(); } @@ -292,11 +310,14 @@ if ($search_phone =~ /Y/) { @aryA = $sthA->fetchrow_array; $search_lead_id = $aryA[0]; + if ($AGILOG) {$agi_string = "NVA Search, lead found: $search_lead_id|$temp_phone($extension)"; &agi_output;} } else { + if ($AGILOG) {$agi_string = "NVA Search, lead not found: $temp_phone($extension)"; &agi_output;} if ($search_error =~ /Y/) { + if ($AGILOG) {$agi_string = "NVA playing error file then exiting..."; &agi_output;} $temp_error_filename = 'invalid'; if (length($nva_error_filename) > 0 ) {$temp_error_filename = $nva_error_filename;} @@ -310,6 +331,31 @@ if ($search_phone =~ /Y/) exit; } + else + { + if ($insert_list =~ /Y/) + { + if (length($override_list) > 1) {$nva_new_list_id = $override_list;} + if (length($override_code) > 0) {$nva_new_phone_code = $override_code;} + if (length($override_status) > 0) {$nva_new_status = $override_status;} + + + ### insert a record into the vicidial_list table if phone number not found + $stmtA = "INSERT INTO vicidial_list (entry_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments) values('$now_date','$nva_new_status','$accountcode','','PHONE','$nva_new_list_id','Y','$nva_new_phone_code','$temp_phone','$accountcode','1','0','NVA PHONE INSERT');"; + $affected_rows = $dbhA->do($stmtA); + $stmtB = "SELECT LAST_INSERT_ID() LIMIT 1;"; + $sthA = $dbhA->prepare($stmtB) or die "preparing: ",$dbhA->errstr; + $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; + $sthArows=$sthA->rows; + if ($sthArows > 0) + { + @aryA = $sthA->fetchrow_array; + $search_lead_id = $aryA[0]; + } + $sthA->finish(); + if ($AGILOG) {$agi_string = "NVA Inserted New Lead: |$affected_rows|$search_lead_id|$nva_new_list_id|$nva_new_phone_code|$nva_new_status|"; &agi_output;} + } + } } $sthA->finish(); } diff --git a/agc_2-X/trunk/docs/VICIDIAL_statuses.txt b/agc_2-X/trunk/docs/VICIDIAL_statuses.txt index 14d9edde..bf096e86 100644 --- a/agc_2-X/trunk/docs/VICIDIAL_statuses.txt +++ b/agc_2-X/trunk/docs/VICIDIAL_statuses.txt @@ -71,3 +71,4 @@ INBND - first status of a newly created lead going into the inbound queueing pro UNKXFR - CPD Unknown result Transfer to Call Menu or In-Group UNKAM - CPD Unknown call sent to a message to be played UNKAL - CPD Unknown call sent to a message and message has been played +NVAINS - Default status for new inserted lead on phone NVA call diff --git a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql index 6ad8a66f..64ff3d76 100644 --- a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql +++ b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql @@ -92,6 +92,9 @@ unavail_dialplan_fwd_context VARCHAR(100) default '', nva_call_url TEXT, nva_search_method VARCHAR(40) default 'NONE', 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', index (server_ip), index (voicemail_id), index (dialplan_number), @@ -3649,4 +3652,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='1440',db_schema_update_date=NOW(),reload_timestamp=NOW(); +UPDATE system_settings SET db_schema_version='1441',db_schema_update_date=NOW(),reload_timestamp=NOW(); diff --git a/agc_2-X/trunk/extras/upgrade_2.12.sql b/agc_2-X/trunk/extras/upgrade_2.12.sql index e459f90f..c2fa637c 100644 --- a/agc_2-X/trunk/extras/upgrade_2.12.sql +++ b/agc_2-X/trunk/extras/upgrade_2.12.sql @@ -406,3 +406,9 @@ ALTER TABLE phones ADD nva_search_method VARCHAR(40) default 'NONE'; ALTER TABLE phones ADD nva_error_filename VARCHAR(255) default ''; UPDATE system_settings SET db_schema_version='1440',db_schema_update_date=NOW() where db_schema_version < 1440; + +ALTER TABLE phones ADD nva_new_list_id BIGINT(14) UNSIGNED default '995'; +ALTER TABLE phones ADD nva_new_phone_code VARCHAR(10) default '1'; +ALTER TABLE phones ADD nva_new_status VARCHAR(6) default 'NVAINS'; + +UPDATE system_settings SET db_schema_version='1441',db_schema_update_date=NOW() where db_schema_version < 1441; diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index 03156b93..56a43420 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -2010,6 +2010,12 @@ if (isset($_GET["nva_search_method"])) {$nva_search_method=$_GET["nva_search_ elseif (isset($_POST["nva_search_method"])) {$nva_search_method=$_POST["nva_search_method"];} if (isset($_GET["nva_error_filename"])) {$nva_error_filename=$_GET["nva_error_filename"];} elseif (isset($_POST["nva_error_filename"])) {$nva_error_filename=$_POST["nva_error_filename"];} +if (isset($_GET["nva_new_list_id"])) {$nva_new_list_id=$_GET["nva_new_list_id"];} + elseif (isset($_POST["nva_new_list_id"])) {$nva_new_list_id=$_POST["nva_new_list_id"];} +if (isset($_GET["nva_new_phone_code"])) {$nva_new_phone_code=$_GET["nva_new_phone_code"];} + elseif (isset($_POST["nva_new_phone_code"])) {$nva_new_phone_code=$_POST["nva_new_phone_code"];} +if (isset($_GET["nva_new_status"])) {$nva_new_status=$_GET["nva_new_status"];} + elseif (isset($_POST["nva_new_status"])) {$nva_new_status=$_POST["nva_new_status"];} if (isset($script_id)) {$script_id= strtoupper($script_id);} @@ -2374,6 +2380,8 @@ if ($non_latin < 1) $max_sec = preg_replace('/[^0-9]/','',$max_sec); $usacan_phone_dialcode_fix = preg_replace('/[^0-9]/','',$usacan_phone_dialcode_fix); $cache_carrier_stats_realtime = preg_replace('/[^0-9]/','',$cache_carrier_stats_realtime); + $nva_new_list_id = preg_replace('/[^0-9]/','',$nva_new_list_id); + $nva_new_phone_code = preg_replace('/[^0-9]/','',$nva_new_phone_code); $drop_call_seconds = preg_replace('/[^-0-9]/','',$drop_call_seconds); $timer_alt_seconds = preg_replace('/[^-0-9]/','',$timer_alt_seconds); @@ -2561,6 +2569,7 @@ if ($non_latin < 1) $allow_emails = preg_replace('/[^0-9a-zA-Z]/','',$allow_emails); $status_display_ingroup = preg_replace('/[^0-9a-zA-Z]/','',$status_display_ingroup); $populate_lead_ingroup = preg_replace('/[^0-9a-zA-Z]/','',$populate_lead_ingroup); + $nva_new_status = preg_replace('/[^0-9a-zA-Z]/','',$nva_new_status); ### DIGITS and Dots $server_ip = preg_replace('/[^\.0-9]/','',$server_ip); @@ -3653,12 +3662,13 @@ else # 151204-0615 - Added phone options to have call go to dialplan extension instead of voicemail if phone not answered # 151211-0940 - Added phone options for NVA recording agi script # 151216-1053 - Added links to Inbound Chat Report +# 151220-1545 - Added more phone NVA settings # # 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-524a'; -$build = '151216-1053'; +$admin_version = '2.12-525a'; +$build = '151220-1545'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -14649,7 +14659,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',unavail_dialplan_fwd_exten='$unavail_dialplan_fwd_exten',unavail_dialplan_fwd_context='$unavail_dialplan_fwd_context', nva_call_url='" . mysqli_real_escape_string($link, $nva_call_url) . "', nva_search_method='$nva_search_method', nva_error_filename='$nva_error_filename' 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', nva_call_url='" . mysqli_real_escape_string($link, $nva_call_url) . "', nva_search_method='$nva_search_method', nva_error_filename='$nva_error_filename',nva_new_list_id='$nva_new_list_id',nva_new_phone_code='$nva_new_phone_code',nva_new_status='$nva_new_status' 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';"; @@ -29919,7 +29929,7 @@ if ($ADD==31111111111) echo "\n"; echo "\n"; echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "\n"; diff --git a/agc_2-X/trunk/www/vicidial/help.php b/agc_2-X/trunk/www/vicidial/help.php index 8f086648..91883023 100644 --- a/agc_2-X/trunk/www/vicidial/help.php +++ b/agc_2-X/trunk/www/vicidial/help.php @@ -69,6 +69,7 @@ # 151121-1144 - Added cache_carrier_stats_realtime # 151204-0635 - Added phones-unavail_dialplan_fwd_exten # 151209-1437 - Added phones-nva entries +# 151220-1553 - Added more phones nva options # @@ -4073,6 +4074,21 @@ if ($SSoutbound_autodial_active > 0)
- +
+ +
+ - + +
+
+
+ - + +
+
+
+ - +

\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 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 from phones where extension='$extension' and server_ip='$server_ip' $LOGadmin_viewable_groupsSQL;"; $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); @@ -30027,6 +30037,9 @@ if ($ADD==31111111111) echo "
"._QXZ("NVA Call URL").": $NWB#phones-nva_call_url$NWE
"._QXZ("NVA Search Method").": $NWB#phones-nva_search_method$NWE
"._QXZ("NVA Error Filename").": "._QXZ("audio chooser")." $NWB#phones-nva_error_filename$NWE
"._QXZ("NVA New List ID").": $NWB#phones-nva_new_list_id$NWE
"._QXZ("NVA New Phone Code").": $NWB#phones-nva_new_phone_code$NWE
"._QXZ("NVA New Status").": $NWB#phones-nva_new_status$NWE
"._QXZ("Call Logging").": $NWB#phones-AGI_call_logging_enabled$NWE
"._QXZ("User Switching").": $NWB#phones-user_switching_enabled$NWE