Is anyone familiar with these? Prior to me working here the below was in the SBC for anonymous tips. They are wanting to add in an additional number but I can't figure out what it is barking at when I try and add the addition below. Could someone tell me how to add? I tried copy and paste below the entry then changing the number. But it didn't like that.
within session "ALL"
{
act on request where %DIRECTION="INBOUND" and
%ENTRY_POINT="PRE_ROUTING"
{
if (%HEADERS["To"]
[1].URI.USER.regex_match("8675309(.*)")) then
{
%HEADERS["From"][1].DISPLAY_NAME = "8675309";
%HEADERS["From"][1].URI.USER = "8675309";
%HEADERS["Contact"][1].URI.USER = "8675309";
}
}
}
within session "ALL"
{
act on request where %DIRECTION="INBOUND" and
%ENTRY_POINT="PRE_ROUTING"
{
if (%HEADERS["To"]
[1].URI.USER.regex_match("8675309(.*)")) then
{
%HEADERS["From"][1].DISPLAY_NAME = "8675309";
%HEADERS["From"][1].URI.USER = "8675309";
%HEADERS["Contact"][1].URI.USER = "8675309";
}
}
}