<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body 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<br>
<br>
<div class="moz-cite-prefix">On 02/07/14 10:22, Kelvin Chua wrote:<br>
</div>
<blockquote
cite="mid:CAMF97-e2W5csZk6O_9KOYupYTA+EGsobu8oM4Tfwwsp3o-N_aQ@mail.gmail.com"
type="cite">
<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 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>