Fix for ConfBridge code in AGI scripts
git-svn-id: svn://192.168.202.10@3828 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -261,6 +261,7 @@
|
|||||||
# 240223-0847 - Added INBOUND_DID populate option
|
# 240223-0847 - Added INBOUND_DID populate option
|
||||||
# 240227-1154 - Added holiday_method option
|
# 240227-1154 - Added holiday_method option
|
||||||
# 240420-2242 - Added ConfBridge code
|
# 240420-2242 - Added ConfBridge code
|
||||||
|
# 240415-1701 - Fix for ConfBridge code
|
||||||
#
|
#
|
||||||
|
|
||||||
$script = 'agi-VDAD_ALL_inbound.agi';
|
$script = 'agi-VDAD_ALL_inbound.agi';
|
||||||
@@ -3915,7 +3916,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override
|
|||||||
$RAredDIALstr = "$a$S$b$S$c$S$d$S";
|
$RAredDIALstr = "$a$S$b$S$c$S$d$S";
|
||||||
}
|
}
|
||||||
$alertVDADremDIALstr = "$VDADremDIALstr";
|
$alertVDADremDIALstr = "$VDADremDIALstr";
|
||||||
if ($conf_engine == "CONFBRIDGE")
|
if ($conf_engine eq "CONFBRIDGE")
|
||||||
{
|
{
|
||||||
$alertVDADremDIALstr .= "8$VDADconf_exten";
|
$alertVDADremDIALstr .= "8$VDADconf_exten";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
# 140312-2112 - Added CALLID as recording filename variable
|
# 140312-2112 - Added CALLID as recording filename variable
|
||||||
# 140421-1448 - Added code to halt ringing of other channels in ring_all NAC method
|
# 140421-1448 - Added code to halt ringing of other channels in ring_all NAC method
|
||||||
# 240420-2241 - Added ConfBridge code
|
# 240420-2241 - Added ConfBridge code
|
||||||
|
# 240415-1702 - Fix for ConfBridge code
|
||||||
#
|
#
|
||||||
|
|
||||||
$script = 'agi-VDAD_RINGALL.agi';
|
$script = 'agi-VDAD_RINGALL.agi';
|
||||||
@@ -276,7 +277,7 @@ if ($NAGcount > 0)
|
|||||||
{
|
{
|
||||||
### BEGIN If remote agent, then reserve a vicidial_conferences session on their server to send the calls to ###
|
### BEGIN If remote agent, then reserve a vicidial_conferences session on their server to send the calls to ###
|
||||||
$conf_table = "vicidial_conferences";
|
$conf_table = "vicidial_conferences";
|
||||||
if ($conf_engine == "CONFBRIDGE") {$conf_table = "vicidial_confbridges";}
|
if ($conf_engine eq "CONFBRIDGE") {$conf_table = "vicidial_confbridges";}
|
||||||
$stmtA="SELECT count(*) FROM $conf_table where server_ip='$VLAserver_ip' and ((extension='') or (extension is null)) and conf_exten != '$VLAconf_exten';";
|
$stmtA="SELECT count(*) FROM $conf_table where server_ip='$VLAserver_ip' and ((extension='') or (extension is null)) and conf_exten != '$VLAconf_exten';";
|
||||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||||
@@ -564,7 +565,7 @@ if ($NAGcount > 0)
|
|||||||
$d = leading_zero($4);
|
$d = leading_zero($4);
|
||||||
$VLA_DIALstr = "$a$S$b$S$c$S$d$S";
|
$VLA_DIALstr = "$a$S$b$S$c$S$d$S";
|
||||||
}
|
}
|
||||||
if ($conf_engine == "CONFBRIDGE") {$VLA_DIALstrPrefix = "1";} else {$VLA_DIALstrPrefix = "7";}
|
if ($conf_engine eq "CONFBRIDGE") {$VLA_DIALstrPrefix = "1";} else {$VLA_DIALstrPrefix = "7";}
|
||||||
$VLA_DIALstr .= "$VLA_DIALstrPrefix$VLAconf_exten";
|
$VLA_DIALstr .= "$VLA_DIALstrPrefix$VLAconf_exten";
|
||||||
$AGI->stream_file('sip-silence');
|
$AGI->stream_file('sip-silence');
|
||||||
$AGI->stream_file('sip-silence');
|
$AGI->stream_file('sip-silence');
|
||||||
|
|||||||
Reference in New Issue
Block a user