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(a)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/aste…
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(a)lists.sip-router.org
http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**users<http:/…