[Freeswitch-users] Newbie question, FS cli and db (users for user directory)
Michael Collins
msc at freeswitch.org
Fri Sep 14 21:01:24 MSD 2012
Hi Peter!
Welcome to FreeSWITCH! Glad to have you. These are great questions. FS has
a db command that can be executed from fs_cli, however this isn't what you
want/need for users. The user directory is where all that stuff is handled.
Static XML is, of course, in conf/directory/* and you can add/remove there,
but that doesn't sound like what you need. The best option for you right
now is to get up to speed with mod_xml_curl. Using mod_xml_curl you can
have FS poll a database each time there is a need, such as when there is an
auth challenge taking place.
We have several people who've done lots of mod_xml_curl stuff, so feel free
to ask away, but please check the wiki first since there is a lot of
information and examples there. You may also enjoy discussing this live in
#freeswitch channel on irc.freenode.net.
-MC
On Fri, Sep 14, 2012 at 2:03 AM, Peter van Raamsdonk <peetzer at gmail.com>wrote:
> Hi all,
>
> Just wondering if I can add/ delete users to the db from the CLI (I'm
> using ESL java library)?
>
> See http://wiki.freeswitch.org/wiki/Function_db
>
> From the Dialplan this is possible, I want however to dynamically add new
> users.
>
> <action application="db" data="insert/realm/key/value"/>
>
>
> In the api (mod commands) nothing is mentioned about "db"
>
> I don't know if something like this could work with my example extension
> 1999, default group named default...
>
> response = client.sendSyncApiCommand( "db", "insert/default/1999/1999");
>
> Another option is to use mod_xml_curl and feed the dialplan or user
> directory to FreeSwitch back again.
>
> Kind regards,
>
> Peter
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120914/e6a4d29b/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list