[Freeswitch-users] fusionpbx

Valter Nogueira valter at fastway.com.br
Fri Oct 21 00:17:26 MSD 2016


I have tried to disable lua and enable xml generation on fusionpbx, but it
didn't worked at all, files xml were not generated and configs were not
loaded.

How can I find the source code for xml_handler (lua source code), defined
bellow?

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


Thanks,

Valter




2016-10-20 11:16 GMT-02:00 David Villasmil <david.villasmil.work at gmail.com>:

> Latests versions afaik use memcache to store config. In my experience,
> fusionpbx fails a lot in terms of refreshing the config when you're making
> several changes. I was going to open a ticket, but then i forgot.
> On Thu, Oct 20, 2016 at 2:18 PM Valter Nogueira <valter at fastway.com.br>
> wrote:
>
>> I will try that.
>>
>> Thank you,
>>
>> Valter
>>
>>
>>
>>
>> 2016-10-19 17:14 GMT-02:00 Tanguy <phenix at vfemail.net>:
>>
>> 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 at gmail.com>gmaruzz at gmail.com> wrote:
>>
>>
>>
>> On 18 October 2016 at 21:16, Valter Nogueira < <valter at fastway.com.br>
>> valter at 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 at gmail.com>
>> gmaruzz at 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 <http://www.fusionpbx.com>
>> 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 at itel.com>tanner at 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 at fastway.com.br>valter at 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
>> <http://sip:mod_sofia@192.168.2.13:5080>sip:mod_sofia at 192.168.2.13:5080
>> RUNNING (0)
>> external::d7369e36-c636-483c-b50b-177cef15caf9    gateway
>>                    <sip%3A50000 at 192.168.2.108>sip:50000 at 192.168.2.108
>> REGED
>>             internal-ipv6    profile                      sip:mod_sofia@[::1]:5060
>> RUNNING (0)
>>                  internal    profile
>> <http://sip:mod_sofia@192.168.2.13:5060>sip:mod_sofia at 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 at 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 at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:
>> <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>>
>>
>> --
>> *Tanner Kerr* | Developer | *iTel.com <http://www.itel.com/> *
>> *1.888.899.4835 <1.888.899.4835> *(ext:1027)
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at 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 at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:
>> <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at 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 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
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at 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 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
>>
>>
>>
>>
>> --
>> Sincerely,
>>
>> Giovanni Maruzzelli
>> Cell : +39-347-2665618
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at 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 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
>>
>>
>>
>>
>> --
>> *Tanner Kerr* | Developer | *iTel.com <http://www.itel.com/> *
>> *1.888.899.4835 <1.888.899.4835> *(ext:1027)
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services: consulting at freeswitch.orghttp://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
>>
>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at 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 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
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at 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 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
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at 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 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20161020/5fe94302/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list