diff --git a/agc_2-X/trunk/UPGRADE b/agc_2-X/trunk/UPGRADE index d8b4a2da..b6cd2912 100644 --- a/agc_2-X/trunk/UPGRADE +++ b/agc_2-X/trunk/UPGRADE @@ -132,6 +132,27 @@ OTHER CHANGES: inbound call and have their active lead change to a search result lead that they select. +32. Added inbound email to queue to agent features. To enable, you must add an + "E" keepalive to ONLY ONE of your servers. You will also need to enable + email in System Settings. You also need the following perl cpan modules + installed: + install LWP::UserAgent + install HTML::Entities + install HTML::Strip + install HTML::FormatText + install HTML::TreeBuilder + install Switch + install Time::Local + install MIME::Decoder + install Mail::POP3Client + install Mail::IMAPClient + install Mail::Message + install IO::Socket::SSL + Also, the inbound email parser must be added to the crontab of ONLY ONE + server: + ### inbound email parser + * * * * * /usr/share/astguiclient/AST_inbound_email_parser.pl + diff --git a/agc_2-X/trunk/bin/AST_inbound_email_parser.pl b/agc_2-X/trunk/bin/AST_inbound_email_parser.pl index e9b8a59a..d9c7fa79 100644 --- a/agc_2-X/trunk/bin/AST_inbound_email_parser.pl +++ b/agc_2-X/trunk/bin/AST_inbound_email_parser.pl @@ -184,7 +184,7 @@ while (@row=$rslt->fetchrow_array) { Port => 993, Ssl => 1, ) - or die "Cannot connect through IMAPClient: $!"; + or die "Cannot connect through IMAPClient: $@"; # Include options for folders in IMAP? POP3 doesn't support this. diff --git a/agc_2-X/trunk/docs/LOAD_BALANCING.txt b/agc_2-X/trunk/docs/LOAD_BALANCING.txt index e81cf5f4..b5348144 100644 --- a/agc_2-X/trunk/docs/LOAD_BALANCING.txt +++ b/agc_2-X/trunk/docs/LOAD_BALANCING.txt @@ -56,7 +56,7 @@ AS OF RELEASE 2.2.0 YOU SHOULD NOT HAVE TO TAKE ANY STEPS BEYOND STEP 2 IN THIS - AST_flush_DBqueue.pl (crontab) -2. The VARactive_keepalives variable in /etc/astguiclient.conf should have "5" and "7" on only ONE SERVER in your entire dialer setup, the other servers should not have 5 or 7 in that field. +2. The VARactive_keepalives variable in /etc/astguiclient.conf should have "5", "7" and "E" on only ONE SERVER in your entire dialer setup, the other servers should not have 5 or 7 in that field. # 1 - AST_update # 2 - AST_send_listen # 3 - AST_VDauto_dial @@ -64,6 +64,7 @@ AS OF RELEASE 2.2.0 YOU SHOULD NOT HAVE TO TAKE ANY STEPS BEYOND STEP 2 IN THIS # 5 - AST_VDadapt (If multi-server system, this must only be on one server) # 6 - FastAGI_log # 7 - AST_VDauto_dial_FILL (only for multi-server, this must only be on one server) + # E - AST_email (If multi-server system, this must only be on one server) (NOTE: the install.pl script now has an option to generate the following settings and print them out to the screen so that you do not have to manually build them. ./install.pl --build_multiserver_conf) 3. The two servers need to be registered to each other as IAX2 friends: diff --git a/agc_2-X/trunk/docs/REQUIRED_APPS_INSTALL.txt b/agc_2-X/trunk/docs/REQUIRED_APPS_INSTALL.txt index c6dfdee5..9b6a5596 100644 --- a/agc_2-X/trunk/docs/REQUIRED_APPS_INSTALL.txt +++ b/agc_2-X/trunk/docs/REQUIRED_APPS_INSTALL.txt @@ -85,6 +85,7 @@ install MIME::Decoder install Mail::POP3Client install Mail::IMAPClient install Mail::Message +install IO::Socket::SSL quit diff --git a/agc_2-X/trunk/docs/SCRATCH_INSTALL.txt b/agc_2-X/trunk/docs/SCRATCH_INSTALL.txt index 2d5fcd8a..ffa82310 100644 --- a/agc_2-X/trunk/docs/SCRATCH_INSTALL.txt +++ b/agc_2-X/trunk/docs/SCRATCH_INSTALL.txt @@ -459,6 +459,7 @@ following modules first: (say YES if asked to install prerequisites) - install Mail::POP3Client - install Mail::IMAPClient - install Mail::Message + - install IO::Socket::SSL - then quit cpan, you are done 5. Go to http://asterisk.gnuinter.net/ and download the asterisk-perl module (backup link: http://download.vicidial.com/packages/asterisk-perl-0.08.tar.gz) diff --git a/agc_2-X/trunk/www/agc/images/vdc_tab_email.gif b/agc_2-X/trunk/www/agc/images/vdc_tab_email.gif new file mode 100644 index 00000000..459edbde Binary files /dev/null and b/agc_2-X/trunk/www/agc/images/vdc_tab_email.gif differ diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index 3746aa40..002a3ef6 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -480,7 +480,7 @@ $random = (rand(1000000, 9999999) + 10000000); ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### -$stmt = "SELECT use_non_latin,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,webroot_writable,timeclock_end_of_day,vtiger_url,enable_vtiger_integration,outbound_autodial_active,enable_second_webform,user_territories_active,static_agent_url,custom_fields_enabled,pllb_grouping_limit,qc_features_active,email_enabled FROM system_settings;"; +$stmt = "SELECT use_non_latin,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,webroot_writable,timeclock_end_of_day,vtiger_url,enable_vtiger_integration,outbound_autodial_active,enable_second_webform,user_territories_active,static_agent_url,custom_fields_enabled,pllb_grouping_limit,qc_features_active,allow_emails FROM system_settings;"; $rslt=mysql_query($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01001',$VD_login,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index 30682615..826931b3 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -4517,6 +4517,11 @@ if ($ADD==99999)
Agent Call Manual - This option allows an agent to manually enter a new lead into the system and call them. This also allows the calling of any phone number from their vicidial screen and puts that call into their session. Use this option with caution. +
+ +
+ Agent Call Email - This option is disabled. +

