Hello,

Can anyone please help me with this point?

Regards,
Marwan


From: [email protected]
To: [email protected]
CC: [email protected]
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
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to