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

Marwan El-Sadek marwan_sadek at hotmail.com
Fri Sep 28 11:08:33 CEST 2012


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/20120928/fe7a878d/attachment.htm>


More information about the Users mailing list