bug fixes for email functions and documentation

git-svn-id: svn://192.168.202.10@1906 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2012-12-23 06:42:43 +00:00
parent 1b9a742810
commit 205315b66c
9 changed files with 36 additions and 7 deletions
+21
View File
@@ -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
@@ -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.
+2 -1
View File
@@ -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:
@@ -85,6 +85,7 @@ install MIME::Decoder
install Mail::POP3Client
install Mail::IMAPClient
install Mail::Message
install IO::Socket::SSL
quit
+1
View File
@@ -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)
Binary file not shown.

After

Width:  |  Height:  |  Size: 795 B

+1 -1
View File
@@ -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";}
+5
View File
@@ -4517,6 +4517,11 @@ if ($ADD==99999)
<BR>
<B>Agent Call Manual -</B> 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.
<BR>
<A NAME="vicidial_users-agentcall_email">
<BR>
<B>Agent Call Email -</B> This option is disabled.
<BR>
<A NAME="vicidial_users-vicidial_recording">
<BR>
@@ -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 "<tr bgcolor=#B6D3FC><td align=right><a href=\"admin.php?ADD=1000\">Default List ID</a>: </td><td align=left><input type=text name=default_list_id size=20 maxlength=255 value='$default_list_id'>$NWB#vicidial_email_accounts-default_list_id$NWE</td></tr>\n";
echo "<tr bgcolor=#B6D3FC><td align=right>In-Group Call Handle Method: </td><td align=left><select size=1 name=call_handle_method><option>CID</option><option>CIDLOOKUP</option><option>CIDLOOKUPRL</option><option>CIDLOOKUPRC</option><option SELECTED>$call_handle_method</option></select>$NWB#vicidial_email_accounts-call_handle_method$NWE</td></tr>\n";
echo "<tr bgcolor=#B6D3FC><td align=right>In-Group Call Handle Method: </td><td align=left><select size=1 name=call_handle_method><option>EMAIL</option><option>EMAILLOOKUP</option><option>EMAILLOOKUPRL</option><option>EMAILLOOKUPRC</option><option SELECTED>$call_handle_method</option></select>$NWB#vicidial_email_accounts-call_handle_method$NWE</td></tr>\n";
echo "<tr bgcolor=#B6D3FC><td align=right>In-Group Agent Search Method: </td><td align=left><select size=1 name=agent_search_method><option value=\"LB\">LB - Load Balanced</option><option value=\"LO\">LO - Load Balanced Overflow</option><option value=\"SO\">SO - Server Only</option><option SELECTED>$agent_search_method</option></select>$NWB#vicidial_email_accounts-agent_search_method$NWE</td></tr>\n";
echo "<tr bgcolor=#B6D3FC><td align=right>In-Group List ID: </td><td align=left><input type=text name=list_id size=14 maxlength=14 value=\"$list_id\">$NWB#vicidial_email_accounts-ingroup_list_id$NWE</td></tr>\n";
echo "<tr bgcolor=#B6D3FC><td align=right>In-Group Campaign ID: </td><td align=left><select size=1 name=campaign_id>\n";