Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SIGMA script avaya

Status
Not open for further replies.

FLEX101

Technical User
Feb 26, 2024
1
MA

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.............","");
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top