diff --git a/agc_2-X/trunk/UPGRADE b/agc_2-X/trunk/UPGRADE index 658eb001..7c8b91f6 100644 --- a/agc_2-X/trunk/UPGRADE +++ b/agc_2-X/trunk/UPGRADE @@ -31,6 +31,11 @@ NOTE: Upgrading from 1.1.12-3 to 2.0.1 is at the bottom AST_VDhopper_MIXtest.pl script, if you use it change it to the AST_VDhopper.pl in your crontab entries +7. Added Call Menus Feature(aka IVR) in the In-groups section. This allows you + to create call menus with DTMF options using the Admin web interface. + +8. Changed all PHP scripts to use long tags, short tags are depricated in PHP6 + diff --git a/agc_2-X/trunk/agi/agi-DID_route.agi b/agc_2-X/trunk/agi/agi-DID_route.agi index 83d58164..1cdeedaf 100644 --- a/agc_2-X/trunk/agi/agi-DID_route.agi +++ b/agc_2-X/trunk/agi/agi-DID_route.agi @@ -1,6 +1,6 @@ #!/usr/bin/perl # -# agi-DID_route.agi version 2.0.5 +# agi-DID_route.agi version 2.2.0 # # runs when a call comes into an inbound context on a trunk. This script will # send the calls to various places depending on the settings for each DID. @@ -10,13 +10,14 @@ # ;inbound DID catch-all: #exten => _X.,1,AGI(agi-DID_route.agi) # -# Copyright (C) 2008 Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 # # changes: # 81007-0324 - First Build # 90115-0645 - Activated AGENT call routing # 90117-0756 - Added vicidial_did_log logging to database # 90214-0217 - Added 'default' did option, to send all non-matching calls to, enforced did_active setting +# 90507-1145 - Added CALLMENU option # $script = 'agi-DID_route.agi'; @@ -151,7 +152,7 @@ if ( (!$callerid) or ($callerid =~ /unknown/) ) ### Grab DID values from the database -$stmtA = "SELECT did_id,did_pattern,did_description,did_active,did_route,extension,exten_context,voicemail_ext,phone,server_ip,user,user_unavailable_action,user_route_settings_ingroup FROM vicidial_inbound_dids where did_pattern = '$extension' and did_active='Y';"; +$stmtA = "SELECT did_id,did_pattern,did_description,did_active,did_route,extension,exten_context,voicemail_ext,phone,server_ip,user,user_unavailable_action,user_route_settings_ingroup,menu_id FROM vicidial_inbound_dids where did_pattern = '$extension' and did_active='Y';"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows; @@ -171,6 +172,7 @@ if ($sthArows > 0) $user = $aryA[10]; $user_unavailable_action = $aryA[11]; $user_route_settings_ingroup = $aryA[12]; + $menu_id = $aryA[13]; } $sthA->finish(); @@ -184,7 +186,7 @@ if ($AGILOG) {$did_string = "$SQLdate|$uniqueid|$channel|$extension|$callerid|$c if ($sthArows < 1) { ### Grab DID values from the database for a default DID pattern if there is one - $stmtA = "SELECT did_id,did_pattern,did_description,did_active,did_route,extension,exten_context,voicemail_ext,phone,server_ip,user,user_unavailable_action,user_route_settings_ingroup FROM vicidial_inbound_dids where did_pattern = 'default' and did_active='Y';"; + $stmtA = "SELECT did_id,did_pattern,did_description,did_active,did_route,extension,exten_context,voicemail_ext,phone,server_ip,user,user_unavailable_action,user_route_settings_ingroup,menu_id FROM vicidial_inbound_dids where did_pattern = 'default' and did_active='Y';"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows; @@ -204,6 +206,7 @@ if ($sthArows < 1) $user = $aryA[10]; $user_unavailable_action = $aryA[11]; $user_route_settings_ingroup = $aryA[12]; + $menu_id = $aryA[13]; } $sthA->finish(); @@ -339,6 +342,21 @@ if ($did_route =~ /EXTEN/) } +### Route call to a call menu on the system +if ($did_route =~ /CALLMENU/) + { + $XFERcontext = "$menu_id"; + if ($AGILOG) {$agi_string = "exiting the DID app, transferring call to CALLMENU $XFERcontext"; &agi_output;} + print "SET CONTEXT $XFERcontext\n"; + checkresult($result); + print "SET EXTENSION s\n"; + checkresult($result); + print "SET PRIORITY 1\n"; + checkresult($result); + + exit; + } + 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 e9011c15..7d57e66b 100644 --- a/agc_2-X/trunk/agi/agi-VDAD_ALL_outbound.agi +++ b/agc_2-X/trunk/agi/agi-VDAD_ALL_outbound.agi @@ -488,7 +488,7 @@ if ($affected_rows > 0) $TTS_text[$s] =~ s/--A--first_name--B--/$TTS_first_name/gi; $TTS_text[$s] =~ s/--A--last_name--B--/$TTS_last_name/gi; $TTS_text[$s] =~ s/--A--title--B--/$TTS_title/gi; - $TTS_text[$s] =~ s/[^,\.\<\>\'\/\= 0-9a-zA-Z]//gi; + $TTS_text[$s] =~ s/[^,\.\<\>\'\/\=\_ 0-9a-zA-Z]//gi; $TTS_textRAW[$s] = $TTS_text[$s]; $TTS_text[$s] =~ s/ /\\ /gi; $TTS_text[$s] =~ s/\./\\./gi; 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 2200a160..22bc3368 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 @@ -1,11 +1,11 @@ #!/usr/bin/perl # -# agi-VDAD_inbound_calltime_check.agi version 2.0.5 +# agi-VDAD_inbound_calltime_check.agi version 2.2.0 # -# runs when a call comes in from an inbound call. This script will check the +# Runs when a call comes in from an inbound call. This script will check the # settings of the defined calltime scheme in VICIDIAL and either send the call # to the after-hours method for the defined IN-GROUP or exit to let the call -# continue +# continue. This script is also used by Call Menus. # # You need to put lines similar to those below in your extensions.conf file: # ; Below are the parameters needed for the script to be run properly @@ -16,10 +16,14 @@ # ; 3. note to put in the comment_b field when record inserted into the # ; live_inbound_log table, no spaces in this field, use underscore '_' # ; default if not populated is NONE +# ; 4. call time scheme override +# ; 5. call route after hours override +# ; 6. call route value after hours override +# ; 7. call route context after hours override # ; # ;inbound calls check calltime: #exten => 1234,1,Answer ; Answer the line -#exten => 1234,2,AGI(agi-VDAD_inbound_calltime_check.agi,INBOUND-----YES-----START) +#exten => 1234,2,AGI(agi-VDAD_inbound_calltime_check.agi,INBOUND-----YES-----START-----24hours-----EXTENSION-----101-----default) #exten => 1234,3,Hangup # # Copyright (C) 2008 Matt Florell LICENSE: AGPLv2 @@ -29,6 +33,7 @@ # 81015-0305 - Added drop logging # 81015-2009 - Added more logging and NOTE option # 81017-0238 - Fixed duplication bug for vac in multi-entry dialplans +# 90504-1555 - Added call time scheme override # $script = 'agi-VDAD_inbound_calltime_check.agi'; @@ -49,10 +54,10 @@ $now_date_epoch = time(); $now_date = "$year-$mon-$mday $hour:$min:$sec"; $CLInow_date = "$year-$mon-$mday\\ $hour:$min:$sec"; $start_time=$now_date; - $CIDdate = "$mon$mday$hour$min$sec"; - $tsSQLdate = "$year$mon$mday$hour$min$sec"; - $SQLdate = "$year-$mon-$mday $hour:$min:$sec"; - $SQLdateBEGIN = $SQLdate; +$CIDdate = "$mon$mday$hour$min$sec"; +$tsSQLdate = "$year$mon$mday$hour$min$sec"; +$SQLdate = "$year-$mon-$mday $hour:$min:$sec"; +$SQLdateBEGIN = $SQLdate; $BDtarget = ($now_date_epoch + 600); ($Bsec,$Bmin,$Bhour,$Bmday,$Bmon,$Byear,$Bwday,$Byday,$Bisdst) = localtime($BDtarget); @@ -63,7 +68,7 @@ if ($Bmday < 10) {$Bmday = "0$Bmday";} if ($Bhour < 10) {$Bhour = "0$Bhour";} if ($Bmin < 10) {$Bmin = "0$Bmin";} if ($Bsec < 10) {$Bsec = "0$Bsec";} - $last_update_time = "$Byear$Bmon$Bmday$Bhour$Bmin$Bsec"; +$last_update_time = "$Byear$Bmon$Bmday$Bhour$Bmin$Bsec"; # default path to astguiclient configuration file: $PATHconf = '/etc/astguiclient.conf'; @@ -125,47 +130,51 @@ $rec_count=0; while ($sthArows > $rec_count) { $AGILOG = '0'; - @aryA = $sthA->fetchrow_array; - $DBagi_output = "$aryA[0]"; - if ($DBagi_output =~ /STDERR/) {$AGILOG = '1';} - if ($DBagi_output =~ /FILE/) {$AGILOG = '2';} - if ($DBagi_output =~ /BOTH/) {$AGILOG = '3';} - $rec_count++; + @aryA = $sthA->fetchrow_array; + $DBagi_output = "$aryA[0]"; + if ($DBagi_output =~ /STDERR/) {$AGILOG = '1';} + if ($DBagi_output =~ /FILE/) {$AGILOG = '2';} + if ($DBagi_output =~ /BOTH/) {$AGILOG = '3';} + $rec_count++; } $sthA->finish(); ### begin parsing run-time options ### if (length($ARGV[0])>1) -{ + { if ($AGILOG) {$agi_string = "Perl Environment Dump:"; &agi_output;} $i=0; while ($#ARGV >= $i) - { - $args = "$args $ARGV[$i]"; - if ($AGILOG) {$agi_string = "$i|$ARGV[$i]"; &agi_output;} - $i++; - } + { + $args = "$args $ARGV[$i]"; + if ($AGILOG) {$agi_string = "$i|$ARGV[$i]"; &agi_output;} + $i++; + } ### list of command-line array arguments: @ARGV_vars = split(/-----/, $ARGV[0]); - $channel_group = $ARGV_vars[0]; - $log_to_vac = $ARGV_vars[1]; - $note = $ARGV_vars[2]; + $channel_group = $ARGV_vars[0]; + $log_to_vac = $ARGV_vars[1]; + $note = $ARGV_vars[2]; if (length($note)<1) {$note = 'NONE';} -} + $call_time_override = $ARGV_vars[3]; + $route_override = $ARGV_vars[4]; + $route_value_override = $ARGV_vars[5]; + $route_context_override = $ARGV_vars[6]; + } $|=1; while() -{ + { chomp; last unless length($_); if ($AGILOG) { if (/^agi_(\w+)\:\s+(.*)$/) { - $AGI{$1} = $2; + $AGI{$1} = $2; } } @@ -177,7 +186,7 @@ while() if (/^agi_type\:\s+(.*)$/) {$type = $1;} if (/^agi_callerid\:\s+(.*)$/) {$callerid = $1;} if (/^agi_calleridname\:\s+(.*)$/) {$calleridname = $1;} -} + } if ( ($callerid =~ /\".*\"/) && ( (!$calleridname) or ($calleridname =~ /unknown/) ) ) @@ -202,9 +211,9 @@ if (length($pin)>0) {$callerid = $pin;} foreach $i (sort keys %AGI) -{ + { if ($AGILOG) {$agi_string = " -- $i = $AGI{$i}"; &agi_output;} -} + } if ($AGILOG) {$agi_string = "AGI Variables: |$unique_id|$channel|$extension|$type|$callerid|"; &agi_output;} @@ -219,10 +228,10 @@ $VDADphone=''; $VDADphone_code=''; if ($channel =~ /Local/i) -{ + { if ($AGILOG) {$agi_string = "+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;} exit; -} + } ### Grab Server values from the database $cbc=0; @@ -250,40 +259,61 @@ while ($sthArows > $cbc) } $sthA->finish(); -### Grab inbound groups values from the database -$cbc=0; -$stmtA = "SELECT call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,drop_call_seconds,drop_action,drop_exten,next_agent_call,voicemail_ext,queue_priority,drop_inbound_group,afterhours_xfer_group FROM vicidial_inbound_groups where group_id = '$channel_group';"; -$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; -$sthA->execute or die "executing: $stmtA ", $dbhA->errstr; -$sthArows=$sthA->rows; -while ($sthArows > $cbc) +if (length($channel_group) > 1) { - @aryA = $sthA->fetchrow_array; - - $call_time_id = "$aryA[0]"; - $after_hours_action = "$aryA[1]"; - $after_hours_message_filename = "$aryA[2]"; - $after_hours_exten = "$aryA[3]"; - $after_hours_voicemail = "$aryA[4]"; - $welcome_message_filename = "$aryA[5]"; - $moh_context = "$aryA[6]"; - $onhold_prompt_filename = "$aryA[7]"; - $prompt_interval = "$aryA[8]"; - $agent_alert_exten = "$aryA[9]"; - $agent_alert_delay = "$aryA[10]"; - $drop_call_seconds = "$aryA[11]"; - $DROP_TIME = $drop_call_seconds; - $drop_action = "$aryA[12]"; - $drop_exten = "$aryA[13]"; - $CAMP_callorder = "$aryA[14]"; - $VDADvoicemail_ext = "$aryA[15]"; - $VDADvoicemail_ext =~ s/\D//gi; - $queue_priority = "$aryA[16]"; - $drop_inbound_group = "$aryA[17]"; - $afterhours_xfer_group = "$aryA[18]"; - $cbc++; + ### Grab inbound groups values from the database + $cbc=0; + $stmtA = "SELECT call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,drop_call_seconds,drop_action,drop_exten,next_agent_call,voicemail_ext,queue_priority,drop_inbound_group,afterhours_xfer_group FROM vicidial_inbound_groups where group_id = '$channel_group';"; + $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; + $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; + $sthArows=$sthA->rows; + while ($sthArows > $cbc) + { + @aryA = $sthA->fetchrow_array; + + $call_time_id = "$aryA[0]"; + $after_hours_action = "$aryA[1]"; + $after_hours_message_filename = "$aryA[2]"; + $after_hours_exten = "$aryA[3]"; + $after_hours_voicemail = "$aryA[4]"; + $welcome_message_filename = "$aryA[5]"; + $moh_context = "$aryA[6]"; + $onhold_prompt_filename = "$aryA[7]"; + $prompt_interval = "$aryA[8]"; + $agent_alert_exten = "$aryA[9]"; + $agent_alert_delay = "$aryA[10]"; + $drop_call_seconds = "$aryA[11]"; + $DROP_TIME = $drop_call_seconds; + $drop_action = "$aryA[12]"; + $drop_exten = "$aryA[13]"; + $CAMP_callorder = "$aryA[14]"; + $VDADvoicemail_ext = "$aryA[15]"; + $VDADvoicemail_ext =~ s/\D//gi; + $queue_priority = "$aryA[16]"; + $drop_inbound_group = "$aryA[17]"; + $afterhours_xfer_group = "$aryA[18]"; + $cbc++; + } + $sthA->finish(); + } +if (length($call_time_override) > 1) + { + $call_time_id = $call_time_override; + } +if (length($route_override) > 1) + { + $after_hours_action = $route_override; + } +if (length($route_value_override) > 1) + { + $after_hours_message_filename = $route_value_override; + $after_hours_exten = $route_value_override; + $after_hours_voicemail = $route_value_override; + } +if (length($route_context_override) > 1) + { + $ext_context = $route_context_override; } -$sthA->finish(); if ($wday==0) {$daySQL=',ct_sunday_start,ct_sunday_stop';} if ($wday==1) {$daySQL=',ct_monday_start,ct_monday_stop';} @@ -386,7 +416,6 @@ if ( ($hm < $ct_default_start) || ($hm > $ct_default_stop) ) $dbhA->disconnect(); exit; - } ##### END AFTER HOURS CHECK ##### @@ -457,24 +486,3 @@ if ( ($AGILOG == '1') || ($AGILOG == '3') ) {print STDERR "$now_date|$script|$agi_string\n";} $agi_string=''; } - - -sub trigger_transfer_process -{ -# $DS='--'; -# $BEGIN='BEGIN'; -# -# $CLI = "/usr/bin/date >> $PRSTESTfile &"; -# $CLI = "/root/phone.pl $insert_lead_id$DS$insert_close_id$DS$CLInow_date$DS$VDADuser$DS$phone_number$DS$DS$BEGIN$DS >> $PRSTESTfile &"; -# -# `$CLI`; -# -# if ($AGILOG >=2) -# { -# ### open the log file for writing ### -# open(Pout, ">>$PRSLOGfile") -# || die "Can't open $AGILOGfile: $!\n"; -# print Pout "$now_date|$VDADconf_exten|$VDADuser|$VDADextension|$insert_lead_id|$phone_number|$insert_close_id|$channel_group|$drop_timer|$CLI|\n"; -# close(Pout); -# } -} diff --git a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl index dde9ad05..b977b77e 100644 --- a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl +++ b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl @@ -5,6 +5,7 @@ # Designed to keep the astGUIclient processes alive and check every minute # Replaces all other ADMIN_keepalive scripts # Uses /etc/astguiclient.conf file to know which processes to keepalive +# Also, this script generates Asterisk conf files and reloads Asterisk # # Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 # @@ -18,6 +19,7 @@ # 90325-2239 - Rewrote sending of reload commands to Asterisk # 90327-1421 - Removed [globals] tag from auto-generated extensions file # 90409-1251 - Fixed voicemail conf file issue +# 90506-1155 - Added Call Menu functionality # $DB=0; # Debug flag @@ -438,6 +440,9 @@ if ($timeclock_auto_logout > 0) if ($DB) {print "running Timeclock auto-logout process...\n";} `/usr/bin/screen -d -m -S Timeclock $PATHhome/ADMIN_timeclock_auto_logout.pl 2>/dev/null 1>&2`; } +################################################################################ +##### END keepalive of ViciDial-related scripts +################################################################################ @@ -842,6 +847,196 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r } + + + + ##### Get the Call Menu entries ##### + $stmtA = "SELECT menu_id,menu_name,menu_prompt,menu_timeout,menu_timeout_prompt,menu_invalid_prompt,menu_repeat,menu_time_check,call_time_id,track_in_vdac FROM vicidial_call_menu order by menu_id;"; + # print "$stmtA\n"; + $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; + $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; + $sthArows=$sthA->rows; + $i=0; + while ($sthArows > $i) + { + @aryA = $sthA->fetchrow_array; + $menu_id[$i] = "$aryA[0]"; + $menu_name[$i] = "$aryA[1]"; + $menu_prompt[$i] = "$aryA[2]"; + $menu_timeout[$i] = "$aryA[3]"; + $menu_timeout_prompt[$i] = "$aryA[4]"; + $menu_invalid_prompt[$i] = "$aryA[5]"; + $menu_repeat[$i] = "$aryA[6]"; + $menu_time_check[$i] = "$aryA[7]"; + $call_time_id[$i] = "$aryA[8]"; + $track_in_vdac[$i] = "$aryA[9]"; + if ($track_in_vdac[$i] > 0) + {$track_in_vdac[$i] = 'YES'} + else + {$track_in_vdac[$i] = 'NO'} + $i++; + } + $sthA->finish(); + + $i=0; + $call_menu_ext = ''; + $time_check_scheme = ''; + $time_check_route = ''; + $time_check_route_value = ''; + $time_check_route_context = ''; + while ($sthArows > $i) + { + $stmtA = "SELECT option_value,option_description,option_route,option_route_value,option_route_value_context FROM vicidial_call_menu_options where menu_id='$menu_id[$i]' order by option_value;"; + # print "$stmtA\n"; + $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; + $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; + $sthArowsJ=$sthA->rows; + $j=0; + $call_menu_options_ext = ''; + if ($DBX>0) {print "$sthArowsJ|$stmtA\n";} + while ($sthArowsJ > $j) + { + @aryA = $sthA->fetchrow_array; + $option_value[$j] = "$aryA[0]"; + $option_description[$j] = "$aryA[1]"; + $option_route[$j] = "$aryA[2]"; + $option_route_value[$j] = "$aryA[3]"; + $option_route_value_context[$j] = "$aryA[4]"; + if ($option_value[$j] =~ /STAR/) {$option_value[$j] = '*';} + if ($option_value[$j] =~ /HASH/) {$option_value[$j] = '#';} + $j++; + } + + $j=0; + while ($sthArowsJ > $j) + { + if ( ($option_value[$j] =~ /TIMECHECK/) && ($menu_time_check[$i] > 0) && (length($call_time_id[$i])>0) ) + { + $time_check_scheme = $call_time_id[$i]; + $time_check_route = $option_route[$j]; + $time_check_route_value = $option_route_value[$j]; + $time_check_route_context = $option_route_value_context[$j]; + } + else + { + if (length($option_description[$j])>0) + { + $call_menu_options_ext .= "; $option_description[$j]\n"; + } + if ($option_route[$j] =~ /AGI/) + { + $call_menu_options_ext .= "exten => $option_value[$j],1,AGI($option_route_value[$j])\n"; + } + if ($option_route[$j] =~ /CALLMENU/) + { + $call_menu_options_ext .= "exten => $option_value[$j],1,Goto($option_route_value[$j],s,1)\n"; + } + if ($option_route[$j] =~ /DID/) + { + $call_menu_options_ext .= "exten => $option_value[$j],1,Goto(trunkinbound,$option_route_value[$j],1)\n"; + } + if ($option_route[$j] =~ /EXTENSION/) + { + if (length($option_route_value_context[$j])>0) {$option_route_value_context[$j] = "$option_route_value_context[$j],";} + $call_menu_options_ext .= "exten => $option_value[$j],1,Goto($option_route_value_context[$j]$option_route_value[$j],1)\n"; + } + if ($option_route[$j] =~ /VOICEMAIL/) + { + $call_menu_options_ext .= "exten => $option_value[$j],1,Goto(default,85026666666666$option_route_value[$j],1)\n"; + } + if ($option_route[$j] =~ /HANGUP/) + { + if ( (length($option_route_value[$j])>0) && ($option_route_value[$j] !~ /NONE/) ) + { + $call_menu_options_ext .= "exten => $option_value[$j],1,Playback($option_route_value[$j])\n"; + $call_menu_options_ext .= "exten => $option_value[$j],n,Hangup\n"; + } + else + { + $call_menu_options_ext .= "exten => $option_value[$j],1,Hangup\n"; + } + } + if ($option_route[$j] =~ /PHONE/) + { + $stmtA = "SELECT dialplan_number,server_ip FROM phones where login='$option_route_value[$j]';"; + # print "$stmtA\n"; + $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; + $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; + $sthArowsP=$sthA->rows; + if ($sthArowsP > 0) + { + @aryA = $sthA->fetchrow_array; + $Pdialplan = "$aryA[0]"; + $Pserver_ip = "$aryA[1]"; + + ### format the remote server dialstring to get the call to the overflow agent meetme room + $S='*'; + if( $Pserver_ip =~ m/(\S+)\.(\S+)\.(\S+)\.(\S+)/ ) + { + $a = leading_zero($1); + $b = leading_zero($2); + $c = leading_zero($3); + $d = leading_zero($4); + $DIALstring = "$a$S$b$S$c$S$d$S"; + } + $call_menu_options_ext .= "exten => $option_value[$j],1,Goto(default,$DIALstring$Pdialplan,1)\n"; + } + $sthA->finish(); + } + } + if ($DBX>0) {print "$i|$j| $menu_id[$i]|$option_value[$j]\n";} + $j++; + } + $sthA->finish(); + + + $call_menu_ext .= "\n"; + $call_menu_ext .= "; $menu_name[$i]\n"; + $call_menu_ext .= "[$menu_id[$i]]\n"; + $call_menu_ext .= "exten => s,1,AGI(agi-VDAD_inbound_calltime_check.agi,-----$track_in_vdac[$i]-----$menu_id[$i]-----$time_check_scheme-----$time_check_route-----$time_check_route_value-----$time_check_route_context)\n"; + $call_menu_ext .= "exten => s,n,Background($menu_prompt[$i])\n"; + $call_menu_ext .= "exten => s,n,WaitExten($menu_timeout[$i])\n"; + $k=0; + while ($k < $menu_repeat[$i]) + { + $call_menu_ext .= "exten => s,n,Background($menu_prompt[$i])\n"; + $call_menu_ext .= "exten => s,n,WaitExten($menu_timeout[$i])\n"; + $k++; + } + $call_menu_ext .= "exten => s,n,Hangup\n"; + $call_menu_ext .= "\n"; + $call_menu_ext .= "$call_menu_options_ext"; + $call_menu_ext .= "\n"; + + if ( (length($menu_timeout_prompt[$i])>0) && ($menu_timeout_prompt[$i] !~ /NONE/) ) + { + $call_menu_ext .= "exten => t,1,Playback($menu_timeout_prompt[$i])\n"; + $call_menu_ext .= "exten => t,n,Goto(s,2)\n"; + } + else + { + $call_menu_ext .= "exten => t,1,Goto(s,2)\n"; + } + if ( (length($menu_invalid_prompt[$i])>0) && ($menu_invalid_prompt[$i] !~ /NONE/) ) + { + $call_menu_ext .= "exten => i,1,Playback($menu_invalid_prompt[$i])\n"; + $call_menu_ext .= "exten => i,n,Goto(s,2)\n"; + } + else + { + $call_menu_ext .= "exten => i,1,Goto(s,2)\n"; + } + + $call_menu_ext .= "exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})\n"; + $call_menu_ext .= "\n"; + + $i++; + } + + + + + if ($DB) {print "writing auto-gen conf files\n";} open(ext, ">/etc/asterisk/extensions-vicidial.conf") || die "can't open /etc/asterisk/extensions-vicidial.conf: $!\n"; @@ -851,6 +1046,7 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r print ext "; WARNING- THIS FILE IS AUTO-GENERATED BY VICIDIAL, ANY EDITS YOU MAKE WILL BE LOST\n"; print ext "$ext\n"; + print ext "$call_menu_ext\n"; print ext "[vicidial-auto]\n"; print ext "exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})\n"; print ext "$Lext\n"; diff --git a/agc_2-X/trunk/bin/ADMIN_restart_roll_logs.pl b/agc_2-X/trunk/bin/ADMIN_restart_roll_logs.pl index c7974ed9..741ac4af 100644 --- a/agc_2-X/trunk/bin/ADMIN_restart_roll_logs.pl +++ b/agc_2-X/trunk/bin/ADMIN_restart_roll_logs.pl @@ -1,6 +1,6 @@ #!/usr/bin/perl # -# ADMIN_restart_roll_logs.pl version 2.0.5 +# ADMIN_restart_roll_logs.pl version 2.2.0 # # script to roll the Asterisk logs on machine restart # @@ -10,6 +10,7 @@ # # CHANGES: # 90311-0921 - Added /var/log/asterisk/screenlog log rolling +# 90508-0535 - Changes root screenlog to /var/log/astguiclient # ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); @@ -36,7 +37,7 @@ print "rolling Asterisk cdr logs...\n"; `mv -f /var/log/asterisk/cdr-custom/Master.csv /var/log/asterisk/cdr-custom/Master.csv.$now_date`; print "rolling Asterisk screen log...\n"; -`mv -f /screenlog.0 /screenlog.0.$now_date`; +`mv -f /var/log/astguiclient/screenlog.0 /var/log/astguiclient/screenlog.0.$now_date`; print "rolling Asterisk root screen log...\n"; `mv -f /root/screenlog.0 /root/screenlog.0.$now_date`; diff --git a/agc_2-X/trunk/bin/AST_VDhopper.pl b/agc_2-X/trunk/bin/AST_VDhopper.pl index 3b55f114..903bd1eb 100644 --- a/agc_2-X/trunk/bin/AST_VDhopper.pl +++ b/agc_2-X/trunk/bin/AST_VDhopper.pl @@ -241,16 +241,15 @@ $dbhA = DBI->connect("DBI:mysql:$VARDB_database:$VARDB_server:$VARDB_port", "$VA $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows; - $rec_count=0; - while ($sthArows > $rec_count) + if ($sthArows==0) {die "Server IP $VARserver_ip does not have an entry in the servers table\n\n";} + if ($sthArows > 0) { - @aryA = $sthA->fetchrow_array; - $DBvd_server_logs = "$aryA[0]"; - $DBSERVER_GMT = "$aryA[1]"; - if ($DBvd_server_logs =~ /Y/) {$SYSLOG = '1';} - else {$SYSLOG = '0';} - if (length($DBSERVER_GMT)>0) {$SERVER_GMT = $DBSERVER_GMT;} - $rec_count++; + @aryA = $sthA->fetchrow_array; + $DBvd_server_logs = "$aryA[0]"; + $DBSERVER_GMT = "$aryA[1]"; + if ($DBvd_server_logs =~ /Y/) {$SYSLOG = '1';} + else {$SYSLOG = '0';} + if (length($DBSERVER_GMT)>0) {$SERVER_GMT = $DBSERVER_GMT;} } $sthA->finish(); diff --git a/agc_2-X/trunk/bin/Vtiger_OUT_sync2VICIDIAL_file.pl b/agc_2-X/trunk/bin/Vtiger_OUT_sync2VICIDIAL_file.pl index e48bc5f5..1f1f4307 100644 --- a/agc_2-X/trunk/bin/Vtiger_OUT_sync2VICIDIAL_file.pl +++ b/agc_2-X/trunk/bin/Vtiger_OUT_sync2VICIDIAL_file.pl @@ -1020,7 +1020,7 @@ while ($sthBrowsC > $i) $sthA->finish(); $k=0; - $stmtB="SELECT salesorderid,total,duedate from vtiger_salesorder where accountid='$crmid[$i]' and duedate > \"$TODAY 00:00:00\" order by duedate;"; + $stmtB="SELECT salesorderid,total,duedate,smownerid,user_name from vtiger_salesorder vso, vtiger_crmentity vce, vtiger_users vu where accountid='$crmid[$i]' and duedate > \"$TODAY 00:00:00\" and vso.salesorderid=vce.crmid and vu.id=vce.smownerid order by duedate;"; if($DBX){print STDERR "\n|$stmtB|\n";} $sthB = $dbhB->prepare($stmtB) or die "preparing: ",$dbhB->errstr; $sthB->execute or die "executing: $stmtB ", $dbhB->errstr; @@ -1032,8 +1032,10 @@ while ($sthBrowsC > $i) $total = $aryB[1]; chop($total); $duedate = $aryB[2]; + $so_owner = $aryB[3]; + $user = $aryB[4]; - print OFout "$salesorderid,$phone,$account,$sequence,$company,$first_name,$last_name,$VCstatus,$duedate,$total\n"; + print OFout "$salesorderid,$phone,$account,$sequence,$company,$first_name,$last_name,$VCstatus,$duedate,$total,$user\n"; $m++; $k++; } diff --git a/agc_2-X/trunk/docs/ASTERISK_CONF-GEN.txt b/agc_2-X/trunk/docs/ASTERISK_CONF-GEN.txt index ef6158de..db143418 100644 --- a/agc_2-X/trunk/docs/ASTERISK_CONF-GEN.txt +++ b/agc_2-X/trunk/docs/ASTERISK_CONF-GEN.txt @@ -24,3 +24,179 @@ If you have special settings that you want to use for phones such as codecs you If you are using a SIP carrier, then you may need to manually set "externip=XXX.XXX.XXX.XXX" in the /etc/asterisk/sip.conf file where XXX.XXX.XXX.XXX is the external IP address of your server as the outside world(or your carrier) sees it. + + + + + + +CALL MENUS (aka IVRs): + +The Call Menus feature allows for the creation of IVR segments that can be linked together through contexts in the dialplan. In this way, both simple and complex menus can be created, to deliver anything from a simple Automated Atttendant to more detailed IVR applications. + +The Menu ID is the unique identifier of the call menu and it is also used as the context when the entry is created in the dialplan. + + +Call Menu Options: +0,1,2,3,4,5,6,7,8,9,*,#,A,B,C,D,TIMECHECK + +The options are the DTMF digits that a caller can select within this Call Menu, with the exception of the TIMECHECK option which is used when the call is taking place outside of the call_time as defined in the Call menu. + + +Call Menu Routes: +CALLMENU,HANGUP,DID,EXTENSION,PHONE,VOICEMAIL,AGI + +The option route is similar to the DID route since it defines what method to use to send the call to the option route value. The route value is dependant upon the route selected, for example if you selected DID as the route you would then need to select a value DID to send the call to. Or if you selected PHONE as the route, the route value would need to be a valid phone login as defined in the phones section of Administration. + + + +An example of a call menu: + +menu_id = test_menu +menu_name = this is only a test +menu_prompt = hello +menu_timeout = 10 +menu_timeout_prompt = vm-goodbye +menu_invalid_prompt = +menu_repeat = 1 +menu_time_check = 1 +call_time_id = 9am-5pm +track_in_vdac = 1 + +menu_id = test_menu +option_value = 1 +option_description = This is what happens when you press 1 +option_route = DID +option_route_value = 6666 +option_route_value_context = + +menu_id = test_menu +option_value = 2 +option_description = This is what happens when you press 2 +option_route = DID +option_route_value = 6667 +option_route_value_context = + +menu_id = test_menu +option_value = 3 +option_description = This is what happens when you press 3 +option_route = EXTENSION +option_route_value = 101 +option_route_value_context = default + +menu_id = test_menu +option_value = 4 +option_description = This is what happens when you press 4 +option_route = PHONE +option_route_value = 350 +option_route_value_context = + +menu_id = test_menu +option_value = 5 +option_description = This is what happens when you press 5 +option_route = CALLMENU +option_route_value = test_menu_2 +option_route_value_context = + +menu_id = test_menu +option_value = 6 +option_description = This is what happens when you press 6 +option_route = HANGUP +option_route_value = vm-goodbye +option_route_value_context = + +menu_id = test_menu +option_value = 7 +option_description = This is what happens when you press 7 +option_route = VOICEMAIL +option_route_value = 350 +option_route_value_context = + +menu_id = test_menu +option_value = 8 +option_description = This is what happens when you press 8 +option_route = AGI +option_route_value = agi-test.agi,variables-go-here +option_route_value_context = + +menu_id = test_menu +option_value = TIMECHECK +option_description = +option_route = EXTENSION +option_route_value = 101 +option_route_value_context = default + + + +This is what it would look like in the dialplan: + + +; this is only a test +[test_menu] +exten => s,1,AGI(agi-VDAD_inbound_calltime_check.agi,-----YES-----test_menu-----24hours-----EXTENSION-----101-----default) +exten => s,n,Background(hello) +exten => s,n,WaitExten(10) +exten => s,n,Background(hello) +exten => s,n,WaitExten(10) +exten => s,n,Hangup + +; This is what happens when you press 1 +exten => 1,1,Goto(6666,1,trunkinbound) +; This is what happens when you press 2 +exten => 2,1,Goto(6667,1,trunkinbound) +; This is what happens when you press 3 +exten => 3,1,Goto(101,1,default) +; This is what happens when you press 4 +exten => 4,1,Goto(350,1,default) +; This is what happens when you press 5 +exten => 5,1,Goto(s,1,test_menu_2) +; This is what happens when you press 6 +exten => 6,1,Playback(vm-goodbye) +exten => 6,n,Hangup +; This is what happens when you press 7 +exten => 7,1,Goto(85026666666666350,1,default) +; This is what happens when you press 8 +exten => 8,1,AGI(agi-test.agi,variables-go-here) + +exten => i,1,Goto(s,2) +exten => t,1,Playback(vm-goodbye) +exten => t,n,Goto(s,2) +exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME}) + + + + + + + + + +Database changes needed for Call Menus: +###### DO NOT RUN, FOR DOCUMENTATION PURPOSES ONLY! ###### + +CREATE TABLE vicidial_call_menu ( +menu_id VARCHAR(50) PRIMARY KEY NOT NULL, +menu_name VARCHAR(100), +menu_prompt VARCHAR(100), +menu_timeout SMALLINT(2) UNSIGNED default '10', +menu_timeout_prompt VARCHAR(100) default 'NONE', +menu_invalid_prompt VARCHAR(100) default 'NONE', +menu_repeat TINYINT(1) UNSIGNED default '0', +menu_time_check ENUM('0','1') default '0', +call_time_id VARCHAR(20) default '', +track_in_vdac ENUM('0','1') default '1' +); + +CREATE TABLE vicidial_call_menu_options ( +menu_id VARCHAR(50) NOT NULL, +option_value VARCHAR(20) NOT NULL default '', +option_description VARCHAR(255) default '', +option_route VARCHAR(20), +option_route_value VARCHAR(100), +option_route_value_context VARCHAR(100), +index (menu_id), +unique index menuoption (menu_id, option_value) +); + +ALTER TABLE vicidial_inbound_dids MODIFY did_route ENUM('EXTEN','VOICEMAIL','AGENT','PHONE','IN_GROUP','CALLMENU') default 'EXTEN'; +ALTER TABLE vicidial_inbound_dids ADD menu_id VARCHAR(50) default ''; diff --git a/agc_2-X/trunk/docs/Inbound_VDAC_IVR.txt b/agc_2-X/trunk/docs/Inbound_VDAC_IVR.txt index 8eee4a6d..e0d40a7f 100644 --- a/agc_2-X/trunk/docs/Inbound_VDAC_IVR.txt +++ b/agc_2-X/trunk/docs/Inbound_VDAC_IVR.txt @@ -1,5 +1,10 @@ Inbound VDAC IVR process 2008-05-25 + +NOTE: the Call Menu feature has been recently added that will enable you to create and maintain IVRs, such as those mentioned in this document, using only the web-based interface. For more information about Call Menus, take a look at the In-Groups -> Call Menu section of the Administration website or look at the ASTERISK_CONF-GEN.txt document + + + This doc goes over the addition of the IVR status to the vicidial_auto_calls table and how calls that are not yet in an in-group(queue) can still be counted as active calls. This allows your system to show a tally of inbound calls that are still navigating menus before finding an in-group(queue) to be put into. The agi-VDAD_inbound_calltime_check.agi script does a check for the calltime scheme of the defined in-group(queue) as well as using the after-hours method for that in-group and the associated after-hours message if defined. Also, this script can place a record in the vicidial_auto_calls status in the IVR status. Calls in this status do not affect the dial ratios of blended campaigns, but they will display in the AST_timeonVDADall.php real-time status pages. 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 65e7fa83..e62c118f 100644 --- a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql +++ b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql @@ -1330,7 +1330,7 @@ CREATE TABLE vicidial_campaign_dnc ( phone_number VARCHAR(18) NOT NULL, campaign_id VARCHAR(8) NOT NULL, index (phone_number), -UNIQUE INDEX phonecamp (phone_number, campaign_id) +unique index phonecamp (phone_number, campaign_id) ); CREATE TABLE vicidial_inbound_dids ( @@ -1338,7 +1338,7 @@ 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') default 'EXTEN', +did_route ENUM('EXTEN','VOICEMAIL','AGENT','PHONE','IN_GROUP','CALLMENU') default 'EXTEN', extension VARCHAR(50) default '9998811112', exten_context VARCHAR(50) default 'default', voicemail_ext VARCHAR(10), @@ -1354,6 +1354,7 @@ list_id BIGINT(14) UNSIGNED default '999', campaign_id VARCHAR(8), phone_code VARCHAR(10) default '1', unique index (did_pattern), +menu_id VARCHAR(50) default '', index (group_id) ); @@ -1471,6 +1472,31 @@ active ENUM('Y','N'), tts_text TEXT ); +CREATE TABLE vicidial_call_menu ( +menu_id VARCHAR(50) PRIMARY KEY NOT NULL, +menu_name VARCHAR(100), +menu_prompt VARCHAR(100), +menu_timeout SMALLINT(2) UNSIGNED default '10', +menu_timeout_prompt VARCHAR(100) default 'NONE', +menu_invalid_prompt VARCHAR(100) default 'NONE', +menu_repeat TINYINT(1) UNSIGNED default '0', +menu_time_check ENUM('0','1') default '0', +call_time_id VARCHAR(20) default '', +track_in_vdac ENUM('0','1') default '1' +); + +CREATE TABLE vicidial_call_menu_options ( +menu_id VARCHAR(50) NOT NULL, +option_value VARCHAR(20) NOT NULL default '', +option_description VARCHAR(255) default '', +option_route VARCHAR(20), +option_route_value VARCHAR(100), +option_route_value_context VARCHAR(100), +index (menu_id), +unique index menuoption (menu_id, option_value) +); + + ALTER TABLE vicidial_campaign_server_stats ENGINE=HEAP; ALTER TABLE live_channels ENGINE=HEAP; @@ -1566,7 +1592,7 @@ CREATE INDEX phone_number on vicidial_closer_log (phone_number); CREATE INDEX date_user on vicidial_closer_log (call_date,user); CREATE INDEX comment_a on live_inbound_log (comment_a); -UPDATE system_settings SET db_schema_version='1139'; +UPDATE system_settings SET db_schema_version='1140'; GRANT RELOAD ON *.* TO cron@'%'; GRANT RELOAD ON *.* TO cron@localhost; diff --git a/agc_2-X/trunk/extras/upgrade_2.2.0.sql b/agc_2-X/trunk/extras/upgrade_2.2.0.sql index 269e869f..80c31eb7 100644 --- a/agc_2-X/trunk/extras/upgrade_2.2.0.sql +++ b/agc_2-X/trunk/extras/upgrade_2.2.0.sql @@ -51,3 +51,32 @@ tts_text TEXT UPDATE system_settings SET db_schema_version='1139'; +CREATE TABLE vicidial_call_menu ( +menu_id VARCHAR(50) PRIMARY KEY NOT NULL, +menu_name VARCHAR(100), +menu_prompt VARCHAR(100), +menu_timeout SMALLINT(2) UNSIGNED default '10', +menu_timeout_prompt VARCHAR(100) default 'NONE', +menu_invalid_prompt VARCHAR(100) default 'NONE', +menu_repeat TINYINT(1) UNSIGNED default '0', +menu_time_check ENUM('0','1') default '0', +call_time_id VARCHAR(20) default '', +track_in_vdac ENUM('0','1') default '1' +); + +CREATE TABLE vicidial_call_menu_options ( +menu_id VARCHAR(50) NOT NULL, +option_value VARCHAR(20) NOT NULL default '', +option_description VARCHAR(255) default '', +option_route VARCHAR(20), +option_route_value VARCHAR(100), +option_route_value_context VARCHAR(100), +index (menu_id), +unique index menuoption (menu_id, option_value) +); + +ALTER TABLE vicidial_inbound_dids MODIFY did_route ENUM('EXTEN','VOICEMAIL','AGENT','PHONE','IN_GROUP','CALLMENU') default 'EXTEN'; +ALTER TABLE vicidial_inbound_dids ADD menu_id VARCHAR(50) default ''; + +UPDATE system_settings SET db_schema_version='1140'; + diff --git a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.2.0.txt b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.2.0.txt index 625c0659..2d5db598 100644 --- a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.2.0.txt +++ b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.2.0.txt @@ -35,6 +35,73 @@ RANDOM: Randomly grabs lead within the statuses and lists defined|| UP LAST CALL TIME: Sorts by the newest local call time for the leads|| DOWN LAST CALL TIME: Sorts by the oldest local call time for the leads|| WARNING, we only recommend List Mix for advanced users, Please read the ViciDial Manager Manual|| +Add Call Menu|| +Copy Call Menu|| +New Call Menu|| +Modify Call Menu|| +Delete Call Menu|| +Call Menus|| +Menu ID|| +This is the ID for this step of the call menu. This will also show up as the context that is used in the dialplan for this call menu|| +Menu Name|| +This field is the descriptive name for the call menu|| +Menu Prompt|| +This field contains the file name of the audio prompt to play at the beginning of this menu|| +Menu Timeout|| +This field is where you set the timeout in seconds that the menu will wait for the caller to enter in a DTMF choice|| +Menu Timeout Prompt|| +This field contains the file name of the audio prompt to play when the timeout has been reached. Default is NONE to play no audio at timeout|| +Menu Invalid Prompt|| +This field contains the file name of the audio prompt to play when the caller has selected an invalid option. Default is NONE to play no audio at invalid|| +Menu Repeat|| +This field is where you define the number of times that the menu will play after the first time if no valid choice is made by the caller. Default is 1 to repeat the menu once|| +Menu Time Check|| +This field is where you can select whether to restrict the Call Menu access to the specific hours set up in the selected Call Time. If the Call Time is blank, this setting will be ignored. Default is 0 for disabled|| +Call Time ID|| +This is the Call Time ID that will be used to restrict calling times if the Menu Time Check option is enabled|| +Track Calls in Real-Time Report|| +This field is where you can select whether you want the call to be tracked in the Real-time screen as an incoming IVR type call. Default is 1 for active|| +Option Value|| +This field is where you define the menu option, possible choices are|| +Option Route|| +This menu contains the options for where to send the call if this option is selected|| +The special option TIMECHECK can be used only if you have Menu Time Check enabled and there is a Call Time defined for the Menu|| +Option Route Value|| +This field is where you enter the value that defines where in the selected Option Route that the call is to be directed to|| +Option Route Value Context|| +This field is optional and only used for EXTENSION Option Routes|| +ADD A NEW CALL MENU|| +COPY CALL MENU|| +For CALLMENU, the Route Value should be the Menu ID of the Call Menu that you want the call sent to. For HANGUP, the Route Value can be the name of an audio file to play before hanging up the call. For DID, the Route Value needs to be the DID pattern that you want to send the call to. 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 Description|| +This field is where you can describe the option, this description will be put into the dialplan as a comment above the option|| +Source Menu|| +CALL MENU NOT ADDED|| +Call Menu ID must be between 2 and 50 characters in length and contain no|| +CALL MENU ADDED|| +CALL MENU NOT MODIFIED|| +CALL MENU MODIFIED|| +Click here to see Admin chages to this CALL MENU|| +DELETE THIS CALL MENU|| +MODIFY A CALL MENU RECORD|| +Time Check|| +No Time Check|| +Realtime Tracking|| +No Realtime Tracking|| +Call Menu Options|| +Option|| +CALL MENU NOT DELETED|| +CALL MENU DELETION CONFIRMATION|| +Click here to delete CALL MENU|| +CALL MENU DELETION COMPLETED|| +CALL MENU LISTINGS|| +CALLMENU will send the call to the defined Call Menu|| +Call Menu|| +If CALLMENU is selected as the DID Route, then this is the Call Menu that calls will be sent to|| +Show Call Menus|| +Add A New Call Menu|| +Copy Call Menu|| +To delete an Option, just set the Route to REMOVE and the option will be deleted when you click the SUBMIT button|| ############################################################ CLIENT diff --git a/agc_2-X/trunk/www/agc/SCRIPT_busy_button.php b/agc_2-X/trunk/www/agc/SCRIPT_busy_button.php index 92dcf517..d9eba430 100644 --- a/agc_2-X/trunk/www/agc/SCRIPT_busy_button.php +++ b/agc_2-X/trunk/www/agc/SCRIPT_busy_button.php @@ -1,4 +1,4 @@ - LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 # # This script is designed purely to serve updates of the live data to the display scripts # This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table @@ -38,6 +38,7 @@ # 50711-1209 - removed HTTP authentication in favor of user/pass vars # 60421-1155 - check GET/POST vars lines with isset to not trigger PHP NOTICES # 60619-1118 - Added variable filters to close security holes for login form +# 90508-0727 - Changed to PHP long tags # require("dbconnect.php"); diff --git a/agc_2-X/trunk/www/agc/api.php b/agc_2-X/trunk/www/agc/api.php index bc8827d3..9d95c8db 100644 --- a/agc_2-X/trunk/www/agc/api.php +++ b/agc_2-X/trunk/www/agc/api.php @@ -1,4 +1,4 @@ - LICENSE: AGPLv2 @@ -31,10 +31,11 @@ # 90128-0229 - Added vendor_id to dial function # 90303-0723 - Added group alias and dial prefix # 90407-1920 - Added vtiger_callback option for external_dial function +# 90508-0727 - Changed to PHP long tags # -$version = '2.0.5-6'; -$build = '90407-1920'; +$version = '2.2.0-7'; +$build = '90508-0727'; require("dbconnect.php"); diff --git a/agc_2-X/trunk/www/agc/astguiclient.php b/agc_2-X/trunk/www/agc/astguiclient.php index 68dbe761..40f10d5e 100644 --- a/agc_2-X/trunk/www/agc/astguiclient.php +++ b/agc_2-X/trunk/www/agc/astguiclient.php @@ -1,7 +1,7 @@ - LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 # # make sure you have added a user to the vicidial_users MySQL table with at least # user_level 1 or greater to access this page. Also you need to have the login @@ -56,6 +56,7 @@ # 60421-1357 - check GET/POST vars lines with isset to not trigger PHP NOTICES # 60619-1103 - Added variable filters to close security holes for login form # 60829-1528 - Made compatible with WeBRooTWritablE setting in dbconnect.php +# 90508-0727 - Changed to PHP long tags # require("dbconnect.php"); @@ -425,31 +426,31 @@ else var last_filename = ''; var LCAcount = 0; var LMAcount = 0; - var filedate = ''; - var agcDIR = ''; - var agcPAGE = ''; - var extension = ''; - var extension_xfer = ''; - var dialplan_number = ''; - var ext_context = ''; - var protocol = ''; - var server_ip = ''; -'; + var agcDIR = ''; + var agcPAGE = ''; + var extension = ''; + var extension_xfer = ''; + var dialplan_number = ''; + var ext_context = ''; + var protocol = ''; + var server_ip = ''; + - var user_abb = ''; - var voicemail_id = ''; - var voicemail_exten = ''; - var voicemail_dump_exten = ''; + var user_abb = ''; + var voicemail_id = ''; + var voicemail_exten = ''; + var voicemail_dump_exten = ''; var new_messages = 999; var old_messages = 999; - var outbound_cid = ''; - var local_web_callerID_URL_enc = ''; - var epoch_sec = ; - var dtmf_send_extension = ''; - var recording_exten = ''; - var park_on_extension = ''; + var outbound_cid = ''; + var local_web_callerID_URL_enc = ''; + var epoch_sec = ; + var dtmf_send_extension = ''; + var recording_exten = ''; + var park_on_extension = ''; var park_count=0; var park_refresh=0; var check_n = 0; @@ -457,7 +458,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} var logout_stop_timeouts = 0; var lastconf=''; var agc_dial_prefix = '91'; - var monitor_prefix = ''; + var monitor_prefix = ''; var menuheight = 30; var menuwidth = 30; var menufontsize = 8; @@ -480,15 +481,15 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} var busytrunkhangup_order='asc'; var busylocalhangup_order='asc'; var xmlhttp=false; - var admin_hangup_enabled = ''; - var admin_hijack_enabled = ''; - var admin_monitor_enabled = ''; + var admin_hangup_enabled = ''; + var admin_hijack_enabled = ''; + var admin_monitor_enabled = ''; var XfeR_channel = ''; - var user = ''; - var pass = ''; - var phone_login = ''; - var phone_pass = ''; - var session_name = ''; + var user = ''; + var pass = ''; + var phone_login = ''; + var phone_pass = ''; + var session_name = ''; var image_livecall_OFF = new Image(); image_livecall_OFF.src="./images/agc_live_call_OFF.gif"; var image_livecall_ON = new Image(); @@ -505,13 +506,13 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} var favoritesEDIT = new Array(); var favorites_namesEDIT = new Array(); var favlist = new Array(); - var favlistCT = ''; - var favorites_count = ''; - var favorites_countEDIT = ''; - var favorites_listX = ''; - var favorites_list = ""; - var favorites_listEDIT = ""; - '; + var favorites_count = ''; + var favorites_countEDIT = ''; + var favorites_listX = ''; + var favorites_list = ""; + var favorites_listEDIT = ""; + $h) { echo "favorites['$h'] = \"$favorites[$h]\";\n"; @@ -2704,7 +2705,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} --> -\n"; @@ -2716,7 +2717,7 @@ echo "\n"; -LOGOUT
\n"; ?> +LOGOUT
\n"; ?> Main Panel @@ -2802,12 +2803,12 @@ echo "\n";
INBOUND CALLS:
-astGUIclient web-client VERSION: BUILD: +astGUIclient web-client VERSION: BUILD: - $h) { @@ -2891,7 +2892,7 @@ echo "\n"; - LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 # # This script is designed purely to send the inbound and outbound calls for a specific phone # This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table @@ -28,6 +28,7 @@ # 60323-1550 - added option for showing different number dialed in log # 60421-1401 - check GET/POST vars lines with isset to not trigger PHP NOTICES # 60619-1202 - Added variable filters to close security holes for login form +# 90508-0727 - Changed to PHP long tags # require("dbconnect.php"); diff --git a/agc_2-X/trunk/www/agc/conf_exten_check.php b/agc_2-X/trunk/www/agc/conf_exten_check.php index 726c59e1..e752c6da 100644 --- a/agc_2-X/trunk/www/agc/conf_exten_check.php +++ b/agc_2-X/trunk/www/agc/conf_exten_check.php @@ -1,5 +1,5 @@ - LICENSE: AGPLv2 # @@ -44,10 +44,11 @@ # 90120-1720 - Added compatibility for API pause/resume and dial a number # 90307-1855 - Added shift enforcement to send logout flag if outside of shift hours # 90408-0020 - Added API vtiger specific callback activity record ability +# 90508-0727 - Changed to PHP long tags # -$version = '2.2.0-19'; -$build = '90408-0020'; +$version = '2.2.0-20'; +$build = '90508-0727'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=17; $one_mysql_log=0; diff --git a/agc_2-X/trunk/www/agc/dbconnect.php b/agc_2-X/trunk/www/agc/dbconnect.php index 723d3c59..89d88689 100644 --- a/agc_2-X/trunk/www/agc/dbconnect.php +++ b/agc_2-X/trunk/www/agc/dbconnect.php @@ -1,10 +1,10 @@ - LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 # if ( file_exists("/etc/astguiclient.conf") ) { diff --git a/agc_2-X/trunk/www/agc/inbound_popup.php b/agc_2-X/trunk/www/agc/inbound_popup.php index 467ebff2..d1eb5afa 100644 --- a/agc_2-X/trunk/www/agc/inbound_popup.php +++ b/agc_2-X/trunk/www/agc/inbound_popup.php @@ -1,7 +1,7 @@ - LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 # # This script is designed to open up when a live_inbound call comes in giving the user # options of what to do with the call or options to lookup the callerID on various web sites @@ -30,6 +30,7 @@ # 50711-1203 - removed HTTP authentication in favor of user/pass vars # 60421-1043 - check GET/POST vars lines with isset to not trigger PHP NOTICES # 60619-1205 - Added variable filters to close security holes for login form +# 90508-0727 - Changed to PHP long tags # require("dbconnect.php"); @@ -127,16 +128,16 @@ echo "\n"; echo "\n"; ?> -LIVE INBOUND CALL"; echo "\n"; echo "\n"; diff --git a/agc_2-X/trunk/www/agc/live_exten_check.php b/agc_2-X/trunk/www/agc/live_exten_check.php index a7e0ec66..a4e9036d 100644 --- a/agc_2-X/trunk/www/agc/live_exten_check.php +++ b/agc_2-X/trunk/www/agc/live_exten_check.php @@ -1,7 +1,7 @@ - LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 # # This script is designed purely to send whether the client channel is live and to what channel it is connected # This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table @@ -29,6 +29,7 @@ # 60421-1359 - check GET/POST vars lines with isset to not trigger PHP NOTICES # 60619-1203 - Added variable filters to close security holes for login form # 60825-1029 - Fixed translation variable issue ChannelA +# 90508-0727 - Changed to PHP long tags # require("dbconnect.php"); diff --git a/agc_2-X/trunk/www/agc/manager_send.php b/agc_2-X/trunk/www/agc/manager_send.php index d9a61403..9f19cf07 100644 --- a/agc_2-X/trunk/www/agc/manager_send.php +++ b/agc_2-X/trunk/www/agc/manager_send.php @@ -1,5 +1,5 @@ - LICENSE: AGPLv2 # @@ -85,10 +85,11 @@ # 90303-1144 - Fixed manual dial live hangup bug # 90304-1334 - Added account and usegroupalias and user campaign/in-group specific variables # 90305-1040 - Added agent_dialed_number and type for user_call_log feature +# 90508-0727 - Changed to PHP long tags # -$version = '2.0.5-38'; -$build = '90305-1040'; +$version = '2.2.0-39'; +$build = '90508-0727'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=83; $one_mysql_log=0; diff --git a/agc_2-X/trunk/www/agc/park_calls_display.php b/agc_2-X/trunk/www/agc/park_calls_display.php index d02fc886..58896b3b 100644 --- a/agc_2-X/trunk/www/agc/park_calls_display.php +++ b/agc_2-X/trunk/www/agc/park_calls_display.php @@ -1,7 +1,7 @@ - LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 # # This script is designed purely to send the details on the parked calls on the server # This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table @@ -22,6 +22,7 @@ # 50711-1208 - removed HTTP authentication in favor of user/pass vars # 60421-1111 - check GET/POST vars lines with isset to not trigger PHP NOTICES # 60619-1205 - Added variable filters to close security holes for login form +# 90508-0727 - Changed to PHP long tags # require("dbconnect.php"); diff --git a/agc_2-X/trunk/www/agc/timeclock.php b/agc_2-X/trunk/www/agc/timeclock.php index 29a9f8e3..69abd93e 100644 --- a/agc_2-X/trunk/www/agc/timeclock.php +++ b/agc_2-X/trunk/www/agc/timeclock.php @@ -1,17 +1,18 @@ - LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 # # CHANGELOG # 80523-0134 - First Build # 80524-0225 - Changed event_date to DATETIME, added timestamp field and tcid_link field # 80525-2351 - Added an audit log that is not to be editable # 80602-0641 - Fixed status update bug +# 90508-0727 - Changed to PHP long tags # -$version = '2.0.5-4'; -$build = '80602-0641'; +$version = '2.2.0-5'; +$build = '90508-0727'; $StarTtimE = date("U"); $NOW_TIME = date("Y-m-d H:i:s"); diff --git a/agc_2-X/trunk/www/agc/vdc_db_query.php b/agc_2-X/trunk/www/agc/vdc_db_query.php index 939b75f7..42d85810 100644 --- a/agc_2-X/trunk/www/agc/vdc_db_query.php +++ b/agc_2-X/trunk/www/agc/vdc_db_query.php @@ -1,4 +1,4 @@ - LICENSE: AGPLv2 @@ -197,10 +197,11 @@ # 90324-1316 - Added functions to log calls to Vtiger accounts and update status to siccode # 90327-1348 - Changed Vtiger status populate to use status name # 90408-0021 - Added API vtiger specific callback activity record ability +# 90508-0726 - Changed to PHP long tags # -$version = '2.2.0-108'; -$build = '90408-0021'; +$version = '2.2.0-109'; +$build = '90508-0726'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=212; $one_mysql_log=0; diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index c0213c0f..6fb2d7ba 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -1,4 +1,4 @@ - LICENSE: AGPLv2 @@ -226,10 +226,11 @@ # 90320-0309 - Fixed agent log bug when using wrapup time # 90323-1555 - Initial call to agent phone now has campaign callerIDnumber # 90408-0104 - Added Vtiger callback record ability +# 90508-0727 - Changed to PHP long tags # -$version = '2.2.0-204'; -$build = '90408-0104'; +$version = '2.2.0-205'; +$build = '90508-0727'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=60; $one_mysql_log=0; @@ -580,7 +581,7 @@ if ($LogiNAJAX > 0) } -"; ?> \n"; echo "\n"; @@ -412,195 +414,6 @@ $admin_home_url_LU = $row[0]; ?>
-
FAVORITES       edit
@@ -609,32 +422,32 @@ if (strlen($reports_hh) > 1) { ADMINISTRATION
- - 1) { + 1) { ?> - >>>>>>> - >>>>>>> + - - 1) { if ($sh=='basic') {$sh='list';} @@ -657,149 +470,155 @@ if (strlen($reports_hh) > 1) { else {$listmix_sh=''; $listmix_fc='BLACK';} ?> - > - - > - - > - - > + + > + + > + + 0) { ?> - > - - > - - > - - > + + > + + > + + - > - - > + + - 0) { ?> - - + 1) { if ($LOGdelete_from_dnc > 0) {$DNClink = 'Add-Delete Number From DNC';} else {$DNClink = 'Add Number To DNC';} ?> - >>>>>>>>>> - - - 1) { ?> - >>>> - - 0) { ?> - - + 1) { ?> - >>>> - - - 1) { ?> - >>>>>>>>>>>>>>> - - - 1) { ?> - >>>>>>>> - - - 1) { ?> - >>>> - - - 1) { if ($sh=='times') {$times_sh="bgcolor=\"$times_color\""; $times_fc="$times_font";} # pink @@ -822,38 +641,38 @@ if (strlen($reports_hh) > 1) { else {$status_sh=''; $status_fc='BLACK';} ?> - > - - > - > - > - > - > - > - > - > + > + + > + > + > + > + > + > + > + > - -
WIDTH=160> - SIZE=>Users +
WIDTH=160> + SIZE=>Users
-   >Show Users -
-   >Add A New User -
-   >Copy User -
-   >Search For A User -
-   >User Stats -
-   >User Status -
-   >Time Sheet
+   >Show Users +
+   >Add A New User +
+   >Copy User +
+   >Search For A User +
+   >User Stats +
+   >User Status +
+   >Time Sheet
> - SIZE=>Campaigns +
> + SIZE=>Campaigns
>   SIZE=>Campaigns Main
>   SIZE=>Statuses
>   SIZE=>HotKeys>   SIZE=>Campaigns Main
>   SIZE=>Statuses
>   SIZE=>HotKeys
>   SIZE=>Lead Recycle
>   SIZE=>Auto-Alt Dial
>   SIZE=>List Mix
>   SIZE=>Lead Recycle
>   SIZE=>Auto-Alt Dial
>   SIZE=>List Mix
>   SIZE=>Pause Codes
>   SIZE=>Pause Codes
> SIZE=>Lists
> SIZE=>Lists
  - > Show Lists -
  - > Add A New List -
  - > Search For A Lead -
  - > -
  - > Load New Leads +
  + > Show Lists +
  + > Add A New List +
  + > Search For A Lead +
  + > +
  + > Load New Leads
> - SIZE=> Scripts +
> + SIZE=> Scripts
  - > Show Scripts -
  - > Add A New Script +
  + > Show Scripts +
  + > Add A New Script
> SIZE=> Filters
> SIZE=> Filters
  - > Show Filters -
  - > Add A New Filter +
  + > Show Filters +
  + > Add A New Filter
> - SIZE=> In-Groups +
> + SIZE=> In-Groups
  - > Show In-Groups -
  - > Add A New In-Group -
  - > Copy In-Group -
  - > Show DIDs -
  - > Add A New DID -
  - > Copy DID +
  + > Show In-Groups +
  + > Add A New In-Group +
  + > Copy In-Group +
  + > Show DIDs +
  + > Add A New DID +
  + > Copy DID +
  + > Show Call Menus +
  + > Add A New Call Menu +
  + > Copy Call Menu
> - SIZE=> User Groups +
> + SIZE=> User Groups
  - > Show User Groups -
  - > Add A New User Group -
  - > Group Hourly Report -
  - > Bulk Group Change +
  + > Show User Groups +
  + > Add A New User Group +
  + > Group Hourly Report +
  + > Bulk Group Change
> - SIZE=> Remote Agents +
> + SIZE=> Remote Agents
  - > Show Remote Agents -
  - > Add New Remote Agents +
  + > Show Remote Agents +
  + > Add New Remote Agents
> - SIZE=> Admin +
> + SIZE=> Admin
COLSPAN=2>   - SIZE=> Call Times
>   - SIZE=> Shifts
>   - SIZE=> Phones
>   - SIZE=> Templates
>   - SIZE=> Carriers
>   - SIZE=> Servers
>   - SIZE=> Conferences
>   - SIZE=> System Settings
>   - SIZE=> System Statuses
COLSPAN=2>   + SIZE=> Call Times
>   + SIZE=> Shifts
>   + SIZE=> Phones
>   + SIZE=> Templates
>   + SIZE=> Carriers
>   + SIZE=> Servers
>   + SIZE=> Conferences
>   + SIZE=> System Settings
>   + SIZE=> System Statuses
> - SIZE=> Reports +
> + SIZE=> Reports
- BGCOLOR=#D9E6FE> + BGCOLOR=#D9E6FE> - HEIGHT=15> - +
HOME | Timeclock | Logout  
HEIGHT=15> + @@ -864,63 +683,63 @@ if (strlen($reports_hh) > 1) { - 1) { ?> - > - > + 1) { ?> - > - > + 1) { ?> - > - > + 1) { ?> - > - > + 1) { ?> - > - > + 1) and (strlen($admin_hh) > 1) ) { ?> - > - > + 1) and (strlen($admin_hh) > 1) ) { ?> - > - > + 1) and (strlen($admin_hh) > 1) ) { ?> - > - > + 1) { ?> - > - > + 1) and (!eregi('campaign',$hh) ) ) { ?> - > - > + - > - > + 1) { ?> -> - +> +
HOME | Timeclock | Logout  
>   > Show Campaigns     |     > Add A New Campaign     |     > Copy Campaign     |     > Real-Time Campaigns Summary
>   > Show Campaigns     |     > Add A New Campaign     |     > Copy Campaign     |     > Real-Time Campaigns Summary
  > Show Call Times  | > Add A New Call Time  | > Show State Call Times  | > Add A New State Call Time
  > Show Call Times  | > Add A New Call Time  | > Show State Call Times  | > Add A New State Call Time
  > Show Shifts  | > Add A New Shift
  > Show Shifts  | > Add A New Shift
  > Show Phones  | > Add A New Phone  | > Phone Alias List  | > Add A New Phone Alias  | > Group Alias List  | > Add A New Group Alias
  > Show Phones  | > Add A New Phone  | > Phone Alias List  | > Add A New Phone Alias  | > Group Alias List  | > Add A New Group Alias
  > Show Conferences   |   > Add A New Conference   |   > Show VICIDIAL Conferences   |   > Add A New VICIDIAL Conference
  > Show Conferences   |   > Add A New Conference   |   > Show VICIDIAL Conferences   |   > Add A New VICIDIAL Conference
  > Show Servers   |   > Add A New Server
  > Show Servers   |   > Add A New Server
  > Show Templates   |   > Add A New Template
  > Show Templates   |   > Add A New Template
  > Show Carriers   |   > Add A New Carrier
  > Show Carriers   |   > Add A New Carrier
  > System Settings
  > System Settings
  > System Statuses   |   > Status Categories   |   > QC Status Codes
  > System Statuses   |   > Status Categories   |   > QC Status Codes
  >User Stats   |   >User Status   |   >Time Sheet   |   >Days Status
  >User Stats   |   >User Status   |   >Time Sheet   |   >Days Status
>  
>  
-
-VICIDIAL ADMIN: Lead record modification
\n"; if ($end_call > 0) @@ -731,7 +732,7 @@ echo "\n\n\n


\nscript runtime: $RUNtime seconds
"; - LICENSE: AGPLv2 @@ -18,6 +18,7 @@ # 90121-0500 - Added filter for phone to remove non-digits # 90309-1828 - Added admin_log logging # 90310-2146 - Added admin header +# 90508-0644 - Changed to PHP long tags # require("dbconnect.php"); @@ -107,7 +108,7 @@ $browser = getenv("HTTP_USER_AGENT"); VICIDIAL ADMIN: Lead Search -<? +<?php ##### BEGIN Set variables to make header show properly ##### $ADD = '100'; diff --git a/agc_2-X/trunk/www/vicidial/call_report_export.php b/agc_2-X/trunk/www/vicidial/call_report_export.php index ad092b44..10ce7912 100644 --- a/agc_2-X/trunk/www/vicidial/call_report_export.php +++ b/agc_2-X/trunk/www/vicidial/call_report_export.php @@ -1,4 +1,4 @@ -<? +<?php # call_report_export.php # # displays options to select for downloading of leads and their vicidial_log @@ -11,6 +11,7 @@ # # 90310-2247 - First build # 90330-1343 - Added more debug info, bug fixes +# 90508-0644 - Changed to PHP long tags # require("dbconnect.php"); diff --git a/agc_2-X/trunk/www/vicidial/closer-fronter_popup.php b/agc_2-X/trunk/www/vicidial/closer-fronter_popup.php index 38221d59..891e92f4 100644 --- a/agc_2-X/trunk/www/vicidial/closer-fronter_popup.php +++ b/agc_2-X/trunk/www/vicidial/closer-fronter_popup.php @@ -1,13 +1,14 @@ -<? +<?php # closer-fronter_popup.php # -# Copyright (C) 2008 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 # # this is the closer popup of a specific call that starts recording the call and allows you to go and fetch info on that caller in the local CRM system. # CHANGES # # 60620-1020 - Added variable filtering to eliminate SQL injection attack threat # 61201-1114 - Added lead_id and user to recording_log entry +# 90508-0644 - Changed to PHP long tags # require("dbconnect.php"); @@ -199,7 +200,7 @@ if (eregi('CL_UNIV',$channel_group)) } } </script> - <? + <?php } else { @@ -212,7 +213,7 @@ else <BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0 onLoad="document.forms[0].search_phone.focus(); setTimeout('document.forms[0].search_phone.focus()', 1000); self.focus()"> <CENTER><FONT FACE="Courier" COLOR=BLACK SIZE=3> -<? +<?php $stmt="SELECT count(*) from live_channels where server_ip='$server_ip' and channel='$customer_zap_channel'"; $rslt=mysql_query($stmt, $link); @@ -296,17 +297,17 @@ if (eregi('CL_TEST',$channel_group)) ?> <form action="http://10.10.10.196/vicidial/closer_lookup3.php" method="post"> - <input type=hidden name="fronter" value="<?=$fronter ?>"> - <input type=hidden name="closer" value="<?=$user ?>"> - <input type=hidden name="group" value="<?=$channel_group ?>"> - <input type=hidden name="recording_id" value="<?=$recording_id ?>"> + <input type=hidden name="fronter" value="<?php echo $fronter ?>"> + <input type=hidden name="closer" value="<?php echo $user ?>"> + <input type=hidden name="group" value="<?php echo $channel_group ?>"> + <input type=hidden name="recording_id" value="<?php echo $recording_id ?>"> <table border=0 cellspacing=5 cellpadding=3 align=center width=90%> <tr> <th colspan=2 bgcolor='#666666'><font class='standard_bold' color='white'>COF MW Customer Search</font></th> </tr> <tr bgcolor='#99FF99'> <td align=right width="50%" nowrap><font class='standard_bold'>Phone number</font></td> - <td align=left width="50%" nowrap><input type=text size=10 maxlength=10 name="search_phone" value="<?=$search_phone ?>"></td> + <td align=left width="50%" nowrap><input type=text size=10 maxlength=10 name="search_phone" value="<?php echo $search_phone ?>"></td> </tr> <tr> <th colspan=2 bgcolor='#666666'><input type=submit name="submit_COF" value="SEARCH"></th> @@ -314,7 +315,7 @@ if (eregi('CL_TEST',$channel_group)) </table> </form> <BR><BR> - <? + <?php } if ( (eregi('CL_MWCOF',$channel_group)) or (eregi('MWCOF',$group)) or (eregi('TESTCAMP',$group))) @@ -331,17 +332,17 @@ if ( (eregi('CL_MWCOF',$channel_group)) or (eregi('MWCOF',$group)) or (eregi('TE ?> <form action="http://10.10.99.2/vicidial/closer_lookup4.php" method="post"> - <input type=hidden name="fronter" value="<?=$fronter ?>"> - <input type=hidden name="closer" value="<?=$user ?>"> - <input type=hidden name="group" value="<?=$channel_group ?>"> - <input type=hidden name="recording_id" value="<?=$recording_id ?>"> + <input type=hidden name="fronter" value="<?php echo $fronter ?>"> + <input type=hidden name="closer" value="<?php echo $user ?>"> + <input type=hidden name="group" value="<?php echo $channel_group ?>"> + <input type=hidden name="recording_id" value="<?php echo $recording_id ?>"> <table border=0 cellspacing=5 cellpadding=3 align=center width=90%> <tr> <th colspan=2 bgcolor='#666666'><font class='standard_bold' color='white'>COF MW Customer Search</font></th> </tr> <tr bgcolor='#99FF99'> <td align=right width="50%" nowrap><font class='standard_bold'>Phone number</font></td> - <td align=left width="50%" nowrap><input type=text size=10 maxlength=10 name="search_phone" value="<?=$search_phone ?>"></td> + <td align=left width="50%" nowrap><input type=text size=10 maxlength=10 name="search_phone" value="<?php echo $search_phone ?>"></td> </tr> <tr> <th colspan=2 bgcolor='#666666'><input type=submit name="submit_COF" value="SEARCH"></th> @@ -349,7 +350,7 @@ if ( (eregi('CL_MWCOF',$channel_group)) or (eregi('MWCOF',$group)) or (eregi('TE </table> </form> <BR><BR> - <? + <?php } @@ -383,17 +384,17 @@ if (eregi('CL_GAL',$channel_group)) ?> <form action="http://10.10.99.2/vicidial/closer_lookup4.php" method="post"> - <input type=hidden name="fronter" value="<?=$parked_by ?>"> - <input type=hidden name="closer" value="<?=$user ?>"> - <input type=hidden name="group" value="<?=$channel_group ?>"> - <input type=hidden name="recording_id" value="<?=$recording_id ?>"> + <input type=hidden name="fronter" value="<?php echo $parked_by ?>"> + <input type=hidden name="closer" value="<?php echo $user ?>"> + <input type=hidden name="group" value="<?php echo $channel_group ?>"> + <input type=hidden name="recording_id" value="<?php echo $recording_id ?>"> <table border=0 cellspacing=5 cellpadding=3 align=center width=90%> <tr> <th colspan=2 bgcolor='#666666'><font class='standard_bold' color='white'>COF MW Customer Search</font></th> </tr> - <tr bgcolor="<?=$group_color ?>"> + <tr bgcolor="<?php echo $group_color ?>"> <td align=right width="50%" nowrap><font class='standard_bold'>Phone number</font></td> - <td align=left width="50%" nowrap><input type=text size=10 maxlength=10 name="search_phone" value="<?=$phone ?>"></td> + <td align=left width="50%" nowrap><input type=text size=10 maxlength=10 name="search_phone" value="<?php echo $phone ?>"></td> </tr> <tr> <th colspan=2 bgcolor='#666666'><input type=submit name="submit_COF" value="SEARCH"></th> @@ -404,15 +405,15 @@ if (eregi('CL_GAL',$channel_group)) <!---- <form action="http://10.10.10.196/vicidial/closer_lookup3.php" method="post"> - <input type=hidden name="fronter" value="<?=$parked_by ?>"> - <input type=hidden name="closer" value="<?=$user ?>"> + <input type=hidden name="fronter" value="<?php echo $parked_by ?>"> + <input type=hidden name="closer" value="<?php echo $user ?>"> <table border=0 cellspacing=5 cellpadding=3 align=center width=90%> <tr> <th colspan=2 bgcolor='#666666'><font class='standard_bold' color='white'>NEW COF BlueGreen Customer Search</font></th> </tr> <tr bgcolor='#CCCCCC'> <td align=right width="50%" nowrap><font class='standard_bold'>Phone number</font></td> - <td align=left width="50%" nowrap><input type=text size=10 maxlength=10 name="search_phone" value="<?=$phone ?>"></td> + <td align=left width="50%" nowrap><input type=text size=10 maxlength=10 name="search_phone" value="<?php echo $phone ?>"></td> </tr> <tr> <th colspan=2 bgcolor='#666666'><input type=submit name="submit_COF" value="SEARCH"></th> @@ -422,7 +423,7 @@ if (eregi('CL_GAL',$channel_group)) <BR><BR> ----> - <? + <?php } @@ -434,10 +435,10 @@ if (eregi('CL_UNIV',$channel_group)) ?> <form action="uk_mail_lookup.php" method="post" onSubmit="return CheckForm()"> - <input type=hidden name="fronter" value="<?=$parked_by ?>"> - <input type=hidden name="closer" value="<?=$user ?>"> - <input type=hidden name="group" value="<?=$channel_group ?>"> - <input type=hidden name="recording_id" value="<?=$recording_id ?>"> + <input type=hidden name="fronter" value="<?php echo $parked_by ?>"> + <input type=hidden name="closer" value="<?php echo $user ?>"> + <input type=hidden name="group" value="<?php echo $channel_group ?>"> + <input type=hidden name="recording_id" value="<?php echo $recording_id ?>"> <table border=0 width=80% cellpadding=5 cellspacing=0 align=center> <tr> <th colspan=2 bgcolor='#CCCCCC'><font class='standard_bold'>New Search</font></th> @@ -466,7 +467,7 @@ if (eregi('CL_UNIV',$channel_group)) </form> - <? + <?php } @@ -502,7 +503,7 @@ echo "<font size=0>\n\n\n<br><br><br>\nscript runtime: $RUNtime seconds</font>"; </body> </html> -<? +<?php exit; diff --git a/agc_2-X/trunk/www/vicidial/closer-fronter_popup2.php b/agc_2-X/trunk/www/vicidial/closer-fronter_popup2.php index f9b540de..dac9df76 100644 --- a/agc_2-X/trunk/www/vicidial/closer-fronter_popup2.php +++ b/agc_2-X/trunk/www/vicidial/closer-fronter_popup2.php @@ -1,13 +1,14 @@ -<? +<?php # closer-fronter_popup2.php # -# Copyright (C) 2008 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 # # this is the closer popup of a specific call that starts recording the call and allows you to go and fetch info on that caller in the local CRM system. # CHANGES # # 60620-1025 - Added variable filtering to eliminate SQL injection attack threat # 61201-1114 - Added lead_id and user to recording_log entry +# 90508-0644 - Changed to PHP long tags # require("dbconnect.php"); @@ -213,7 +214,7 @@ if (eregi('CL_UNIV',$channel_group)) } } </script> - <? + <?php } else { @@ -226,7 +227,7 @@ else <BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0 onLoad="document.forms[0].search_phone.focus(); setTimeout('document.forms[0].search_phone.focus()', 1000); self.focus()"> <CENTER><FONT FACE="Courier" COLOR=BLACK SIZE=3> -<? +<?php $stmt="SELECT count(*) from live_channels where server_ip='" . mysql_real_escape_string($server_ip) . "' and channel='" . mysql_real_escape_string($customer_zap_channel) . "'"; $rslt=mysql_query($stmt, $link); @@ -315,17 +316,17 @@ if (eregi('CL',$channel_group)) ?> <form action="http://10.10.10.196/vicidial/closer_lookup3.php" method="post"> - <input type=hidden name="fronter" value="<?=$fronter ?>"> - <input type=hidden name="closer" value="<?=$closer ?>"> - <input type=hidden name="group" value="<?=$channel_group ?>"> - <input type=hidden name="recording_id" value="<?=$recording_id ?>"> + <input type=hidden name="fronter" value="<?php echo $fronter ?>"> + <input type=hidden name="closer" value="<?php echo $closer ?>"> + <input type=hidden name="group" value="<?php echo $channel_group ?>"> + <input type=hidden name="recording_id" value="<?php echo $recording_id ?>"> <table border=0 cellspacing=5 cellpadding=3 align=center width=90%> <tr> <th colspan=2 bgcolor='#666666'><font class='standard_bold' color='white'>COF MW Customer Search</font></th> </tr> - <tr bgcolor="<?=$group_color ?>"> + <tr bgcolor="<?php echo $group_color ?>"> <td align=right width="50%" nowrap><font class='standard_bold'>Phone number</font></td> - <td align=left width="50%" nowrap><input type=text size=10 maxlength=10 name="search_phone" value="<?=$search_phone ?>"></td> + <td align=left width="50%" nowrap><input type=text size=10 maxlength=10 name="search_phone" value="<?php echo $search_phone ?>"></td> </tr> <tr> <th colspan=2 bgcolor='#666666'><input type=submit name="submit_COF" value="SEARCH"></th> @@ -333,7 +334,7 @@ if (eregi('CL',$channel_group)) </table> </form> <BR><BR> - <? + <?php } @@ -349,10 +350,10 @@ if (eregi('UNIV',$channel_group)) ?> <form action="uk_mail_lookup.php" method="post" onSubmit="return CheckForm()"> - <input type=hidden name="fronter" value="<?=$parked_by ?>"> - <input type=hidden name="closer" value="<?=$user ?>"> - <input type=hidden name="group" value="<?=$channel_group ?>"> - <input type=hidden name="recording_id" value="<?=$recording_id ?>"> + <input type=hidden name="fronter" value="<?php echo $parked_by ?>"> + <input type=hidden name="closer" value="<?php echo $user ?>"> + <input type=hidden name="group" value="<?php echo $channel_group ?>"> + <input type=hidden name="recording_id" value="<?php echo $recording_id ?>"> <table border=0 width=80% cellpadding=5 cellspacing=0 align=center> <tr> <th colspan=2 bgcolor='#CCCCCC'><font class='standard_bold'>New Search</font></th> @@ -381,7 +382,7 @@ if (eregi('UNIV',$channel_group)) </form> - <? + <?php } @@ -417,7 +418,7 @@ echo "<font size=0>\n\n\n<br><br><br>\nscript runtime: $RUNtime seconds</font>"; </body> </html> -<? +<?php exit; diff --git a/agc_2-X/trunk/www/vicidial/closer.php b/agc_2-X/trunk/www/vicidial/closer.php index a8f40c47..0e078b70 100644 --- a/agc_2-X/trunk/www/vicidial/closer.php +++ b/agc_2-X/trunk/www/vicidial/closer.php @@ -1,13 +1,14 @@ -<? +<?php # closer.php # -# Copyright (C) 2008 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 # # the purpose of this script and webpage is to allow for remote or local users of the system to log in and grab phone calls that are coming inbound into the Asterisk server and being put in the parked_channels table while they hear a soundfile for a limited amount of time before being forwarded on to either a set extension or a voicemail box. This gives remote or local agents a way to grab calls without tying up their phone lines all day. The agent sees the refreshing screen of calls on park and when they want to take one they just click on it, and a small window opens that will allow them to grab the call and/or look up more information on the caller through the callerID that is given(if available) # CHANGES # # 60620-1032 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page +# 90508-0644 - Changed to PHP long tags # require("dbconnect.php"); @@ -128,7 +129,7 @@ $color_class[9] = 'orange'; <BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0> <CENTER><FONT FACE="Courier" COLOR=BLACK SIZE=3> -<? +<?php $group_selected = count($groupselect); if (!$dialplan_number) @@ -339,7 +340,7 @@ echo "<font size=0>\n\n\n<br><br><br>\nscript runtime: $RUNtime seconds</font>"; </body> </html> -<? +<?php exit; diff --git a/agc_2-X/trunk/www/vicidial/closer_dispo.php b/agc_2-X/trunk/www/vicidial/closer_dispo.php index 099addb4..002f4798 100644 --- a/agc_2-X/trunk/www/vicidial/closer_dispo.php +++ b/agc_2-X/trunk/www/vicidial/closer_dispo.php @@ -1,7 +1,7 @@ -<? +<?php # closer_dispo.php # -# Copyright (C) 2008 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 # # this is the closer disposition screen of a call that has been grabbed. This # allows the closer to modify customer information and disposition the call @@ -9,6 +9,7 @@ # CHANGES # # 60619-1641 - Added variable filtering to eliminate SQL injection attack threat +# 90508-0644 - Changed to PHP long tags # require("dbconnect.php"); @@ -143,14 +144,14 @@ $browser = getenv("HTTP_USER_AGENT"); <html> <head> <title>VICIDIAL CLOSER: Call Disposition -\n"; ?>
- 0) { @@ -317,7 +318,7 @@ echo "\n\n\n


\nscript runtime: $RUNtime seconds
"; - LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 # # this is the closer popup of a specific call that grabs the call and allows you # to go and fetch info on that caller in the local CRM system. @@ -9,6 +9,7 @@ # CHANGES # # 60620-1029 - Added variable filtering to eliminate SQL injection attack threat +# 90508-0644 - Changed to PHP long tags # require("dbconnect.php"); @@ -139,7 +140,7 @@ if (eregi('CL_UNIV',$channel_group)) } } -
-
- - - - + + + + - + @@ -254,7 +255,7 @@ if (eregi('CL_TEST',$channel_group))
COF MW Customer Search
Phone number


-
- - - - + + + + - + @@ -289,7 +290,7 @@ if (eregi('CL_MWCOF',$channel_group))
COF MW Customer Search
Phone number


-
- - - - + + + + - + - + @@ -344,15 +345,15 @@ if (eregi('CL_GAL',$channel_group)) - - - - - + + + +
COF MW Customer Search
Phone number
@@ -406,7 +407,7 @@ if (eregi('CL_UNIV',$channel_group)) - \n\n\n


\nscript runtime: $RUNtime seconds"; - LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 # if ( file_exists("/etc/astguiclient.conf") ) { diff --git a/agc_2-X/trunk/www/vicidial/fcstats.php b/agc_2-X/trunk/www/vicidial/fcstats.php index 99880305..0998892e 100644 --- a/agc_2-X/trunk/www/vicidial/fcstats.php +++ b/agc_2-X/trunk/www/vicidial/fcstats.php @@ -1,4 +1,4 @@ - LICENSE: AGPLv2 @@ -11,6 +11,7 @@ # 71228-1140 - added percentages, cross-day start/stop # 80328-1139 - adapted for basic fronter/closer stats # 90310-2132 - Added admin header +# 90508-0644 - Changed to PHP long tags # require("dbconnect.php"); @@ -80,7 +81,7 @@ while ($i < $groups_to_print) --> -\n"; echo "VICIDIAL: In-Group Fronter-Closer Stats\n"; diff --git a/agc_2-X/trunk/www/vicidial/group_hourly_stats.php b/agc_2-X/trunk/www/vicidial/group_hourly_stats.php index 4c2086c1..2f6710e3 100644 --- a/agc_2-X/trunk/www/vicidial/group_hourly_stats.php +++ b/agc_2-X/trunk/www/vicidial/group_hourly_stats.php @@ -1,4 +1,4 @@ - LICENSE: AGPLv2 @@ -8,6 +8,7 @@ # 60620-1014 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page # 90310-2138 - Added admin header +# 90508-0644 - Changed to PHP long tags # require("dbconnect.php"); @@ -107,7 +108,7 @@ $browser = getenv("HTTP_USER_AGENT"); VICIDIAL ADMIN: Group Hourly Stats -<? +<?php ##### BEGIN Set variables to make header show properly ##### $ADD = '311111'; @@ -133,12 +134,12 @@ require("admin_header.php"); <CENTER> -<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B>   Group Hourly Stats <? echo $group ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B>   </TD></TR> +<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B>   Group Hourly Stats <?php echo $group ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B>   </TD></TR> -<? +<?php if ( ($group) and ($status) and ($date_with_hour) ) { @@ -260,7 +261,7 @@ echo "<font size=0>\n\n\n<br><br><br>\nscript runtime: $RUNtime seconds</font>"; </body> </html> -<? +<?php exit; diff --git a/agc_2-X/trunk/www/vicidial/list_download.php b/agc_2-X/trunk/www/vicidial/list_download.php index acd472d6..e6153a4b 100644 --- a/agc_2-X/trunk/www/vicidial/list_download.php +++ b/agc_2-X/trunk/www/vicidial/list_download.php @@ -1,4 +1,4 @@ -<? +<?php # list_download.php # # downloads the entire contents of a vicidial list ID to a flat text file @@ -9,6 +9,7 @@ # CHANGES # # 90209-1310 - First build +# 90508-0644 - Changed to PHP long tags # require("dbconnect.php"); diff --git a/agc_2-X/trunk/www/vicidial/listloaderMAIN.php b/agc_2-X/trunk/www/vicidial/listloaderMAIN.php index 555c4b0d..acd614fb 100644 --- a/agc_2-X/trunk/www/vicidial/listloaderMAIN.php +++ b/agc_2-X/trunk/www/vicidial/listloaderMAIN.php @@ -1,7 +1,7 @@ -<? +<?php # listloaderMAIN.php # -# Copyright (C) 2008 Matt Florell,Joe Johnson <vicidial@gmail.com> LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell,Joe Johnson <vicidial@gmail.com> LICENSE: AGPLv2 # # this is the main frame page for the lead loading section. This is where you # would upload a file and have it inserted into vicidial_list @@ -9,6 +9,7 @@ # changes: # 60620-1149 - Added variable filtering to eliminate SQL injection attack threat # 60822-1105 - fixed for nonwritable directories +# 90508-0644 - Changed to PHP long tags # require("dbconnect.php"); diff --git a/agc_2-X/trunk/www/vicidial/log_test.php b/agc_2-X/trunk/www/vicidial/log_test.php index 806c90bc..30727891 100644 --- a/agc_2-X/trunk/www/vicidial/log_test.php +++ b/agc_2-X/trunk/www/vicidial/log_test.php @@ -1,7 +1,7 @@ -<? +<?php # log_test.php # -# Copyright (C) 2008 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 # diff --git a/agc_2-X/trunk/www/vicidial/new_listloader_superL.php b/agc_2-X/trunk/www/vicidial/new_listloader_superL.php index 32cf6850..095182fb 100644 --- a/agc_2-X/trunk/www/vicidial/new_listloader_superL.php +++ b/agc_2-X/trunk/www/vicidial/new_listloader_superL.php @@ -1,4 +1,4 @@ -<? +<?php # new_listloader_superL.php # # Copyright (C) 2009 Matt Florell,Joe Johnson <vicidial@gmail.com> LICENSE: AGPLv2 @@ -25,11 +25,12 @@ # 81011-2009 - a few bug fixes # 90309-1831 - Added admin_log logging # 90310-2128 - Added admin header +# 90508-0644 - Changed to PHP long tags # # make sure vicidial_list exists and that your file follows the formatting correctly. This page does not dedupe or do any other lead filtering actions yet at this time. -$version = '2.0.5-29'; -$build = '90310-2128'; +$version = '2.0.5-30'; +$build = '90508-0644'; require("dbconnect.php"); @@ -321,7 +322,7 @@ function ParseFileName() { </head> <BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0> -<? +<?php $short_header=1; require("admin_header.php"); @@ -330,21 +331,21 @@ echo "<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>"; ?> -<form action=<?=$PHP_SELF ?> method=post onSubmit="ParseFileName()" enctype="multipart/form-data"> -<input type=hidden name='leadfile_name' value="<?=$leadfile_name ?>"> -<? if ($file_layout!="custom") { ?> +<form action=<?php echo $PHP_SELF ?> method=post onSubmit="ParseFileName()" enctype="multipart/form-data"> +<input type=hidden name='leadfile_name' value="<?php echo $leadfile_name ?>"> +<?php if ($file_layout!="custom") { ?> <table align=center width="700" border=0 cellpadding=5 cellspacing=0 bgcolor=#D9E6FE> <tr> <td align=right width="35%"><B><font face="arial, helvetica" size=2>Load leads from this file:</font></B></td> - <td align=left width="65%"><input type=file name="leadfile" value="<?=$leadfile ?>"> <? echo "$NWB#vicidial_list_loader$NWE"; ?></td> + <td align=left width="65%"><input type=file name="leadfile" value="<?php echo $leadfile ?>"> <?php echo "$NWB#vicidial_list_loader$NWE"; ?></td> </tr> <tr> <td align=right width="25%"><font face="arial, helvetica" size=2>List ID Override: </font></td> - <td align=left width="75%"><font face="arial, helvetica" size=1><input type=text value="<?=$list_id_override ?>" name='list_id_override' size=10 maxlength=8> (numbers only or leave blank for values in the file)</td> + <td align=left width="75%"><font face="arial, helvetica" size=1><input type=text value="<?php echo $list_id_override ?>" name='list_id_override' size=10 maxlength=8> (numbers only or leave blank for values in the file)</td> </tr> <tr> <td align=right width="25%"><font face="arial, helvetica" size=2>Phone Code Override: </font></td> - <td align=left width="75%"><font face="arial, helvetica" size=1><input type=text value="<?=$phone_code_override ?>" name='phone_code_override' size=8 maxlength=6> (numbers only or leave blank for values in the file)</td> + <td align=left width="75%"><font face="arial, helvetica" size=1><input type=text value="<?php echo $phone_code_override ?>" name='phone_code_override' size=8 maxlength=6> (numbers only or leave blank for values in the file)</td> </tr> <tr> <td align=right><B><font face="arial, helvetica" size=2>File layout to use:</font></B></td> @@ -366,11 +367,11 @@ echo "<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>"; <tr> <td align=center colspan=2><input type=submit value="SUBMIT" name='submit_file'>        <input type=button onClick="javascript:document.location='new_listloader_superL.php'" value="START OVER" name='reload_page'></td> </tr> - <tr><td align=left><font size=1>         <a href="admin.php?ADD=100" target="_parent">BACK TO ADMIN</a></font></td><td align=right><font size=1>LIST LOADER-     VERSION: <?=$version ?>     BUILD: <?=$build ?>     </td></tr> + <tr><td align=left><font size=1>         <a href="admin.php?ADD=100" target="_parent">BACK TO ADMIN</a></font></td><td align=right><font size=1>LIST LOADER-     VERSION: <?php echo $version ?>     BUILD: <?php echo $build ?>     </td></tr> </table> -<? } ?> +<?php } ?> -<? +<?php if ($OK_to_process) { print "<script language='JavaScript1.2'>document.forms[0].leadfile.disabled=true;document.forms[0].list_id_override.disabled=true;document.forms[0].phone_code_override.disabled=true; document.forms[0].submit_file.disabled=true; document.forms[0].reload_page.disabled=true;</script>"; @@ -1425,7 +1426,7 @@ if ($leadfile) { -<? +<?php exit; diff --git a/agc_2-X/trunk/www/vicidial/non_agent_api.php b/agc_2-X/trunk/www/vicidial/non_agent_api.php index 2150a425..7fef6bd8 100644 --- a/agc_2-X/trunk/www/vicidial/non_agent_api.php +++ b/agc_2-X/trunk/www/vicidial/non_agent_api.php @@ -1,4 +1,4 @@ -<? +<?php # non_agent_api.php # # Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 @@ -20,10 +20,11 @@ # 80910-0020 - Added support for multi-alt-phones, added version function # 90118-1056 - Added logging of API functions # 90428-0209 - Added blind_monitor function +# 90508-0642 - Changed to PHP long tags # -$version = '2.2.0-6'; -$build = '90428-0209'; +$version = '2.2.0-7'; +$build = '90508-0642'; require("dbconnect.php"); diff --git a/agc_2-X/trunk/www/vicidial/phone_stats.php b/agc_2-X/trunk/www/vicidial/phone_stats.php index 8a3f186d..6a7ee6aa 100644 --- a/agc_2-X/trunk/www/vicidial/phone_stats.php +++ b/agc_2-X/trunk/www/vicidial/phone_stats.php @@ -1,13 +1,14 @@ -<? +<?php # phone_stats.php.php # -# Copyright (C) 2008 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 # # # changes: # 60620-1333 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page # 60927-1548 - Changed to vicidial_users for authentication +# 90508-0644 - Changed to PHP long tags # require("dbconnect.php"); @@ -97,14 +98,14 @@ $browser = getenv("HTTP_USER_AGENT"); </head> <BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0> <CENTER> -<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B>   VICIDIAL ADMIN: Administration</TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?>   </TD></TR> -<TR BGCOLOR=#F0F5FE><TD ALIGN=LEFT COLSPAN=2><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1><B>   <a href="<? echo $admin_page ?>?ADD=10000000000"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>LIST ALL PHONES</a> | <a href="<? echo $admin_page ?>?ADD=11111111111"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>ADD A NEW PHONE</a> | <a href="<? echo $admin_page ?>?ADD=551"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>SEARCH FOR A PHONE</a> | <a href="<? echo $admin_page ?>?ADD=111111111111"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>ADD A SERVER</a> | <a href="<? echo $admin_page ?>?ADD=100000000000"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>LIST ALL SERVERS</a></TD></TR> -<TR BGCOLOR=#F0F5FE><TD ALIGN=LEFT COLSPAN=2><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1><B>   <a href="<? echo $admin_page ?>?ADD=1000000000000"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>SHOW ALL CONFERENCES</a> | <a href="<? echo $admin_page ?>?ADD=1111111111111"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>ADD A NEW CONFERENCE</a></TD></TR> +<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B>   VICIDIAL ADMIN: Administration</TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo date("l F j, Y G:i:s A") ?>   </TD></TR> +<TR BGCOLOR=#F0F5FE><TD ALIGN=LEFT COLSPAN=2><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1><B>   <a href="<?php echo $admin_page ?>?ADD=10000000000"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>LIST ALL PHONES</a> | <a href="<?php echo $admin_page ?>?ADD=11111111111"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>ADD A NEW PHONE</a> | <a href="<?php echo $admin_page ?>?ADD=551"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>SEARCH FOR A PHONE</a> | <a href="<?php echo $admin_page ?>?ADD=111111111111"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>ADD A SERVER</a> | <a href="<?php echo $admin_page ?>?ADD=100000000000"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>LIST ALL SERVERS</a></TD></TR> +<TR BGCOLOR=#F0F5FE><TD ALIGN=LEFT COLSPAN=2><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1><B>   <a href="<?php echo $admin_page ?>?ADD=1000000000000"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>SHOW ALL CONFERENCES</a> | <a href="<?php echo $admin_page ?>?ADD=1111111111111"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>ADD A NEW CONFERENCE</a></TD></TR> -<? +<?php echo "<TR BGCOLOR=\"#F0F5FE\"><TD ALIGN=LEFT COLSPAN=2><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2><B>   \n"; @@ -231,7 +232,7 @@ echo "<font size=0>\n\n\n<br><br><br>\nscript runtime: $RUNtime seconds</font>"; </body> </html> -<? +<?php exit; diff --git a/agc_2-X/trunk/www/vicidial/record_conf_1_hour.php b/agc_2-X/trunk/www/vicidial/record_conf_1_hour.php index e6499b60..0de6813b 100644 --- a/agc_2-X/trunk/www/vicidial/record_conf_1_hour.php +++ b/agc_2-X/trunk/www/vicidial/record_conf_1_hour.php @@ -1,7 +1,7 @@ -<? +<?php # record_conf_1_hour.php # -# Copyright (C) 2008 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 # # grab: $server_ip $station $session_id # @@ -9,6 +9,7 @@ # # 60620-1011 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page +# 90508-0644 - Changed to PHP long tags # require("dbconnect.php"); @@ -103,14 +104,14 @@ $browser = getenv("HTTP_USER_AGENT"); <html> <head> <title>VICIDIAL RECORD CONFERENCE: 1 hour -\n"; ?>
- 8) && (strlen($session_id) > 3) && (strlen($station) > 3) ) diff --git a/agc_2-X/trunk/www/vicidial/recording_lookup.php b/agc_2-X/trunk/www/vicidial/recording_lookup.php index 80a63cc0..1b662b20 100644 --- a/agc_2-X/trunk/www/vicidial/recording_lookup.php +++ b/agc_2-X/trunk/www/vicidial/recording_lookup.php @@ -1,4 +1,4 @@ - -
\n"; diff --git a/agc_2-X/trunk/www/vicidial/recording_lookup_DIRECT.php b/agc_2-X/trunk/www/vicidial/recording_lookup_DIRECT.php index 5db6f1e0..79c819be 100644 --- a/agc_2-X/trunk/www/vicidial/recording_lookup_DIRECT.php +++ b/agc_2-X/trunk/www/vicidial/recording_lookup_DIRECT.php @@ -1,4 +1,4 @@ - LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 # # this is the remote agent disposition screen for calls sent to remote agents. # This allows the remote agent to modify customer information and disposition @@ -10,6 +10,7 @@ # CHANGES # # 60619-1626 - Added variable filtering to eliminate SQL injection attack threat +# 90508-0644 - Changed to PHP long tags # @@ -160,14 +161,14 @@ $browser = getenv("HTTP_USER_AGENT"); VICIDIAL REMOTE: Call Disposition -\n"; ?>
-"; @@ -315,7 +316,7 @@ echo "\n\n\n


