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!

SBC Signal Manipulation script 1

Status
Not open for further replies.

fondog2

Systems Engineer
Jan 19, 2006
331
US
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";
}
}
}
 
With the doc I was able to figure out why it wouldn't save. Pay close attention to the brackets. I had two of them reversed. Thanks again murpr.
 
Pro Tip, use Notepad++ as it will highlight the nested brackets so you can better see the levels, its also great to look at XML files such as licenses and exports from ASM, etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top