Added term_reason as a dispo_call_url variable
git-svn-id: svn://192.168.202.10@3465 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -63,6 +63,7 @@ These are the extra variables you can use with this specific function:
|
||||
- 'callback_lead_status' is the agent-selected status when a scheduled callback
|
||||
status has been selected by the agent
|
||||
- 'callback_datetime' is the agent selected date and time for a callback
|
||||
- 'term_reason' is how the call was ended
|
||||
|
||||
With Dispo Call URLs you can also use a DISPO_FILTER Settings Container to
|
||||
define replacements for specific field values before they are sent out. For
|
||||
|
||||
@@ -510,10 +510,11 @@
|
||||
# 210609-1045 - Added in_man_dial_next_ready_seconds to update_settings function
|
||||
# 210615-1014 - Default security fixes, CVE-2021-28854
|
||||
# 210616-1906 - Added optional CORS support, see options.php for details
|
||||
# 210625-1351 - Added term_reason as a dispo_call_url variable
|
||||
#
|
||||
|
||||
$version = '2.14-403';
|
||||
$build = '210616-1906';
|
||||
$version = '2.14-404';
|
||||
$build = '210625-1351';
|
||||
$php_script = 'vdc_db_query.php';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=850;
|
||||
@@ -14195,15 +14196,16 @@ if ($ACTION == 'updateDISPO')
|
||||
{$url_call_notes = urlencode(" ");}
|
||||
}
|
||||
|
||||
if (preg_match('/--A--dialed_/i',$dispo_call_urlARY[$j]))
|
||||
if (preg_match('/--A--dialed_|--A--term_reason--B--/i',$dispo_call_urlARY[$j]))
|
||||
{
|
||||
$dialed_number = $phone_number;
|
||||
$dialed_label = 'NONE';
|
||||
$term_reason = 'NONE';
|
||||
|
||||
if ($call_type=='OUT')
|
||||
{
|
||||
### find the dialed number and label for this call
|
||||
$stmt = "SELECT phone_number,alt_dial from vicidial_log where uniqueid='$uniqueid';";
|
||||
$stmt = "SELECT phone_number,alt_dial,term_reason from vicidial_log where uniqueid='$uniqueid';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00341',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -14213,6 +14215,7 @@ if ($ACTION == 'updateDISPO')
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$dialed_number = $row[0];
|
||||
$dialed_label = $row[1];
|
||||
$term_reason = $row[2];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14254,12 +14257,12 @@ if ($ACTION == 'updateDISPO')
|
||||
}
|
||||
}
|
||||
|
||||
if ((preg_match('/callid--B--/i',$dispo_call_urlARY[$j])) or (preg_match('/group--B--/i',$dispo_call_urlARY[$j])))
|
||||
if ((preg_match('/callid--B--/i',$dispo_call_urlARY[$j])) or (preg_match('/group--B--|--A--term_reason--B--/i',$dispo_call_urlARY[$j])))
|
||||
{
|
||||
$INclosecallid='';
|
||||
$INxfercallid='';
|
||||
$VDADchannel_group=$campaign;
|
||||
$stmt = "SELECT campaign_id,closecallid,xfercallid from vicidial_closer_log where uniqueid='$uniqueid' and user='$user' order by closecallid desc limit 1;";
|
||||
$stmt = "SELECT campaign_id,closecallid,xfercallid,term_reason from vicidial_closer_log where uniqueid='$uniqueid' and user='$user' order by closecallid desc limit 1;";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00348',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -14270,6 +14273,7 @@ if ($ACTION == 'updateDISPO')
|
||||
$VDADchannel_group = $row[0];
|
||||
$INclosecallid = $row[1];
|
||||
$INxfercallid = $row[2];
|
||||
$term_reason = $row[3];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14455,6 +14459,7 @@ if ($ACTION == 'updateDISPO')
|
||||
if ( (preg_match("/^callback_lead_status$/i",$temp_df[0])) and ($CallBackLeadStatus == $temp_df[1]) ) {$CallBackLeadStatus = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^callback_datetime$/i",$temp_df[0])) and ($CallBackDatETimE == $temp_df[1]) ) {$CallBackDatETimE = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^called_count$/i",$temp_df[0])) and ($called_count == $temp_df[1]) ) {$called_count = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^term_reason$/i",$temp_df[0])) and ($term_reason == $temp_df[1]) ) {$term_reason = $temp_df[2]; $lm++;}
|
||||
|
||||
if ($DB) {echo "DF-Debug 2: $dct|$lm|$temp_df[0]|$temp_df[1]|$temp_df[2]|\n";}
|
||||
$dct++;
|
||||
@@ -14553,7 +14558,7 @@ if ($ACTION == 'updateDISPO')
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--callback_lead_status--B--/i',urlencode(trim($CallBackLeadStatus)),$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--callback_datetime--B--/i',urlencode(trim($CallBackDatETimE)),$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--called_count--B--/i',"$called_count",$dispo_call_urlARY[$j]);
|
||||
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--term_reason--B--/i',"$term_reason",$dispo_call_urlARY[$j]);
|
||||
|
||||
if (strlen($FORMcustom_field_names)>2)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# version: 20210608215501
|
||||
# version: 20210625134601
|
||||
users-user User ID <QXZ>This field is where you put the users ID number, can be up to 8 digits in length, Must be at least 2 characters in length.</QXZ>
|
||||
users-pass Password <QXZ>This field is where you put the users password. Must be at least 2 characters in length. Only letters and numbers are allowed in user passwords. A medium strength user password will be at least 10 characters in length, and a strong user password will be at least 20 characters in length and have letters as well as at least one number. It is recommended that you use a longer password if possible, stringing together several unrelated words with no spaces, and a number somewhere in the string. The maximum size of a password is 100 characters.</QXZ>
|
||||
users-force_change_password Force Change Password <QXZ>If this option is set to Y then the user will be prompted to change their password the next time they log in to the administration webpage or the agent screen. Default is N.</QXZ>
|
||||
@@ -381,7 +381,7 @@ campaigns-pllb_grouping_limit PLLB Grouping Limit <QXZ>Phone Login Load Balancin
|
||||
campaigns-crm_popup_login CRM Popup Login <QXZ>If set to Y, the CRM Popup Address is used to open a new window on agent login to this campaign. Default is N.</QXZ>
|
||||
campaigns-crm_login_address CRM Popup Address <QXZ>The web address of a CRM login page, it can have variables populated just like the web form address, with the VAR in the front and using --A--user_custom_one--B-- to define variables.</QXZ>
|
||||
campaigns-start_call_url Start Call URL <QXZ>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. Uses the same variables as the web form fields and scripts. This URL can NOT be a relative path. For Manual dial calls, the Start Call URL will be sent when the call is placed. Default is blank.</QXZ>
|
||||
campaigns-dispo_call_url Dispo Call URL <QXZ>This web URL address is not seen by the agent, but it is called every time a call is dispositioned by an agent if it is populated. Uses the same variables as the web form fields and scripts. dispo, callback_lead_status and talk_time are the variables you can use to retrieve the agent-defined disposition for the call and the actual talk time in seconds of the call. This URL can NOT be a relative path. Default is blank.</QXZ> <QXZ>If you put ALT into this field and submit this form, you will be able to go to a separate page where you can define multiple URLs for this action as well as specific statuses that will trigger them.</QXZ>
|
||||
campaigns-dispo_call_url Dispo Call URL <QXZ>This web URL address is not seen by the agent, but it is called every time a call is dispositioned by an agent if it is populated. Uses the same variables as the web form fields and scripts. dispo, callback_lead_status, talk_time and term_reason are the variables you can use to retrieve the agent-defined disposition for the call and the actual talk time in seconds of the call as well as how the call was ended. This URL can NOT be a relative path. Default is blank.</QXZ> <QXZ>If you put ALT into this field and submit this form, you will be able to go to a separate page where you can define multiple URLs for this action as well as specific statuses that will trigger them.</QXZ>
|
||||
campaigns-na_call_url No Agent Call URL <QXZ>This web URL address is not seen by the agent, but if it is populated it is called every time a call that is not handled by an agent is hung up or transferred. Uses the same variables as the web form fields and scripts. dispo can be used to retrieve the system-defined disposition for the call. This URL can NOT be a relative path. Default is blank.</QXZ> <QXZ>Custom Fields are not available with this feature.</QXZ>
|
||||
campaigns-agent_allow_group_alias Group Alias Allowed <QXZ>If you want to allow your agents to use group aliases then you need to set this to Y. Group Aliases are explained more in the Admin section, they allow agents to select different callerIDs for outbound manual calls that they may place. Default is N.</QXZ>
|
||||
campaigns-default_group_alias Default Group Alias <QXZ>If you have allowed Group Aliases then this is the group alias that is selected first by default when the agent chooses to use a Group Alias for an outbound manual call. Default is NONE or empty.</QXZ>
|
||||
@@ -612,7 +612,7 @@ inbound_groups-no_delay_call_route No Delay Call Route <QXZ>Setting this to Y wi
|
||||
inbound_groups-answer_sec_pct_rt_stat_one Stats Percent of Calls Answered Within X seconds <QXZ>This field allows you to set the number of hold seconds that the realtime stats display will use to calculate the percentage of answered calls that were answered within X number of seconds on hold.</QXZ>
|
||||
inbound_groups-enter_ingroup_url Enter In-Group URL <QXZ>This web URL address is called every time a call enters the queue, right before the system looks for an agent to send the call to. If the call leaves the In-Group before that time, such as for No-Agent No-Queue, Max Calls, After Hours, etc..., this URL will not be called. Default is blank.</QXZ>
|
||||
inbound_groups-start_call_url Start Call URL <QXZ>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. Uses the same variables as the web form fields and scripts. Default is blank.</QXZ>
|
||||
inbound_groups-dispo_call_url Dispo Call URL <QXZ>This web URL address is not seen by the agent, but it is called every time a call is dispositioned by an agent if it is populated. Uses the same variables as the web form fields and scripts. dispo and talk_time are the variables you can use to retrieve the agent-defined disposition for the call and the actual talk time in seconds of the call. Default is blank.</QXZ> <QXZ>If you put ALT into this field and submit this form, you will be able to go to a separate page where you can define multiple URLs for this action as well as specific statuses that will trigger them.</QXZ> <QXZ>If you want the campaign Dispo Call URL to be used for inbound calls, then put CAMP into this field.</QXZ>
|
||||
inbound_groups-dispo_call_url Dispo Call URL <QXZ>This web URL address is not seen by the agent, but it is called every time a call is dispositioned by an agent if it is populated. Uses the same variables as the web form fields and scripts. dispo, talk_time and term_reason are the variables you can use to retrieve the agent-defined disposition for the call and the actual talk time in seconds of the call as well as how the call was ended. Default is blank.</QXZ> <QXZ>If you put ALT into this field and submit this form, you will be able to go to a separate page where you can define multiple URLs for this action as well as specific statuses that will trigger them.</QXZ> <QXZ>If you want the campaign Dispo Call URL to be used for inbound calls, then put CAMP into this field.</QXZ>
|
||||
inbound_groups-na_call_url No Agent Call URL <QXZ>This web URL address is not seen by the agent, but if it is populated it is called every time a call that is not handled by an agent is hung up or transferred. Uses the same variables as the web form fields and scripts. dispo can be used to retrieve the system-defined disposition for the call. This URL can NOT be a relative path. Default is blank.</QXZ> <QXZ>Custom Fields are not available with this feature.</QXZ>
|
||||
inbound_groups-waiting_call_url_on Waiting Call URL On <QXZ>This feature allows you to trigger a URL when there are calls waiting in this In-Group. The -On- URL will be sent the first time a call is waiting, and no more will be sent as long as there are still calls from this In-Group waiting in the queue. The -Off- URL will be sent as soon as there are no calls waiting for this In-Group anymore. This feature was created to allow for a remote power switch to be triggered to light up a flashing light to notify agents in a call center room that there were calls waiting for them. For this feature to work, both the -On- and -Off- URLs must be filled in. Default is -empty- for disabled.</QXZ>
|
||||
inbound_groups-add_lead_url Add Lead URL <QXZ>This web URL address is not seen by the agent, but it is called every time a lead is added to the system through the inbound process. Default is blank. You must begin this URL with VAR if you want to use variables, and of course --A-- and --B-- around the actual variable in the URL where you want to use it. Here is the list of variables that are available for this function. lead_id, vendor_lead_code, list_id, phone_number, phone_code, did_id, did_extension, did_pattern, did_description, uniqueid</QXZ>
|
||||
|
||||
Reference in New Issue
Block a user