[asterisk-bugs] [JIRA] (ASTERISK-27426) chan_console: cannot read and write at the same time
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Thu Nov 16 10:28:41 CST 2017
[ https://issues.asterisk.org/jira/browse/ASTERISK-27426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=240081#comment-240081 ]
Asterisk Team commented on ASTERISK-27426:
------------------------------------------
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].
> chan_console: cannot read and write at the same time
> ----------------------------------------------------
>
> Key: ASTERISK-27426
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-27426
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/General
> Affects Versions: GIT
> Reporter: Tzafrir Cohen
>
> Trying to use chan_console on current master (9eacd55c7191a460fe8704f81b9e5e3beaf014b9). Ran into several issues.
> Configured the device. Got error -9997 (paInvalidSampleRate).
> So device does not support 16000Hz. OK, it supports 8000Hz. Easy enough to fix in the code. At least for now.
> Now I connect the device and tried: 'channel originate Console/con1 application Playback demo-instruct'. "Nothing happens".
> Added some tracing to chan_console.c:console_write(). I see that the function gets called. The result of Pa_WriteStream() there is not checked. When I checked the result I noticed that I keep getting the error -9974 (paCanNotWriteToAnInputOnlyStream).
> Looking at the code of portaudio, I noticed that src/hostapi/alsa/pa_linux_alsa.c:ReadStream() temporarily disables writing for the time of the call to the function and likewise WriteStream temporarily disables reading.
> Thus I temporarily replaced the call to Pa_ReadStream() with a sleep(), and suddenly I have audio.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list