[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sr-users
Subject:    Re: [SR-Users] routing based on username
From:       SamyGo <govoiper () gmail ! com>
Date:       2012-07-31 10:39:35
Message-ID: CAJUJwtiKV+hQJK9uQZmpRH_hbR6sZGZtwwVcmNWQ8xgRimi-vA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

I'd suggest you to use multi-domain  i.e separate domain for 1XX users and
a separate domain for 2XX users. Then for each domain map their own group
of load-balanced Asterisk servers (not just one server for 1XX clients but
a pool of servers for capacity and fail safe)

Next - if you want your Static IPs to use the same scenario i.e one public
IP goes to defined asterisk(s) then you may need to put in an extra
identifier in permission module's table that will identify the domain
mapping of that static IP, hence as soon as an IP will get authenticated
you will get the digit telling you which group of Asterisk to pick from the
load-balancer and route the call to. It could be one Asterisk for one
group-id or multiple, your choice.

Hope it made some sense.

Thanks
Sammy


On Tue, Jul 31, 2012 at 11:58 AM, Daniel-Constantin Mierla <
miconda@gmail.com> wrote:

> Hello,
> 
> 
> On 7/30/12 10:56 AM, Richard Zheng wrote:
> 
> > Hi,
> > 
> > We are trying to follow http://kb.asipto.com/asterisk:**
> > realtime:kamailio-3.1.x-**asterisk-1.6.2-astdb<http://kb.asipto.com/asterisk:realtime:kamailio-3.1.x-asterisk-1.6.2-astdb>to \
> > setup Kamailio as front end and multiple PBXs as back end. 
> > We need to forward sip messages to the respective servers based on the
> > contact.  For example, users 101, 102 go to PBX at 1.1.1.1 and users 201,
> > 202 go to PBX at 1.1.1.2.  Where is a good place to save this info and how
> > to route them in the config?
> > 
> you can use modules such as pdt, lcr, carrierroute or drouting to route
> based on longest prefix matching.
> 
> 
> 
> > Also we have some users with fixed IP addresses which don't use
> > authentication.  How do we route the calls based on source IP?  Since we
> > have plenty of these users, we'd like to save them in database too.
> > 
> Use permissions module for IP authentication, default configuration file
> has some parts withing WITH_IPAUTH define that can help you getting started.
> 
> Cheers,
> Daniel
> 
> --
> Daniel-Constantin Mierla - http://www.asipto.com
> http://twitter.com/#!/miconda - \
> http://www.linkedin.com/in/**miconda<http://www.linkedin.com/in/miconda> Kamailio \
> Advanced Training, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu
> Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 -
> http://asipto.com/u/kpw
> 
> 
> ______________________________**_________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**users<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
>  


[Attachment #5 (text/html)]

Hi,<div><br><div>I&#39;d suggest you to use multi-domain  i.e separate domain for 1XX \
users and a separate domain for 2XX users. Then for each domain map their own group \
of load-balanced Asterisk servers (not just one server for 1XX clients but a pool of \
servers for capacity and fail safe)</div> <div><br></div><div>Next - if you want your \
Static IPs to use the same scenario i.e one public IP goes to defined asterisk(s) \
then you may need to put in an extra identifier in permission module&#39;s table that \
will identify the domain mapping of that static IP, hence as soon as an IP will get \
authenticated you will get the digit telling you which group of Asterisk to pick from \
the load-balancer and route the call to. It could be one Asterisk for one group-id or \
multiple, your choice.</div> <div><br></div><div>Hope it made some \
sense.</div><div><br></div><div>Thanks</div><div>Sammy</div><div><br></div><div><br><div \
class="gmail_quote">On Tue, Jul 31, 2012 at 11:58 AM, Daniel-Constantin Mierla <span \
dir="ltr">&lt;<a href="mailto:miconda@gmail.com" \
target="_blank">miconda@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hello,<div class="im"><br> <br>
On 7/30/12 10:56 AM, Richard Zheng wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> Hi,<br>
<br>
We are trying to follow <a \
href="http://kb.asipto.com/asterisk:realtime:kamailio-3.1.x-asterisk-1.6.2-astdb" \
target="_blank">http://kb.asipto.com/asterisk:<u></u>realtime:kamailio-3.1.x-<u></u>asterisk-1.6.2-astdb</a> \
to setup Kamailio as front end and multiple PBXs as back end.<br>

<br>
We need to forward sip messages to the respective servers based on the contact.  For \
example, users 101, 102 go to PBX at 1.1.1.1 and users 201, 202 go to PBX at 1.1.1.2. \
Where is a good place to save this info and how to route them in the config?<br>

</blockquote></div>
you can use modules such as pdt, lcr, carrierroute or drouting to route based on \
longest prefix matching.<div class="im"><br> <br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <br>
Also we have some users with fixed IP addresses which don&#39;t use authentication.  \
How do we route the calls based on source IP?  Since we have plenty of these users, \
we&#39;d like to save them in database too.<br> </blockquote></div>
Use permissions module for IP authentication, default configuration file has some \
parts withing WITH_IPAUTH define that can help you getting started.<br> <br>
Cheers,<br>
Daniel<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Daniel-Constantin Mierla - <a href="http://www.asipto.com" \
target="_blank">http://www.asipto.com</a><br> <a href="http://twitter.com/#!/miconda" \
target="_blank">http://twitter.com/#!/miconda</a> - <a \
href="http://www.linkedin.com/in/miconda" \
target="_blank">http://www.linkedin.com/in/<u></u>miconda</a><br> Kamailio Advanced \
Training, Seattle, USA, Sep 23-26, 2012 - <a href="http://asipto.com/u/katu" \
target="_blank">http://asipto.com/u/katu</a><br> Kamailio Practical Workshop, \
Netherlands, Sep 10-12, 2012 - <a href="http://asipto.com/u/kpw" \
target="_blank">http://asipto.com/u/kpw</a><br> <br>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" \
target="_blank">sr-users@lists.sip-router.org</a><br> <a \
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" \
target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
 </font></span></blockquote></div><br></div></div>



_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic