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

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
hslee
Posts: 15
Joined: Tue Sep 20, 2011 11:28 pm
Location: S. Korea

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

Post by hslee »

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.
Thank you
Vincent
Posts: 25
Joined: Thu Aug 27, 2009 9:53 am

Post by 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
Posts: 15
Joined: Tue Sep 20, 2011 11:28 pm
Location: S. Korea

Post by 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?
Thank you
lakeview
Posts: 319
Joined: Thu Nov 15, 2007 11:54 am
Location: Florida

Post by 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
Posts: 528
Joined: Tue Sep 20, 2005 9:10 am
Location: Tannersville, Pennsylvania

Post by 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.
Post Reply