I want to set up a script on the SBC which keeps the User to User if it has a length of exactly 22 characters, otherwise it should delete the UUI frame.
Below is the script I have set up but it does not work.
within session "ALL"
{
act on message where %DIRECTION="INBOUND" and %ENTRY_POINT="AFTER_NETWORK"
{
if(!%HEADERS["User-to-User"][1].regex_match("^00BA45.............."))then
{
%HEADERS["User-to-User"][1].regex_replace("^00BA45000.............","");
}