diff --git a/agc_2-X/trunk/www/vicidial/admin_email_accounts.php b/agc_2-X/trunk/www/vicidial/admin_email_accounts.php index 488c2c3c..ec540ab9 100644 --- a/agc_2-X/trunk/www/vicidial/admin_email_accounts.php +++ b/agc_2-X/trunk/www/vicidial/admin_email_accounts.php @@ -74,7 +74,7 @@ if (isset($_GET["agent_search_method"])) {$agent_search_method=$_GET["agent_ ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### -$stmt = "SELECT use_non_latin,enable_queuemetrics_logging,enable_vtiger_integration,qc_features_active,outbound_autodial_active,sounds_central_control_active,enable_second_webform,user_territories_active,custom_fields_enabled,admin_web_directory,webphone_url,first_login_trigger,hosted_settings,default_phone_registration_password,default_phone_login_password,default_server_password,test_campaign_calls,active_voicemail_server,voicemail_timezones,default_voicemail_timezone,default_local_gmt,campaign_cid_areacodes_enabled,pllb_grouping_limit,did_ra_extensions_enabled,expanded_list_stats,contacts_enabled,alt_log_server_ip,alt_log_dbname,alt_log_login,alt_log_pass,tables_use_alt_log_db,allow_emails,email_enabled FROM system_settings;"; +$stmt = "SELECT use_non_latin,enable_queuemetrics_logging,enable_vtiger_integration,qc_features_active,outbound_autodial_active,sounds_central_control_active,enable_second_webform,user_territories_active,custom_fields_enabled,admin_web_directory,webphone_url,first_login_trigger,hosted_settings,default_phone_registration_password,default_phone_login_password,default_server_password,test_campaign_calls,active_voicemail_server,voicemail_timezones,default_voicemail_timezone,default_local_gmt,campaign_cid_areacodes_enabled,pllb_grouping_limit,did_ra_extensions_enabled,expanded_list_stats,contacts_enabled,alt_log_server_ip,alt_log_dbname,alt_log_login,alt_log_pass,tables_use_alt_log_db,allow_emails,allow_emails FROM system_settings;"; $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} $qm_conf_ct = mysql_num_rows($rslt); @@ -127,9 +127,9 @@ if ($non_latin < 1) $email_account_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$email_account_name); $email_account_description = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$email_account_description); $user_group = ereg_replace("[^_0-9a-zA-Z]","",$user_group); - $protocol = preg_replace("/^(IMAP|POP3|SMTP)/","",$protocol); + $protocol = ereg_replace("[^_0-9a-zA-Z]","",$protocol); $email_account_server = ereg_replace("[^\.\-\_0-9a-zA-Z]","",$email_account_server); - $active = preg_replace("/^(Y|N)/","",$active); + $active = ereg_replace("[^_0-9a-zA-Z]","",$active); $email_frequency_check_mins = preg_replace("/^0-9/","",$email_frequency_check_mins); $list_id = ereg_replace("[^0-9]","",$list_id); @@ -591,7 +591,7 @@ else if ($eact == "ADD") echo "
Default List ID: $NWB#vicidial_email_accounts-default_list_id$NWE\n"; - echo "In-Group Call Handle Method: $NWB#vicidial_email_accounts-call_handle_method$NWE\n"; + echo "In-Group Call Handle Method: $NWB#vicidial_email_accounts-call_handle_method$NWE\n"; echo "In-Group Agent Search Method: $NWB#vicidial_email_accounts-agent_search_method$NWE\n"; echo "In-Group List ID: $NWB#vicidial_email_accounts-ingroup_list_id$NWE\n"; echo "In-Group Campaign ID: