FusionPBX domain_name error

After seeing the recent announcement that Sangoma has acquired Digium® and Asterisk® by Sangoma, I decided to look for another independent open-source PBX.  I found FusionPBX/FreeSwitch.  Installation went fine and I finally manged to get outgoing calls to work.  Incoming calls sent direct to an IVR also worked, but calls sent to any extension would fail.

By digging through the logs, I saw this error happening: “mod_lua.cpp:203 /usr/share/freeswitch/scripts/app/ring_groups/index.lua:192: attempt to concatenate global domain_name (a nil value)
83435f8b-0d2f-4cf4-9575-5d2d4a92a17b stack traceback:”.  After puzzling through it for a while, I realized that the domain_name global value was not being set.  Since FusionPBX can handle multiple domains/PBX systems at the same time, it makes sense that you need to tell it which one it should use on your incoming call rules.

The simple fix was to add an action in the incoming rules to set domain_name equal to the IP address of the PBX.  I just followed the example already provided in the rules for setting some other values.  Hope this helps someone else.

Other than that issue, I have been happy with the greatly improved speed of FusionPBX vs my old Asterisk install.  I hope to be running it in production soon to replace an old system that relies on old hardware that is getting increasingly difficult to find and maintain (original full-size PCI slots plus old ‘winmodem’ cards).  Plus, the old software system was so old, that I couldn’t even upgrade anymore without a full re-install.

Leave a Comment