Forums Read-only archive

Regular expression in address failing

2 posts · Brekeke SIP Server Forum

Pretorean Original post
1. Brekeke Product Name and version: 1.5.2.0/172

2. Java version: 1.4.2_05

3. OS type and the version:Linux 2.4.20-28.8smp

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

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

6. Your problem:
I am trying to use multiple IP address ranges in a single $addr variable but it's failing.
What's wrong with the following:

^192\.168\.95\.11[3-7]$|^172\.7\.16\.206$|^10\.1\.1.6[1-6]$ ?

Shouldn't it allow SIP from addresses in the following subnets: 192.168.95.112/29
172.7.16.206/32
10.1.160/29

thanks for any help.
hope
do you only check ip addresses from
192.168.95.113-117 and 172.7.16.206 and 10.1.1.61-66?