Tony,<br><br>I am sorry but I think you missed the point here. The idea is that FSGui will not _SET_ no XML on the directory from its GUI but yes be able to _GET_ its configs from the user directory that can be set anywhere and with any method supported since the core does not care (cos of xml hooks such as curl and odbc).<br>
<br>In this case, FSGui will only fetch XML from the directory, read it and work with it, being totally passive. Take a look at HUD and you will get the point. Hooking it to the xml events on ESL, it will be able to play along to simply any web gui without a problem and FSGui could be used by all other projects that are setting and manipulating the XMLs.<br>
<br>Of course, FSGui would have an overhead of "asking" for the user directory from time to time since we do not receive any events on esl if the directory has changed using curl. But I don't see that too much of a problem right now.<br>
<br>jmesquita<br><br><div class="gmail_quote">On Wed, Jul 22, 2009 at 11:59 AM, Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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<br>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.<br>
<br>you can still generate some of the configs static that do not change often but for things like directory and dialplan you should be <br>doing an xml hook so your app and FS both use the same database schema to get/set the data.<br>
<br>ask Swk on irc he has one in his contrib.<br><br><br><div class="gmail_quote"><div class="im">2009/7/22 Joćo Mesquita <span dir="ltr"><<a href="mailto:jmesquita@gmail.com" target="_blank">jmesquita@gmail.com</a>></span><br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div><div></div><div class="h5"><div class="gmail_quote"><div>On Wed, Jul 22, 2009 at 7:29 AM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br><div><div><div>On Jul 22, 2009, at 1:03 AM, Joćo Mesquita wrote:</div><br><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><ol>
<li>Using ESL for that is the best approach? If not, what would be? (I foresee the need of SSL on libesl soon ...)</li></ol></span></blockquote></div>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! :)</div>
</div></blockquote></div><div><br>I have never thought of putting it anywhere else... <br></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div><div><br><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><ol start="2">
<li>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?</li><ol><li>switch_xml_locate_domain needs the domain name and at this point, I don't have it yet.</li>
</ol></ol></span></blockquote><div><br></div></div><div>You can xml_locate any section of the config directly... by name.</div></div></div></blockquote></div><div><br>The current API exposed on esl does not support it. Quoting the wiki:<br>
<h3> <span>xml_locate</span></h3>
<p>Find some XML.
</p><p>Usage: xml_locate [root | <section> <tag> <tag_attr_name> <tag_attr_val>] <br></p><p>Looked at the code and it verifies....<br></p>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?<br>
<br></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><div></div><div><br><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><ol start="3">
<li>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?</li></ol></span></blockquote></div><div>Not sure, can you give an example use case?</div>
<div></div></div></div></blockquote></div><div><br><param name="fsgui_allow_hold" value="true" /><br><param name="fsgui_visible_group" value="default, sales" /><br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><div><div><br><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><br>
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.<br><br>Later,<br><br>jmesquita</span></blockquote></div></div><br></div><br></div>_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>
<br>_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>