From b3cb8b5bddf9c473fd47fc5bafba452d71832ea5 Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Tue, 23 Aug 2022 17:57:09 +0200 Subject: [PATCH] TT#185000 Wrong sample rate for asterisk greating messages Partially reverted commit 7f59aedb4 because it will scale the asterisk voicemail greating messages rate to 16kHz where asterisk supports only 8kHz. Change-Id: I90ad14fc2ae37a9baf168a61e5454b285432fee9 --- lib/NGCP/Panel/Utils/Subscriber.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Utils/Subscriber.pm b/lib/NGCP/Panel/Utils/Subscriber.pm index 2dca03b606..5cab5a6634 100644 --- a/lib/NGCP/Panel/Utils/Subscriber.pm +++ b/lib/NGCP/Panel/Utils/Subscriber.pm @@ -2377,7 +2377,7 @@ sub convert_voicemailgreeting{ # die('Wrong mime-type '.$mime_type.' for the voicemail greeting. Must be a audio file in the "wav" format'); # return; #} - my @cmd = ( $filepath, '-e', 'gsm', '-b', '16', '-r', '16000', '-c', '1', $filepath_converted); + my @cmd = ( $filepath, '-e', 'gsm', '-b', '16', '-r', '8000', '-c', '1', $filepath_converted); my $output = ''; $c->log->debug("cmd=".join(" ", 'sox', @cmd)); eval {