Added list name and list description as script variables in the agent interface
Added CallerIDname extension append option to trunk git-svn-id: svn://192.168.202.10@1407 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -229,8 +229,8 @@ while ($sthArows > $rec_count)
|
||||
{
|
||||
$AGILOG = '0';
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
$DBagi_output = "$aryA[0]";
|
||||
$local_gmt = "$aryA[0]";
|
||||
$DBagi_output = $aryA[0];
|
||||
$local_gmt = $aryA[1];
|
||||
if ($DBagi_output =~ /STDERR/) {$AGILOG = '1';}
|
||||
if ($DBagi_output =~ /FILE/) {$AGILOG = '2';}
|
||||
if ($DBagi_output =~ /BOTH/) {$AGILOG = '3';}
|
||||
|
||||
@@ -262,6 +262,12 @@ if ($ignore_list_script < 1)
|
||||
{$call_script = $agent_script_override;}
|
||||
}
|
||||
|
||||
$stmt="SELECT list_name,list_description from vicidial_lists where list_id='$list_id';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$list_name = $row[0];
|
||||
$list_description = $row[1];
|
||||
|
||||
$stmt="SELECT script_name,script_text from vicidial_scripts where script_id='$call_script';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
@@ -275,6 +281,8 @@ if (eregi("iframe src",$script_text))
|
||||
$vendor_id = eregi_replace(' ','+',$vendor_id);
|
||||
$vendor_lead_code = eregi_replace(' ','+',$vendor_lead_code);
|
||||
$list_id = eregi_replace(' ','+',$list_id);
|
||||
$list_name = eregi_replace(' ','+',$list_name);
|
||||
$list_description = eregi_replace(' ','+',$list_description);
|
||||
$gmt_offset_now = eregi_replace(' ','+',$gmt_offset_now);
|
||||
$phone_code = eregi_replace(' ','+',$phone_code);
|
||||
$phone_number = eregi_replace(' ','+',$phone_number);
|
||||
@@ -348,6 +356,8 @@ $script_text = eregi_replace('--A--lead_id--B--',"$lead_id",$script_text);
|
||||
$script_text = eregi_replace('--A--vendor_id--B--',"$vendor_id",$script_text);
|
||||
$script_text = eregi_replace('--A--vendor_lead_code--B--',"$vendor_lead_code",$script_text);
|
||||
$script_text = eregi_replace('--A--list_id--B--',"$list_id",$script_text);
|
||||
$script_text = eregi_replace('--A--list_name--B--',"$list_name",$script_text);
|
||||
$script_text = eregi_replace('--A--list_description--B--',"$list_description",$script_text);
|
||||
$script_text = eregi_replace('--A--gmt_offset_now--B--',"$gmt_offset_now",$script_text);
|
||||
$script_text = eregi_replace('--A--phone_code--B--',"$phone_code",$script_text);
|
||||
$script_text = eregi_replace('--A--phone_number--B--',"$phone_number",$script_text);
|
||||
|
||||
@@ -6149,6 +6149,8 @@ if ($ADD==7111111)
|
||||
##### TEST VARIABLES #####
|
||||
$vendor_lead_code = 'VENDOR:LEAD;CODE';
|
||||
$list_id = 'LISTID';
|
||||
$list_name = 'LISTNAME';
|
||||
$list_description = 'LISTDESCRIPTION';
|
||||
$gmt_offset_now = 'GMTOFFSET';
|
||||
$phone_code = '1';
|
||||
$phone_number = '7275551212';
|
||||
@@ -6223,6 +6225,8 @@ if ($ADD==7111111)
|
||||
{
|
||||
$vendor_lead_code = eregi_replace(' ','+',$vendor_lead_code);
|
||||
$list_id = eregi_replace(' ','+',$list_id);
|
||||
$list_name = eregi_replace(' ','+',$list_name);
|
||||
$list_description = eregi_replace(' ','+',$list_description);
|
||||
$gmt_offset_now = eregi_replace(' ','+',$gmt_offset_now);
|
||||
$phone_code = eregi_replace(' ','+',$phone_code);
|
||||
$phone_number = eregi_replace(' ','+',$phone_number);
|
||||
@@ -6285,6 +6289,8 @@ if ($ADD==7111111)
|
||||
|
||||
$script_text = eregi_replace('--A--vendor_lead_code--B--',"$vendor_lead_code",$script_text);
|
||||
$script_text = eregi_replace('--A--list_id--B--',"$list_id",$script_text);
|
||||
$script_text = eregi_replace('--A--list_name--B--',"$list_name",$script_text);
|
||||
$script_text = eregi_replace('--A--list_description--B--',"$list_description",$script_text);
|
||||
$script_text = eregi_replace('--A--gmt_offset_now--B--',"$gmt_offset_now",$script_text);
|
||||
$script_text = eregi_replace('--A--phone_code--B--',"$phone_code",$script_text);
|
||||
$script_text = eregi_replace('--A--phone_number--B--',"$phone_number",$script_text);
|
||||
@@ -7354,6 +7360,8 @@ if ($ADD==1111111)
|
||||
echo "<option>vendor_lead_code</option>";
|
||||
echo "<option>source_id</option>";
|
||||
echo "<option>list_id</option>";
|
||||
echo "<option>list_name</option>";
|
||||
echo "<option>list_description</option>";
|
||||
echo "<option>gmt_offset_now</option>";
|
||||
echo "<option>called_since_last_reset</option>";
|
||||
echo "<option>phone_code</option>";
|
||||
|
||||
Reference in New Issue
Block a user