[OpenSIPS-Users] Question about cache_store and lifetime of variables

Saint Michael venefax at gmail.com
Sun Sep 25 16:42:28 UTC 2022


Question:
can you write your own functions with opensips?


On Sun, Sep 25, 2022 at 12:05 PM Saint Michael <venefax at gmail.com> wrote:

> Dear Daniel
> Can you point me to an example?
> Right now Opensios will get a clogged memory.
> Many thanks.
>
>
> On Sun, Sep 25, 2022, 11:45 AM Daniel Zanutti <daniel.zanutti at gmail.com>
> wrote:
>
>> You have to use dialog variable storing.
>> Take a look at dialog module.
>>
>> Em dom., 25 de set. de 2022 10:42, Saint Michael <venefax at gmail.com>
>> escreveu:
>>
>>> I noticed that the variable
>>> $avp(lineid)
>>> set in the section of the code handling the original INVITE, is null
>>> when I need to close the call.
>>> Is there a way to store a variable that will be available throughout the
>>> call, everywhere?
>>> I am trying:
>>> cache_store("local","lineid_$ci","$avp(lineid)",0);
>>> 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.
>>>
>>> many thanks for your help and guidance
>>>
>>> Philip
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20220925/4f3e85e8/attachment.html>


More information about the Users mailing list