diff --git a/agi/agi-VDAD_ALL_inbound.agi b/agi/agi-VDAD_ALL_inbound.agi index 7879a549..cacdd5d5 100644 --- a/agi/agi-VDAD_ALL_inbound.agi +++ b/agi/agi-VDAD_ALL_inbound.agi @@ -261,6 +261,7 @@ # 240223-0847 - Added INBOUND_DID populate option # 240227-1154 - Added holiday_method option # 240420-2242 - Added ConfBridge code +# 240415-1701 - Fix for ConfBridge code # $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"; } $alertVDADremDIALstr = "$VDADremDIALstr"; - if ($conf_engine == "CONFBRIDGE") + if ($conf_engine eq "CONFBRIDGE") { $alertVDADremDIALstr .= "8$VDADconf_exten"; } diff --git a/agi/agi-VDAD_RINGALL.agi b/agi/agi-VDAD_RINGALL.agi index 83d21106..f5b7d145 100644 --- a/agi/agi-VDAD_RINGALL.agi +++ b/agi/agi-VDAD_RINGALL.agi @@ -23,6 +23,7 @@ # 140312-2112 - Added CALLID as recording filename variable # 140421-1448 - Added code to halt ringing of other channels in ring_all NAC method # 240420-2241 - Added ConfBridge code +# 240415-1702 - Fix for ConfBridge code # $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 ### $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';"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; @@ -564,7 +565,7 @@ if ($NAGcount > 0) $d = leading_zero($4); $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"; $AGI->stream_file('sip-silence'); $AGI->stream_file('sip-silence');