Note: The switch removes all non-digit symbols, such as the + in a DNIS, automatically from the R-URI and an initial INVITE is received.
To create a manipulation expression navigate to Relationship > Create/Modify > Trunk Group > Create/Modify on a trunk group and then provide:
- Header
- ANI
- DNIS
- SIP Code
- IP
- Domain To
- Domain From
- Search: The section of a string to be replaced.
- Replace: What to replace the searched section with.
- Press Create
Examples:
- ANI or DNIS as Header:
- Add +1:
- Search: ^(..........)$
- Replace: 1\1
- Remove +1:
- Search: ^1(..........)$
- Replace: \1
- Replace the first two digits with 55:
- Search:^(.{2})(.*)$
- Replace: 55\2
- Remove the prefix 011:
- Search: ^011
- Replace:
- Replace empty number with 12345:
- Search: ^$
- Replace: 12345
- Add 011 (to all traffic)
- Search: ^(.*)$
- Replace: 011\1
- SIP Code as Header:
- Return a 503 instead of 504 in case of LOCAL_PDD_TIMEOUT
- Note: this is for Termination Trunk Groups
- Search: 504:LOCAL_PDD_TIMEOUT
- Replace: 503:SERVICE UNAVAILABLE