[SR-Users] $avp(received)

Daniel-Constantin Mierla miconda at gmail.com
Thu Jul 3 10:21:11 CEST 2014


Hello,

the received avp is set by fix_nated_registrar(), iirc. 
set_contact_alias() doesn't do it.

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.

Cheers,
Daniel

On 02/07/14 10:22, Kelvin Chua wrote:
> is there any way of getting the received ip/port/proto from nathelper?
>
> modparam("nathelper|registrar", "received_avp", "$avp(RECEIVED)")
>
> set_contact_alias();
> xlog("$avp(RECEIVED)");
>
> this gives me <null>
>
> Kelvin Chua
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140703/64c31d63/attachment.html>


More information about the sr-users mailing list