<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
On 9/8/11 3:12 AM, MingHon wrote:
<blockquote
cite="mid:CACRMveckgy28Kt2JF_Y9tP9B18D72NVOSwHLuhxOADZ__=dkmw@mail.gmail.com"
type="cite">Hi,
<div><br>
</div>
<div>Sorry, let me explain my situation.</div>
<div><br>
</div>
<div>my box is behind nat with private ip 192.168.2.3 and nat ip
is 60.x.x.x</div>
<div><br>
</div>
<div>and asterisk is same nat as the box with private ip
192.168.2.23</div>
<div><br>
</div>
<div>now let say i got 2 UA. one UA is located on different nat
and another UA is same nat with the box.</div>
<div><br>
</div>
<div>UA1- private ip 10.10.10.123 and nat ip is 60.y.y.y</div>
<div>UA2- private ip 192.168.2.100 and nat ip is 60.x.x.x</div>
<div><br>
</div>
<div>with advertised_address = 60.x.x.x</div>
<div>UA1 successfully register.</div>
<div>UA2 registration fail. because when box send option method,
UA2 reply 200OK to 60.x.x.x</div>
<div><br>
</div>
<div>is there anyway to rewrite the via header when sending to UA2
?<br>
</div>
</blockquote>
then maybe is better to use set_advertise_address based on source
IP, not only as global option:<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x#set_advertised_address">http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x#set_advertised_address</a><br>
<br>
So depending who is sending the request, you set the right
advertised address per request.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
cite="mid:CACRMveckgy28Kt2JF_Y9tP9B18D72NVOSwHLuhxOADZ__=dkmw@mail.gmail.com"
type="cite">
<div>
<br>
</div>
<div>Thanks and Regards,</div>
<div><br>
</div>
<div>MingHon</div>
<div><br>
<div class="gmail_quote">On Wed, Sep 7, 2011 at 4:40 PM,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF" text="#000000"> Hello,
<div>
<div class="h5"><br>
<br>
On 9/6/11 8:53 AM, MingHon wrote:
<blockquote type="cite">Hello List,
<div><br>
</div>
<div>Can i have UA in the same nat with the box and
also UA in different nat at the same time?</div>
<div><br>
</div>
<div>My box is currrently working behind nat with ip
192.168.2.3 and advertised_address is set to <a
moz-do-not-send="true"
href="http://sip.mydomain.com" target="_blank">sip.mydomain.com</a></div>
<div><br>
</div>
<div>is it possible to append the via header replace
the <a moz-do-not-send="true"
href="http://sip.mydomain.com" target="_blank">sip.mydomain.com</a>
to 192.168.2.3 ?</div>
</blockquote>
</div>
</div>
not sure I understand what you want to achieve. First you
say that you want advertised address to be <a
moz-do-not-send="true" href="http://sip.mydomain.com"
target="_blank">sip.mydomain.com</a> but then you want
it to be 192.168.2.3, which would be if you don't set
advertised address parameter.<br>
<br>
Cheers,<br>
Daniel<br>
<font color="#888888">
<pre cols="72">--
Daniel-Constantin Mierla -- <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a moz-do-not-send="true" href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a>
<a moz-do-not-send="true" href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a moz-do-not-send="true" href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre>
</font></div>
</blockquote>
</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>
<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>
Kamailio Advanced Training, Oct 10-13, Berlin: <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
</body>
</html>