You cat getting null value only if <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">&quot;$hdr(header_name)&quot; and &quot;</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">$avp(new_hdr)&quot; are not the same. Check it.</span><div>
<font color="#222222" face="arial, sans-serif"><br clear="all"></font>--<br>Nick<div><br><br><div class="gmail_quote">2012/10/2 Marwan El-Sadek <span dir="ltr">&lt;<a href="mailto:marwan_sadek@hotmail.com" target="_blank">marwan_sadek@hotmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">
<br>Hello,<br><br>Can anyone please help me with this point?<br><br>Regards,<br>Marwan<br><div class="hm HOEnZb"><font style="font-size:12pt" color="#333399" face="Courier New, Courier, Monospace" size="3"></font><br><br>
</div><div><div class="hm HOEnZb"><div></div><hr>From: <a href="mailto:marwan_sadek@hotmail.com" target="_blank">marwan_sadek@hotmail.com</a><br>To: <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a><br>
CC: <a href="mailto:marwan_sadek@hotmail.com" target="_blank">marwan_sadek@hotmail.com</a><br>Subject: Store values of the REGISTER and Retrieve them in the INVITE<br>Date: Fri, 28 Sep 2012 12:08:33 +0300</div><div><div class="h5">
<br><br>


<div dir="ltr">
Hello,<br><div><div dir="ltr"><br>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&#39;s.<br><br>I&#39;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&#39;m not able to use it for other subsequent calls for the same user, I&#39;m getting an null value.<br>
<br>cache_store(&quot;local&quot;,&quot;variable_name_1&quot;,&quot;$hdr(header_name)&quot;,$ct.fields(expires));<br>cache_fetch(&quot;local&quot;,&quot;variable_name_1&quot;,$avp(new_hdr));<br><br>Is there a better way to do this? Thank you in advance.<br>
<br>Thanks,<br>Marwan<br><font color="#333399" face="Courier New, Courier, Monospace" size="3"></font>                                               </div></div>                                               </div></div></div></div>                                               </div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>