[asterisk-dev] Defining variables in global or xyz_exec () function in asterisk application

ast guy astguy at gmail.com
Thu Aug 3 05:43:14 MST 2006


hi,
 I have an application which under heavy loads eats up memory at very
hight rate... and some time it crashes along with asterisk leaving to
option nothing but to bounce asterisk after some regular interval to
avoid from other bad effects...

I would like to put a question regarding variables in the global file
access of application app_xyz.c and variables defined in the _exec()
function. Which practise is good a) global defination or b) defining
in _exec() function, that memory is not being corrupted by either of
app_xyz.so thread initiated by asterisk ...

-ag



More information about the asterisk-dev mailing list