<div dir="auto">You have to use dialog variable storing.<div dir="auto">Take a look at dialog module.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em dom., 25 de set. de 2022 10:42, Saint Michael <<a href="mailto:venefax@gmail.com">venefax@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">I noticed that the variable </div><div class="gmail_default" style="font-size:small">$avp(lineid)</div><div class="gmail_default" style="font-size:small">set in the section of the code handling the original INVITE, is null when I need to close the call. </div><div class="gmail_default" style="font-size:small">Is there a way to store a variable that will be available throughout the call, everywhere?</div><div class="gmail_default" style="font-size:small">I am trying: </div><div class="gmail_default" style="font-size:small">cache_store("local","lineid_$ci","$avp(lineid)",0);<br></div><div class="gmail_default" style="font-size:small">but I need this value to disappear when this call is closed. I cannot set an expiration because the call may last for 2 hours or 2 seconds.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">many thanks for your help and guidance</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Philip</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank" rel="noreferrer">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>