[OpenSIPS-Users] Store values of the REGISTER and Retrieve them in the INVITE

Nick Altmann nick.altmann at gmail.com
Tue Oct 2 12:34:02 CEST 2012


You cat getting null value only if "$hdr(header_name)" and "$avp(new_hdr)"
are not the same. Check it.

--
Nick


2012/10/2 Marwan El-Sadek <marwan_sadek at hotmail.com>

>
> Hello,
>
> Can anyone please help me with this point?
>
> Regards,
> Marwan
>
>
> ------------------------------
> From: marwan_sadek at hotmail.com
> To: users at lists.opensips.org
> CC: marwan_sadek at hotmail.com
> Subject: Store values of the REGISTER and Retrieve them in the INVITE
> Date: Fri, 28 Sep 2012 12:08:33 +0300
>
>
>  Hello,
>
> I am trying, once I receive the first REGISTER, to store a specific header
> and then retrieve its value in the subsequent requests, like the following
> INVITE's.
>
> I'm currently using the cache memory, but for some reason its not working
> properly, the value cannot be used after only one INVITE and I'm not able
> to use it for other subsequent calls for the same user, I'm getting an null
> value.
>
>
> cache_store("local","variable_name_1","$hdr(header_name)",$ct.fields(expires));
> cache_fetch("local","variable_name_1",$avp(new_hdr));
>
> Is there a better way to do this? Thank you in advance.
>
> Thanks,
> Marwan
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121002/87365553/attachment.htm>


More information about the Users mailing list