Summary: | ASTERISK-27802: bad sound quality with Playback following Record | ||
Reporter: | Thierry Donnadieu (tdonnadi) | Labels: | pjsip |
Date Opened: | 2018-04-16 04:32:29 | Date Closed: | 2018-04-19 14:58:19 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | Applications/app_playback Applications/app_record |
Versions: | 15.3.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | Ubuntu 16.04 | Attachments: | ( 0) debug_log_27802.txt |
Description: | Hi,
When Playback follow Record in a dialplan I get a very noisy output. Obviusly does not come from the file as this one has good sound quality if I play it with "aplay" or if I comment the Record instruction extensions.conf : [from-internal] exten = 100,1,Answer() same => n,Record("/tmp/file_in.wav16",1,4) ;same => n,agi(halvox2.agi,fr-FR) same => n,Playback("/tmp/file_out") same => n,Hangup() Doesn't seem to be related to the file format either as I have tried different file format (sln, sln16, ...). Any help would be appreciated, thanks in anticipation, Thierry | ||
Comments: | By: Asterisk Team (asteriskteam) 2018-04-16 04:32:31.524-0500 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. By: Kevin Harwell (kharwell) 2018-04-17 14:16:05.609-0500 What type of type audio is stored in "/tmp/file_out"? Also what's it being played back out as? It's possible it's being transcoded to the listener. Also, we require additional debug to continue with triage of your issue. Please follow the instructions on the wiki [1] for how to collect debugging information from Asterisk. For expediency, where possible, attach the debug with a '.txt' file extension so that the debug will be usable for further analysis. We also need protocol specific debug captured at the time of the issue. Please include the following: * Asterisk log files generated using the instructions on the Asterisk wiki [1], with the appropriate protocol debug options enabled, e.g. 'pjsip set logger on' if the issue involves the chan_pjsip channel driver. * Configuration information for the relevant channel driver, e.g. pjsip.conf. * A wireshark compatible packet capture, captured at the same time as the Asterisk log output. Thanks! [1] https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information By: Thierry Donnadieu (tdonnadi) 2018-04-18 03:02:01.333-0500 Hi, To make it either to reproduce on your side I have updated the extensions.conf as follow : [from-internal] exten = 100,1,Answer() same => n,Playback(screen-callee-options) same => n,Record("/tmp/file_in.wav16",1,5) same => n,Playback(screen-callee-options) same => n,Hangup() The 2nd time Playback(screen-callee-options) is run it has a lot of background noise not the first time I have also uploaded the corresponding log file as requested Thanks for your support ! By: Kevin Harwell (kharwell) 2018-04-18 11:01:16.028-0500 Unfortunately, I am still unable to replicate the problem. The audio sounds good to me. Could it be the endpoint? What kind of endpoint are you using to listen to the audio? Can you try a different one (make/model of phone) and see if you have the same problem? By: Thierry Donnadieu (tdonnadi) 2018-04-19 10:00:17.763-0500 Hi, Actually I tried with another phone and you are right didn't encounter the issue. Previously was using the built-in mic from the ubuntu system where asterisk is running. It means though that asterisk changes some sound parameters when the mic sound is noisy and that these parameters also affect Playback afterward. They souldn't to my standpoint. In my case it was even affecting pre-recorded, good quality, sounds. If somebody has the time to investigate would be good. Anyway this case can be closed. Thanks again for your support and fast answer By: Kevin Harwell (kharwell) 2018-04-19 14:58:10.670-0500 [~tdonnadi], I agree it shouldn't be affecting playback. It is quite an odd issue. Unfortunately, without a way to replicate the problem ourselves I believe this would be quite hard to track down. I'll close this issue for now, but if later you run across any more pertinent details that might point more to the problem please post them here and the issue should reopen. Thanks! |