<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Perhaps you should set force send socket before loose_route(), so it
will update it if needed.<br>
<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 12/12/13 22:20, Ronald Voermans
wrote:<br>
</div>
<blockquote
cite="mid:CCAF4BCF-8BFA-4667-A329-34865400EBD5@global-datacenter.nl"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div>Daniel,</div>
<div><br>
</div>
<div>Thank you for your answer. Configured the following (with
mhomed=yes):</div>
<div><br>
</div>
<div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>if
($(route_uri{uri.host}) == VIP_PROXY) {</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>force_send_socket(VIP_PROXY);</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>}
else if ($(route_uri{uri.host}) == VIP_PROXY_PUB) {</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>force_send_socket(VIP_PROXY_PUB);</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>}
else if ($(route_uri{uri.host}) == THIS_PROXY) {</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>force_send_socket(THIS_PROXY);</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>}
else if ($(route_uri{uri.host}) == THIS_PROXY_PUB) {</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>force_send_socket(THIS_PROXY_PUB);</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>}<span
class="Apple-tab-span" style="white-space:pre">
</span></div>
<div> <span class="Apple-tab-span" style="white-space:pre"> </span>t_relay();</div>
<div>...</div>
<div><br>
</div>
<div>This solves the issue when using the VIP_PROXY(_PUB).
However, the ACK always has two route headers when using the
THIS_PROXY as ip address. In this case, the top route header
is VIP_PROXY; the second one is THIS_PROXY. Hence, the
solution above doesn't work, because the force_send_socket
uses the top route header (which is VIP_PROXY).</div>
<div><br>
</div>
<div>Why is this different behavior when compared to mhomed=no?</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Ronald</div>
</div>
<div>
<blockquote type="cite">Dear list,<br>
<br>
I'm having an issue with our Kamailio setup.<br>
<br>
I've installed two Kamailio servers with Corosync/Pacemaker.
Kamailio1 has ip 10.254.254.5, Kamailio2 has ip 10.254.254.23.
The VIP is 10.254.254.1. All is working well; clients can sent
request to the VIP, and all traffic is sent via 10.254.254.1,
and not the real ipI've configured the listen addressess:<br>
<br>
mhomed = no<br>
listen = <a class="moz-txt-link-freetext" href="udp:10.254.254.1:5060">udp:10.254.254.1:5060</a><br>
listen = <a class="moz-txt-link-freetext" href="udp:10.254.254.23:5060">udp:10.254.254.23:5060</a><br>
<br>
I'm now trying to configure the server as a multihomed one.
Both Kamailio have two NIC's. Kamailio1 also has ip X1,
Kamailio2 has ip X2. The VIP is Y. Configuration is done as:<br>
<br>
mhomed = yes<br>
listen = <a class="moz-txt-link-freetext" href="udp:10.254.254.1:5060">udp:10.254.254.1:5060</a><br>
listen = <a class="moz-txt-link-freetext" href="udp:10.254.254.23:5060">udp:10.254.254.23:5060</a><br>
listen = <a class="moz-txt-link-freetext" href="udp:Y:5060">udp:Y:5060</a><br>
listen = <a class="moz-txt-link-freetext" href="udp:X1:5060">udp:X1:5060</a><br>
<br>
When a UA sends an INVITE to for example 10.254.254.1, all
responses (back) to UA are being sent with source address
10.254.254.1 (VIP), except for the ACK (and BYE). The ACK is
sent via the real ip 10.254.254.23. I can resolve this by
issuing a force_send_socket before t_relay in the config; but
since it's multihomed, I have to build a lot of checks to find
out the outgoing socket. Besides that, I want it to be
possible to use both the real IP and the VIP as IP-address for
the UA (for testing purposes). This won't work with
force_send_socket.<br>
<br>
Does anyone from the list know how I can solve this? <br>
<br>
Thanks,<br>
<br>
Regards,<br>
<br>
Ronald</blockquote>
</div>
<br>
<link href="cid:filelist.xml@01C759A1.04188130" rel="File-List">
<link href="cid:editdata.mso" rel="Edit-Time-Data">
<style>body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
font-family: Arial;
font-size:10pt;
color: #666666;
}
a:link {
color: #666666;
}
a:visited {
color: #666666;
}
a:hover {
color: #666666;
}
a:active {
color: #666666;
}
</style>
<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>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>