<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 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 href="http://customerone.whatever.com">customerone.whatever.com</a> to the first asterisk instance and <a 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 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>