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.

See the example script on https://freeswitch.org/confluence/display/FREESWITCH/Lua+FreeSWITCH+Dbh

On 9 November 2016 at 15:29, Michael Jerris <mike@jerris.com> wrote:
use mod_xml_curl

> On Nov 9, 2016, at 4:24 AM, Gonzalo Gasca Meza <gonzalo@parzee.com> wrote:
>
> Hi forum,
>
> I want to add sip users with mailbox (right now under
> /etc/freeswitch/directory/default as xml files) using FS API.
> I would like to store user information in database (using pgsql 9.5).
>
> Found these posts:
>
> http://voicebundle.com/how-to-add-sip-user-in-freeswitch
> https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/scripts/perl/add_user
> http://voicebundle.com/creating-users-extensions-in-freeswitch-creating-sip-accounts-in-freeswitch-using-add_user-script
>
> But these are scripts which manipulate XML files. Looking to store
> information in database and have freeswitch read this information. (I
> can take care of adding user, delete user, update user, handle
> duplicates, etc.).
>
> Similar like this post:
> http://telecommusings.blogspot.com/2009/10/using-modxmlcurl-in-freeswitch-how-hard_28.html
>
> Thank you


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org