[OpenSIPS-Users] Store values of the REGISTER and Retrieve them in the INVITE
Marwan El-Sadek
marwan_sadek at hotmail.com
Tue Oct 2 11:33:01 CEST 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121002/9b9145e7/attachment.htm>
More information about the Users
mailing list