Forums Read-only archive

Complex "To" Matching Patterns

2 posts · Brekeke SIP Server Forum

dstu Original post
1. Brekeke Product Name and version:
SIP Server

2. Java version:
1.5.0_04

3. OS type and the version:
1.5.3.0/172

4. UA (phone), gateway or other hardware/software involved:

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html :
5

6. Your problem:
Hello,

I need to create complex "To" patterns to include in a single line the following separate lines:

Code:

To=sip:22222.{0,2}@
To=sip:23232.{0,2}@
To=sip:24242.{0,2}@
To=sip:25262.{0,2}@
To=sip:26262.{0,2}@
and

Code:

To=sip:959(1866.{7})@
To=sip:959(1877.{7})@
To=sip:959(11866.{7})@
To=sip:959(11877.{7})@
Is that possible? If yes, can you please tell me how?

Thanks,

David
janP
You can write...
To=sip:22222.{0,2}@|To=sip:23232.{0,2}@|To=sip:24242.{0,2}@|To=sip:25262.{0,2}@|To=sip:26262.{0,2}@