Re: [Freeswitch-users] XML config file parsing
Thx Jason for the reply, I realise i was quite unclear in what i'm hoping to achieve. I wanted to make a control panel for our office so that we can provision extensions at the same time as we do users. We have a system much like the "ubuntu ebox" that allows use to manage users for our organization and for virtual domains - it uses postgresql as a backend. I'm not aware of freeswitch's abilities or features when it comes to databases. Can freeswitch lookup SQL tables in realtime? I would love the ability to manage dialplans, voicemail accounts, and extensions/endpoints thru a database much like mysql or postgresql The reason i was discussing XML is for this very same purpose, i though i could write helper scripts that would 'spit' out some XML configuration files thus dynamically updating Freeswitch configuration from a web frontend.. almost similar to what the freepbx.org guys have done. regards, Sam
Hi Sam, Take a look at mod_xml_curl. Pretty sure it'll do everything you're looking for. http://wiki.freeswitch.org/wiki/Mod_xml_curl Also, I would browse the modules and look for other nifty functionality that already exists before setting out to write something new. http://wiki.freeswitch.org/wiki/Modules Good luck! Rob On Nov 19, 2009, at 7:41 AM, Samuel Mukoti wrote:
Thx Jason for the reply,
I realise i was quite unclear in what i'm hoping to achieve. I wanted to make a control panel for our office so that we can provision extensions at the same time as we do users. We have a system much like the "ubuntu ebox" that allows use to manage users for our organization and for virtual domains - it uses postgresql as a backend.
I'm not aware of freeswitch's abilities or features when it comes to databases. Can freeswitch lookup SQL tables in realtime?
I would love the ability to manage dialplans, voicemail accounts, and extensions/endpoints thru a database much like mysql or postgresql
The reason i was discussing XML is for this very same purpose, i though i could write helper scripts that would 'spit' out some XML configuration files thus dynamically updating Freeswitch configuration from a web frontend.. almost similar to what the freepbx.org guys have done.
regards,
Sam _______________________________________________ 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
On Fri, Nov 20, 2009 at 3:03 AM, Rob Forman <rob4manhere@gmail.com> wrote:
Hi Sam, Take a look at mod_xml_curl. Pretty sure it'll do everything you're looking for.
Looking at that diagram it seems like mod_xml_curl makes a call for every SIP connection. That seems like overkill. Is there a way to set it up so that it caches the XML it got for a period of time?
There is a formula to implement caching but it's very complicated and nobody has had time to work on it. You have to take every single input variable into account when caching because who is calling the extension, why they are calling it when they are calling it all make a difference. Web servers are designed to get thousands of hits per second so typically they can handle delivering custom xml instruction quite well. If you do not require such a dynamic setup, you could generate static files instead. On Sun, Nov 22, 2009 at 5:43 PM, Tim Uckun <timuckun@gmail.com> wrote:
On Fri, Nov 20, 2009 at 3:03 AM, Rob Forman <rob4manhere@gmail.com> wrote:
Hi Sam, Take a look at mod_xml_curl. Pretty sure it'll do everything you're looking for.
Looking at that diagram it seems like mod_xml_curl makes a call for every SIP connection. That seems like overkill. Is there a way to set it up so that it caches the XML it got for a period of time?
_______________________________________________ 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> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Or, you can use something like Smarty to cache your generated XML on your web server and only invalidate those cached results when you change something that will impact them. On Mon, Nov 23, 2009 at 11:38 AM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
There is a formula to implement caching but it's very complicated and nobody has had time to work on it. You have to take every single input variable into account when caching because who is calling the extension, why they are calling it when they are calling it all make a difference.
Web servers are designed to get thousands of hits per second so typically they can handle delivering custom xml instruction quite well.
If you do not require such a dynamic setup, you could generate static files instead.
On Sun, Nov 22, 2009 at 5:43 PM, Tim Uckun <timuckun@gmail.com> wrote:
On Fri, Nov 20, 2009 at 3:03 AM, Rob Forman <rob4manhere@gmail.com> wrote:
Hi Sam, Take a look at mod_xml_curl. Pretty sure it'll do everything you're looking for.
Looking at that diagram it seems like mod_xml_curl makes a call for every SIP connection. That seems like overkill. Is there a way to set it up so that it caches the XML it got for a period of time?
_______________________________________________ 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 GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:213-799-1400
_______________________________________________ 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
-- Eliot Gable "We do not inherit the Earth from our ancestors: we borrow it from our children." ~David Brower "I decided the words were too conservative for me. We're not borrowing from our children, we're stealing from them--and it's not even considered to be a crime." ~David Brower "Esse oportet ut vivas, non vivere ut edas." (Thou shouldst eat to live; not live to eat.) ~Marcus Tullius Cicero
On Tue, Nov 24, 2009 at 5:48 AM, Eliot Gable <egable+freeswitch@gmail.com> wrote:
Or, you can use something like Smarty to cache your generated XML on your web server and only invalidate those cached results when you change something that will impact them.
That sounds like a pretty sane way to go bout it.
participants (5)
-
Anthony Minessale
-
Eliot Gable
-
Rob Forman
-
Samuel Mukoti
-
Tim Uckun