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