[ASTPPCOM-901] Call Recording playback interface issue Created: 15/Jun/22  Updated: 29/Jul/22  Resolved: 01/Jul/22

Status: Done
Project: ASTPP Community
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Highest
Reporter: Satband Assignee: Nikunj ayar (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 4.5h
Original Estimate: Not Specified

Category: Call
Edition: Community

 Description   

I enable call recording and file is show on FTP but in interface I got two X and File not found

I gave 755 permission for asttp and freeswitch

 

How I can playback from interface

 

 



 Comments   
Comment by Nikunj ayar (Inactive) [ 16/Jun/22 ]

Hello Satband,

Do you mean on the GUI or interface recordings are not showing in there ?

Please confirm on which os ASTPP is installed.

Thanks

Comment by Satband [ 17/Jun/22 ]

Hi nikunj

Yes records not work on GUI it's show X X file not found ،I use Version 4.0.1
Please advice

Comment by Nikunj ayar (Inactive) [ 20/Jun/22 ]

Hello Satband,

Please follow below steps.

Before removing anything we request you to keep backup of it.

cd /var/www/html/astpp/playlist/example/media/

ls -la

rm recordings

mkdir recordings

ls -la

chmod -Rf 777 recordings

make sure you copied all old recordings files to new direcotry -

 

cp -rf /var/lib/freeswitch/recordings/*.wav /var/www/html/astpp/playlist/example/media/recordings/

Once changes applied please restart nginx service.

 

systemctl restart nginx 

Please check and confirm.

Thanks

 

Comment by Satband [ 20/Jun/22 ]

Not resolved attache dcommands log

[root@vps2311136 ~]# cd /var/www/html/astpp/playlist/example/media/
[root@vps2311136 media]#
[root@vps2311136 media]# ls -la
total 8
drwxr-x---. 2 freeswitch daemon 4096 Jun 20 09:43 .
drwxr-xr-x. 16 apache apache 4096 Sep 9 2021 ..
lrwxrwxrwx. 1 apache apache 31 Aug 18 2021 recordings -> /var/lib/freeswitch/recordings/
[root@vps2311136 media]#
[root@vps2311136 media]# rm recordings
rm: remove symbolic link ‘recordings’? y
[root@vps2311136 media]# mkdir recordings
mkdir: cannot create directory ‘recordings’: File exists
[root@vps2311136 media]#
[root@vps2311136 media]# ls -la
total 8
drwxr-x---. 2 freeswitch daemon 4096 Jun 20 09:43 .
drwxr-xr-x. 16 apache apache 4096 Sep 9 2021 ..
lrwxrwxrwx. 1 apache apache 31 Aug 18 2021 recordings -> /var/lib/freeswitch/recordings/
[root@vps2311136 media]#
[root@vps2311136 media]# chmod -Rf 777 recordings
[root@vps2311136 media]#
[root@vps2311136 media]# cp -rf /var/lib/freeswitch/recordings/*.wav /var/www/html/astpp/playlist/example/media/recordings/
cp: cannot stat ‘/var/lib/freeswitch/recordings/*.wav’: No such file or directory

Comment by Nikunj ayar (Inactive) [ 21/Jun/22 ]

Hello Satband,

Can you please share where the documents are saved as of now.

Share the full directory with path in here.

Thanks

Comment by Satband [ 21/Jun/22 ]

Hello dear sir

File saved here

/var/lib/freeswitch/recordings

Please advice

Comment by Nikunj ayar (Inactive) [ 24/Jun/22 ]

Hello Satband,

Goodday, 

As you have shared  the recording path from your side is below

/var/lib/freeswitch/recordings

So below step should work.

cp -rf /var/lib/freeswitch/recordings/*.wav /var/www/html/astpp/playlist/example/media/recordings/

this error should not come if the recording directory is as it is as you have shared.
cp: cannot stat ‘/var/lib/freeswitch/recordings/*.wav’: No such file or directory

Please share the screenshot of below command

ls -la  /var/lib/freeswitch/recordings/

Thanks

 

Comment by Satband [ 24/Jun/22 ]

Yes its work now but I need push the command for any new record file ever time

Comment by Nikunj ayar (Inactive) [ 24/Jun/22 ]

Hello Satband,

It can be the issue related to the permission.

You can set cron for permission.

Thanks

Comment by Satband [ 24/Jun/22 ]

Can I get the command for cron please

Comment by Nikunj ayar (Inactive) [ 27/Jun/22 ]

Hello Satband,

Please set below in your crontab 

0 */2 * * * /usr/bin/chmod 777 -Rf /var/lib/freeswitch/recordings/   

Thanks

Generated at Sat Feb 10 07:21:17 CET 2024 using Jira 8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a.