Hello
I personalty enjoy fusionpbx, but i don't feel confortable with xml_handler because xml configurations files are easier to understand. I think you may disable xml_handler and try to understand auto generated xml config files

First go to FREESWITCH_CONDIR/autoload_configs/lua.conf.xml

    <param name="xml-handler-script" value="app.lua xml_handler"/>
    <param name="xml-handler-bindings" value="directory"/>

remove some bindings, freeswitch will try to read xml files, not the database. In my case, i only want xml_handler for my directory
Then, tel to fusionpbx to write xml files
Using web gui, do to Advanced > Default seetings

Move to "switch" and enable some subcategories like dialplan, sip_profiles ...
if a subcategory is disabled, fusionpbx will not write xml files.

On 18/10/2016 22:16, Tanner Kerr wrote:
fs_cli should work with the fusionpbx install, also config_dir will most likely only contain config.lua and config.php which you don't need to worry about too much.
when you do a global_getvar it will read from /usr/local/freeswitch/conf/vars.xml which I believe is populated by the database. I would recommend changing the configuration info in the gui because otherwise it's a little hard to keep track of the data flow in the backend of a fusionpbx/freeswitch instance. 

I'm with Giovanni on that, if your goal is to solely learn freeswitch, I would recommend setting up a vanilla freeswitch server.

On Tue, Oct 18, 2016 at 1:04 PM, Giovanni Maruzzelli <gmaruzz@gmail.com> wrote:


On 18 October 2016 at 21:16, Valter Nogueira <valter@fastway.com.br> wrote:
Thank you.

My goal is learn how FS works and how can I check its configuration using fs_cli and config_dir.


Hello Valter,

if you want to learn how FS works and how you can check its configuration using fs_cli and config_dir then you need to use FS directly, without gui.

Go to http://freeswitch.org/confluence and start from there, you will find full docs about it all (install and usage), then if you want you can read the books from packtpub, ask here in mailing list, or in IRC channel #freeswitch

-giovanni
 
I will check mod_lua docs and I will get in touch with fusionpbx people.



Atenciosamente,



2016-10-18 16:44 GMT-02:00 Giovanni Maruzzelli <gmaruzz@gmail.com>:

FusionPBX is a web gui for managing a FreeSWITCH based PBX.

FusionPBX gets its settings dynamically from database (postgresql by default) via a lua xml handler (eg, check mod_lua docs, and mod_xml_curl docs).

You can get more details from the website www.fusionpbx.com and you can ask question in the IRC channel #fusionpbx

I would suggest you read the docs from website, then install, test, then ask questions in IRC channel.

This mailing list is about FreeSWITCH (the underlying server) not about FusionPBX.

sent from mobile
cell: +39 347 266 56 18
Giovanni Maruzzelli
OpenTelecom.IT


On Oct 18, 2016 7:39 PM, "Tanner Kerr" <tanner@itel.com> wrote:
Fusionpbx sets most xml configs to noload. I believe it stores all freeswitch configuration data in sqlite by default, that data is then loaded into a master xml file and that's what freeswitch uses. 

On Tue, Oct 18, 2016 at 10:24 AM, Valter Nogueira <valter@fastway.com.br> wrote:
Sorry if it is OT.

I am trying to figure out how fusionpbx stores freeswitch configuration.

freeswitch global_getvar conf_dir shows /etc/freeswitch

But when I look at /etc/freeswitch/sip_profiles/external, I don't see any gateway declared, altough when I do:

sofia status

I get:

                     Name       Type                                          Data    State
=================================================================================================
            external-ipv6    profile                      sip:mod_sofia@[::1]:5080    RUNNING (0)
                 external    profile               sip:mod_sofia@192.168.2.13:5080    RUNNING (0)
external::d7369e36-c636-483c-b50b-177cef15caf9    gateway                       sip:50000@192.168.2.108    REGED
            internal-ipv6    profile                      sip:mod_sofia@[::1]:5060    RUNNING (0)
                 internal    profile               sip:mod_sofia@192.168.2.13:5060    RUNNING (0)
=================================================================================================

So, where is external::d7369e36-c636-483c-b50b-177cef15caf9    gateway declared?

I thought it could be via mod_xml_curl, but there is no config for it in autoload_configs.


Regards,



_________________________________________________________________________
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



--
Tanner Kerr | Developer | iTel.com 
1.888.899.4835 (ext:1027)


_________________________________________________________________________
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

_________________________________________________________________________
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


_________________________________________________________________________
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



--
Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618

_________________________________________________________________________
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



--
Tanner Kerr | Developer | iTel.com 
1.888.899.4835 (ext:1027)



_________________________________________________________________________
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