<div dir="ltr"><div dir="ltr"><div class="gmail_default">can you write your own functions with opensips?</div><div class="gmail_default">Yes -> using routes</div><div class="gmail_default"><br></div><div class="gmail_default"><div dir="auto">Can you point me to an example?</div>Storing-> <a href="https://opensips.org/html/docs/modules/2.2.x/dialog.html#idp5880336">https://opensips.org/html/docs/modules/2.2.x/dialog.html#idp5880336</a></div><div class="gmail_default">Retrieving -> <a href="https://opensips.org/html/docs/modules/2.2.x/dialog.html#idp5887712">https://opensips.org/html/docs/modules/2.2.x/dialog.html#idp5887712</a></div><div class="gmail_default"><br></div><div class="gmail_default">Or work with flags, if just true or false value </div><div class="gmail_default"><a href="https://opensips.org/html/docs/modules/2.2.x/dialog.html#idp341408">https://opensips.org/html/docs/modules/2.2.x/dialog.html#idp341408</a><br></div></div><div><br></div>Regards<br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 25, 2022 at 1:45 PM Saint Michael <<a href="mailto:venefax@gmail.com">venefax@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-size:small">Question:</div><div style="font-size:small">can you write your own functions with opensips?</div><div style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 25, 2022 at 12:05 PM Saint Michael <<a href="mailto:venefax@gmail.com" target="_blank">venefax@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Dear Daniel<div dir="auto">Can you point me to an example?</div><div dir="auto">Right now Opensios will get a clogged memory.</div><div dir="auto">Many thanks.</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 25, 2022, 11:45 AM Daniel Zanutti <<a href="mailto:daniel.zanutti@gmail.com" target="_blank">daniel.zanutti@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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" rel="noreferrer" target="_blank">venefax@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-size:small">I noticed that the variable </div><div style="font-size:small">$avp(lineid)</div><div 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 style="font-size:small">Is there a way to store a variable that will be available throughout the call, everywhere?</div><div style="font-size:small">I am trying: </div><div style="font-size:small">cache_store("local","lineid_$ci","$avp(lineid)",0);<br></div><div 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 style="font-size:small"><br></div><div style="font-size:small">many thanks for your help and guidance</div><div style="font-size:small"><br></div><div style="font-size:small">Philip</div><div style="font-size:small"><br></div><div style="font-size:small"><br></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" rel="noreferrer noreferrer" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" rel="noreferrer" target="_blank">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>
</blockquote></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div>