Number manipulations
This is an example of a script that you can used to manipulate any required numbering plan changes. The following is only an example. You must change the script to match your numbering plan.
For instance, this example shows how the number 719
is manipulated to add the string +1
so that when a user simply dials the area code 719
, the actual digit dialed is +1719
.
within session "all"
{
act on message where %DIRECTION="OUTBOUND" and %ENTRY_POINT="POST_ROUTING"
{
%HEADERS["From"][1].URI.USER.regex_replace("^214","+1214");
%HEADERS["To"][1].URI.USER.regex_replace("^719","+1719");
%HEADERS["Request_Line"][1].URI.USER.regex_replace("719","+1719");
}
}