Check out RealTime. This is how its done.
Otherwise..not really..each module has its own memory space and runs in its
own "thread" and so you can't share resources like that across
memory space.
What are you using to query?
-Matthew
----- Original Message -----
From: "Roy Sigurd Karlsbakk" <roy@karlsbakk.net>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users@lists.digium.com>
Sent: Monday, December 13, 2004 6:42 AM
Subject: [Asterisk-Users] MYSQL cmd - preconnect?
> hi
>
> is it possible to have asterisk connect to mysql with a
> username/password in some config file and then, afterwards, just use a
> global handle to the db? I don't see the point of connecting every time
> I need to query it ...
>
> roy
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users