Fix for areacode duplicates in multiple countries in admin bulk tools

Several fxes for PJSIP compatibility

git-svn-id: svn://192.168.202.10@4020 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2026-09-03 00:49:45 +00:00
parent d5a90e49f3
commit 1f2f7d29a7
9 changed files with 110 additions and 36 deletions
+17 -1
View File
@@ -12,7 +12,7 @@
# exten => _8331*.,n,AGI(agi-VDAD_RINGALL.agi,${EXTEN})
# exten => _8331*.,n,Hangup
#
# Copyright (C) 2025 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2026 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# changes:
# 110303-2325 - First build
@@ -26,6 +26,7 @@
# 240415-1702 - Fix for ConfBridge code
# 250924-2157 - Added code for deprecation of "Monitor" application after Asterisk 20
# 251006-0902 - If recording_dtmf_muting enabled, force use of MixMonitor for recording
# 260902-1622 - Added PJSIP
#
$script = 'agi-VDAD_RINGALL.agi';
@@ -552,6 +553,21 @@ if ($NAGcount > 0)
}
$sthA->finish();
}
if ($orVLA_exten[$orct] =~ /^PJSIP/i)
{
$orVLA_exten[$orct] =~ s/^PJSIP\///gi;
$stmtA = "SELECT dialplan_number FROM phones where extension='$orVLA_exten[$orct]' and server_ip='$orVLA_server_ip[$orct]' and protocol='PJSIP';";
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
$Pcount=$sthA->rows;
if ($Pcount > 0)
{
@aryA = $sthA->fetchrow_array;
$Pdialplan_number = $aryA[0];
$exten_match = "STARSYM" . $Pdialplan_number . "ATSYM";
}
$sthA->finish();
}
if ($orVLA_exten[$orct] =~ /^IAX/i)
{
$orVLA_exten[$orct] =~ s/^IAX2\/|^IAX\///gi;