Forums Read-only archive

How can I make to allow Incoming calls to registered user?

5 posts · Brekeke SIP Server Forum

hslee Original post
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/ ... terns.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.
Vincent
Try this dial plan,that's what I use:

[Matching Patterns]

$request = ^INVITE
To = sip:0(.+)@

[Deploy Patterns]

$auth = false
To = sip:%1@
&register.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.
hslee
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?
lakeview
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@
&register.contact.remote = true
$continue = false
--------------------------------
voipwell.com
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.