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
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@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.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