Author |
Message |
noiptel Brekeke Talented
Joined: 22 Feb 2010 Posts: 68
Location: USA
|
Posted: Wed Oct 26, 2011 7:31 am Post subject: Accepting Dialed DID's with at least 10 digits |
|
|
1. Brekeke Product Name and version:
2. Java version:
3. OS type and the version:Advance
4. UA (phone), gateway or other hardware/software involved:
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :
6. Your problem:
We want to only accept calls that the dialed DID has [u]at least 10 digits. Another words, dialed DID's with 10 or more digits are welcomed
Is this correct?
$geturi(to)=sip:(.{<10})@(.+)
$action=503
Thanks |
|
Back to top |
|
Laurie Brekeke Master Guru
Joined: 07 Jan 2008 Posts: 245
|
Posted: Wed Oct 26, 2011 10:30 am Post subject: |
|
|
To = ! sip:[0-9]{10,}@
It means "NOT more than 10 digits". |
|
Back to top |
|
noiptel Brekeke Talented
Joined: 22 Feb 2010 Posts: 68
Location: USA
|
Posted: Wed Oct 26, 2011 3:02 pm Post subject: |
|
|
Thank you.
How about if the (To) DID starts with XXXXX52 and we want to limit to 11 or more digits after the 52?
That is:
xxxxx52xxxxxxxxxxx
-The first 5 numbers is the Tech Prefix.
-52 is the Country code
-The 11 digts after the 52 is the phone number dialed
We want to reject calls that do not have an 11 digit DID.
Thanking you in advance. |
|
Back to top |
|
Laurie Brekeke Master Guru
Joined: 07 Jan 2008 Posts: 245
|
|
Back to top |
|
noiptel Brekeke Talented
Joined: 22 Feb 2010 Posts: 68
Location: USA
|
Posted: Thu Oct 27, 2011 8:20 am Post subject: |
|
|
Thank you!!! |
|
Back to top |
|
|