From 86400c6fc6f6d09b72177abddd6bae9f085c18c9 Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 27 Jan 2012 18:42:38 +0000 Subject: [PATCH] Documentation updates fixed small bug in non-agent API with custom fields git-svn-id: svn://192.168.202.10@1780 3d104415-ff17-0410-8863-d5cf3c621b8a --- docs/AGENT_API.txt | 1 + docs/CALL_URL_FEATURES.txt | 3 ++- docs/NON-AGENT_API.txt | 1 + .../raw_translation_files/TO_BE_TRANSLATED_2.4.txt | 3 +++ www/vicidial/admin.php | 13 +++++++++++-- www/vicidial/non_agent_api.php | 10 +++++++--- 6 files changed, 25 insertions(+), 6 deletions(-) diff --git a/docs/AGENT_API.txt b/docs/AGENT_API.txt index 9f566b68..c885c9ae 100644 --- a/docs/AGENT_API.txt +++ b/docs/AGENT_API.txt @@ -119,6 +119,7 @@ qm_dispo_code - EXAMPLE URL: http://server/agc/api.php?source=test&user=6666&pass=1234&agent_user=1000&function=external_status&value=A +http://server/agc/api.php?source=test&user=6666&pass=1234&agent_user=1000&function=external_status&value=CALLBK&callback_datetime=2012-01-25+12:00:00&callback_type=USERONLY&callback_comments=callback+comments+go+here&qm_dispo_code=1234 RESPONSES: ERROR: external_status not valid - A|6666 diff --git a/docs/CALL_URL_FEATURES.txt b/docs/CALL_URL_FEATURES.txt index 5f9297e4..d963b6f4 100644 --- a/docs/CALL_URL_FEATURES.txt +++ b/docs/CALL_URL_FEATURES.txt @@ -11,7 +11,8 @@ opened when the user clicks on the WEB FORM button. To customize the query string after the web form, simply begin the web form with VAR and then the URL that you want to use, replacing the variables with the variable names that you want to use --A--phone_number--B-- just -like in the SCRIPTS tab section. +like in the SCRIPTS tab section. If you want to use custom fields in a web form +address, you need to add &CF_uses_custom_fields=Y as part of your URL. Start Call URL - This web URL address is not seen by the agent, but it is called every time a call is sent to an agent if it is populated. diff --git a/docs/NON-AGENT_API.txt b/docs/NON-AGENT_API.txt index 1adbda98..38a3d7e8 100644 --- a/docs/NON-AGENT_API.txt +++ b/docs/NON-AGENT_API.txt @@ -66,6 +66,7 @@ Changes: 110821-2318 - Added update_phone, add_phone_alias, update_phone_alias functions 110928-2110 - Added callback options to add_lead and update_lead 111106-0959 - Added user_group restrictions to some functions +120127-1331 - Small fix for plus replacement in custom fields strings for add/update_lead functions diff --git a/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt b/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt index a6d23c6f..79e9d608 100644 --- a/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt +++ b/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt @@ -827,6 +827,9 @@ Day call count for this campaign|| SUMMARY STATS|| Daily Maximum Stats|| These are statistics that are generated by the system each day throughout the day until the timeclock end-of-day as it is set in the System Settings. These numbers are generated from the logs within the system to allow for much faster display. The stats are included are - Total Calls, Maximum Agents, Maximum inbound calls, Maximum outbound calls|| +Add or Remove In-Group Selected For Active Users in This User Group|| +Maximum System Stats Reports|| +These statistics are cached totals that are stored throughout each day in real-time through back-end processes. For inbound calls, the total calls per in-group are calculated for each call that enters the process that calculates. For the whole system counts, the totals are generated from log entries as well as other in-group and campaign totals. These totals may not add up due to the settings that you have in your system as well as when the call is hung up|| lead_report_export.php diff --git a/www/vicidial/admin.php b/www/vicidial/admin.php index 94be8564..0971fc99 100644 --- a/www/vicidial/admin.php +++ b/www/vicidial/admin.php @@ -8402,6 +8402,15 @@ if ($ADD==99999) Through the use of system status categories, you can group together statuses to allow for statistical analysis on a group of statuses. The Category ID must be 2-20 characters in length with no spaces, the name must be 2-50 characters in length, the description is optional and TimeonVDAD Display defines whether that status will be one of the upto 4 statuses that can be calculated and displayed on the Time On VDAD Real-Time report. The Sale Category and Dead Lead Category are both used by the List Suggestion system when analyzing list statistics. + +



