[Asterisk-Dev] global vars in shared objects

Wolfgang Pichler madmin at dialog-telekom.at
Tue Aug 2 06:31:18 MST 2005


hi all,

this is maybe a very dumb question...

i have developed some applications for asterisk which gets loaded as
shared objects. Every application is using a mysql connection. On load
each application is creating the mysql connection - and holds the
connection information in the global var mysql (among some other
variables)

So, i've now two modules gets loaded - and each define mysql as global
var - does then the second one overwrites the first one ? (first i
havn't thought so - but they are shared object - so this maybe can
happen). Or does each shared object which gets loaded get its own
variable namespace ?

i apologise if this is a dump question...

regards,
Wolfgang





More information about the asterisk-dev mailing list