<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi,<br><br>Thanks for your response: When using the function you suggested:<br><br>listen=udp:192.168.1.111:5061<br>listen=udp:192.168.1.111:5062<br>.....<br><br>force_send_socket(192.168.1.111:5060);<br>...<br><br>I am getting the following error message:<br><br>Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]: ERROR:core:fix_actions: bad force_send_socket argument: 209.16.123.111:5060 (ser doesn't listen on it) <br>Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]: ERROR:core:fix_actions: fixing failed (code=-476) at cfg line 332 <br>Jul 27 09:45:07 lab-openser01 /usr/sbin/openser[8861]: ERROR:core:main: failed to fix configuration with err code -476 <br><br><br>As I mentioned I am trying to run multiple instances of openser with diff ports and proxy all traffic coming from diff ports to a fix port 5060. Domains are set within a perl script. <br><br><br>PS: I am using openser 1.3 release within ubuntu OS.<br><br>Thanks,<br>R<br><br><br><br>&gt; Date: Mon, 26 Jul 2010 17:55:54 -0300<br>&gt; From: uriel.rozenbaum@gmail.com<br>&gt; To: rob1485@gmail.com<br>&gt; CC: users@lists.kamailio.org<br>&gt; Subject: Re: [SR-Users] multiple instances on different ports<br>&gt; <br>&gt; Hi,<br>&gt; <br>&gt; try using force_send_socket but you'll have to declare the socket with<br>&gt; 5060 as well<br>&gt; <br>&gt; http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.0.x#force_send_socket<br>&gt; <br>&gt; Cheers,<br>&gt; Uriel<br>&gt; <br>&gt; On Mon, Jul 26, 2010 at 5:38 PM, Robert R &lt;rob1485@gmail.com&gt; wrote:<br>&gt; &gt; Hi,<br>&gt; &gt;<br>&gt; &gt; I am trying to run multiple different instances of openser on the same<br>&gt; &gt; server using different ports.<br>&gt; &gt; Regardless of receiving INVITE on any of the ports (5061, 5062, ...)&nbsp; I want<br>&gt; &gt; openser always to proxy the message to port 5060.<br>&gt; &gt;<br>&gt; &gt; &nbsp;invite:5061 ---&gt; openser --&gt; invite:5060<br>&gt; &gt; &nbsp;invite:5062 ---&gt; openser --&gt; invite:5060<br>&gt; &gt;<br>&gt; &gt; By adding two listen ports as follow, openser sends the traffic to the same<br>&gt; &gt; outgoing port as the incoming port:<br>&gt; &gt;<br>&gt; &gt; listen=udp:209.16.123.160:5061<br>&gt; &gt; listen=udp:209.16.123.160:5062<br>&gt; &gt;<br>&gt; &gt; Is there a way to hard code the outgoing port? or I should overwrite the<br>&gt; &gt; port?<br>&gt; &gt;<br>&gt; &gt; Thanks,<br>&gt; &gt; R<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>&gt; &gt; sr-users@lists.sip-router.org<br>&gt; &gt; http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br>&gt; &gt;<br>&gt; &gt;<br>&gt; <br>&gt; _______________________________________________<br>&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>&gt; sr-users@lists.sip-router.org<br>&gt; http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br>                                               <br /><hr />Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. <a href='http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1' target='_new'>Learn more.</a></body>
</html>