From 7946d6e6691e274ed5c755aaeb93ae029f5ecf94 Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 10 Mar 2022 16:41:14 +0000 Subject: [PATCH] git-svn-id: svn://192.168.202.10@3587 3d104415-ff17-0410-8863-d5cf3c621b8a --- bin/AST_update_AMI2.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/AST_update_AMI2.pl b/bin/AST_update_AMI2.pl index 02eb4866..6c15b632 100644 --- a/bin/AST_update_AMI2.pl +++ b/bin/AST_update_AMI2.pl @@ -5,7 +5,7 @@ # This script uses the Asterisk Manager interface to update the live_channels # tables and verify the parked_channels table in the asterisk MySQL database # -# Copyright (C) 2021 Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2022 Matt Florell LICENSE: AGPLv2 # # CHANGES # 170915-2110 - Initial version for Asterisk 13, based upon AST_update.pl @@ -18,6 +18,7 @@ # 201119-2119 - Fix for time logging inserts/updates to database # 210315-1045 - Populate the CIDname in live_sip_channels/live_channels tables, Issue #1255 # 210827-0930 - Added PJSIP compatibility +# 220310-1136 - Fix for issue dealing with bad carrier 'P-Asserted-Identity' input # # constants @@ -778,7 +779,7 @@ sub process_channels $CIDnameSQL = $channel_ref->{'CallerIDName'}; $CIDnameSQL =~ s/'|"|;//gi; # remove quotes and semi-colon if (length($CIDnameSQL) > 30) - {$CIDnameSQL =~ substr($CIDnameSQL,0,30);} + {$CIDnameSQL = substr($CIDnameSQL,0,30);} # make sure the channel is a channel type we care about if ( $channel_ref->{'Channel'} =~ /^IAX2|^SIP|^Local|^DAHDI|^PJSIP/)