<p>It is important to not violate scope.  Do not let one problem define your path.  The goal is not to make the default a certain way.  The goal is to scale from static configs to dynamic as seamlessly as possible.</p>
<div class="gmail_quote">On May 14, 2011 4:20 AM, &quot;Mathieu Parent&quot; &lt;<a href="mailto:math.parent@gmail.com">math.parent@gmail.com</a>&gt; wrote:<br type="attribution">&gt; 2011/5/10 Rupa Schomaker &lt;<a href="mailto:rupa@rupa.com">rupa@rupa.com</a>&gt;:<br>
&gt;&gt; On Tue, May 10, 2011 at 3:19 PM, Mathieu Parent &lt;<a href="mailto:math.parent@gmail.com">math.parent@gmail.com</a>&gt; wrote:<br>&gt;&gt;&gt; I have doubt about mod_hash because it doesn&#39;t propagate hashes on<br>
&gt;&gt;&gt; remote servers (it does for limits only). Should I use mod_db instead?<br>&gt;&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; +1<br>&gt; <br>&gt; <br>&gt; Thinking wider, what we need is an updatable directory. The directory<br>
&gt; is by default stored as readonly XML files. Mod_voicemail currently<br>&gt; workaround this (IMO) by creating an SQL table to store vm password.<br>&gt; Couldn&#39;t we provide a more generic handler ?<br>&gt; <br>&gt; Proposal: add a new xml_int binding: &quot;directory_update&quot;.<br>
&gt; -------------<br>&gt; <br>&gt; With mod_xml_curl, the POST request will look like this:<br>&gt; <br>&gt; [hostname] =&gt; testmachine<br>&gt; [section] =&gt; directory_update<br>&gt; [tag_name] =&gt; domain<br>&gt; [key_name] =&gt; name<br>
&gt; [key_value] =&gt; domain1.awesomevoipdomain.faketld<br>&gt; [key] =&gt; id<br>&gt; [user] =&gt; 1004<br>&gt; [domain] =&gt; domain1.awesomevoipdomain.faketld<br>&gt; [set-param-forward-all-destination] =&gt; 1234<br>
&gt; [set-param-forward-all-status] =&gt; 1<br>&gt; <br>&gt; (POST variables prefixed with &quot;set-param-&quot; or &quot;set-variable-&quot; modify<br>&gt; the relevant XML attribute)<br>&gt; <br>&gt; The xml_int should return either:<br>
&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;<br>&gt; &lt;document type=&quot;freeswitch/xml&quot;&gt;<br>&gt;   &lt;section name=&quot;result&quot;&gt;<br>&gt;     &lt;result status=&quot;success&quot; /&gt;<br>
&gt;   &lt;/section&gt;<br>&gt; &lt;/document&gt;<br>&gt; or<br>&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;<br>&gt; &lt;document type=&quot;freeswitch/xml&quot;&gt;<br>&gt;   &lt;section name=&quot;result&quot;&gt;<br>
&gt;     &lt;result status=&quot;not found&quot; /&gt;<br>&gt;   &lt;/section&gt;<br>&gt; &lt;/document&gt;<br>&gt; <br>&gt; A new function is needed:<br>&gt; SWITCH_DECLARE(switch_status_t) switch_xml_update_user(const char *key,<br>
&gt; <br>&gt;                                     const char *user_name,<br>&gt; <br>&gt;                                     const char *domain_name,<br>&gt; <br>&gt;                                     switch_event_t *params)<br>
&gt; <br>&gt; Where params is an event containing the set-* variables.<br>&gt; <br>&gt; As mod_xml_curl is not configured by default, we need something to<br>&gt; update XML files: any idea?<br>&gt; <br>&gt; I will start to implement the suggested proposal.<br>
&gt; <br>&gt; -- <br>&gt; Mathieu<br>&gt; <br>&gt; _______________________________________________<br>&gt; FreeSWITCH-dev mailing list<br>&gt; <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
&gt; <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div>