Conference rooms sessions

Status
Not open for further replies.

Gofaizen

New Member
Aug 5, 2020
13
0
1
51
Hello....

In FusionPBX 5.1 master branch I could not find conference room sessions.

This view from 4.5

1692722988395.png

And this view from 5.1 master branch

1692723051998.png
Item 'Sessions' missing.
All settings are same in 4.5 and 5.1.

Can any one help me in solving this issue ?
 

Dast

Member
Nov 11, 2019
57
10
8
From looking at the master branch source, here, there are 4 different permissions that control which options appear in the Tools column;
  • conference_interactive_view
  • conference_active_view
  • conference_cdr_view
  • conference_session_view
Ensure you have these permissions. You need to relogin for permission changes to be picked up.
 

Gofaizen

New Member
Aug 5, 2020
13
0
1
51
From looking at the master branch source, here, there are 4 different permissions that control which options appear in the Tools column;
  • conference_interactive_view
  • conference_active_view
  • conference_cdr_view
  • conference_session_view
Ensure you have these permissions. You need to relogin for permission changes to be picked up.
Thank you for your reply.
I have found this permissions. And in new FusionPBX there are two default settings :
account_code_enabled
session_enabled
Setting session_enabled must be 'True'.

I have new problem - no conference sessions shown in GUI and PostgreSQL table v_conference_sessions is empty.
When conference finished I got this error message in PostgreSQL log :
< 2023-08-23 07:48:53 +04 172.29.2.119 db:fusionpbx >STATEMENT: select default_setting_uuid, default_setting_category, default_setting_subcategory, default_setting_name, default_setting_value, default_setting_order, cast(default_setting_enabled as text), default_setting_description from v_default_settings where default_setting_uuid = $1

Query :
SELECT * FROM public.v_default_settings where default_setting_category like '%conference%'
ORDER BY default_setting_uuid ASC

returns default settings for conference center :

1692764480893.png

Something going wrong in PHP code in Conference Centers app.
 

Dast

Member
Nov 11, 2019
57
10
8
From looking at this file, it appears an entry is added to the v_conference_sessions table after hangup when session_enabled = true.

What version of PHP are you running? I know there are still some quirks with FusionPBX and PHP 8.1.

What is the output of the FreeSwitch console when you end a conference? You can run fs_cli via ssh.
 

Gofaizen

New Member
Aug 5, 2020
13
0
1
51
This is my PHP :

php --version
PHP 7.2.34 (cli) (built: Aug 1 2023 16:03:43) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.34, Copyright (c) 1999-2018, by Zend Technologies

It is difficult to obtain data from fs_cli. Big amount of calls.

From freeswitch.log :

grep -i conference /var/log/freeswitch/freeswitch.log :

