<div dir="ltr">While mod_xml_curl would also be my preference, it's also possible within a lua script if you want to generate it within FreeSWITCH rather than from an external server.<div><br></div><div>See the example script on <a href="https://freeswitch.org/confluence/display/FREESWITCH/Lua+FreeSWITCH+Dbh">https://freeswitch.org/confluence/display/FREESWITCH/Lua+FreeSWITCH+Dbh</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 November 2016 at 15:29, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">use mod_xml_curl<br>
<div class="HOEnZb"><div class="h5"><br>
> On Nov 9, 2016, at 4:24 AM, Gonzalo Gasca Meza <<a href="mailto:gonzalo@parzee.com">gonzalo@parzee.com</a>> wrote:<br>
><br>
> Hi forum,<br>
><br>
> I want to add sip users with mailbox (right now under<br>
> /etc/freeswitch/directory/<wbr>default as xml files) using FS API.<br>
> I would like to store user information in database (using pgsql 9.5).<br>
><br>
> Found these posts:<br>
><br>
> <a href="http://voicebundle.com/how-to-add-sip-user-in-freeswitch" rel="noreferrer" target="_blank">http://voicebundle.com/how-to-<wbr>add-sip-user-in-freeswitch</a><br>
> <a href="https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/scripts/perl/add_user" rel="noreferrer" target="_blank">https://freeswitch.org/stash/<wbr>projects/FS/repos/freeswitch/<wbr>browse/scripts/perl/add_user</a><br>
> <a href="http://voicebundle.com/creating-users-extensions-in-freeswitch-creating-sip-accounts-in-freeswitch-using-add_user-script" rel="noreferrer" target="_blank">http://voicebundle.com/<wbr>creating-users-extensions-in-<wbr>freeswitch-creating-sip-<wbr>accounts-in-freeswitch-using-<wbr>add_user-script</a><br>
><br>
> But these are scripts which manipulate XML files. Looking to store<br>
> information in database and have freeswitch read this information. (I<br>
> can take care of adding user, delete user, update user, handle<br>
> duplicates, etc.).<br>
><br>
> Similar like this post:<br>
> <a href="http://telecommusings.blogspot.com/2009/10/using-modxmlcurl-in-freeswitch-how-hard_28.html" rel="noreferrer" target="_blank">http://telecommusings.<wbr>blogspot.com/2009/10/using-<wbr>modxmlcurl-in-freeswitch-how-<wbr>hard_28.html</a><br>
><br>
> Thank you<br>
<br>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>