Re: [OpenSIPS-Users] CallControl - CDRTool : MySQL server has gone away (2006)

2009-10-04 Thread Adrian Georgescu
Hi Carlo, I am aware of this problem. To my dispair I could not find what is causing for it. I have already captured both errors 2006 and 2013 at the lowest level possible in PHP code (in phplib/db_mysql.inc) where when such error code is detected a new connection to mysql server is

[OpenSIPS-Users] Global Variables

2009-10-04 Thread Brett Nemeroff
Hey all,I'm wondering if there is a way to use global variables? I see that $var variables are persistent across the process, but I need something that will persist across all processes. Right now, I'm using memcache, but I'm not sure if I'll have race conditions relying on that as I expect many

Re: [OpenSIPS-Users] Global Variables

2009-10-04 Thread Jeff Kronlage
Brett, The $var variables are persistent per transaction. For the entire dialog, use dialog variables: http://www.opensips.org/html/docs/modules/1.5.x/dialog.html The key functions here are store_dlg_value() and fetch_dlg_value(), or set_dlg_flag() and is_dlg_flag_set(). Now if

Re: [OpenSIPS-Users] Global Variables

2009-10-04 Thread Stanisław Pitucha
2009/10/4 Brett Nemeroff br...@nemeroff.com: I'm wondering if there is a way to use global variables? $shv(...) does that: http://www.opensips.org/html/docs/modules/1.5.x/cfgutils.html#id271355 but I'm not sure if I'll have race conditions relying on that as I expect many processes to be