Performing system wide initialization during startup
I am recreating a conferencing application on FreeSwitch to replace a proprietary application originally developed using Dialogic ISDN hardware. I am using mod_conference and a JavaScript application based on the JavaScript samples. As part of this application, I have to track some counters and other data that are global to all of the conference/channel instances. I would like to initialize this code during startup. I could do this multiple ways including using C or C++ code. I would prefer to accomplish this by running a small JavaScript or C based application during Switch Startup to set some Global Variables based on data in an XML file. Is there a way to do this currently? Or is this a case where a new specialized module needs to be developed? Regards, Paul David Swardstrom
you could use the db_hash for runtime scoped globals or the plain old db app for persistant data storage. On Mon, May 24, 2010 at 1:22 PM, David Swardstrom < dswardstrom@remotelink.com> wrote:
I am recreating a conferencing application on FreeSwitch to replace a proprietary application originally developed using Dialogic ISDN hardware. I am using mod_conference and a JavaScript application based on the JavaScript samples.
As part of this application, I have to track some counters and other data that are global to all of the conference/channel instances. I would like to initialize this code during startup. I could do this multiple ways including using C or C++ code. I would prefer to accomplish this by running a small JavaScript or C based application during Switch Startup to set some Global Variables based on data in an XML file.
Is there a way to do this currently? Or is this a case where a new specialized module needs to be developed?
Regards, Paul David Swardstrom
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
participants (2)
-
Anthony Minessale
-
David Swardstrom