Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Make a user follow a specified rule path?
Author Message
AllstateTelecom
Brekeke Junior Member


Joined: 30 Aug 2011
Posts: 9
Location: Jupiter, FL

PostPosted: Thu Oct 20, 2011 7:43 am    Post subject: Make a user follow a specified rule path? Reply with quote

1. Brekeke Product Name and version:
Brekeke SIP Server 2.4.8.6/286.3

2. Java version:
1.7.0

3. OS type and the version:
Linux 2.6.18-238.19.1.el5

4. UA (phone), gateway or other hardware/software involved:
Snom One PBX, Audio Codes Gateway

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :

6. Your problem:

Is there a way to make a specified user follow a specified rule.

For instance, I have a rule that sends calls out through one provider, and then a I have a rule that sends calls out through another provider. I'm trying to set it so that I can have a couple specific users follow one rule, and the rest of the users follow another rule. I'm guessing this can be done in the dialplan but I cannot seem to figure out how to do it.

Thanks,
Brian
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Thu Oct 20, 2011 9:38 am    Post subject: Reply with quote

if the users which need to apply the same rule have the same prefix (such as 2xxx for these users id) in user id which is different from the other users
in current dial plan rule for one provider "Matching Patterns" add a line like
Matching Patterns
$request = ^INVITE
From = sip:2.+@

...

or if these users' call are from the same IP address
then user $addr = in current dial plan rule
Back to top
View user's profile
AllstateTelecom
Brekeke Junior Member


Joined: 30 Aug 2011
Posts: 9
Location: Jupiter, FL

PostPosted: Thu Oct 20, 2011 2:08 pm    Post subject: Reply with quote

Nothing is the same between the users. Is there a way to have user groups? Can I set up a rule for a specific user?
Back to top
View user's profile
Laurie
Brekeke Master Guru


Joined: 07 Jan 2008
Posts: 242

PostPosted: Thu Oct 20, 2011 8:48 pm    Post subject: Reply with quote

Have you read the DialPlan tutorial document?
http://www.brekeke-sip.com/download/bss/v2_x/bss_tutorial_dialplan_en.pdf

It will help you because it gives you many routing tips.
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