+ + Maximum System Stats Reports

+ +
+ These statistics are cached totals that are stored throughout each day in real-time through back-end processes. For inbound calls, the total calls per in-group are calculated for each call that enters the process that calculates. For the whole system counts, the totals are generated from log entries as well as other in-group and campaign totals. These totals may not add up due to the settings that you have in your system as well as when the call is hung up. + + 0) { @@ -32830,7 +32839,7 @@ if ($ADD==999993) {echo "Not found"; exit;} } - echo "
Administration: Maximum Stats Detail for $stage $modify_link$campaign_id
- $campaign_name

\n"; + echo "
Administration: Maximum Stats Detail for $stage $modify_link$campaign_id - $campaign_name   $NWB#vicidial_max_stats$NWE

\n"; echo "
\n"; echo "
\n"; @@ -32861,7 +32870,7 @@ if ($ADD==999992) echo "
\n"; echo ""; - echo "
Administration: Maximum System Stats

\n"; + echo "
Administration: Maximum System Stats   $NWB#vicidial_max_stats$NWE

\n"; echo "
\n"; if ( (preg_match("/Maximum System Stats/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) diff --git a/www/vicidial/non_agent_api.php b/www/vicidial/non_agent_api.php index 64f3cfc2..610fdedf 100644 --- a/www/vicidial/non_agent_api.php +++ b/www/vicidial/non_agent_api.php @@ -60,10 +60,11 @@ # 110821-2318 - Added update_phone, add_phone_alias, update_phone_alias functions # 110928-2110 - Added callback options to add_lead and update_lead # 111106-0959 - Added user_group restrictions to some functions +# 120127-1331 - Small fix for plus replacement in custom fields strings for add/update_lead functions # -$version = '2.4-39'; -$build = '111106-0959'; +$version = '2.4-40'; +$build = '120127-1331'; $startMS = microtime(); @@ -345,7 +346,7 @@ if ($non_latin < 1) $date_of_birth = ereg_replace("[^-0-9]","",$date_of_birth); $alt_phone = ereg_replace("[^- \+\_\.0-9a-zA-Z]","",$alt_phone); $alt_phone = ereg_replace("\+"," ",$alt_phone); - $email = ereg_replace("[^- \+\.\:\/\@\_0-9a-zA-Z]","",$email); + $email = ereg_replace("[^- \+\.\:\/\@\%\_0-9a-zA-Z]","",$email); $email = ereg_replace("\+"," ",$email); $security_phrase = ereg_replace("[^- \+\.\:\/\@\_0-9a-zA-Z]","",$security_phrase); $security_phrase = ereg_replace("\+"," ",$security_phrase); @@ -3874,6 +3875,7 @@ if ($function == 'add_lead') if (isset($_GET["$field_name_id"])) {$form_field_value=$_GET["$field_name_id"];} elseif (isset($_POST["$field_name_id"])) {$form_field_value=$_POST["$field_name_id"];} + $form_field_value = preg_replace("/\+/"," ",$form_field_value); $A_field_value[$o] = $form_field_value; if ( ($A_field_type[$o]=='DISPLAY') or ($A_field_type[$o]=='SCRIPT') ) @@ -4539,6 +4541,7 @@ if ($function == 'update_lead') if (isset($_GET["$field_name_id"])) {$form_field_value=$_GET["$field_name_id"];} elseif (isset($_POST["$field_name_id"])) {$form_field_value=$_POST["$field_name_id"];} + $form_field_value = preg_replace("/\+/"," ",$form_field_value); $A_field_value[$o] = $form_field_value; if ( ($A_field_type[$o]=='DISPLAY') or ($A_field_type[$o]=='SCRIPT') ) @@ -4732,6 +4735,7 @@ if ($function == 'update_lead') if (isset($_GET["$field_name_id"])) {$form_field_value=$_GET["$field_name_id"];} elseif (isset($_POST["$field_name_id"])) {$form_field_value=$_POST["$field_name_id"];} + $form_field_value = preg_replace("/\+/"," ",$form_field_value); $A_field_value[$o] = $form_field_value; if ( ($A_field_type[$o]=='DISPLAY') or ($A_field_type[$o]=='SCRIPT') )