Re: [SR-Users] $avp(received)

2014-07-06 Thread Daniel-Constantin Mierla
Welcome! Daniel On 07/07/14 08:39, Kelvin Chua wrote: as always, thanks daniel :) Kelvin Chua On Thu, Jul 3, 2014 at 4:21 PM, Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: Hello, the received avp is set by fix_nated_registrar(), iirc. set_contact_alias() doesn't

Re: [SR-Users] $avp(received)

2014-07-06 Thread Kelvin Chua
as always, thanks daniel :) Kelvin Chua On Thu, Jul 3, 2014 at 4:21 PM, Daniel-Constantin Mierla wrote: > 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

Re: [SR-Users] $avp(received)

2014-07-03 Thread Daniel-Constantin Mierla
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 constru

[SR-Users] $avp(received)

2014-07-02 Thread Kelvin Chua
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 Kelvin Chua ___ SIP Express Router (SER) and Kamailio