<div dir="ltr">as always, thanks daniel :)</div><div class="gmail_extra"><br clear="all"><div>Kelvin Chua</div>
<br><br><div class="gmail_quote">On Thu, Jul 3, 2014 at 4:21 PM, Daniel-Constantin Mierla <span dir="ltr"><<a 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>
the received avp is set by fix_nated_registrar(), iirc.
set_contact_alias() doesn't do it.<br>
<br>
If you want to get the source IP and port, use $si and $sp. Local IP
and port is $Ri and $Rp (iirc, you should check the cookbook). The
protocol type is $pr. With these variables you can construct any
address you need related to source or local socket.<br>
<br>
Cheers,<br>
Daniel<div><div class="h5"><br>
<br>
<div>On 02/07/14 10:22, Kelvin Chua wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>is there any way of getting the received ip/port/proto from
nathelper?</div>
<div>
<div><br>
</div>
<div>modparam("nathelper|registrar", "received_avp",
"$avp(RECEIVED)")</div>
</div>
<div><br>
</div>
<div>set_contact_alias();</div>
<div>xlog("$avp(RECEIVED)");</div>
<div><br>
</div>
<div>this gives me <null></div>
<br clear="all">
<div>Kelvin Chua</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a 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><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre cols="72">--
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a 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 href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a 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>