[OpenSIPS-Users] Store data in text File

Răzvan Crainea razvan at opensips.org
Wed May 17 04:55:57 EDT 2017


Hi, Alain!

Flatstore works as a database that only supports native inserts.
If you need to write in a file you can use the exec[1] module, which 
basically executes any command you want - you can do something like:
exec("echo \"$fU called $rU\" > /tmp/logging");

[1] http://www.opensips.org/html/docs/modules/2.3.x/exec.html#idp5622832

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 05/16/2017 06:22 PM, Alain Bieuzent wrote:
>
> Hi all,
>
> I need to store some data on text file (and acces it form shell), i’m 
> trying to use the flatstore module but i don’t understand how i can 
> write into it.
>
> Does anyone use this module without the Acc module? Is there another 
> solution ?
>
> Many thanks
>
> Alain
>
>
>
> _______________________________________________
> 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/20170517/b6589511/attachment.html>


More information about the Users mailing list