<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
short update on this topic - the master and 4.2 branches include a
patch that should make presence work with set_contact_alias().<br>
<br>
It would be safer to use set_contact_alias(), especially if you have
UA that checks R-URI for incoming requests.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 13/10/14 04:42, Thanh Truong wrote:<br>
</div>
<blockquote
cite="mid:CAJK-L9xX73=w5Vn6N9Sjnftyxd6ct6+dLgx-Y9qy9iY6brnmVQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hi All,
<div><br>
</div>
<div>I have added : <span
style="font-family:arial,sans-serif;font-size:13px">fix_natted_contact()
and it fix this issue.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">Thank
all for help.</span></div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div dir="ltr">Thanks,
<div>ThanhTruong.</div>
<div><br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Fri, Oct 10, 2014 at 8:39 PM, Ovidiu
Sas <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:osas@voipembedded.com" target="_blank">osas@voipembedded.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I would prefer to have add_contact_alias
deprecated and then dropped (less confusing this way).<span
class="HOEnZb"><font color="#888888">
<div><br>
</div>
<div>-ovidiu</div>
</font></span></div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Oct 10, 2014 at 9:31
AM, Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:miconda@gmail.com" target="_blank">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"><span> <br>
<div>On 10/10/14 14:54, Ovidiu Sas wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">I don't think this is
documented anywhere and it's challenging
for someone not familiar with kamailio to
deal with it.
<div>Maybe we should open a bug report to
make presence *_contact_alias friendly.</div>
</div>
</blockquote>
</span> add_contact_alias() is not going to be
(very easy) friendly, by the way was coded --
probably targeting only the requests that are
proxied.<br>
<br>
It was the reason I added set_contact_alias()
for fixing that, but I was not sure how it will
cope over all at the end. So the first follow up
fix was done inside dialog module (because I
could test it at that moment), I will push it
now directly in tm to catch the other modules
sending requests within dialog.<br>
<br>
Eventually add_contact_alias() will be removed
or 'aliased' to set_contact_alias().<span><font
color="#888888"><br>
<br>
Daniel</font></span>
<div>
<div><br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div>-ovidiu</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Oct 10,
2014 at 5:16 AM, Daniel-Constantin
Mierla <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:miconda@gmail.com"
target="_blank">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,<br>
<br>
if the presence server is first
hop after a nat router, then use
fix_natted_contact() for SUBSCRIBE
requests instead of
add/set_contact_alias().<br>
<br>
Cheers,<br>
Daniel<span><br>
<br>
<div>On 05/10/14 06:52, Thanh
Truong wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div
style="word-wrap:break-word">Hi
all,
<div><br>
</div>
<div>I have install
kamailio 4.2 latest
version with presence
module.</div>
<div><br>
</div>
<div>But I cant get
contact status and
send message.</div>
</div>
</div>
</div>
</blockquote>
</span> []
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div
style="word-wrap:break-word">
<div>I see that SUBSCRIBE
message send to wrong
ip, it is sent to local
IP and my sip phone do
not receive it. But i do
not know how to fix it.</div>
<div><br>
</div>
<div>please suggest to get
it.</div>
<span><font
color="#888888"> </font></span></div>
<span><font color="#888888">
</font></span></div>
<span><font color="#888888"> </font></span></div>
<span><font color="#888888"> </font></span></blockquote>
<span><font color="#888888"> <br>
<pre cols="72">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</font></span></div>
<br>
_______________________________________________<br>
SIP Express Router (SER) and
Kamailio (OpenSER) - sr-users
mailing list<br>
<a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org"
target="_blank">sr-users@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
VoIP Embedded, Inc.<br>
<a moz-do-not-send="true"
href="http://www.voipembedded.com"
target="_blank">http://www.voipembedded.com</a>
</div>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
VoIP Embedded, Inc.<br>
<a moz-do-not-send="true"
href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a>
</div>
</div>
</div>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
mailing list<br>
<a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
</blockquote>
</div>
<br>
</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://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>