fixed double-quote bug in several AGI scripts
git-svn-id: svn://192.168.202.10@242 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -231,11 +231,11 @@ $CIDlead_id = $callerid;
|
||||
$CIDlead_id = substr($CIDlead_id, 11, 9);
|
||||
$CIDlead_id = ($CIDlead_id + 0);
|
||||
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START : |$CIDlead_id|$now_date|"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START : |$CIDlead_id|$now_date|"; &agi_output;}
|
||||
|
||||
if ($channel =~ /Local/i)
|
||||
{
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -257,14 +257,14 @@ $AGI->stream_file('beep');
|
||||
|
||||
$fronter = $pin;
|
||||
|
||||
if ($AGILOG) {$agi_string = ""+++++ INBOUND CALL VDCL STARTED : |$channel_group|$callerid-$pin|$now_date"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ INBOUND CALL VDCL STARTED : |$channel_group|$callerid-$pin|$now_date"; &agi_output;}
|
||||
|
||||
$VDADphone='';
|
||||
$VDADphone_code='';
|
||||
|
||||
if ($channel =~ /Local/i)
|
||||
{
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -232,11 +232,11 @@ $CIDlead_id = $callerid;
|
||||
$CIDlead_id = substr($CIDlead_id, 11, 9);
|
||||
$CIDlead_id = ($CIDlead_id + 0);
|
||||
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START : |$CIDlead_id|$now_date|"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START : |$CIDlead_id|$now_date|"; &agi_output;}
|
||||
|
||||
if ($channel =~ /Local/i)
|
||||
{
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -259,14 +259,14 @@ $AGI->stream_file('beep');
|
||||
|
||||
$fronter = $pin;
|
||||
|
||||
if ($AGILOG) {$agi_string = ""+++++ INBOUND CALL VDCL STARTED : |$channel_group|$callerid-$pin|$now_date"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ INBOUND CALL VDCL STARTED : |$channel_group|$callerid-$pin|$now_date"; &agi_output;}
|
||||
|
||||
$VDADphone='';
|
||||
$VDADphone_code='';
|
||||
|
||||
if ($channel =~ /Local/i)
|
||||
{
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -241,11 +241,11 @@ $CIDlead_id = $callerid;
|
||||
$CIDlead_id = substr($CIDlead_id, 11, 9);
|
||||
$CIDlead_id = ($CIDlead_id + 0);
|
||||
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START : |$CIDlead_id|$now_date|"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START : |$CIDlead_id|$now_date|"; &agi_output;}
|
||||
|
||||
if ( ($channel =~ /Local/i) && ($AST_ver !~ /^1\.0\.8|^1\.0\.9/) )
|
||||
{
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
if ($priority > 2) {sleep(1);}
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -243,11 +243,11 @@ $CIDlead_id = $callerid;
|
||||
$CIDlead_id = substr($CIDlead_id, 11, 9);
|
||||
$CIDlead_id = ($CIDlead_id + 0);
|
||||
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START : |$CIDlead_id|$now_date|"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START : |$CIDlead_id|$now_date|"; &agi_output;}
|
||||
|
||||
if ( ($channel =~ /Local/i) && ($AST_ver !~ /^1\.0\.8|^1\.0\.9/) )
|
||||
{
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
if ($priority > 2) {sleep(1);}
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -229,11 +229,11 @@ $CIDlead_id = $callerid;
|
||||
$CIDlead_id = substr($CIDlead_id, 11, 9);
|
||||
$CIDlead_id = ($CIDlead_id + 0);
|
||||
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START : |$CIDlead_id|$now_date|"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START : |$CIDlead_id|$now_date|"; &agi_output;}
|
||||
|
||||
if ($channel =~ /Local/i)
|
||||
{
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -249,11 +249,11 @@ $CIDlead_id = $callerid;
|
||||
$CIDlead_id = substr($CIDlead_id, 11, 9);
|
||||
$CIDlead_id = ($CIDlead_id + 0);
|
||||
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START : |$CIDlead_id|$now_date|"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START : |$CIDlead_id|$now_date|"; &agi_output;}
|
||||
|
||||
if ($channel =~ /Local/i)
|
||||
{
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
exit;
|
||||
}
|
||||
if (!$list_id) {$list_id = '999';}
|
||||
|
||||
@@ -256,14 +256,14 @@ $AGI->stream_file('beep');
|
||||
|
||||
$fronter = $pin;
|
||||
|
||||
if ($AGILOG) {$agi_string = ""+++++ INBOUND CALL VDCL STARTED : |$channel_group|$callerid-$pin|$now_date"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ INBOUND CALL VDCL STARTED : |$channel_group|$callerid-$pin|$now_date"; &agi_output;}
|
||||
|
||||
$VDADphone='';
|
||||
$VDADphone_code='';
|
||||
|
||||
if ($channel =~ /Local/i)
|
||||
{
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -256,14 +256,14 @@ $pin = $inbound_number;
|
||||
|
||||
$fronter = $pin;
|
||||
|
||||
if ($AGILOG) {$agi_string = ""+++++ INBOUND CALL VDCL STARTED : |$channel_group|$callerid-$pin|$now_date"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ INBOUND CALL VDCL STARTED : |$channel_group|$callerid-$pin|$now_date"; &agi_output;}
|
||||
|
||||
$VDADphone='';
|
||||
$VDADphone_code='';
|
||||
|
||||
if ($channel =~ /Local/i)
|
||||
{
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -272,14 +272,14 @@ $pin = $inbound_number;
|
||||
|
||||
$fronter = $pin;
|
||||
|
||||
if ($AGILOG) {$agi_string = ""+++++ INBOUND CALL VDCL STARTED : |$channel_group|$callerid-$pin|$now_date"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ INBOUND CALL VDCL STARTED : |$channel_group|$callerid-$pin|$now_date"; &agi_output;}
|
||||
|
||||
$VDADphone='';
|
||||
$VDADphone_code='';
|
||||
|
||||
if ($channel =~ /Local/i)
|
||||
{
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -273,14 +273,14 @@ $pin = $inbound_number;
|
||||
|
||||
$fronter = $pin;
|
||||
|
||||
if ($AGILOG) {$agi_string = ""+++++ INBOUND CALL VDCL STARTED : |$channel_group|$callerid-$pin|$now_date"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ INBOUND CALL VDCL STARTED : |$channel_group|$callerid-$pin|$now_date"; &agi_output;}
|
||||
|
||||
$VDADphone='';
|
||||
$VDADphone_code='';
|
||||
|
||||
if ($channel =~ /Local/i)
|
||||
{
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -256,14 +256,14 @@ $AGI->stream_file('beep');
|
||||
|
||||
$fronter = $pin;
|
||||
|
||||
if ($AGILOG) {$agi_string = ""+++++ INBOUND CALL VDCL STARTED : |$channel_group|$callerid-$pin|$now_date"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ INBOUND CALL VDCL STARTED : |$channel_group|$callerid-$pin|$now_date"; &agi_output;}
|
||||
|
||||
$VDADphone='';
|
||||
$VDADphone_code='';
|
||||
|
||||
if ($channel =~ /Local/i)
|
||||
{
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -256,14 +256,14 @@ $AGI->stream_file('beep');
|
||||
$pin = '123456';
|
||||
$fronter = $pin;
|
||||
|
||||
if ($AGILOG) {$agi_string = ""+++++ INBOUND CALL VDCL STARTED : |$channel_group|$callerid-$pin|$now_date"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ INBOUND CALL VDCL STARTED : |$channel_group|$callerid-$pin|$now_date"; &agi_output;}
|
||||
|
||||
$VDADphone='';
|
||||
$VDADphone_code='';
|
||||
|
||||
if ($channel =~ /Local/i)
|
||||
{
|
||||
if ($AGILOG) {$agi_string = ""+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "+++++ VDAD START LOCAL CHANNEL: EXITING- $priority"; &agi_output;}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user