--GSM call compressing not working.

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

--GSM call compressing not working.

Postby ZeeTech » Wed Jan 31, 2018 9:44 am

I want to save recording in GSM.
--GSM parameter is setup in compressing script but still call recording saving in .wav format under /var/spool/asterisk/monitorDONE/ORIG & GSM folder is empty.
--MP3 is also not working, please advise.

Crontab Setting.
### recording mixing/compressing/ftping scripts
#0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl --MIX
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_VDonly.pl
1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * /usr/share/astguiclient/AST_CRON_audio_2_compress.pl –-GSM
#2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --GSM

Campaign Settings.
Campaign Rec extension 8309
Campaign Recording ALLFORCE


VERSION: 2.12-541a BUILD: 160306-1053
Asterisk 1.8.23.0-vici, libpri-1.4.15 with DAHDI Version: 2.11
Dell R720 – No additional hardware.
ZeeTech
 
Posts: 72
Joined: Sun Apr 04, 2010 5:45 am

Re: --GSM call compressing not working.

Postby blackbird2306 » Wed Jan 31, 2018 1:07 pm

Try to change in campaign setting the "Campaign Rec exten" from 8309 to 8310

Campaign Rec extension -This field allows for a custom recording extension to be used with the system. This allows you to use different extensions depending upon how long you want to allow a maximum recording and what type of codec you want to record in. The default exten is 8309 which if you follow the SCRATCH_INSTALL examples will record in the WAV format for up to one hour. Another option included in the examples is 8310 which will record in GSM format for up to one hour. The recording time can be lengthened by raising the setting in the Server Modification screen in the Admin section.
Vicibox 6.0.2 from Vicibox_v.6.0.x86_64-6.0.2.iso | Vicidial 2.12-560a build: 160617-1427 | Asterisk 1.8.32.3
blackbird2306
 
Posts: 409
Joined: Mon Jun 23, 2014 5:31 pm

Re: --GSM call compressing not working.

Postby ZeeTech » Thu Feb 01, 2018 6:06 am

By changing campaign Rec exten to 8310 it start working but still converted recording files(.gsm) are available in /var/spool/asterisk/monitorDone/ORIG folder instead of /GSM folder; secondly i have another server with same configuration and on that server GSM call compression is working with default campaign Rec ext(8309) and files are appearing in correct /GSM folder, so i think there is some configuration mistake. Usually i setup vicidial server with GSM compression by just passing --GSM parameter in crontab script so please advise how i can further troubleshoot it.
ZeeTech
 
Posts: 72
Joined: Sun Apr 04, 2010 5:45 am

Re: --GSM call compressing not working.

Postby blackbird2306 » Thu Feb 01, 2018 7:07 am

I don't know, whether this is a copy paste problem or really wrong character in your crontab? Look here "–-GSM". There are 2 different dash characters ("–-"). The second one seems to be right one.
1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * /usr/share/astguiclient/AST_CRON_audio_2_compress.pl –-GSM
Vicibox 6.0.2 from Vicibox_v.6.0.x86_64-6.0.2.iso | Vicidial 2.12-560a build: 160617-1427 | Asterisk 1.8.32.3
blackbird2306
 
Posts: 409
Joined: Mon Jun 23, 2014 5:31 pm

Re: --GSM call compressing not working.

Postby ZeeTech » Thu Feb 01, 2018 7:46 am

That doesn't seems to be problem, i rule out by copy corntab entries from working server but the issue still persists,
Is there any debug parameter to verify either script is working fine?
ZeeTech
 
Posts: 72
Joined: Sun Apr 04, 2010 5:45 am

Re: --GSM call compressing not working.

Postby blackbird2306 » Thu Feb 01, 2018 12:20 pm

Sure it's possible to start the compress perl script with super debug mode.
Please try and post here debug output:
Code: Select all
perl /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --GSM --debugX
Vicibox 6.0.2 from Vicibox_v.6.0.x86_64-6.0.2.iso | Vicidial 2.12-560a build: 160617-1427 | Asterisk 1.8.32.3
blackbird2306
 
Posts: 409
Joined: Mon Jun 23, 2014 5:31 pm

Re: --GSM call compressing not working.

Postby ZeeTech » Fri Feb 02, 2018 6:25 am

I reboot my server and make few test calls and now it is working fine, don't know what happened. Case closed :!:

perl /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --GSM --debugX
----- DEBUG -----

----- SUPER DEBUG -----
GSM compression
SOX: /usr/local/bin/sox LAME:
VS_20180202-162330_7711_13103375200-all.wav
VS_20180202-162330_7711_13103375200-all.wav

|select recording_id from recording_log where filename='VS_20180202-162330_7711_13103375200' order by recording_id desc LIMIT 1;|
|213932|VS_20180202-162330_7711_13103375200-all.wav|VS_20180202-162330_7711_13103375200-all.gsm| ||

|UPDATE recording_log set location='http://172.28.100.115/RECORDINGS/GSM/VS_20180202-162330_7711_13103375200-all.gsm' where recording_id='213932';|
DONE... EXITING
ZeeTech
 
Posts: 72
Joined: Sun Apr 04, 2010 5:45 am


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 125 guests