Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

Commit

Permalink
Merge pull request #289 from Metaswitch/escape_enum
Browse files Browse the repository at this point in the history
Escape special character in enum
  • Loading branch information
Ying-metaswitch committed Nov 16, 2017
2 parents be99860 + ce41d61 commit edfec42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/ENUM.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ from an example deployment might form a reasonable basis:
},
{ "name" : "Clearwater internal numbers dialled with +1 prefix",
"prefix" : "+1650555",
"regex" : "!^+1(.*$)!sip:\\1@ngv.example.com!"
"regex" : "!^\\+1(.*$)!sip:\\1@ngv.example.com!"
},
{ "name" : "NANP => SIP trunk",
"prefix" : "",
Expand All @@ -109,6 +109,10 @@ from an example deployment might form a reasonable basis:
]
}

NB: The first part of the regex matches on the entire number and takes out the
bit inside the bracket, to replace \\\\1 in second expression. Eg. The second last
rule will replace `+166655500` with `sip:66655500@ngv.example.com`.

## Configuring ENUM rules

Normally, the ENUM server would be an existing part of the customer's
Expand Down

0 comments on commit edfec42

Please sign in to comment.