diff --git a/agc_2-X/trunk/UPGRADE b/agc_2-X/trunk/UPGRADE index f58aefad..aab9a268 100644 --- a/agc_2-X/trunk/UPGRADE +++ b/agc_2-X/trunk/UPGRADE @@ -178,6 +178,9 @@ OTHER CHANGES: 30. Added Agent API pause_code function +31. Added VMAIL_NO_INST options to send calls to voicemail with no instructions + playing after the voicemail greeting + diff --git a/agc_2-X/trunk/agi/agi-DID_route.agi b/agc_2-X/trunk/agi/agi-DID_route.agi index 47b3e924..6de16cdb 100644 --- a/agc_2-X/trunk/agi/agi-DID_route.agi +++ b/agc_2-X/trunk/agi/agi-DID_route.agi @@ -13,7 +13,7 @@ # ;inbound DID catch-all: #exten => _X.,1,AGI(agi-DID_route.agi) # -# Copyright (C) 2013 Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # changes: # 81007-0324 - First Build @@ -32,6 +32,7 @@ # 130108-1810 - Changes for Asterisk 1.8 compatibility # 130925-1819 - Added variable filter to prevent DID SQL injection attack # 130926-1549 - Added new queue_log IVR entries for QM +# 140126-1138 - Added VMAIL_NO_INST options # $script = 'agi-DID_route.agi'; @@ -379,7 +380,7 @@ if ($record_call =~ /Y/) ### Grab Server values from the database $cbc=0; -$stmtA = "SELECT voicemail_dump_exten,ext_context,answer_transfer_agent,local_gmt,asterisk_version,max_vicidial_trunks FROM servers where server_ip = '$VARserver_ip';"; +$stmtA = "SELECT voicemail_dump_exten,ext_context,answer_transfer_agent,local_gmt,asterisk_version,max_vicidial_trunks,voicemail_dump_exten_no_inst FROM servers where server_ip = '$VARserver_ip';"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows; @@ -393,6 +394,7 @@ while ($sthArows > $cbc) $DBSERVER_GMT = $aryA[3]; $DBasterisk_version = $aryA[4]; $DBmax_vicidial_trunks = $aryA[5]; + $voicemail_dump_exten_no_inst = $aryA[6]; if ($DBvoicemail_dump_exten) {$voicemail_dump_exten = $DBvoicemail_dump_exten;} if ($DBext_context) {$ext_context = $DBext_context;} if ($DBanswer_transfer_agent) {$answer_transfer_agent = $DBanswer_transfer_agent;} @@ -552,7 +554,7 @@ if ($did_route =~ /PHONE/) ### Route call to a voicemail box on the system -if ($did_route =~ /VOICEMAIL/) +if ($did_route =~ /VOICEMAIL|VMAIL_NO_INST/) { ### format the remote server dialstring to get the call to the overflow agent meetme room if( $did_server_ip =~ m/(\S+)\.(\S+)\.(\S+)\.(\S+)/ ) @@ -563,6 +565,8 @@ if ($did_route =~ /VOICEMAIL/) $d = leading_zero($4); $ServerString = "$a$S$b$S$c$S$d$S"; } + if ($did_route =~ /VMAIL_NO_INST/) + {$voicemail_dump_exten = $voicemail_dump_exten_no_inst;} $did_extension = "$ServerString$voicemail_dump_exten$voicemail_ext"; $did_route = 'EXTEN'; } diff --git a/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi b/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi index fe49e051..3eaf8005 100644 --- a/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi +++ b/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi @@ -82,7 +82,7 @@ #exten => _99909*.,2,AGI(agi-VDAD_ALL_inbound.agi) #exten => _99909*.,3,Hangup # -# Copyright (C) 2013 Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # changes: # 70828-0924 - First Build @@ -187,6 +187,7 @@ # 130925-1821 - Added variable filter to prevent DID SQL injection attack # 130926-1548 - Added new queue_log IVR entries for QM # 131209-1539 - Added called_count logging +# 140126-1129 - Added VMAIL_NO_INST options # $script = 'agi-VDAD_ALL_inbound.agi'; @@ -676,7 +677,7 @@ if ($channel =~ /Local/i) ### Grab Server values from the database $cbc=0; -$stmtA = "SELECT voicemail_dump_exten,ext_context,answer_transfer_agent,local_gmt,asterisk_version,max_vicidial_trunks FROM servers where server_ip = '$VARserver_ip';"; +$stmtA = "SELECT voicemail_dump_exten,ext_context,answer_transfer_agent,local_gmt,asterisk_version,max_vicidial_trunks,voicemail_dump_exten_no_inst FROM servers where server_ip = '$VARserver_ip';"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows; @@ -690,6 +691,7 @@ while ($sthArows > $cbc) $DBSERVER_GMT = $aryA[3]; $asterisk_version = $aryA[4]; $DBmax_vicidial_trunks = $aryA[5]; + $voicemail_dump_exten_no_inst = $aryA[6]; if ($DBvoicemail_dump_exten) {$voicemail_dump_exten = $DBvoicemail_dump_exten;} if ($DBext_context) {$ext_context = $DBext_context;} if ($DBanswer_transfer_agent) {$answer_transfer_agent = $DBanswer_transfer_agent;} @@ -1474,7 +1476,7 @@ if ( ( ( ( ($hm < $ct_default_start) || ($hm > $ct_default_stop) ) && ($hm >= $c checkresult($result); if ($AGILOG) {$agi_string = "callerID changed: \"$callerid\" \<$transfer_cid\>"; &agi_output;} } - if ($after_hours_action =~ /VOICEMAIL/) + if ($after_hours_action =~ /VOICEMAIL|VMAIL_NO_INST/) { if ( ($channel_group =~ /AGENTDIRECT/i) && (length($agent_only) > 1) && ($after_hours_voicemail =~ /AGENTVMAIL/) ) { @@ -1496,6 +1498,8 @@ if ( ( ( ( ($hm < $ct_default_start) || ($hm > $ct_default_stop) ) && ($hm >= $c print STDERR "Setting CID \"$newcallerid\"\n"; checkresult($result); if ($AGILOG) {$agi_string = "callerID changed: $newcallerid"; &agi_output;} + if ($after_hours_action =~ /VMAIL_NO_INST/) + {$voicemail_dump_exten = $voicemail_dump_exten_no_inst;} $DROPexten = "$voicemail_dump_exten$after_hours_voicemail"; } if ($after_hours_action =~ /IN_GROUP/) @@ -1718,7 +1722,7 @@ if ( ( ($no_agent_no_queue =~ /Y|NO_PAUSED/) || ($MCnanque_override > 0) ) && ($ $dbhP=$dbhB; $stmtA=$stmtB; $mysql_count='02XXX'; $MEL_aff_rows=$Baffected_rows; &mysql_error_logging; } } - if ($no_agent_action =~ /VOICEMAIL/) + if ($no_agent_action =~ /VOICEMAIL|VMAIL_NO_INST/) { if ( ($channel_group =~ /AGENTDIRECT/i) && (length($agent_only) > 1) && ($no_agent_action_value =~ /AGENTVMAIL/) ) { @@ -1740,6 +1744,8 @@ if ( ( ($no_agent_no_queue =~ /Y|NO_PAUSED/) || ($MCnanque_override > 0) ) && ($ print STDERR "Setting CID \"$newcallerid\"\n"; checkresult($result); if ($AGILOG) {$agi_string = "callerID changed: $newcallerid"; &agi_output;} + if ($no_agent_action =~ /VMAIL_NO_INST/) + {$voicemail_dump_exten = $voicemail_dump_exten_no_inst;} $DROPexten = "$voicemail_dump_exten$no_agent_action_value"; } if ($no_agent_action =~ /INGROUP/) @@ -3910,6 +3916,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override { if ($wait_time_option_SETTING =~ /PRESS_STAY/) {$wait_time_option = 'STAY_IN_QUEUE'; $wait_in_queue = 2; $DROPexten='';} if ($wait_time_option_SETTING =~ /PRESS_VMAIL/) {$wait_time_option = 'VOICEMAIL'; $HT_status='QVMAIL';} + if ($wait_time_option_SETTING =~ /PRESS_VMAIL_NO_INST/) {$wait_time_option = 'VMAIL_NO_INST'; $HT_status='QVMAIL';} if ($wait_time_option_SETTING =~ /PRESS_EXTEN/) {$wait_time_option = 'EXTENSION'; $HT_status='WAITTO';} if ($wait_time_option_SETTING =~ /PRESS_CALLMENU/) {$wait_time_option = 'CALL_MENU'; $HT_status='WAITTO';} if ($wait_time_option_SETTING =~ /PRESS_CID_CALLBACK/) {$wait_time_option = 'CALLERID_CALLBACK'; $HT_status='WAITTO';} @@ -3919,6 +3926,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override { if ($wait_time_second_option =~ /PRESS_STAY/) {$wait_time_option = 'STAY_IN_QUEUE'; $wait_in_queue = 2; $DROPexten='';} if ($wait_time_second_option =~ /PRESS_VMAIL/) {$wait_time_option = 'VOICEMAIL'; $HT_status='QVMAIL';} + if ($wait_time_second_option =~ /PRESS_VMAIL_NO_INST/) {$wait_time_option = 'VMAIL_NO_INST'; $HT_status='QVMAIL';} if ($wait_time_second_option =~ /PRESS_EXTEN/) {$wait_time_option = 'EXTENSION'; $HT_status='WAITTO';} if ($wait_time_second_option =~ /PRESS_CALLMENU/) {$wait_time_option = 'CALL_MENU'; $HT_status='WAITTO';} if ($wait_time_second_option =~ /PRESS_CID_CALLBACK/) {$wait_time_option = 'CALLERID_CALLBACK'; $HT_status='WAITTO';} @@ -3928,6 +3936,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override { if ($wait_time_third_option =~ /PRESS_STAY/) {$wait_time_option = 'STAY_IN_QUEUE'; $wait_in_queue = 2; $DROPexten='';} if ($wait_time_third_option =~ /PRESS_VMAIL/) {$wait_time_option = 'VOICEMAIL'; $HT_status='QVMAIL';} + if ($wait_time_third_option =~ /PRESS_VMAIL_NO_INST/) {$wait_time_option = 'VMAIL_NO_INST'; $HT_status='QVMAIL';} if ($wait_time_third_option =~ /PRESS_EXTEN/) {$wait_time_option = 'EXTENSION'; $HT_status='WAITTO';} if ($wait_time_third_option =~ /PRESS_CALLMENU/) {$wait_time_option = 'CALL_MENU'; $HT_status='WAITTO';} if ($wait_time_third_option =~ /PRESS_CID_CALLBACK/) {$wait_time_option = 'CALLERID_CALLBACK'; $HT_status='WAITTO';} @@ -4003,7 +4012,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override } } - if ($wait_time_option =~ /VOICEMAIL/) + if ($wait_time_option =~ /VOICEMAIL|VMAIL_NO_INST/) { if ( ($channel_group =~ /AGENTDIRECT/i) && (length($agent_only) > 1) && ($wait_time_option_voicemail =~ /AGENTVMAIL/) ) { @@ -4025,6 +4034,8 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override print STDERR "Setting CID \"$newcallerid\"\n"; checkresult($result); if ($AGILOG) {$agi_string = "callerID changed: $newcallerid"; &agi_output;} + if ($wait_time_option =~ /VMAIL_NO_INST/) + {$voicemail_dump_exten = $voicemail_dump_exten_no_inst;} if (length($wait_time_option_voicemail)>0) {$DROPexten = "$voicemail_dump_exten$wait_time_option_voicemail";} } @@ -4334,6 +4345,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override { if ($hold_time_option_SETTING =~ /PRESS_STAY/) {$hold_time_option = 'STAY_IN_QUEUE'; $wait_in_queue = 2; $DROPexten='';} if ($hold_time_option_SETTING =~ /PRESS_VMAIL/) {$hold_time_option = 'VOICEMAIL'; $HT_status='QVMAIL';} + if ($hold_time_option_SETTING =~ /PRESS_VMAIL_NO_INST/) {$hold_time_option = 'VMAIL_NO_INST'; $HT_status='QVMAIL';} if ($hold_time_option_SETTING =~ /PRESS_EXTEN/) {$hold_time_option = 'EXTENSION'; $HT_status='WAITTO';} if ($hold_time_option_SETTING =~ /PRESS_CALLMENU/) {$hold_time_option = 'CALL_MENU'; $HT_status='WAITTO';} if ($hold_time_option_SETTING =~ /PRESS_CID_CALLBACK/) {$hold_time_option = 'CALLERID_CALLBACK'; $HT_status='WAITTO';} @@ -4343,6 +4355,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override { if ($hold_time_second_option =~ /PRESS_STAY/) {$hold_time_option = 'STAY_IN_QUEUE'; $wait_in_queue = 2; $DROPexten='';} if ($hold_time_second_option =~ /PRESS_VMAIL/) {$hold_time_option = 'VOICEMAIL'; $HT_status='QVMAIL';} + if ($hold_time_second_option =~ /PRESS_VMAIL_NO_INST/) {$hold_time_option = 'VMAIL_NO_INST'; $HT_status='QVMAIL';} if ($hold_time_second_option =~ /PRESS_EXTEN/) {$hold_time_option = 'EXTENSION'; $HT_status='WAITTO';} if ($hold_time_second_option =~ /PRESS_CALLMENU/) {$hold_time_option = 'CALL_MENU'; $HT_status='WAITTO';} if ($hold_time_second_option =~ /PRESS_CID_CALLBACK/) {$hold_time_option = 'CALLERID_CALLBACK'; $HT_status='WAITTO';} @@ -4352,6 +4365,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override { if ($hold_time_third_option =~ /PRESS_STAY/) {$hold_time_option = 'STAY_IN_QUEUE'; $wait_in_queue = 2; $DROPexten='';} if ($hold_time_third_option =~ /PRESS_VMAIL/) {$hold_time_option = 'VOICEMAIL'; $HT_status='QVMAIL';} + if ($hold_time_third_option =~ /PRESS_VMAIL_NO_INST/) {$hold_time_option = 'VMAIL_NO_INST'; $HT_status='QVMAIL';} if ($hold_time_third_option =~ /PRESS_EXTEN/) {$hold_time_option = 'EXTENSION'; $HT_status='WAITTO';} if ($hold_time_third_option =~ /PRESS_CALLMENU/) {$hold_time_option = 'CALL_MENU'; $HT_status='WAITTO';} if ($hold_time_third_option =~ /PRESS_CID_CALLBACK/) {$hold_time_option = 'CALLERID_CALLBACK'; $HT_status='WAITTO';} @@ -4428,7 +4442,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override } } - if ($hold_time_option =~ /VOICEMAIL/) + if ($hold_time_option =~ /VOICEMAIL|VMAIL_NO_INST/) { if ( ($channel_group =~ /AGENTDIRECT/i) && (length($agent_only) > 1) && ($hold_time_option_voicemail =~ /AGENTVMAIL/) ) { @@ -4450,6 +4464,8 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override print STDERR "Setting CID \"$newcallerid\"\n"; checkresult($result); if ($AGILOG) {$agi_string = "callerID changed: $newcallerid"; &agi_output;} + if ($hold_time_option =~ /VMAIL_NO_INST/) + {$voicemail_dump_exten = $voicemail_dump_exten_no_inst;} if (length($hold_time_option_voicemail)>0) {$DROPexten = "$voicemail_dump_exten$hold_time_option_voicemail";} } @@ -4852,13 +4868,15 @@ if ( ($drop_timer > $DROP_TIME) || ($MCdrop_override > 0) ) if (length($drop_exten)>0) {$DROPexten = "$drop_exten";} } - if ($drop_action =~ /VOICEMAIL/) + if ($drop_action =~ /VOICEMAIL|VMAIL_NO_INST/) { $newcallerid = "\"$VCcallerid <$transfer_cid>\""; $AGI->set_callerid($newcallerid); print STDERR "Setting CID \"$newcallerid\"\n"; checkresult($result); if ($AGILOG) {$agi_string = "callerID changed: $newcallerid"; &agi_output;} + if ($drop_action =~ /VMAIL_NO_INST/) + {$voicemail_dump_exten = $voicemail_dump_exten_no_inst;} if (length($VDADvoicemail_ext)>0) {$DROPexten = "$voicemail_dump_exten$VDADvoicemail_ext";} } diff --git a/agc_2-X/trunk/agi/agi-VDAD_ALL_outbound.agi b/agc_2-X/trunk/agi/agi-VDAD_ALL_outbound.agi index 5f1119eb..490e8c21 100644 --- a/agc_2-X/trunk/agi/agi-VDAD_ALL_outbound.agi +++ b/agc_2-X/trunk/agi/agi-VDAD_ALL_outbound.agi @@ -46,7 +46,7 @@ #exten => 8366,4,AGI(agi-VDAD_ALL_outbound.agi,SURVEY-----LB-----US_pol_survey_hello-----1238-----8-----US_pol_survey_transfer-----US_thanks_no_contact-----OPTOUT-----DNC) #exten => 8366,5,Hangup # -# Copyright (C) 2013 Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # changes: # 80218-2027 - First Build @@ -106,6 +106,7 @@ # 130425-0049 - Added survey_wait_sec option and pre-process time logging # 130425-0657 - Added survey_no_response option to drop to campaign drop action # 131209-1735 - Added called_count logging +# 140126-1128 - Added VMAIL_NO_INST options # $script = 'agi-VDAD_ALL_outbound.agi'; @@ -223,7 +224,7 @@ $dbhA = DBI->connect("DBI:mysql:$VARDB_database:$VARDB_server:$VARDB_port", "$VA or die "Couldn't connect to database: " . DBI->errstr; ### Grab Server values from the database -$stmtA = "SELECT voicemail_dump_exten,ext_context,answer_transfer_agent,local_gmt,asterisk_version,max_vicidial_trunks,agi_output FROM servers where server_ip = '$VARserver_ip';"; +$stmtA = "SELECT voicemail_dump_exten,ext_context,answer_transfer_agent,local_gmt,asterisk_version,max_vicidial_trunks,agi_output,voicemail_dump_exten_no_inst FROM servers where server_ip = '$VARserver_ip';"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows; @@ -232,13 +233,14 @@ $sthArows=$sthA->rows; while ($sthArows > $rec_count) { @aryA = $sthA->fetchrow_array; - $DBvoicemail_dump_exten = $aryA[0]; - $DBext_context = $aryA[1]; - $DBanswer_transfer_agent = $aryA[2]; - $DBSERVER_GMT = $aryA[3]; - $asterisk_version = $aryA[4]; - $DBmax_vicidial_trunks = $aryA[5]; - $DBagi_output = $aryA[6]; + $DBvoicemail_dump_exten = $aryA[0]; + $DBext_context = $aryA[1]; + $DBanswer_transfer_agent = $aryA[2]; + $DBSERVER_GMT = $aryA[3]; + $asterisk_version = $aryA[4]; + $DBmax_vicidial_trunks = $aryA[5]; + $DBagi_output = $aryA[6]; + $voicemail_dump_exten_no_inst = $aryA[7]; if ($DBvoicemail_dump_exten) {$voicemail_dump_exten = $DBvoicemail_dump_exten;} if ($DBext_context) {$ext_context = $DBext_context;} if ($DBanswer_transfer_agent) {$answer_transfer_agent = $DBanswer_transfer_agent;} @@ -1603,10 +1605,10 @@ if ($call_handle_method =~ /SURVEY/) {$AGI->stream_file("$survey_opt_in_audio_file");} } - if ($survey_method =~ /VOICEMAIL|EXTENSION|HANGUP|CALLMENU/) + if ($survey_method =~ /VOICEMAIL|EXTENSION|HANGUP|CALLMENU|VMAIL_NO_INST/) { $DROPexten=''; - if ($survey_method =~ /VOICEMAIL/) + if ($survey_method =~ /VOICEMAIL|VMAIL_NO_INST/) { $newcallerid = "\"$callerid <$VDADphone>\""; $AGI->set_callerid($newcallerid); @@ -1614,6 +1616,8 @@ if ($call_handle_method =~ /SURVEY/) checkresult($result); if ($AGILOG) {$agi_string = "callerID changed: $newcallerid"; &agi_output;} $survey_status='SVYVM'; + if ($survey_method =~ /VMAIL_NO_INST/) + {$voicemail_dump_exten = $voicemail_dump_exten_no_inst;} if (length($VDADvoicemail_ext)>0) {$DROPexten = "$voicemail_dump_exten$VDADvoicemail_ext";} } @@ -3186,13 +3190,15 @@ if ($drop_timer > $DROP_TIME) if (length($safe_harbor_exten)>0) {$DROPexten = "$safe_harbor_exten";} } - if ($drop_action =~ /VOICEMAIL/) + if ($drop_action =~ /VOICEMAIL|VMAIL_NO_INST/) { $newcallerid = "\"$callerid <$VDADphone>\""; $AGI->set_callerid($newcallerid); print STDERR "Setting CID \"$newcallerid\"\n"; checkresult($result); if ($AGILOG) {$agi_string = "callerID changed: $newcallerid"; &agi_output;} + if ($drop_action =~ /VMAIL_NO_INST/) + {$voicemail_dump_exten = $voicemail_dump_exten_no_inst;} if (length($VDADvoicemail_ext)>0) {$DROPexten = "$voicemail_dump_exten$VDADvoicemail_ext";} } diff --git a/agc_2-X/trunk/agi/agi-VDAD_inbound_calltime_check.agi b/agc_2-X/trunk/agi/agi-VDAD_inbound_calltime_check.agi index e2ff33b4..9b81a4ce 100644 --- a/agc_2-X/trunk/agi/agi-VDAD_inbound_calltime_check.agi +++ b/agc_2-X/trunk/agi/agi-VDAD_inbound_calltime_check.agi @@ -31,7 +31,7 @@ #exten => 1234,2,AGI(agi-VDAD_inbound_calltime_check.agi,INBOUND-----YES-----START-----24hours-----EXTENSION-----101-----default-----NO) #exten => 1234,3,Hangup # -# Copyright (C) 2013 Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # changes: # 80525-0144 - First Build @@ -51,6 +51,7 @@ # 121124-1414 - Added call times holidays function # 130108-1807 - Changes for Asterisk 1.8 compatibility # 130925-1826 - Added variable filter to prevent DID SQL injection attack +# 140126-1141 - Added VMAIL_NO_INST options # $script = 'agi-VDAD_inbound_calltime_check.agi'; @@ -324,7 +325,7 @@ if ($channel =~ /Local/i) ### Grab Server values from the database $cbc=0; -$stmtA = "SELECT voicemail_dump_exten,ext_context,answer_transfer_agent,local_gmt,asterisk_version,max_vicidial_trunks FROM servers where server_ip = '$VARserver_ip';"; +$stmtA = "SELECT voicemail_dump_exten,ext_context,answer_transfer_agent,local_gmt,asterisk_version,max_vicidial_trunks,voicemail_dump_exten_no_inst FROM servers where server_ip = '$VARserver_ip';"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows; @@ -337,6 +338,7 @@ while ($sthArows > $cbc) $DBSERVER_GMT = $aryA[3]; $DBasterisk_version = $aryA[4]; $DBmax_vicidial_trunks = $aryA[5]; + $voicemail_dump_exten_no_inst = $aryA[6]; if ($DBvoicemail_dump_exten) {$voicemail_dump_exten = $DBvoicemail_dump_exten;} if ($DBext_context) {$ext_context = $DBext_context;} if ($DBanswer_transfer_agent) {$answer_transfer_agent = $DBanswer_transfer_agent;} @@ -573,8 +575,10 @@ if ( ( ($hm < $ct_default_start) || ($hm > $ct_default_stop) ) && ($hm >= $ct_st { $DROPexten = "$after_hours_exten"; } - if ($after_hours_action =~ /VOICEMAIL/) + if ($after_hours_action =~ /VOICEMAIL|VMAIL_NO_INST/) { + if ($drop_action =~ /VMAIL_NO_INST/) + {$voicemail_dump_exten = $voicemail_dump_exten_no_inst;} $DROPexten = "$voicemail_dump_exten$after_hours_voicemail"; } if ($after_hours_action =~ /IN_GROUP/) diff --git a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl index 561cb6bc..f6d3b1b1 100644 --- a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl +++ b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl @@ -90,9 +90,10 @@ # 130921-1044 - Small change to triggers allowing for them to be launched in a screen session if SCREEN is in the name # 131022-1746 - Added uptime gathering and asterisk auto-restart feature # 140112-1910 - Fixed issue with MoH in Astrisk 1.8 +# 140126-1153 - Added VMAIL_NO_INST option dialplan generation # -$build = '140112-1910'; +$build = '140126-1153'; $DB=0; # Debug flag $MT[0]=''; $MT[1]=''; @@ -1721,6 +1722,9 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r $Vext .= "exten => _85026666666666.,1,Wait(1)\n"; $Vext .= "exten => _85026666666666.,n,Voicemail(\${EXTEN:14},u)\n"; $Vext .= "exten => _85026666666666.,n,Hangup()\n"; + $Vext .= "exten => _85026666666667.,1,Wait(1)\n"; + $Vext .= "exten => _85026666666667.,n,Voicemail(\${EXTEN:14},su)\n"; + $Vext .= "exten => _85026666666667.,n,Hangup()\n"; $Vext .= "exten => 8500,1,VoicemailMain\n"; $Vext .= "exten => 8500,2,Goto(s,6)\n"; $Vext .= "exten => 8500,3,Hangup()\n"; @@ -1742,6 +1746,7 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r { $Vext .= "; Voicemail Extensions go to main voicemail server:\n"; $Vext .= "exten => _85026666666666.,1,Dial(\${TRUNK$voicemail_server_id}/\${EXTEN},99,oT)\n"; + $Vext .= "exten => _85026666666667.,1,Dial(\${TRUNK$voicemail_server_id}/\${EXTEN},99,oT)\n"; $Vext .= "exten => 8500,1,Dial(\${TRUNK$voicemail_server_id}/\${EXTEN},99,oT)\n"; $Vext .= "exten => 8500,2,Hangup()\n"; $Vext .= "exten => 8501,1,Dial(\${TRUNK$voicemail_server_id}/\${EXTEN},99,oT)\n"; @@ -2031,6 +2036,7 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r $Pext .= "exten => $dialplan[$i],1,Dial(IAX2/$extension[$i],$phone_ring_timeout[$i],)\n"; } $Pext .= "exten => $dialplan[$i],2,Goto(default,85026666666666$voicemail[$i],1)\n"; + # $Pext .= "exten => $dialplan[$i],2,Goto(default,85026666666667$voicemail[$i],1)\n"; if (!(( $ast_ver_str{major} = 1 ) && ($ast_ver_str{minor} < 6))) { $Pext .= "exten => $dialplan[$i],3,Hangup()\n"; @@ -2162,6 +2168,7 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r $Pext .= "exten => $dialplan[$i],1,Dial(SIP/$extension[$i],$phone_ring_timeout[$i],)\n"; } $Pext .= "exten => $dialplan[$i],2,Goto(default,85026666666666$voicemail[$i],1)\n"; + # $Pext .= "exten => $dialplan[$i],2,Goto(default,85026666666667$voicemail[$i],1)\n"; if (!(( $ast_ver_str{major} = 1 ) && ($ast_ver_str{minor} < 6))) { $Pext .= "exten => $dialplan[$i],3,Hangup()\n"; @@ -2448,11 +2455,18 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r $call_menu_line .= "exten => $option_value[$j],$PRI,Goto($option_route_value_context[$j]$option_route_value[$j],1)\n"; $PRI++; $call_menu_line .= "exten => $option_value[$j],$PRI,Hangup()\n"; } - if ($option_route[$j] =~ /VOICEMAIL/) + if ($option_route[$j] =~ /VOICEMAIL|VMAIL_NO_INST/) { if ($dtmf_log[$i] > 0) {$call_menu_line .= "exten => $option_value[$j],$PRI,AGI(cm.agi,$tracking_group[$i]-----$option_value[$j]-----$dtmf_field[$i])\n"; $PRI++;} - $call_menu_line .= "exten => $option_value[$j],$PRI,Goto(default,85026666666666$option_route_value[$j],1)\n"; $PRI++; + if ($option_route[$j] =~ /VMAIL_NO_INST/) + { + $call_menu_line .= "exten => $option_value[$j],$PRI,Goto(default,85026666666667$option_route_value[$j],1)\n"; $PRI++; + } + else + { + $call_menu_line .= "exten => $option_value[$j],$PRI,Goto(default,85026666666666$option_route_value[$j],1)\n"; $PRI++; + } $call_menu_line .= "exten => $option_value[$j],$PRI,Hangup()\n"; } if ($option_route[$j] =~ /HANGUP/) 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 e35d1f8f..5f1cc6c5 100644 --- a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql +++ b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql @@ -84,6 +84,7 @@ voicemail_timezone VARCHAR(30) default 'eastern', voicemail_options VARCHAR(255) default '', user_group VARCHAR(20) default '---ALL---', voicemail_greeting VARCHAR(100) default '', +voicemail_dump_exten_no_inst VARCHAR(20) default '85026666666667', index (server_ip), index (voicemail_id), index (dialplan_number), @@ -139,7 +140,8 @@ svn_revision INT(9) default '0', svn_info TEXT, system_uptime VARCHAR(255) default '', auto_restart_asterisk ENUM('Y','N') default 'N', -asterisk_temp_no_restart ENUM('Y','N') default 'N' +asterisk_temp_no_restart ENUM('Y','N') default 'N', +voicemail_dump_exten_no_inst VARCHAR(20) default '85026666666667' ) ENGINE=MyISAM; CREATE UNIQUE INDEX server_id on servers (server_id); @@ -708,7 +710,7 @@ alt_number_dialing ENUM('Y','N') default 'N', scheduled_callbacks ENUM('Y','N') default 'N', lead_filter_id VARCHAR(10) default 'NONE', drop_call_seconds TINYINT(3) default '5', -drop_action ENUM('HANGUP','MESSAGE','VOICEMAIL','IN_GROUP','AUDIO','CALLMENU') default 'AUDIO', +drop_action ENUM('HANGUP','MESSAGE','VOICEMAIL','IN_GROUP','AUDIO','CALLMENU','VMAIL_NO_INST') default 'AUDIO', safe_harbor_exten VARCHAR(20) default '8307', display_dialable_count ENUM('Y','N') default 'Y', wrapup_seconds SMALLINT(3) UNSIGNED default '0', @@ -755,7 +757,7 @@ survey_dtmf_digits VARCHAR(16) default '1238', survey_ni_digit VARCHAR(1) default '8', survey_opt_in_audio_file VARCHAR(50) default 'US_pol_survey_transfer', survey_ni_audio_file VARCHAR(50) default 'US_thanks_no_contact', -survey_method ENUM('AGENT_XFER','VOICEMAIL','EXTENSION','HANGUP','CAMPREC_60_WAV','CALLMENU') default 'AGENT_XFER', +survey_method ENUM('AGENT_XFER','VOICEMAIL','EXTENSION','HANGUP','CAMPREC_60_WAV','CALLMENU','VMAIL_NO_INST') default 'AGENT_XFER', survey_no_response_action ENUM('OPTIN','OPTOUT','DROP') default 'OPTIN', survey_ni_status VARCHAR(6) default 'NI', survey_response_digit_map VARCHAR(255) default '1-DEMOCRAT|2-REPUBLICAN|3-INDEPENDANT|8-OPTOUT|X-NO RESPONSE|', @@ -999,10 +1001,10 @@ xferconf_a_number VARCHAR(50), xferconf_b_dtmf VARCHAR(50), xferconf_b_number VARCHAR(50), drop_call_seconds SMALLINT(4) unsigned default '360', -drop_action ENUM('HANGUP','MESSAGE','VOICEMAIL','IN_GROUP','CALLMENU') default 'MESSAGE', +drop_action ENUM('HANGUP','MESSAGE','VOICEMAIL','IN_GROUP','CALLMENU','VMAIL_NO_INST') default 'MESSAGE', drop_exten VARCHAR(20) default '8307', call_time_id VARCHAR(20) default '24hours', -after_hours_action ENUM('HANGUP','MESSAGE','EXTENSION','VOICEMAIL','IN_GROUP','CALLMENU') default 'MESSAGE', +after_hours_action ENUM('HANGUP','MESSAGE','EXTENSION','VOICEMAIL','IN_GROUP','CALLMENU','VMAIL_NO_INST') default 'MESSAGE', after_hours_message_filename VARCHAR(255) default 'vm-goodbye', after_hours_exten VARCHAR(20) default '8300', after_hours_voicemail VARCHAR(20), @@ -1041,7 +1043,7 @@ answer_sec_pct_rt_stat_one SMALLINT(5) UNSIGNED default '20', answer_sec_pct_rt_stat_two SMALLINT(5) UNSIGNED default '30', default_group_alias VARCHAR(30) default '', no_agent_no_queue ENUM('N','Y','NO_PAUSED') default 'N', -no_agent_action ENUM('CALLMENU','INGROUP','DID','MESSAGE','EXTENSION','VOICEMAIL') default 'MESSAGE', +no_agent_action ENUM('CALLMENU','INGROUP','DID','MESSAGE','EXTENSION','VOICEMAIL','VMAIL_NO_INST') default 'MESSAGE', no_agent_action_value VARCHAR(255) default 'nbdy-avail-to-take-call|vm-goodbye', web_form_address_two TEXT, timer_action VARCHAR(20) default 'NONE', @@ -1796,14 +1798,14 @@ did_id INT(9) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL, did_pattern VARCHAR(50) NOT NULL, did_description VARCHAR(50), did_active ENUM('Y','N') default 'Y', -did_route ENUM('EXTEN','VOICEMAIL','AGENT','PHONE','IN_GROUP','CALLMENU') default 'EXTEN', +did_route ENUM('EXTEN','VOICEMAIL','AGENT','PHONE','IN_GROUP','CALLMENU','VMAIL_NO_INST') default 'EXTEN', extension VARCHAR(50) default '9998811112', exten_context VARCHAR(50) default 'default', voicemail_ext VARCHAR(10), phone VARCHAR(100), server_ip VARCHAR(15), user VARCHAR(20), -user_unavailable_action ENUM('IN_GROUP','EXTEN','VOICEMAIL','PHONE') default 'VOICEMAIL', +user_unavailable_action ENUM('IN_GROUP','EXTEN','VOICEMAIL','PHONE','VMAIL_NO_INST') default 'VOICEMAIL', user_route_settings_ingroup VARCHAR(20) default 'AGENTDIRECT', group_id VARCHAR(20), call_handle_method VARCHAR(20) default 'CID', @@ -1816,14 +1818,14 @@ record_call ENUM('Y','N','Y_QUEUESTOP') default 'N', filter_inbound_number ENUM('DISABLED','GROUP','URL') default 'DISABLED', filter_phone_group_id VARCHAR(20) default '', filter_url VARCHAR(1000) default '', -filter_action ENUM('EXTEN','VOICEMAIL','AGENT','PHONE','IN_GROUP','CALLMENU') default 'EXTEN', +filter_action ENUM('EXTEN','VOICEMAIL','AGENT','PHONE','IN_GROUP','CALLMENU','VMAIL_NO_INST') default 'EXTEN', filter_extension VARCHAR(50) default '9998811112', filter_exten_context VARCHAR(50) default 'default', filter_voicemail_ext VARCHAR(10), filter_phone VARCHAR(100), filter_server_ip VARCHAR(15), filter_user VARCHAR(20), -filter_user_unavailable_action ENUM('IN_GROUP','EXTEN','VOICEMAIL','PHONE') default 'VOICEMAIL', +filter_user_unavailable_action ENUM('IN_GROUP','EXTEN','VOICEMAIL','PHONE','VMAIL_NO_INST') default 'VOICEMAIL', filter_user_route_settings_ingroup VARCHAR(20) default 'AGENTDIRECT', filter_group_id VARCHAR(20), filter_call_handle_method VARCHAR(20) default 'CID', @@ -3249,4 +3251,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='1365',db_schema_update_date=NOW(); +UPDATE system_settings SET db_schema_version='1366',db_schema_update_date=NOW(); diff --git a/agc_2-X/trunk/extras/upgrade_2.8.sql b/agc_2-X/trunk/extras/upgrade_2.8.sql index ff31c194..e4652249 100644 --- a/agc_2-X/trunk/extras/upgrade_2.8.sql +++ b/agc_2-X/trunk/extras/upgrade_2.8.sql @@ -178,3 +178,21 @@ ALTER TABLE vicidial_live_agents ADD external_pause_code VARCHAR(6) default ''; ALTER TABLE vicidial_live_agents ADD pause_code VARCHAR(6) default ''; UPDATE system_settings SET db_schema_version='1365',db_schema_update_date=NOW() where db_schema_version < 1365; + +ALTER TABLE vicidial_campaigns MODIFY drop_action ENUM('HANGUP','MESSAGE','VOICEMAIL','IN_GROUP','AUDIO','CALLMENU','VMAIL_NO_INST') default 'AUDIO'; +ALTER TABLE vicidial_campaigns MODIFY survey_method ENUM('AGENT_XFER','VOICEMAIL','EXTENSION','HANGUP','CAMPREC_60_WAV','CALLMENU','VMAIL_NO_INST') default 'AGENT_XFER'; + +ALTER TABLE vicidial_inbound_groups MODIFY drop_action ENUM('HANGUP','MESSAGE','VOICEMAIL','IN_GROUP','CALLMENU','VMAIL_NO_INST') default 'MESSAGE'; +ALTER TABLE vicidial_inbound_groups MODIFY after_hours_action ENUM('HANGUP','MESSAGE','EXTENSION','VOICEMAIL','IN_GROUP','CALLMENU','VMAIL_NO_INST') default 'MESSAGE'; +ALTER TABLE vicidial_inbound_groups MODIFY no_agent_action ENUM('CALLMENU','INGROUP','DID','MESSAGE','EXTENSION','VOICEMAIL','VMAIL_NO_INST') default 'MESSAGE'; + +ALTER TABLE vicidial_inbound_dids MODIFY did_route ENUM('EXTEN','VOICEMAIL','AGENT','PHONE','IN_GROUP','CALLMENU','VMAIL_NO_INST') default 'EXTEN'; +ALTER TABLE vicidial_inbound_dids MODIFY user_unavailable_action ENUM('IN_GROUP','EXTEN','VOICEMAIL','PHONE','VMAIL_NO_INST') default 'VOICEMAIL'; +ALTER TABLE vicidial_inbound_dids MODIFY filter_action ENUM('EXTEN','VOICEMAIL','AGENT','PHONE','IN_GROUP','CALLMENU','VMAIL_NO_INST') default 'EXTEN'; +ALTER TABLE vicidial_inbound_dids MODIFY filter_user_unavailable_action ENUM('IN_GROUP','EXTEN','VOICEMAIL','PHONE','VMAIL_NO_INST') default 'VOICEMAIL'; + +ALTER TABLE phones ADD voicemail_dump_exten_no_inst VARCHAR(20) default '85026666666667'; + +ALTER TABLE servers ADD voicemail_dump_exten_no_inst VARCHAR(20) default '85026666666667'; + +UPDATE system_settings SET db_schema_version='1366',db_schema_update_date=NOW() where db_schema_version < 1366; diff --git a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.8.txt b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.8.txt index 60f9b919..165b61c9 100644 --- a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.8.txt +++ b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.8.txt @@ -261,6 +261,9 @@ Agent Pause Max Seconds|| If this is set to greater than 0, and the agent has not gone out of PAUSED status in this number of seconds, the agent will automatically be logged out of the agent screen. Default is 0 for disabled|| If enabled, when an agent receives a call through this in-group they will see the uniqueid of the call added to the status line in their agent interface. The PREFIX option will add the prefix, defined below, to the beginning of the uniqueid in the display. Default is DISABLED. If there was already a Uniqueid defined on a call entering this in-group, then the original uniqueid will be displayed. If the PRESERVE option is used and the call is sent to a second agent, the uniqueid and prefix displayed to the first agent will also be displayed to the second agent|| Used for Drop, After-hours and No-agent-no-queue actions. This is the caller ID number that the call uses before it is transferred to extensions, messages, voicemail or call menus. You can use CUSTOMER in this field to use the customer phone number, or CAMPAIGN to use the first allowed campaign caller id number. Default is CUSTOMER. If this is a call that will go to a Call Menu and then back to an in-group, we suggest you use CUSTOMERCLOSER in this field, and also you need to set the In-Group Handle Method in the Call Menu to CLOSER|| +VMAIL_NO_INST will send the call to the voicemail box that you have defined below and will not play instructions after the voicemail message|| +VMAIL Dump Exten NI|| +This is the dial plan prefix used to send calls directly to a user's voicemail from a live call in the astGUIclient app. This is the No Instructions setting|| ########################## CHANGES TO EXISTING PHRASES IN ADMIN TRANSLATION diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index 06c3f444..4912584d 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -474,8 +474,6 @@ if (isset($_GET["reset_list"])) {$reset_list=$_GET["reset_list"];} elseif (isset($_POST["reset_list"])) {$reset_list=$_POST["reset_list"];} if (isset($_GET["safe_harbor_exten"])) {$safe_harbor_exten=$_GET["safe_harbor_exten"];} elseif (isset($_POST["safe_harbor_exten"])) {$safe_harbor_exten=$_POST["safe_harbor_exten"];} -if (isset($_GET["drop_action"])) {$drop_action=$_GET["drop_action"];} - elseif (isset($_POST["drop_action"])) {$drop_action=$_POST["drop_action"];} if (isset($_GET["scheduled_callbacks"])) {$scheduled_callbacks=$_GET["scheduled_callbacks"];} elseif (isset($_POST["scheduled_callbacks"])) {$scheduled_callbacks=$_POST["scheduled_callbacks"];} if (isset($_GET["script_comments"])) {$script_comments=$_GET["script_comments"];} @@ -1822,6 +1820,8 @@ if (isset($_GET["dead_max_dispo"])) {$dead_max_dispo=$_GET["dead_max_dispo"]; elseif (isset($_POST["dead_max_dispo"])) {$dead_max_dispo=$_POST["dead_max_dispo"];} if (isset($_GET["dispo_max_dispo"])) {$dispo_max_dispo=$_GET["dispo_max_dispo"];} elseif (isset($_POST["dispo_max_dispo"])) {$dispo_max_dispo=$_POST["dispo_max_dispo"];} +if (isset($_GET["voicemail_dump_exten_no_inst"])) {$voicemail_dump_exten_no_inst=$_GET["voicemail_dump_exten_no_inst"];} + elseif (isset($_POST["voicemail_dump_exten_no_inst"])) {$voicemail_dump_exten_no_inst=$_POST["voicemail_dump_exten_no_inst"];} if (isset($script_id)) {$script_id= strtoupper($script_id);} @@ -2014,6 +2014,7 @@ if ($non_latin < 1) $vicidial_transfers = preg_replace('/[^0-9]/','',$vicidial_transfers); $voicemail_button_enabled = preg_replace('/[^0-9]/','',$voicemail_button_enabled); $voicemail_dump_exten = preg_replace('/[^0-9]/','',$voicemail_dump_exten); + $voicemail_dump_exten_no_inst = preg_replace('/[^0-9]/','',$voicemail_dump_exten_no_inst); $voicemail_exten = preg_replace('/[^0-9]/','',$voicemail_exten); $wrapup_seconds = preg_replace('/[^0-9]/','',$wrapup_seconds); $use_non_latin = preg_replace('/[^0-9]/','',$use_non_latin); @@ -3266,12 +3267,13 @@ else # 131210-1741 - Added ability to define slave server with port number, issue #687 # 140108-0752 - Added webserver and hostname to report logging # 140117-0840 - Added option for Lists Pass Report +# 140126-0939 - Added VMAIL_NO_INST options # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time -$admin_version = '2.8-422a'; -$build = '140117-0840'; +$admin_version = '2.8-423a'; +$build = '140126-0939'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -13639,7 +13641,7 @@ if ($ADD==41111111111) { echo "
PHONE MODIFIED: $extension\n"; - $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' 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' 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';"; @@ -13776,7 +13778,7 @@ if ($ADD==411111111111) {echo "
SERVER NOT MODIFIED - Please go back and look at the data you entered\n";} else { - $stmt="UPDATE servers set server_id='$server_id',server_description='$server_description',server_ip='$server_ip',active='$active',asterisk_version='$asterisk_version', max_vicidial_trunks='$max_vicidial_trunks', telnet_host='$telnet_host', telnet_port='$telnet_port', ASTmgrUSERNAME='$ASTmgrUSERNAME', ASTmgrSECRET='$ASTmgrSECRET', ASTmgrUSERNAMEupdate='$ASTmgrUSERNAMEupdate', ASTmgrUSERNAMElisten='$ASTmgrUSERNAMElisten', ASTmgrUSERNAMEsend='$ASTmgrUSERNAMEsend', local_gmt='$local_gmt', voicemail_dump_exten='$voicemail_dump_exten', answer_transfer_agent='$answer_transfer_agent', ext_context='$ext_context', sys_perf_log='$sys_perf_log', vd_server_logs='$vd_server_logs', agi_output='$agi_output', vicidial_balance_active='$vicidial_balance_active',balance_trunks_offlimits='$balance_trunks_offlimits',recording_web_link='$recording_web_link',alt_server_ip='$alt_server_ip',active_asterisk_server='$active_asterisk_server',generate_vicidial_conf='$generate_vicidial_conf',rebuild_conf_files='$rebuild_conf_files',outbound_calls_per_second='$outbound_calls_per_second',sounds_update='$sounds_update',vicidial_recording_limit='$vicidial_recording_limit',carrier_logging_active='$carrier_logging_active',vicidial_balance_rank='$vicidial_balance_rank',rebuild_music_on_hold='$rebuild_music_on_hold',active_agent_login_server='$active_agent_login_server',conf_secret='$conf_secret',external_server_ip='$external_server_ip',custom_dialplan_entry='$custom_dialplan_entry',active_twin_server_ip='$active_twin_server_ip',user_group='$user_group',auto_restart_asterisk='$auto_restart_asterisk',asterisk_temp_no_restart='$asterisk_temp_no_restart' where server_id='$old_server_id';"; + $stmt="UPDATE servers set server_id='$server_id',server_description='$server_description',server_ip='$server_ip',active='$active',asterisk_version='$asterisk_version', max_vicidial_trunks='$max_vicidial_trunks', telnet_host='$telnet_host', telnet_port='$telnet_port', ASTmgrUSERNAME='$ASTmgrUSERNAME', ASTmgrSECRET='$ASTmgrSECRET', ASTmgrUSERNAMEupdate='$ASTmgrUSERNAMEupdate', ASTmgrUSERNAMElisten='$ASTmgrUSERNAMElisten', ASTmgrUSERNAMEsend='$ASTmgrUSERNAMEsend', local_gmt='$local_gmt', voicemail_dump_exten='$voicemail_dump_exten', answer_transfer_agent='$answer_transfer_agent', ext_context='$ext_context', sys_perf_log='$sys_perf_log', vd_server_logs='$vd_server_logs', agi_output='$agi_output', vicidial_balance_active='$vicidial_balance_active',balance_trunks_offlimits='$balance_trunks_offlimits',recording_web_link='$recording_web_link',alt_server_ip='$alt_server_ip',active_asterisk_server='$active_asterisk_server',generate_vicidial_conf='$generate_vicidial_conf',rebuild_conf_files='$rebuild_conf_files',outbound_calls_per_second='$outbound_calls_per_second',sounds_update='$sounds_update',vicidial_recording_limit='$vicidial_recording_limit',carrier_logging_active='$carrier_logging_active',vicidial_balance_rank='$vicidial_balance_rank',rebuild_music_on_hold='$rebuild_music_on_hold',active_agent_login_server='$active_agent_login_server',conf_secret='$conf_secret',external_server_ip='$external_server_ip',custom_dialplan_entry='$custom_dialplan_entry',active_twin_server_ip='$active_twin_server_ip',user_group='$user_group',auto_restart_asterisk='$auto_restart_asterisk',asterisk_temp_no_restart='$asterisk_temp_no_restart',voicemail_dump_exten_no_inst='$voicemail_dump_exten_no_inst' where server_id='$old_server_id';"; $rslt=mysql_to_mysqli($stmt, $link); $stmtA="UPDATE servers SET rebuild_conf_files='Y',rebuild_music_on_hold='Y' where generate_vicidial_conf='Y' and active_asterisk_server='Y';"; @@ -18625,7 +18627,7 @@ if ($ADD==31) { echo "Drop Call Seconds: $NWB#campaigns-drop_call_seconds$NWE\n"; - echo "Drop Action: $NWB#campaigns-drop_action$NWE\n"; + echo "Drop Action: $NWB#campaigns-drop_action$NWE\n"; echo "Safe Harbor Exten: $NWB#campaigns-safe_harbor_exten$NWE\n"; @@ -19698,7 +19700,7 @@ if ($ADD==31) echo "Survey Wait Seconds: $NWB#campaigns-survey_wait_sec$NWE\n"; echo "Survey Opt-in Audio File: audio chooser $NWB#campaigns-survey_opt_in_audio_file$NWE\n"; echo "Survey Not Interested Audio File: audio chooser $NWB#campaigns-survey_ni_audio_file$NWE\n"; - echo "Survey Method: $NWB#campaigns-survey_method$NWE\n"; + echo "Survey Method: $NWB#campaigns-survey_method$NWE\n"; echo "Survey No-Response Action: $NWB#campaigns-survey_no_response_action$NWE\n"; echo "Survey Not Interested Status: $NWB#campaigns-survey_ni_status$NWE\n"; @@ -22596,7 +22598,7 @@ if ($ADD==3111) echo "Drop Call Seconds: $NWB#inbound_groups-drop_call_seconds$NWE\n"; - echo "Drop Action: $NWB#inbound_groups-drop_action$NWE\n"; + echo "Drop Action: $NWB#inbound_groups-drop_action$NWE\n"; echo "Drop Exten: $NWB#inbound_groups-drop_exten$NWE\n"; @@ -22632,7 +22634,7 @@ if ($ADD==3111) echo "Action Transfer CID: $NWB#inbound_groups-action_xfer_cid$NWE\n"; - echo "After Hours Action: $NWB#inbound_groups-after_hours_action$NWE\n"; + echo "After Hours Action: $NWB#inbound_groups-after_hours_action$NWE\n"; echo "After Hours Message Filename: audio chooser $NWB#inbound_groups-after_hours_message_filename$NWE\n"; @@ -22648,7 +22650,7 @@ if ($ADD==3111) echo "No Agents No Queueing: $NWB#inbound_groups-no_agent_no_queue$NWE\n"; - echo "No Agent No Queue Action: $NWB#inbound_groups-no_agent_no_queue$NWE\n"; + echo "No Agent No Queue Action: $NWB#inbound_groups-no_agent_no_queue$NWE\n"; echo ""; echo "\n"; @@ -22712,7 +22714,7 @@ if ($ADD==3111) $EXcontext = $EXno_agent_action_value[1]; echo "Extension:   Context: \n"; } - if ($no_agent_action=='VOICEMAIL') + if ( ($no_agent_action=='VOICEMAIL') or ($no_agent_action=='VMAIL_NO_INST') ) { echo "Voicemail Box: voicemail chooser\n"; } @@ -22752,11 +22754,11 @@ if ($ADD==3111) echo "Estimated Hold Time Minimum Prompt Seconds: $NWB#inbound_groups-eht_minimum_prompt_seconds$NWE\n"; - echo "Wait Time Option: $NWB#inbound_groups-wait_time_option$NWE\n"; + echo "Wait Time Option: $NWB#inbound_groups-wait_time_option$NWE\n"; - echo "Wait Time Second Option: $NWB#inbound_groups-wait_time_second_option$NWE\n"; + echo "Wait Time Second Option: $NWB#inbound_groups-wait_time_second_option$NWE\n"; - echo "Wait Time Third Option: $NWB#inbound_groups-wait_time_third_option$NWE\n"; + echo "Wait Time Third Option: $NWB#inbound_groups-wait_time_third_option$NWE\n"; echo "Wait Time Option Seconds: $NWB#inbound_groups-wait_time_option_seconds$NWE\n"; @@ -22784,11 +22786,11 @@ if ($ADD==3111) echo "Wait Hold Option Priority: $NWB#inbound_groups-wait_hold_option_priority$NWE\n"; - echo "Estimated Hold Time Option: $NWB#inbound_groups-hold_time_option$NWE\n"; + echo "Estimated Hold Time Option: $NWB#inbound_groups-hold_time_option$NWE\n"; - echo "Hold Time Second Option: $NWB#inbound_groups-hold_time_second_option$NWE\n"; + echo "Hold Time Second Option: $NWB#inbound_groups-hold_time_second_option$NWE\n"; - echo "Hold Time Third Option: $NWB#inbound_groups-hold_time_third_option$NWE\n"; + echo "Hold Time Third Option: $NWB#inbound_groups-hold_time_third_option$NWE\n"; echo "Hold Time Option Seconds: $NWB#inbound_groups-hold_time_option_seconds$NWE\n"; @@ -24152,7 +24154,7 @@ if ($ADD==3311) echo "$UUgroups_list"; echo "\n"; echo "$NWB#inbound_dids-user_group$NWE\n"; - echo "DID Route: $NWB#inbound_dids-did_route$NWE\n"; + echo "DID Route: $NWB#inbound_dids-did_route$NWE\n"; echo "Record Call: $NWB#inbound_dids-record_call$NWE\n"; echo "Extension: $NWB#inbound_dids-extension$NWE\n"; echo "Extension Context: $NWB#inbound_dids-exten_context$NWE\n"; @@ -24178,7 +24180,7 @@ if ($ADD==3311) echo "Call Menu: $NWB#inbound_dids-menu_id$NWE\n"; echo "User Agent: $NWB#inbound_dids-user$NWE\n"; - echo "User Unavailable Action: $NWB#inbound_dids-user_unavailable_action$NWE\n"; + echo "User Unavailable Action: $NWB#inbound_dids-user_unavailable_action$NWE\n"; echo "User Route Settings In-Group: $NWB#inbound_dids-user_route_settings_ingroup$NWE\n"; @@ -24214,7 +24216,7 @@ if ($ADD==3311) echo "Filter Phone Group ID: $NWB#inbound_dids-filter_phone_group_id$NWE\n"; echo "Filter URL: $NWB#inbound_dids-filter_url$NWE\n"; - echo "Filter Action: $NWB#inbound_dids-filter_action$NWE\n"; + echo "Filter Action: $NWB#inbound_dids-filter_action$NWE\n"; echo "Filter Extension: $NWB#inbound_dids-extension$NWE\n"; echo "Filter Extension Context: $NWB#inbound_dids-exten_context$NWE\n"; @@ -24228,7 +24230,7 @@ if ($ADD==3311) echo "Filter Call Menu: $NWB#inbound_dids-menu_id$NWE\n"; echo "Filter User Agent: $NWB#inbound_dids-user$NWE\n"; - echo "Filter User Unavailable Action: $NWB#inbound_dids-user_unavailable_action$NWE\n"; + echo "Filter User Unavailable Action: $NWB#inbound_dids-user_unavailable_action$NWE\n"; echo "Filter User Route Settings In-Group: $NWB#inbound_dids-user_route_settings_ingroup$NWE\n"; @@ -24761,6 +24763,7 @@ if ($ADD==3511) + @@ -24833,7 +24836,7 @@ if ($ADD==3511) { echo "Phone: \n"; } - if ($option_route=='VOICEMAIL') + if ( ($option_route=='VOICEMAIL') or ($option_route=='VMAIL_NO_INST') ) { echo "Voicemail Box: voicemail chooser\n"; } @@ -24875,6 +24878,7 @@ if ($ADD==3511) + @@ -26664,7 +26668,7 @@ if ($ADD==31111111111) echo "\n"; echo "\n"; echo "\n"; + echo "\n"; echo "\n"; echo "\n"; @@ -26981,7 +26986,7 @@ if ($ADD==311111111111) 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 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 from phones where extension='$extension' and server_ip='$server_ip' $LOGadmin_viewable_groupsSQL;"; $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); @@ -26749,6 +26753,7 @@ if ($ADD==31111111111) echo "
Recording Exten: $NWB#phones-recording_exten$NWE
VMailMain Exten: $NWB#phones-voicemail_exten$NWE
VMailDump Exten: $NWB#phones-voicemail_dump_exten$NWE
VMailDump Exten NI: $NWB#phones-voicemail_dump_exten_no_inst$NWE
Exten Context: $NWB#phones-ext_context$NWE
Phone Context: $NWB#phones-phone_context$NWE
\n"; echo "\n"; echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; diff --git a/agc_2-X/trunk/www/vicidial/admin_header.php b/agc_2-X/trunk/www/vicidial/admin_header.php index 1c2b89f5..0049b910 100644 --- a/agc_2-X/trunk/www/vicidial/admin_header.php +++ b/agc_2-X/trunk/www/vicidial/admin_header.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # CHANGES @@ -44,6 +44,7 @@ # 130610-1040 - Finalized changing of all ereg instances to preg # 130615-2314 - Changed Reports only and QC only headers # 130824-2324 - Changed to mysqli PHP functions +# 140126-1022 - Added VMAIL_NO_INST option # @@ -833,7 +834,7 @@ if ( ($ADD==3511) or ($ADD==2511) or ($ADD==2611) or ($ADD==4511) or ($ADD==5511 {value='';} new_content = 'Phone: '; } - if (selected_route=='VOICEMAIL') + if ( (selected_route=='VOICEMAIL') || (selected_route=='VMAIL_NO_INST') ) { if (route == selected_route) { @@ -990,7 +991,7 @@ if ( ($ADD==2811) or ($ADD==3811) or ($ADD==3111) or ($ADD==2111) or ($ADD==2011 new_content = "Extension:   Context: "; } - if (selected_route=='VOICEMAIL') + if ( (selected_route=='VOICEMAIL') || (selected_route=='VMAIL_NO_INST') ) { if (route == selected_route) { diff --git a/agc_2-X/trunk/www/vicidial/help.php b/agc_2-X/trunk/www/vicidial/help.php index e84caa3a..a44361ca 100644 --- a/agc_2-X/trunk/www/vicidial/help.php +++ b/agc_2-X/trunk/www/vicidial/help.php @@ -1,13 +1,14 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # CHANGELOG: # 131019-0848 - Moved help from admin.php # 131029-2058 - Added auto-restart asterisk help # 131208-1635 - Added help for max dead, dispo and pause time campaign options +# 140126-1023 - Added VMAIL_NO_INST options # @@ -914,7 +915,7 @@ if ($SSoutbound_autodial_active > 0)

- Drop Action - This menu allows you to choose what happens to a call when it has been waiting for longer than what is set in the Drop Call Seconds field. HANGUP will simply hang up the call, MESSAGE will send the call the Drop Exten that you have defined below, VOICEMAIL will send the call to the voicemail box that you have defined below and IN_GROUP will send the call to the Inbound Group that is defined below + Drop Action - This menu allows you to choose what happens to a call when it has been waiting for longer than what is set in the Drop Call Seconds field. HANGUP will simply hang up the call, MESSAGE will send the call the Drop Exten that you have defined below, VOICEMAIL will send the call to the voicemail box that you have defined below and IN_GROUP will send the call to the Inbound Group that is defined below. VMAIL_NO_INST will send the call to the voicemail box that you have defined below and will not play instructions after the voicemail message.
@@ -1046,7 +1047,7 @@ if ($SSoutbound_autodial_active > 0)

- Survey Method - This option defines what happens to a call after the customer has opted-in. AGENT_XFER will send the call to the next available agent. VOICEMAIL will send the call to the voicemail box that is specified in the Voicemail field. EXTENSION will send the customer to the extension defined in the Survey Xfer Extension field. HANGUP will hang up the customer. CAMPREC_60_WAV will send the customer to have a recording made with their response, this recording will be placed in a folder named as the campaign inside of the Survey Campaign Recording Directory. CALLMENU will send the customer to the Call Menu defined in the select list below. + Survey Method - This option defines what happens to a call after the customer has opted-in. AGENT_XFER will send the call to the next available agent. VOICEMAIL will send the call to the voicemail box that is specified in the Voicemail field. EXTENSION will send the customer to the extension defined in the Survey Xfer Extension field. HANGUP will hang up the customer. CAMPREC_60_WAV will send the customer to have a recording made with their response, this recording will be placed in a folder named as the campaign inside of the Survey Campaign Recording Directory. CALLMENU will send the customer to the Call Menu defined in the select list below. VMAIL_NO_INST will send the call to the voicemail box that you have defined below and will not play instructions after the voicemail message.
@@ -1905,7 +1906,7 @@ if ($SSqc_features_active > 0)

-Drop Action - This menu allows you to choose what happens to a call when it has been waiting for longer than what is set in the Drop Call Seconds field. HANGUP will simply hang up the call, MESSAGE will send the call the Drop Exten that you have defined below, VOICEMAIL will send the call to the voicemail box that you have defined below and IN_GROUP will send the call to the Inbound Group that is defined below. +Drop Action - This menu allows you to choose what happens to a call when it has been waiting for longer than what is set in the Drop Call Seconds field. HANGUP will simply hang up the call, MESSAGE will send the call the Drop Exten that you have defined below, VOICEMAIL will send the call to the voicemail box that you have defined below and IN_GROUP will send the call to the Inbound Group that is defined below. VMAIL_NO_INST will send the call to the voicemail box that you have defined below and will not play instructions after the voicemail message.
@@ -1940,7 +1941,7 @@ if ($SSqc_features_active > 0)

-After Hours Action - The action to perform if it is after hours as defined in the call time for this inbound group. HANGUP will immediately hangup the call, MESSASGE will play the file in the After Hours Message Filenam field, EXTENSION will send the call to the After Hours Extension in the dialplan and VOICEMAIL will send the call to the voicemail box listed in the After Hours Voicemail field, IN_GROUP will send the call to the inbound group selected in the After Hours Transfer Group select list. Default is MESSAGE. +After Hours Action - The action to perform if it is after hours as defined in the call time for this inbound group. HANGUP will immediately hangup the call, MESSASGE will play the file in the After Hours Message Filenam field, EXTENSION will send the call to the After Hours Extension in the dialplan and VOICEMAIL will send the call to the voicemail box listed in the After Hours Voicemail field, IN_GROUP will send the call to the inbound group selected in the After Hours Transfer Group select list. Default is MESSAGE. VMAIL_NO_INST will send the call to the voicemail box that you have defined below and will not play instructions after the voicemail message.
@@ -2358,7 +2359,7 @@ if ($SSqc_features_active > 0)

-DID Route - This the type of route that you set the DID to use. EXTEN will send calls to the extension entered below, VOICEMAIL will send calls directly to the voicemail box entered below, AGENT will send calls to an agent if they are logged in, PHONE will send the call to a phones entry selected below, IN_GROUP will send calls directly to the specified inbound group. Default is EXTEN. CALLMENU will send the call to the defined Call Menu. +DID Route - This the type of route that you set the DID to use. EXTEN will send calls to the extension entered below, VOICEMAIL will send calls directly to the voicemail box entered below, AGENT will send calls to an agent if they are logged in, PHONE will send the call to a phones entry selected below, IN_GROUP will send calls directly to the specified inbound group. Default is EXTEN. CALLMENU will send the call to the defined Call Menu. VMAIL_NO_INST will send the call to the voicemail box that you have defined below and will not play instructions after the voicemail message.
@@ -2566,7 +2567,7 @@ if ($SSqc_features_active > 0)

-Option Route - This menu contains the options for where to send the call if this option is selected: CALLMENU,INGROUP,DID,HANGUP,EXTENSION,PHONE. For CALLMENU, the Route Value should be the Menu ID of the Call Menu that you want the call sent to. For INGROUP, the In-Group that you want the call to be sent to needs to be selected as well as the other 5 options that need to be set to properly route a call to an Inbound Group. For DID, the Route Value needs to be the DID pattern that you want to send the call to. For HANGUP, the Route Value can be the name of an audio file to play before hanging up the call. For EXTENSION, the Route Value needs to be the dialplan extension you want to send the call to, and the Route Value Context is the context that extension is located in, if left blank the context will default to default. For PHONE, the Route Value needs to be the phone login value for the phones entry that you want to send the call to. For VOICEMAIL, the Route Value needs to be the voicemail box number, the unavailable mesage will be played. For AGI, the Route Value needs to be the agi script and any values taht need to be passed to it. +Option Route - This menu contains the options for where to send the call if this option is selected: CALLMENU,INGROUP,DID,HANGUP,EXTENSION,PHONE. For CALLMENU, the Route Value should be the Menu ID of the Call Menu that you want the call sent to. For INGROUP, the In-Group that you want the call to be sent to needs to be selected as well as the other 5 options that need to be set to properly route a call to an Inbound Group. For DID, the Route Value needs to be the DID pattern that you want to send the call to. For HANGUP, the Route Value can be the name of an audio file to play before hanging up the call. For EXTENSION, the Route Value needs to be the dialplan extension you want to send the call to, and the Route Value Context is the context that extension is located in, if left blank the context will default to default. For PHONE, the Route Value needs to be the phone login value for the phones entry that you want to send the call to. For VOICEMAIL, the Route Value needs to be the voicemail box number, the unavailable mesage will be played. For AGI, the Route Value needs to be the agi script and any values taht need to be passed to it. VMAIL_NO_INST will send the call to the voicemail box that you have defined below and will not play instructions after the voicemail message.
@@ -3478,6 +3479,11 @@ if ($SSoutbound_autodial_active > 0)
VMAIL Dump Exten - This is the dial plan prefix used to send calls directly to a user's voicemail from a live call in the astGUIclient app. verify with extensions.conf file before changing. +
+
+
+VMAIL Dump Exten NI - This is the dial plan prefix used to send calls directly to a user's voicemail from a live call in the astGUIclient app. This is the No Instructions setting. +

@@ -3828,6 +3834,11 @@ if ($SSoutbound_autodial_active > 0)
VMail Dump Exten - The extension prefix used on this server to send calls directly through agc to a specific voicemail box. Default is '85026666666666' +
+
+
+VMAIL Dump Exten NI - This is the dial plan prefix used to send calls directly to a user's voicemail from a live call in the astGUIclient app. This is the No Instructions setting. +

\n"; echo ""; - $stmt="SELECT server_id,server_description,server_ip,active,asterisk_version,max_vicidial_trunks,telnet_host,telnet_port,ASTmgrUSERNAME,ASTmgrSECRET,ASTmgrUSERNAMEupdate,ASTmgrUSERNAMElisten,ASTmgrUSERNAMEsend,local_gmt,voicemail_dump_exten,answer_transfer_agent,ext_context,sys_perf_log,vd_server_logs,agi_output,vicidial_balance_active,balance_trunks_offlimits,recording_web_link,alt_server_ip,active_asterisk_server,generate_vicidial_conf,rebuild_conf_files,outbound_calls_per_second,sysload,channels_total,cpu_idle_percent,disk_usage,sounds_update,vicidial_recording_limit,carrier_logging_active,vicidial_balance_rank,rebuild_music_on_hold,active_agent_login_server,conf_secret,external_server_ip,custom_dialplan_entry,active_twin_server_ip,user_group,system_uptime,auto_restart_asterisk,asterisk_temp_no_restart from servers where ( (server_id='$server_id') or (server_ip='$server_ip') ) $LOGadmin_viewable_groupsSQL;"; + $stmt="SELECT server_id,server_description,server_ip,active,asterisk_version,max_vicidial_trunks,telnet_host,telnet_port,ASTmgrUSERNAME,ASTmgrSECRET,ASTmgrUSERNAMEupdate,ASTmgrUSERNAMElisten,ASTmgrUSERNAMEsend,local_gmt,voicemail_dump_exten,answer_transfer_agent,ext_context,sys_perf_log,vd_server_logs,agi_output,vicidial_balance_active,balance_trunks_offlimits,recording_web_link,alt_server_ip,active_asterisk_server,generate_vicidial_conf,rebuild_conf_files,outbound_calls_per_second,sysload,channels_total,cpu_idle_percent,disk_usage,sounds_update,vicidial_recording_limit,carrier_logging_active,vicidial_balance_rank,rebuild_music_on_hold,active_agent_login_server,conf_secret,external_server_ip,custom_dialplan_entry,active_twin_server_ip,user_group,system_uptime,auto_restart_asterisk,asterisk_temp_no_restart,voicemail_dump_exten_no_inst from servers where ( (server_id='$server_id') or (server_ip='$server_ip') ) $LOGadmin_viewable_groupsSQL;"; $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); $server_id = $row[0]; @@ -27030,6 +27035,7 @@ if ($ADD==311111111111) $system_uptime = $row[43]; $auto_restart_asterisk = $row[44]; $asterisk_temp_no_restart = $row[45]; + $voicemail_dump_exten_no_inst = $row[46]; $cpu = (100 - $cpu_idle_percent); @@ -27072,6 +27078,7 @@ if ($ADD==311111111111) echo "
Conf File Secret: $NWB#servers-conf_secret$NWE     Strength:
Local GMT: (Do NOT Adjust for DST)$NWB#servers-local_gmt$NWE
VMail Dump Exten: $NWB#servers-voicemail_dump_exten$NWE
VMail Dump Exten NI: $NWB#servers-voicemail_dump_exten_no_inst$NWE
auto dial extension: $NWB#servers-answer_transfer_agent$NWE
Default Context: $NWB#servers-ext_context$NWE
System Performance: $NWB#servers-sys_perf_log$NWE