[Freeswitch-dev] ESL and the directory

Anthony Minessale anthony.minessale at gmail.com
Wed Jul 22 07:59:33 PDT 2009


if you are going to make a gui you would probably want to make a database
schema to go with it and make higher level abstractions
and then use xml_curl or the new xml_oddbc to generate the xml back to FS
rather than try to use the static configs.

you can still generate some of the configs static that do not change often
but for things like directory and dialplan you should be
doing an xml hook so your app and FS both use the same database schema to
get/set the data.

ask Swk on irc he has one in his contrib.


2009/7/22 João Mesquita <jmesquita at gmail.com>

>
>
> On Wed, Jul 22, 2009 at 7:29 AM, Brian West <brian at freeswitch.org> wrote:
>
>>
>> On Jul 22, 2009, at 1:03 AM, João Mesquita wrote:
>>
>>
>>    1. Using ESL for that is the best approach? If not, what would be? (I
>>    foresee the need of SSL on libesl soon ...)
>>
>> Someone would need to add SSL support to mod_event_socket, Also while they
>> are at it.. ipv6 support to event socket would be kewl too!  :)
>>
>
> I have never thought of putting it anywhere else...
>
>>
>>
>>    1. Should I fetch root with xml_locate on ESL and parse whatever I am
>>    interested on FsGUI or should I add switch_xml_list_domains as well its API
>>    and whatever other methods are needed on xml retrieval?
>>       1. switch_xml_locate_domain needs the domain name and at this
>>       point, I don't have it yet.
>>
>>
>> You can xml_locate any section of the config directly... by name.
>>
>
> The current API exposed on esl does not support it. Quoting the wiki:
>  xml_locate
>
> Find some XML.
>
> Usage: xml_locate [root | <section> <tag> <tag_attr_name> <tag_attr_val>]
>
> Looked at the code and it verifies....
> So the question would be defined as: Should I patch this and enable it to
> return the whole section (awfully easy) or make the xml API richer by adding
> specific methods as suggested by Rupa?
>
>
>>
>>    1. Do any of you see a problem with having additional vars on xml
>>    directory to control FsGUI permissions and options? If yes, what is the
>>    alternative solution?
>>
>> Not sure, can you give an example use case?
>>
>
> <param name="fsgui_allow_hold" value="true" />
> <param name="fsgui_visible_group" value="default, sales" />
>
>
>>
>>
>> Anyway, I throwing this at the table so I can get input before making a
>> decision. Hope this does not give you all too much trouble.
>>
>> Later,
>>
>> jmesquita
>>
>>
>>
>> _______________________________________________
>> FreeSWITCH-dev mailing list
>> FreeSWITCH-dev at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
>> http://www.freeswitch.org
>>
>>
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> 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 at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20090722/10f5b9ec/attachment.html 


More information about the FreeSWITCH-dev mailing list