\nscript runtime: $RUNtime seconds
"; - LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 # # CHANGES # # 80502-0857 - First build # 80506-0228 - Added user field to search by +# 90508-0644 - Changed to PHP long tags # require("dbconnect.php"); @@ -172,7 +173,7 @@ while ($i < $user_groups_to_print) - LICENSE: AGPLv2 @@ -8,6 +8,7 @@ # 80624-1342 - First build # 80701-1323 - functional beta version done # 90310-2109 - Added admin header +# 90508-0644 - Changed to PHP long tags # header ("Content-type: text/html; charset=utf-8"); @@ -216,7 +217,7 @@ $browser = getenv("HTTP_USER_AGENT"); VICIDIAL ADMIN: Timeclock Record Edit -<? +<?php ##### BEGIN Set variables to make header show properly ##### $ADD = '3'; @@ -243,9 +244,9 @@ require("admin_header.php"); <CENTER> -<TABLE WIDTH=720 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B>Timeclock Record Edit for <? echo $user ?></TD><TD ALIGN=RIGHT>   </TD></TR> +<TABLE WIDTH=720 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B>Timeclock Record Edit for <?php echo $user ?></TD><TD ALIGN=RIGHT>   </TD></TR> -<? +<?php echo "<TR BGCOLOR=\"#F0F5FE\"><TD ALIGN=LEFT COLSPAN=2><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=3><B>   \n"; @@ -468,7 +469,7 @@ echo "ERROR! You cannot edit this timeclock record: $timeclock_id\n"; </body> </html> -<? +<?php exit; diff --git a/agc_2-X/trunk/www/vicidial/timeclock_report.php b/agc_2-X/trunk/www/vicidial/timeclock_report.php index 1c67b95d..fd92f208 100644 --- a/agc_2-X/trunk/www/vicidial/timeclock_report.php +++ b/agc_2-X/trunk/www/vicidial/timeclock_report.php @@ -1,4 +1,4 @@ -<? +<?php # timeclock_report.php # # Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 @@ -9,6 +9,7 @@ # 80617-1416 - Fixed totals tally bug # 80707-0754 - Fixed groups bug, changed formatting # 90310-2059 - Added admin header +# 90508-0644 - Changed to PHP long tags # require("dbconnect.php"); @@ -136,7 +137,7 @@ while ($i < $user_groups_to_print) <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <TITLE>VICIDIAL: User Timeclock Report -<? +<?php ##### BEGIN Set variables to make header show properly ##### $ADD = '311111'; diff --git a/agc_2-X/trunk/www/vicidial/timeclock_status.php b/agc_2-X/trunk/www/vicidial/timeclock_status.php index 7876b189..aab6361e 100644 --- a/agc_2-X/trunk/www/vicidial/timeclock_status.php +++ b/agc_2-X/trunk/www/vicidial/timeclock_status.php @@ -1,4 +1,4 @@ -<? +<?php # timeclock_status.php # # Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 @@ -8,6 +8,7 @@ # 80602-0201 - First Build # 80603-1500 - formatting changes # 90310-2103 - Added admin header +# 90508-0644 - Changed to PHP long tags # header ("Content-type: text/html; charset=utf-8"); @@ -142,7 +143,7 @@ if (strlen($user_group) > 0) <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <title>VICIDIAL ADMIN: Timeclock Status -<? +<?php ##### BEGIN Set variables to make header show properly ##### $ADD = '311111'; @@ -169,8 +170,8 @@ require("admin_header.php"); ?> <CENTER> <TABLE WIDTH=750 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT> -<FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B>Timeclock Status for <? echo $user_group ?></TD><TD ALIGN=RIGHT>             -<? +<FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B>Timeclock Status for <?php echo $user_group ?></TD><TD ALIGN=RIGHT>             +<?php echo "<a href=\"./timeclock_report.php\"><FONT FACE=\"ARIAL,HELVETICA\" COLOR=WHITE SIZE=2><B>TIMECLOCK REPORT</a> | "; echo "<a href=\"./admin.php?ADD=311111&user_group=$user_group\"><FONT FACE=\"ARIAL,HELVETICA\" COLOR=WHITE SIZE=2><B>USER GROUP</a>\n"; ?> @@ -179,7 +180,7 @@ echo "<a href=\"./admin.php?ADD=311111&user_group=$user_group\"><FONT FACE=\"ARI -<? +<?php echo "<TR BGCOLOR=\"#F0F5FE\"><TD ALIGN=LEFT COLSPAN=2><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2><B>   \n"; @@ -352,6 +353,7 @@ while ($users_to_print > $o) {$bgcolor[$o]='bgcolor="#66CC66"';} # green } + $s++; echo "<tr $bgcolor[$o]>"; echo "<td><font size=1>$s</td>"; echo "<td><font size=2><a href=\"./user_status.php?user=$users[$o]\">$users[$o]</a></td>"; @@ -365,8 +367,6 @@ while ($users_to_print > $o) if (strlen($Tstatus[$o])>0) {$TOTlogin_sec = ($TOTlogin_sec + $Tlogin_sec[$o]);} - - $s++; } $o++; } @@ -410,7 +410,7 @@ echo "<font size=0>\n\n\n<br><br><br>\nscript runtime: $RUNtime seconds</font>"; </body> </html> -<? +<?php exit; @@ -534,7 +534,7 @@ echo "<font size=0>\n\n\n<br><br><br>\nscript runtime: $RUNtime seconds</font>"; </body> </html> -<? +<?php exit; diff --git a/agc_2-X/trunk/www/vicidial/user_group_bulk_change.php b/agc_2-X/trunk/www/vicidial/user_group_bulk_change.php index 69ba1be8..d6d4c1ae 100644 --- a/agc_2-X/trunk/www/vicidial/user_group_bulk_change.php +++ b/agc_2-X/trunk/www/vicidial/user_group_bulk_change.php @@ -1,4 +1,4 @@ -<? +<?php # user_group_bulk_change.php # # Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 @@ -7,6 +7,7 @@ # 81119-0918 - First build # 90309-1830 - Added admin_log logging # 90310-2144 - Added admin header +# 90508-0644 - Changed to PHP long tags # header ("Content-type: text/html; charset=utf-8"); @@ -122,7 +123,7 @@ while ($i < $groups_to_print) <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <title>VICIDIAL ADMIN: User Group Bulk Change -<? +<?php ##### BEGIN Set variables to make header show properly ##### $ADD = '311111'; @@ -155,7 +156,7 @@ require("admin_header.php"); -<? +<?php echo "<TR BGCOLOR=\"#F0F5FE\"><TD ALIGN=LEFT COLSPAN=2><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=3><B>   \n"; @@ -259,7 +260,7 @@ echo "|$stage|$group|"; </body> </html> -<? +<?php exit; diff --git a/agc_2-X/trunk/www/vicidial/user_stats.php b/agc_2-X/trunk/www/vicidial/user_stats.php index 9d997613..cb82dbe5 100644 --- a/agc_2-X/trunk/www/vicidial/user_stats.php +++ b/agc_2-X/trunk/www/vicidial/user_stats.php @@ -1,4 +1,4 @@ -<? +<?php # user_stats.php # # Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 @@ -17,6 +17,7 @@ # 90208-0504 - Added link to multi-day report and fixed call status summary section # 90305-1226 - Added user_call_log manual dial logs # 90310-0734 - Added admin header +# 90508-0644 - Changed to PHP long tags # header ("Content-type: text/html; charset=utf-8"); @@ -103,7 +104,7 @@ $browser = getenv("HTTP_USER_AGENT"); <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <title>VICIDIAL ADMIN: User Stats -<? +<?php ##### BEGIN Set variables to make header show properly ##### @@ -129,12 +130,12 @@ require("admin_header.php"); ?> -<TABLE WIDTH=770 BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR BGCOLOR=#E6E6E6><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" SIZE=2><B>   User Stats for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" SIZE=2>   </TD></TR> +<TABLE WIDTH=770 BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR BGCOLOR=#E6E6E6><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" SIZE=2><B>   User Stats for <?php echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" SIZE=2>   </TD></TR> -<? +<?php echo "<TR BGCOLOR=\"#F0F5FE\"><TD ALIGN=LEFT COLSPAN=2><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2><B>   \n"; @@ -676,7 +677,7 @@ echo "<font size=0>\n\n\n<br><br><br>\nscript runtime: $RUNtime seconds</font>"; </body> </html> -<? +<?php exit; diff --git a/agc_2-X/trunk/www/vicidial/user_status.php b/agc_2-X/trunk/www/vicidial/user_status.php index ea20ef2f..15919670 100644 --- a/agc_2-X/trunk/www/vicidial/user_status.php +++ b/agc_2-X/trunk/www/vicidial/user_status.php @@ -1,4 +1,4 @@ -<? +<?php # user_status.php # # Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 @@ -10,6 +10,7 @@ # 81118-1034 - Disabled change campaign because it does not work # 90208-0511 - Added link to user multi-day status report # 90310-0741 - Added admin header +# 90508-0644 - Changed to PHP long tags # header ("Content-type: text/html; charset=utf-8"); @@ -168,7 +169,7 @@ while ($i < $groups_to_print) <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <title>VICIDIAL ADMIN: User Status -<? +<?php ##### BEGIN Set variables to make header show properly ##### @@ -194,12 +195,12 @@ require("admin_header.php"); ?> -<TABLE WIDTH=<? echo $page_width ?> BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR BGCOLOR=#E6E6E6><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" SIZE=2><B>   User Status for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" SIZE=2><B>   </TD></TR> +<TABLE WIDTH=<?php echo $page_width ?> BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR BGCOLOR=#E6E6E6><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" SIZE=2><B>   User Status for <?php echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" SIZE=2><B>   </TD></TR> -<? +<?php echo "<TR BGCOLOR=\"#F0F5FE\"><TD ALIGN=LEFT COLSPAN=2><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=3><B>   \n"; @@ -497,7 +498,7 @@ echo "|$stage|$group|"; </body> </html> -<? +<?php exit; diff --git a/agc_2-X/trunk/www/vicidial/vdremote.php b/agc_2-X/trunk/www/vicidial/vdremote.php index 260c78c1..e74c16c2 100644 --- a/agc_2-X/trunk/www/vicidial/vdremote.php +++ b/agc_2-X/trunk/www/vicidial/vdremote.php @@ -1,20 +1,21 @@ -<? +<?php # vdremote.php # # make sure you have added a user to the vicidial_users MySQL table with at # least user_level 4 to access this page the first time # -# Copyright (C) 2008 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2 # # Changes # 50307-1721 - First version # 51123-1502 - removed requirement of PHP Globals=on # 60421-1229 - check GET/POST vars lines with isset to not trigger PHP NOTICES # 60619-1603 - Added variable filtering to eliminate SQL injection attack threat +# 90508-0644 - Changed to PHP long tags # $version = '1.1.12'; -$build = '60619-1603'; +$build = '90508-0644'; require("dbconnect.php"); @@ -159,7 +160,7 @@ echo "<!-- VERSION: $version BUILD: $build -->\n"; .orange {color: black; background-color: orange} --> </STYLE> -<? +<?php echo "<title>VICIDIAL REMOTE AGENTS: $LOGfullname - $PHP_AUTH_USER "; if (!$ADD) {$ADD="31111";} @@ -244,12 +245,12 @@ if (strlen($ADD)>4) </head> <BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0> <CENTER> -<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B>   VICIDIAL REMOTE AGENTS: <? echo "$PHP_AUTH_USER " ?>   <a href="<? echo $PHP_SELF ?>?force_logout=1"><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=1>Logout</a></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?>   </TD></TR> -<TR BGCOLOR=#F0F5FE><TD ALIGN=LEFT COLSPAN=2><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>   <a href="./vdremote.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>MODIFY</a> | <a href="./vdremote.php?ADD=61111&user=<? echo "$PHP_AUTH_USER" ?>"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>STATUS</a> | <a href="./vdremote.php?ADD=71111&user=<? echo "$PHP_AUTH_USER" ?>"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>INBOUND STATS</a></TD></TR> +<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B>   VICIDIAL REMOTE AGENTS: <?php echo "$PHP_AUTH_USER " ?>   <a href="<?php echo $PHP_SELF ?>?force_logout=1"><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=1>Logout</a></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo date("l F j, Y G:i:s A") ?>   </TD></TR> +<TR BGCOLOR=#F0F5FE><TD ALIGN=LEFT COLSPAN=2><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>   <a href="./vdremote.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>MODIFY</a> | <a href="./vdremote.php?ADD=61111&user=<?php echo "$PHP_AUTH_USER" ?>"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>STATUS</a> | <a href="./vdremote.php?ADD=71111&user=<?php echo "$PHP_AUTH_USER" ?>"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>INBOUND STATS</a></TD></TR> <TR><TD ALIGN=LEFT COLSPAN=2> -<? +<?php @@ -590,7 +591,7 @@ echo "<font size=0>\n\n\n<br><br><br>\nscript runtime: $RUNtime seconds</font>"; </body> </html> -<? +<?php exit; diff --git a/agc_2-X/trunk/www/vicidial/vicidial_sales_viewer.php b/agc_2-X/trunk/www/vicidial/vicidial_sales_viewer.php index 21e65a96..31f9d34a 100644 --- a/agc_2-X/trunk/www/vicidial/vicidial_sales_viewer.php +++ b/agc_2-X/trunk/www/vicidial/vicidial_sales_viewer.php @@ -1,4 +1,4 @@ -<? header("Pragma: no-cache"); +<?php header("Pragma: no-cache"); # # vicidial_sales_viewer.php - VICIDIAL administration page # @@ -8,6 +8,7 @@ # CHANGES # 80310-1500 - first build # 90310-2135 - Added admin header +# 90508-0644 - Changed to PHP long tags # if (isset($_GET["dcampaign"])) {$dcampaign=$_GET["dcampaign"];} @@ -28,7 +29,7 @@ if (isset($_GET["forc"])) {$forc=$_GET["forc"];} <head> <title>VICIDIAL recent sales lookup - @@ -54,7 +55,7 @@ function GatherListIDs() { -
New Search
"; ?> -
+ @@ -74,7 +75,7 @@ echo "
"; - -
Select a VICIDIAL campaign:
"; } ?> -
"; ?>
Select list ID(s) # (optional):
"; ?>
@@ -140,7 +141,7 @@ echo "
";
** - sorted by call date
- LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 # # # CHANGES # # 61220-1050 - First Build # 70115-1246 - Added ability to define an exten to play +# 90508-0644 - Changed to PHP long tags # require("dbconnect.php"); @@ -130,14 +131,14 @@ while ($campaigns_to_print > $o) VICIDIAL VOICE LAB: Admin -\n"; ?>
- 0) { if ( (strlen($server_ip) > 6) && (strlen($session_id) > 6) && (strlen($campaign_id) > 2) ) diff --git a/agc_2-X/trunk/www/vicidial/vtiger_search.php b/agc_2-X/trunk/www/vicidial/vtiger_search.php index fa38bfed..14d37e68 100644 --- a/agc_2-X/trunk/www/vicidial/vtiger_search.php +++ b/agc_2-X/trunk/www/vicidial/vtiger_search.php @@ -1,4 +1,4 @@ - LICENSE: AGPLv2 @@ -847,7 +847,7 @@ echo "Click here to go to the Vtiger home page\n"; - LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 # # You will need to customize this to your needs # # CHANGELOG: # 80626-1121 - First Build +# 90508-0644 - Changed to PHP long tags # if (isset($_GET["phone_number"])) {$phone_number=$_GET["phone_number"];} diff --git a/agc_2-X/trunk/www/vicidial/welcome.php b/agc_2-X/trunk/www/vicidial/welcome.php index 4f88dfc2..7f7f9c0d 100644 --- a/agc_2-X/trunk/www/vicidial/welcome.php +++ b/agc_2-X/trunk/www/vicidial/welcome.php @@ -1,4 +1,4 @@ - LICENSE: AGPLv2 diff --git a/agc_2-X/trunk/www/vicidial/welcome_demo.php b/agc_2-X/trunk/www/vicidial/welcome_demo.php index 57aacf0a..f70fd803 100644 --- a/agc_2-X/trunk/www/vicidial/welcome_demo.php +++ b/agc_2-X/trunk/www/vicidial/welcome_demo.php @@ -1,4 +1,4 @@ -