[SR-Users] Accessing received after lookup()

Daniel-Constantin Mierla miconda at gmail.com
Fri Aug 17 11:37:00 CEST 2012


Hello,

On 8/17/12 10:47 AM, DanB wrote:
> Hey All,
>
> I was wondering if anyone could point me to the right direction on the 
> following issue:
>
> I use registrar with path to store contacts after main proxy. There I 
> have properly stored received db field (original address of the NAT 
> router).

did you take the received parameter from the Path header? Otherwise 
received (ie. the received column value) is usually the source ip/port. 
The received parameter of Path is stored along with it in the 
appropriate column.

Cheers,
Daniel

> When I query the registrar, I get the user contact details (natted 
> ones) in 302 redirect. However at this point I cannot access received 
> avp (or I did not find a way yet, except calling reg_fetch_contacts 
> which I would prefer not to since it doubles the work lookup does).
>
> Is there any catch which could save me in this scenario? After 
> loopkup() is there any pseudovariable which I can inspect to find out 
> user's contact data? Any other way to extract received contact data 
> out of contact info?
>
> Thanks in advance for any kind of tip!
>
> DanB
>
> _______________________________________________
> 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
Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu
Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - http://asipto.com/u/kpw




More information about the sr-users mailing list