Author |
Message |
hslee Brekeke Member
Joined: 20 Sep 2011 Posts: 15
Location: S. Korea
|
Posted: Wed Jun 13, 2012 10:31 pm Post subject: How can I make to allow Incoming calls to registered user? |
|
|
1. Brekeke Product Name and version: 2.4.8.6/286.3
2. Java version: 1.6.0_27
3. OS type and the version: Linux cent5
4. UA (phone), gateway or other hardware/software involved: X-lite
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html : 4
6. Your problem:
I want to make to allow incoming calls to clients registered on my brekeke server.
But I don't have any ideas with a dialplan.
please show me the example of dialplan in my case. _________________ Thank you |
|
Back to top |
|
Vincent Brekeke Addict
Joined: 27 Aug 2009 Posts: 25
|
Posted: Thu Jun 14, 2012 6:34 am Post subject: |
|
|
Try this dial plan,that's what I use:
Matching Patterns | $request = ^INVITE To = sip:0(.+)@
|
Deploy Patterns | $auth = false To = sip:%1@ ®ister.contact.remote = true $continue = false.
|
Remember to add the prefix "0" while sending calls to registered users.For example if a user is register with 223345,to send call to the user you would have to dial 0223345. |
|
Back to top |
|
hslee Brekeke Member
Joined: 20 Sep 2011 Posts: 15
Location: S. Korea
|
Posted: Thu Jun 14, 2012 6:34 pm Post subject: |
|
|
Thank you. I'll try that~^^
And there are some patterns of user number.
The first pattern of number starts with '111222'
And second pattern of number starts with '444555'
I want to just allow incoming calls with these patterns
What should I put in the Matching Patterns? _________________ Thank you |
|
Back to top |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
Posted: Fri Jun 15, 2012 3:46 pm Post subject: |
|
|
If the length of prefix is 6, edit Vincent's DialPlan rule like the following.
Matching Patterns | $request = ^INVITE
To = sip:......(.+)@ | Deploy Patterns | $auth = false To = sip:%1@ ®ister.contact.remote = true $continue = false
|
|
|
Back to top |
|
voipwell.com Partner PBX
Joined: 20 Sep 2005 Posts: 528
Location: Tannersville, Pennsylvania
|
Posted: Mon Jun 18, 2012 6:09 am Post subject: |
|
|
As Lakeview wrote To = sip:......(.+)@ would match any number that had at least 7 digits. But if you want to match only numbers that begin with 111222 and 444555 then you could use:
To = sip:111222(.+)@|sip:444555(.+)@
instead of sip:......(.+)@
All depends on your needs. |
|
Back to top |
|
|