<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
For example you can add dns records for
customer{one,two,...}.whatever.com pointing to your proxy.<br>
Then proxy can forward requests from outside world to asterisks
based on uri domain part (customerone -> 192.168.0.5, two->
.10).<br>
You can keep table of uri->ip conversions either in the
kamailio.cfg or in any database you like.<br>
<br>
Maybe it's not the best way but you can start from it.<br>
<br>
IIRC carrierroute module can be used for such routing, so you can
check it too.<br>
<br>
<blockquote
cite="mid:CAHNi6cB1vuxwjiyvcy1SSirXG2vZTDWXX6GQwKnOgb0cdHd02w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hi there,<br>
</div>
I am trying to implement a sip/rtp proxy.<br>
</div>
I have one public ip address with a domain name. example (<a
moz-do-not-send="true" href="http://whatever.com">whatever.com</a>)<br>
</div>
On the lan side i have multiple asterisk instances all
listening on 5060 for sip requests. These instances will be
assigned to different customers<br>
</div>
<div><br>
</div>
I am hoping to run kamailio in front of these instances and
route sip and rtp traffic to the correct asterisk instance.<br>
<br>
</div>
<div>So in this use case asterisk instances will be used as
application servers and kamailio will be used as a
sip/rtpproxy with nathelper<br>
<br>
So my question is what would be the best way and using which
modules can i route the requests for <a
moz-do-not-send="true"
href="http://customerone.whatever.com">customerone.whatever.com</a>
to the first asterisk instance and <a moz-do-not-send="true"
href="http://customertwo.whatever.com">customertwo.whatever.com</a>
to the second.<br>
<br>
</div>
<div>is this achieved with the dispatcher module? and if so,
where can it be defined that requests for <a
moz-do-not-send="true"
href="http://cusomertone.whatever.com">cusomertone.whatever.com</a>
is routed to the first asterisk instance.<br>
</div>
<div><br>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>Kind regards,<br>
Cormac O'Loughlin<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
</body>
</html>