Updating the RemoveGsid Signaling Manipulation script

Last Updated : Oct 06, 2020 |
Prolog information
  1. Log in to the Avaya Session Border Controller for Enterprise server as an administrator.
  2. Click Configuration ProfilesSignaling Manipulation.
  3. From the Signaling Manipulation Scripts list, select the existing RemoveGsid script.
  4. Click Edit , and update the scripts as follows:
    ADDITIONAL INFORMATION: within session "ALL"
    {
     act on request where %DIRECTION="OUTBOUND" and %ENTRY_POINT="POST_ROUTING"
     {
      remove(%HEADERS["Request_Line"][1].PARAMS["gsid"]);
      remove(%HEADERS["Request_Line"][1].PARAMS["asm"]);

      %FROMTAG = %HEADERS["From"][1].PARAMS["tag"];
      %HEADERS["From"][1].PARAMS["tag"].regex_replace("_local.*", "");
      %HEADERS["From"][1].PARAMS["av-ps-conf-tag-o"] = %FROMTAG;
      %HEADERS["Contact"][1].URI.PARAMS["av-ps-conf-tag-o"] = %FROMTAG;
     }
     act on response where %DIRECTION="OUTBOUND" and %ENTRY_POINT="POST_ROUTING"
     {
      %TOTAG = %HEADERS["To"][1].PARAMS["tag"];
      %HEADERS["To"][1].PARAMS["tag"].regex_replace("_local.*", "");
      %HEADERS["Contact"][1].URI.PARAMS["av-ps-conf-tag-o"] = %TOTAG;
     }
    }
  5. Click Save.
    ADDITIONAL INFORMATION: