Added validation for agent manual dial permission on DIAL links
git-svn-id: svn://192.168.202.10@1950 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -324,10 +324,11 @@
|
||||
# 121214-2208 - Added inbound email features
|
||||
# 121223-1627 - Fixed issue with manual alt dial manual dial filter
|
||||
# 130328-0009 - Converted ereg to preg functions
|
||||
# 130328-1015 - Added validation for agent manual dial permission on DIAL links
|
||||
#
|
||||
|
||||
$version = '2.6-222';
|
||||
$build = '130328-0009';
|
||||
$version = '2.6-223';
|
||||
$build = '130328-1015';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=533;
|
||||
$one_mysql_log=0;
|
||||
@@ -10577,7 +10578,10 @@ if ($ACTION == 'CALLLOGview')
|
||||
echo "<td align=right><font size=2> $ALLalt_dial[$i] </td>\n";
|
||||
echo "<td align=right><font size=2> $ALLhangup_reason[$i] </td>\n";
|
||||
echo "<td align=right><font size=2> <a href=\"#\" onclick=\"VieWLeaDInfO($ALLlead_id[$i]);return false;\">INFO</A> </td>\n";
|
||||
echo "<td align=right><font size=2> <a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG','$ALLphone_code[$i]','$ALLphone_number[$i]','$ALLlead_id[$i]');return false;\">DIAL</A> </td>\n";
|
||||
if ($manual_dial_filter > 0)
|
||||
{echo "<td align=right><font size=2> <a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG','$ALLphone_code[$i]','$ALLphone_number[$i]','$ALLlead_id[$i]');return false;\">DIAL</A> </td>\n";}
|
||||
else
|
||||
{echo "<td align=right><font size=2> DIAL </td>\n";}
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
@@ -10899,7 +10903,10 @@ if ($ACTION == 'SEARCHRESULTSview')
|
||||
echo "<td align=right><font size=2> <a href=\"#\" onclick=\"VieWLeaDInfO($ALLlead_id[$i],'','$inbound_lead_search');return false;\">INFO</A> </td>\n";
|
||||
if ($inbound_lead_search < 1)
|
||||
{
|
||||
echo "<td align=right><font size=2> <a href=\"#\" onclick=\"NeWManuaLDiaLCalL('LEADSEARCH','$ALLphone_code[$i]','$ALLphone_number[$i]','$ALLlead_id[$i]');return false;\">DIAL</A> </td>\n";
|
||||
if ($manual_dial_filter > 0)
|
||||
{echo "<td align=right><font size=2> <a href=\"#\" onclick=\"NeWManuaLDiaLCalL('LEADSEARCH','$ALLphone_code[$i]','$ALLphone_number[$i]','$ALLlead_id[$i]');return false;\">DIAL</A> </td>\n";}
|
||||
else
|
||||
{echo "<td align=right><font size=2> DIAL </td>\n";}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -11502,11 +11509,19 @@ if ($ACTION == 'LEADINFOview')
|
||||
{
|
||||
$INFOout .= "<tr bgcolor=white><td ALIGN=right><font size=2>$label_phone_number: </td><td ALIGN=left><font size=2>$row[6] - ";
|
||||
if ($hide_dial_links < 1)
|
||||
{$INFOout .= "<a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG',$row[5], $row[6], $lead_id);return false;\">DIAL</a>";}
|
||||
{
|
||||
if ($manual_dial_filter > 0)
|
||||
{$INFOout .= "<a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG',$row[5], $row[6], $lead_id);return false;\">DIAL</a>";}
|
||||
else
|
||||
{$INFOout .= "DIAL";}
|
||||
}
|
||||
}
|
||||
if ( ($label_phone_number=='---HIDE---') and ($hide_dial_links < 1) )
|
||||
{
|
||||
$INFOout .= "<tr bgcolor=white><td ALIGN=right><font size=2>Dial Link: </td><td ALIGN=left><font size=2><a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG',$row[5], $row[6], $lead_id);return false;\">DIAL</a>";
|
||||
if ($manual_dial_filter > 0)
|
||||
{$INFOout .= "<tr bgcolor=white><td ALIGN=right><font size=2>Dial Link: </td><td ALIGN=left><font size=2><a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG',$row[5], $row[6], $lead_id);return false;\">DIAL</a>";}
|
||||
else
|
||||
{$INFOout .= "<tr bgcolor=white><td ALIGN=right><font size=2>Dial Link: </td><td ALIGN=left><font size=2>DIAL";}
|
||||
}
|
||||
$INFOout .= "</td></tr>";
|
||||
if ($inbound_lead_search > 0)
|
||||
@@ -11540,7 +11555,12 @@ if ($ACTION == 'LEADINFOview')
|
||||
{
|
||||
$INFOout .= "<tr bgcolor=white><td ALIGN=right><font size=2>$label_alt_phone: </td><td ALIGN=left><font size=2>$row[20] - ";
|
||||
if ($hide_dial_links < 1)
|
||||
{$INFOout .= "<a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG',$row[5], $row[20], $lead_id, 'ALT');return false;\">DIAL</a>";}
|
||||
{
|
||||
if ($manual_dial_filter > 0)
|
||||
{$INFOout .= "<a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG',$row[5], $row[20], $lead_id, 'ALT');return false;\">DIAL</a>";}
|
||||
else
|
||||
{$INFOout .= "DIAL";}
|
||||
}
|
||||
}
|
||||
$INFOout .= "</td></tr>";
|
||||
if ( ($label_email!='---HIDE---') or ($label_hide_field_logs=='N') )
|
||||
|
||||
@@ -396,10 +396,11 @@
|
||||
# 130220-1214 - Fixed issue with 3-way call dial timeout
|
||||
# 130328-0006 - Converted ereg to preg functions
|
||||
# 130328-0934 - Applied changes from Issue #655
|
||||
# 130328-1017 - Added validation for agent manual dial permission on DIAL links
|
||||
#
|
||||
|
||||
$version = '2.6-364c';
|
||||
$build = '130328-0934';
|
||||
$version = '2.6-365c';
|
||||
$build = '130328-1017';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=79;
|
||||
$one_mysql_log=0;
|
||||
@@ -12473,7 +12474,7 @@ function phone_number_format(formatphone) {
|
||||
}
|
||||
if (xmlhttp)
|
||||
{
|
||||
RAview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=LEADINFOview&format=text&user=" + user + "&pass=" + pass + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&lead_id=" + VLI_lead_id + "&disable_alter_custphone=" + disable_alter_custphone + "&campaign=" + campaign + "&callback_id=" + VLI_cb_id + "&inbound_lead_search=" + VLI_inbound_lead_search + "&stage=<?php echo $HCwidth ?>";
|
||||
RAview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=LEADINFOview&format=text&user=" + user + "&pass=" + pass + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&lead_id=" + VLI_lead_id + "&disable_alter_custphone=" + disable_alter_custphone + "&campaign=" + campaign + "&callback_id=" + VLI_cb_id + "&inbound_lead_search=" + VLI_inbound_lead_search + "&manual_dial_filter=" + agentcall_manual + "&stage=<?php echo $HCwidth ?>";
|
||||
xmlhttp.open('POST', 'vdc_db_query.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(RAview_query);
|
||||
@@ -12536,7 +12537,7 @@ function phone_number_format(formatphone) {
|
||||
}
|
||||
if (xmlhttp)
|
||||
{
|
||||
RAview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=CALLLOGview&format=text&user=" + user + "&pass=" + pass + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&date=" + logdate + "&disable_alter_custphone=" + disable_alter_custphone +"&campaign=" + campaign + "&stage=<?php echo $HCwidth ?>";
|
||||
RAview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=CALLLOGview&format=text&user=" + user + "&pass=" + pass + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&date=" + logdate + "&disable_alter_custphone=" + disable_alter_custphone +"&campaign=" + campaign + "&manual_dial_filter=" + agentcall_manual + "&stage=<?php echo $HCwidth ?>";
|
||||
xmlhttp.open('POST', 'vdc_db_query.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(RAview_query);
|
||||
@@ -12659,7 +12660,7 @@ function phone_number_format(formatphone) {
|
||||
}
|
||||
if (xmlhttp)
|
||||
{
|
||||
LSview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=SEARCHRESULTSview&format=text&user=" + user + "&pass=" + pass + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&phone_number=" + document.vicidial_form.search_phone_number.value + "&lead_id=" + document.vicidial_form.search_lead_id.value + "&vendor_lead_code=" + document.vicidial_form.search_vendor_lead_code.value + "&first_name=" + document.vicidial_form.search_first_name.value + "&last_name=" + document.vicidial_form.search_last_name.value + "&city=" + document.vicidial_form.search_city.value + "&state=" + document.vicidial_form.search_state.value + "&postal_code=" + document.vicidial_form.search_postal_code.value + "&search=" + phone_search_fields + "&campaign=" + campaign + "&inbound_lead_search=" + inbound_lead_search + "&stage=<?php echo $HCwidth ?>";
|
||||
LSview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=SEARCHRESULTSview&format=text&user=" + user + "&pass=" + pass + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&phone_number=" + document.vicidial_form.search_phone_number.value + "&lead_id=" + document.vicidial_form.search_lead_id.value + "&vendor_lead_code=" + document.vicidial_form.search_vendor_lead_code.value + "&first_name=" + document.vicidial_form.search_first_name.value + "&last_name=" + document.vicidial_form.search_last_name.value + "&city=" + document.vicidial_form.search_city.value + "&state=" + document.vicidial_form.search_state.value + "&postal_code=" + document.vicidial_form.search_postal_code.value + "&search=" + phone_search_fields + "&campaign=" + campaign + "&inbound_lead_search=" + inbound_lead_search + "&manual_dial_filter=" + agentcall_manual + "&stage=<?php echo $HCwidth ?>";
|
||||
xmlhttp.open('POST', 'vdc_db_query.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(LSview_query);
|
||||
@@ -12736,7 +12737,7 @@ function phone_number_format(formatphone) {
|
||||
}
|
||||
if (xmlhttp)
|
||||
{
|
||||
RAview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=LEADINFOview&search=logfirst&format=text&user=" + user + "&pass=" + pass + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&lead_id=" + document.vicidial_form.lead_id.value + "&campaign=" + campaign + "&stage=<?php echo $HCwidth ?>";
|
||||
RAview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=LEADINFOview&search=logfirst&format=text&user=" + user + "&pass=" + pass + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&lead_id=" + document.vicidial_form.lead_id.value + "&campaign=" + campaign + "&manual_dial_filter=" + agentcall_manual + "&stage=<?php echo $HCwidth ?>";
|
||||
xmlhttp.open('POST', 'vdc_db_query.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(RAview_query);
|
||||
|
||||
Reference in New Issue
Block a user