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">2009/7/22 Joćo Mesquita <span dir="ltr">&lt;<a href="mailto:jmesquita@gmail.com">jmesquita@gmail.com</a>&gt;</span><br><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 class="gmail_quote"><div class="im">On Wed, Jul 22, 2009 at 7:29 AM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</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 class="im"><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&#39;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 | &lt;section&gt; &lt;tag&gt; &lt;tag_attr_name&gt; &lt;tag_attr_val&gt;] <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 class="im"><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>&lt;param name=&quot;fsgui_allow_hold&quot; value=&quot;true&quot; /&gt;<br>&lt;param name=&quot;fsgui_visible_group&quot; value=&quot;default, sales&quot; /&gt;<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 class="im"><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">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 clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>