Signaling Manipulation

Signaling Manipulation

Signaling manipulation refers to the ability to manipulate the ANI, DNIS, or SIP Code in the header using regular expressions. This feature is found in the trunk group settings. 

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:
  1. Header
    1. ANI
    2. DNIS
    3. SIP Code
    4. IP
    5. Domain To
    6. Domain From
  2. Search: The section of a string to be replaced.
  3. Replace: What to replace the searched section with.
  4. Press Create


Examples:

  1. ANI or DNIS as Header:
    1. Add +1:
      1. Search: ^(..........)$
      2. Replace: 1\1
    2. Remove +1:
      1. Search: ^1(..........)$
      2. Replace: \1
    3. Replace the first two digits with 55:
      1. Search:^(.{2})(.*)$
      2. Replace: 55\2
    4. Remove the prefix 011:
      1. Search: ^011
      2. Replace:
    5. Replace empty number with 12345:
      1. Search: ^$
      2. Replace: 12345
    6. Add 011 (to all traffic)
      1. Search: ^(.*)$
      2. Replace: 011\1

  2. SIP Code as Header:
    1. Return a 503 instead of 504 in case of LOCAL_PDD_TIMEOUT
      1. Note: this is for Termination Trunk Groups
      2. Search: 504:LOCAL_PDD_TIMEOUT
      3. Replace: 503:SERVICE UNAVAILABLE