Ring Group extensions are not showing up on the dashboard.

Status
Not open for further replies.

nickbh

Member
Sep 26, 2019
40
3
8
58
I think this is the latest version of fusionpbx:
System Information
Version4.5.10Git InformationBranch: master
Commit: 633b221f6ca9f29a81ae35cc76a98f16cfa546aa
Origin: https://github.com/fusionpbx/fusionpbx
Status: Your branch is up to date with 'origin/master'. +0 days ago
Project Path/var/www/fusionpbxSwitch Version1.10.1 (64bit)

I tried the same steps with ubuntu's version and the ring group shows up on the dashboard. However, on the Debian version of install, I verified that group exists by looking in the postgres db. In the dashboard, under system counts there is a ring group listed, but under Ring Group Forward list there is none. and when I try to transfer inbound call to group with extension 2000 (which I created as) nothing happens, but in the log, there is an error:
2019-10-27 12:29:56.919735 [ERR] switch_core_session.c:2697 Invalid Application 2000 XML 10.20.0.XX

Attaching related images:
1. view of dashboard
2. table view of ring group declared

Can someone please help me to verify whether I have made a mistake in configuration, or it is an issue. I followed the same steps as shown for both the ubuntu and debian: http://docs.fusionpbx.com/en/latest/applications/ring_group.html

Thanks in advance.
 

Attachments

  • attachment.png
    attachment.png
    56.2 KB · Views: 13
  • ring_group.png
    ring_group.png
    92.8 KB · Views: 14

nickbh

Member
Sep 26, 2019
40
3
8
58
I think this is still an issue that needs to be resolved. However, the workaround for the error I have been getting is the following:

1. Further research in the log file:
2019-10-27 13:38:37.679713 [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/app/ring_groups/index.lua:241: attempt to concatenate global 'domain_name' (a nil value)
stack traceback:
/usr/share/freeswitch/scripts/app/ring_groups/index.lua:241: in main chunk
/usr/share/freeswitch/scripts/app.lua:48: in main chunk

In the code itself at
--get the ring group
ring_group_forward_enabled = '';
ring_group_forward_destination = '';
sql = "SELECT d.domain_name, r.* FROM v_ring_groups as r, v_domains as d ";
sql = sql .. "where r.ring_group_uuid = :ring_group_uuid ";
sql = sql .. "and r.domain_uuid = d.domain_uuid ";
local params = {ring_group_uuid = ring_group_uuid};
status = dbh:query(sql, params, function(row)
domain_uuid = row["domain_uuid"];
domain_name = row["domain_name"];
ring_group_name = row["ring_group_name"];
ring_group_extension = row["ring_group_extension"];
ring_group_greeting = row["ring_group_greeting"];
ring_group_forward_enabled = row["ring_group_forward_enabled"];
ring_group_forward_destination = row["ring_group_forward_destination"];
ring_group_forward_toll_allow = row["ring_group_forward_toll_allow"];
ring_group_call_timeout = row["ring_group_call_timeout"];
ring_group_caller_id_name = row["ring_group_caller_id_name"];
ring_group_caller_id_number = row["ring_group_caller_id_number"];
ring_group_cid_name_prefix = row["ring_group_cid_name_prefix"];
ring_group_cid_number_prefix = row["ring_group_cid_number_prefix"];
ring_group_follow_me_enabled = row["ring_group_follow_me_enabled"];
missed_call_app = row["ring_group_missed_call_app"];
missed_call_data = row["ring_group_missed_call_data"];
end);

--set the recording path
record_path = recordings_dir .. "/" .. domain_name .. "/archive/" .. os.date("%Y/%b/%d");
record_path = record_path:gsub("\\", "/");


From above query, it returns and empty set.
select d.domain_name, r.* from v_ring_groups as r, v_domains as d
where r.ring_group_uuid = :ring_group_uuid
and r.domain_uuid = d.domain_uuid;

I updated the v_ring_groups by updating and adding the missing domain uuid. Which I think should have been context's uuid in the v_domains.

After the update, I see the ring group 2000 in the list of Ring Group Forward.


If it helps someone. Thanks.
 
Status
Not open for further replies.