What steps will reproduce the problem?
1. setup fusionpbx in multi-tenant mode
2. configure mod_lua to serve xml from database
3. setup a gateway (for your context)
4. setup inbound destination and call routing (for your context)
5. call from outside
What is the expected output? What do you see instead?
- Call should be routed to extension (works great without multi-tenant mode, in context public)
[ERR] mod_lua.cpp:203
.../app/xml_handler/resources/scripts/dialplan/dialplan.lua:97: attempt to
concatenate global 'domain_uuid' (a nil value)
stack traceback:
.../app/xml_handler/resources/scripts/dialplan/dialplan.lua:97: in main chunk
[C]: in function 'dofile'
/usr/local/freeswitch/scripts/app/xml_handler/index.lua:113: in main chunk
/usr/local/freeswitch/scripts/app.lua:50: in main chunk
What version of the product are you using? On what operating system?
FreeSWITCH Version 1.4.18+git~20150312T185523Z~4eed221b69~64bit (git 4eed221
2015-03-12 18:55:23Z 64bit)
FusionPBX Version 3.6.3
Repository UUID: e2954ef0-caed-11de-bd98-e341d93cc3cc
Revision: 8331
Last Changed Rev: 6704
Last Changed Date: 2014-08-17 17:59:23 +0200 (Sun, 17 Aug 2014)
CentOS 7 Kernel 3.10.0-229.1.2.el7.x86_64
Please provide any additional information below.
scripts/app/xml_handler/index.lua tries to get domain and domain_uuid from
XML_REQUEST params
Line 71: scripts/app/xml_handler/index.lua
--get the params and set them as variables
domain_name = params:getHeader("sip_from_host");
if (domain_uuid == nil) then
domain_uuid = params:getHeader("domain_uuid");
end
domain_name = params:getHeader("domain");
if (domain_name == nil) then
domain_name = params:getHeader("domain_name");
end
if (domain_name == nil) then
domain_name = params:getHeader("variable_domain_name");
end
Neither sip_from_host, domain_uuid, domain, domain_name nor
variable_domain_name is provided by freeswitch on an incoming call. The only
reference to the domain is the Caller-context.
Original issue reported on code.google.com by roman.di...@gmail.com on 4 May 2015 at 6:56
Original issue reported on code.google.com by
roman.di...@gmail.com
on 4 May 2015 at 6:56