868664ed-4291-4139-a04a-ddb92afd7042 Dialplan: sofia/internal/226@office.voip Action lua(app.lua conference_center)
868664ed-4291-4139-a04a-ddb92afd7042 EXECUTE [depth=0] sofia/internal/226@office.voip lua(app.lua conference_center)
2023-08-23 09:45:51.484961 99.10% [NOTICE] switch_cpp.cpp:1465 [conference center] local_hostname is office.voip
2023-08-23 09:45:51.484961 99.10% [NOTICE] switch_cpp.cpp:1465 [conference center] session_enabled: false
868664ed-4291-4139-a04a-ddb92afd7042 2023-08-23 09:45:53.984926 99.10% [DEBUG] switch_ivr_play_say.c:2010 done playing file /usr/share/freeswitch/sounds/ru/RU/elena/conference/conf-pin.wav
2023-08-23 09:45:56.144950 99.07% [INFO] switch_cpp.cpp:1465 conference_room_uuid: e849120e-ac3e-4d35-ac19-5997ff6b76d5
868664ed-4291-4139-a04a-ddb92afd7042 2023-08-23 09:45:56.144950 99.07% [DEBUG] switch_cpp.cpp:773 CoreSession::setVariable(conference_room_uuid, e849120e-ac3e-4d35-ac19-5997ff6b76d5)
868664ed-4291-4139-a04a-ddb92afd7042 2023-08-23 09:45:56.144950 99.07% [DEBUG] switch_cpp.cpp:773 CoreSession::setVariable(conference_room_name, stc-conf-9-00)
868664ed-4291-4139-a04a-ddb92afd7042 EXECUTE [depth=0] sofia/internal/226@office.voip set(conference_exit_sound=tone_stream://v=-20;%(90,60,620);/%(90,60,440))
868664ed-4291-4139-a04a-ddb92afd7042 2023-08-23 09:45:56.144950 99.07% [DEBUG] mod_dptools.c:1671 SET sofia/internal/226@office.voip [conference_exit_sound]=[tone_stream://v=-20;%(90,60,620);/%(90,60,440)]
2023-08-23 09:45:56.144950 99.07% [INFO] switch_cpp.cpp:1465 conference e849120e-ac3e-4d35-ac19-5997ff6b76d5@office.voip xml_list
2023-08-23 09:45:56.144950 99.07% [INFO] switch_cpp.cpp:1465 [conference center] conference e849120e-ac3e-4d35-ac19-5997ff6b76d5@office.voip@stcwideband+flags{|mute}
868664ed-4291-4139-a04a-ddb92afd7042 EXECUTE [depth=0] sofia/internal/226@office.voip conference(e849120e-ac3e-4d35-ac19-5997ff6b76d5@office.voip@stcwideband+flags{|mute})
2023-08-23 09:45:56.164958 99.07% [DEBUG] mod_conference.c:3458 using channel sound prefix: /usr/share/freeswitch/sounds/ru/RU/elena
868664ed-4291-4139-a04a-ddb92afd7042 2023-08-23 09:45:56.184961 99.07% [DEBUG] conference_member.c:1804 Raw Codec Activation Success L16@8000hz 1 channel 20ms
2023-08-23 09:45:56.184961 99.07% [DEBUG] mod_conference.c:229 Setup timer success interval: 20 samples: 320
868664ed-4291-4139-a04a-ddb92afd7042 2023-08-23 09:45:56.184961 99.07% [DEBUG] conference_member.c:1851 Raw Codec Activation Success L16@16000hz 1 channel 20ms
2023-08-23 09:45:56.204921 99.07% [DEBUG] conference_member.c:106 sofia/internal/226@office.voip binding '0' to 'vol talk dn'
2023-08-23 09:45:56.204921 99.07% [INFO] switch_ivr_async.c:221 Digit parser mod_conference: Setting realm to 'conf'
2023-08-23 09:45:56.204921 99.07% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 0/conf/0 callback: 0x7f298702b773 data: 0x7f2944161ab0
2023-08-23 09:45:56.204921 99.07% [DEBUG] conference_member.c:106 sofia/internal/226@office.voip binding '1' to 'mute'
2023-08-23 09:45:56.204921 99.07% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 1/conf/0 callback: 0x7f298702b773 data: 0x7f2944161ae0
2023-08-23 09:45:56.204921 99.07% [DEBUG] conference_member.c:106 sofia/internal/226@office.voip binding '2' to 'vol talk zero'
2023-08-23 09:45:56.204921 99.07% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 2/conf/0 callback: 0x7f298702b773 data: 0x7f2944161b10
2023-08-23 09:45:56.204921 99.07% [DEBUG] conference_member.c:106 sofia/internal/226@office.voip binding '4' to 'vol listen dn'
2023-08-23 09:45:56.204921 99.07% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 4/conf/0 callback: 0x7f298702b773 data: 0x7f2944161b40
2023-08-23 09:45:56.204921 99.07% [DEBUG] conference_member.c:106 sofia/internal/226@office.voip binding '5' to 'vol listen zero'
2023-08-23 09:45:56.204921 99.07% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 5/conf/0 callback: 0x7f298702b773 data: 0x7f2944161b70
2023-08-23 09:45:56.204921 99.07% [DEBUG] conference_member.c:106 sofia/internal/226@office.voip binding '6' to 'vol listen up'
2023-08-23 09:45:56.204921 99.07% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 6/conf/0 callback: 0x7f298702b773 data: 0x7f2944161ba0
2023-08-23 09:45:56.204921 99.07% [DEBUG] conference_member.c:106 sofia/internal/226@office.voip binding '7' to 'energy dn'
2023-08-23 09:45:56.204921 99.07% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 7/conf/0 callback: 0x7f298702b773 data: 0x7f2944161bd0
2023-08-23 09:45:56.204921 99.07% [DEBUG] conference_member.c:106 sofia/internal/226@office.voip binding '8' to 'energy equ'
2023-08-23 09:45:56.204921 99.07% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 8/conf/0 callback: 0x7f298702b773 data: 0x7f2944161c00
2023-08-23 09:45:56.204921 99.07% [DEBUG] conference_member.c:106 sofia/internal/226@office.voip binding '9' to 'energy up'
2023-08-23 09:45:56.204921 99.07% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 9/conf/0 callback: 0x7f298702b773 data: 0x7f2944161c30
868664ed-4291-4139-a04a-ddb92afd7042 2023-08-23 09:45:56.204921 99.07% [DEBUG] conference_loop.c:1347 Setup timer soft success interval: 20 samples: 160 from codec PCMA
868664ed-4291-4139-a04a-ddb92afd7042 2023-08-23 09:45:56.384949 99.03% [DEBUG] conference_member.c:1804 Raw Codec Activation Success L16@8000hz 1 channel 20ms
868664ed-4291-4139-a04a-ddb92afd7042 2023-08-23 09:45:56.384949 99.03% [DEBUG] conference_member.c:1851 Raw Codec Activation Success L16@16000hz 1 channel 20ms
868664ed-4291-4139-a04a-ddb92afd7042 2023-08-23 09:45:56.384949 99.03% [DEBUG] conference_loop.c:1347 Setup timer soft success interval: 20 samples: 160 from codec PCMA
2023-08-23 09:45:59.144923 99.03% [INFO] switch_cpp.cpp:1465 conference e849120e-ac3e-4d35-ac19-5997ff6b76d5@office.voip xml_list
2023-08-23 09:45:59.144923 99.03% [INFO] switch_cpp.cpp:1465 [start-recording] conference_session_uuid: a5ee8fbc-90ba-44fc-8147-3fd17cc89c61
2023-08-23 09:45:59.165434 99.03% [NOTICE] switch_cpp.cpp:1465 [start-recording] cmd: conference e849120e-ac3e-4d35-ac19-5997ff6b76d5@office.voip record /var/lib/freeswitch/recordings/office.voip/archive/2023/Aug/23/a5ee8fbc-90ba-44fc-8147-3fd17cc89c61.mp3
2023-08-23 09:45:59.165434 99.03% [DEBUG] mod_commands.c:5270 Command lua(/usr/share/freeswitch/scripts/app/conference_center/resources/scripts/start_recording.lua e849120e-ac3e-4d35-ac19-5997ff6b76d5 office.voip mp3):
2023-08-23 09:45:59.165434 99.03% [DEBUG] conference_record.c:304 Setup timer success interval: 20 samples: 320
868664ed-4291-4139-a04a-ddb92afd7042 2023-08-23 09:46:00.804935 98.97% [DEBUG] conference_member.c:1534 Queueing file /usr/share/freeswitch/sounds/ru/RU/elena/conference/conf-unmuted.wav for play
868664ed-4291-4139-a04a-ddb92afd7042 2023-08-23 09:46:03.364957 98.97% [DEBUG] conference_member.c:1534 Queueing file /usr/share/freeswitch/sounds/ru/RU/elena/conference/conf-muted.wav for play
868664ed-4291-4139-a04a-ddb92afd7042 2023-08-23 09:46:05.644963 98.97% [INFO] conference_loop.c:1668 Channel leaving conference, cause: NORMAL_CLEARING
868664ed-4291-4139-a04a-ddb92afd7042 2023-08-23 09:46:05.664956 98.97% [DEBUG] mod_conference.c:2521 sofia/internal/226@office.voip skip receive message [UNBRIDGE] (channel is hungup already)
2023-08-23 09:46:05.664956 98.97% [INFO] conference_record.c:425 Recording of /var/lib/freeswitch/recordings/office.voip/archive/2023/Aug/23/a5ee8fbc-90ba-44fc-8147-3fd17cc89c61.mp3 Stopped
2023-08-23 09:46:05.684919 98.97% [DEBUG] mod_conference.c:846 Write Lock ON
2023-08-23 09:46:05.684919 98.97% [DEBUG] mod_conference.c:849 Write Lock OFF

I have found a problem :
2023-08-23 09:45:51.484961 99.10% [NOTICE] switch_cpp.cpp:1465 [conference center] session_enabled: false

But in default settings :

1692769916248.png
 

Gofaizen

New Member
Aug 5, 2020
13
0
1
51
Problem solved.

After default setting were changed you need to flush cache and reload xml on Sip Status page.
This is because of memcached.
I think, that default setting stored in memcached.

Now in freeswitch.log :

tail -n 500 -f /var/log/freeswitch/freeswitch.log | grep session_enabled


2023-08-23 09:54:01.244942 97.70% [NOTICE] switch_cpp.cpp:1465 [conference center] session_enabled: true
 

Dast

Member
Nov 11, 2019
57
10
8
Problem solved.

After default setting were changed you need to flush cache and reload xml on Sip Status page.
This is because of memcached.
I think, that default setting stored in memcached.

Now in freeswitch.log :

tail -n 500 -f /var/log/freeswitch/freeswitch.log | grep session_enabled


2023-08-23 09:54:01.244942 97.70% [NOTICE] switch_cpp.cpp:1465 [conference center] session_enabled: true
Haha, this is a classic gotcha.
Glad you got it sorted.
 
Status
Not open for further replies.