Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
How can I make to allow Incoming calls to registered user?
Author Message
hslee
Brekeke Member


Joined: 20 Sep 2011
Posts: 15
Location: S. Korea

PostPosted: Wed Jun 13, 2012 10:31 pm    Post subject: How can I make to allow Incoming calls to registered user? Reply with quote

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
View user's profile
Vincent
Brekeke Addict


Joined: 27 Aug 2009
Posts: 25

PostPosted: Thu Jun 14, 2012 6:34 am    Post subject: Reply with quote

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.
Back to top
View user's profile
hslee
Brekeke Member


Joined: 20 Sep 2011
Posts: 15
Location: S. Korea

PostPosted: Thu Jun 14, 2012 6:34 pm    Post subject: Reply with quote

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
View user's profile
lakeview
Brekeke Master Guru


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Fri Jun 15, 2012 3:46 pm    Post subject: Reply with quote

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
Back to top
View user's profile
voipwell.com
Partner PBX


Joined: 20 Sep 2005
Posts: 528
Location: Tannersville, Pennsylvania

PostPosted: Mon Jun 18, 2012 6:09 am    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1