Posted: Mon Mar 20, 2000 10:55 am Post subject: [Asterisk] CHECK_BLOCKING
Hi.
For several days I have been playing with asterisk, especially
with the CLI & OSS/dsp modules. Unfortunatelly I have problems
with CHECK_BLOCKING() macro. Does anybody have any suggestions
what can cause locking between ast_write and ast_wait_for_fd
procedures?
Posted: Mon Mar 20, 2000 8:43 pm Post subject: [Asterisk] CHECK_BLOCKING
Quote:
For several days I have been playing with asterisk, especially
with the CLI & OSS/dsp modules. Unfortunatelly I have problems
with CHECK_BLOCKING() macro. Does anybody have any suggestions
what can cause locking between ast_write and ast_wait_for_fd
procedures?
You can't write to an fd that has ast_wait_for_fd currently running on
it... What is it you're trying to do?
Posted: Tue Mar 21, 2000 12:02 pm Post subject: [Asterisk] CHECK_BLOCKING
Hi.
So, I have problems with the following procedure (asterisk-0.1.2,
without any changes).
I enter "dial 500" on the console, I hear some messages, then it
connects to your server, and then I receive:
== Accepting call on 'OSS/dsp'
-- Executing Playback("OSS/dsp", "demo-abouttotry") in new stack
-- Created translator OSS/dsp/Translate:2
-- Playing 'demo-abouttotry'
-- Destroyed translator OSS/dsp/Translate:2
-- Executing Dial("OSS/dsp", "IAX/asterisk@demo") in new stack
-- Calling using options
'exten=s;username=asterisk;formats=2;version=1'
-- Called asterisk@demo
-- Call accepted by 209.16.236.91
-- IAX[209.16.236.91:5036]/1 answered OSS/dsp
-- Created translator IAX[209.16.236.91:5036]/1/Translate:64
*CLI> WARNING: File channel.c, Line 325 (ast_waitfor_n): Blocking
'OSS/dsp', already blocked by thread 6151 in procedure ast_write
This is repeatable...
Greetings,
SzMK
On Mon, 20 Mar 2000, Mark Spencer wrote:
Quote:
> For several days I have been playing with asterisk, especially
> with the CLI & OSS/dsp modules. Unfortunatelly I have problems
> with CHECK_BLOCKING() macro. Does anybody have any suggestions
> what can cause locking between ast_write and ast_wait_for_fd
> procedures?
You can't write to an fd that has ast_wait_for_fd currently running on
it... What is it you're trying to do?
Posted: Wed Mar 22, 2000 8:53 am Post subject: [Asterisk] CHECK_BLOCKING
On Tue, 21 Mar 2000, Mark Spencer wrote:
Quote:
> *CLI> WARNING: File channel.c, Line 325 (ast_waitfor_n): Blocking
> 'OSS/dsp', already blocked by thread 6151 in procedure ast_write
What does Asterisk say about your sound card's duplex? Does it report it
as half or full duplex?
So, I have the following output (asterisk -dvvvc):
[chan_oss.so]DEBUG: File config.c, Line 144 (ast_load): Parsing
/etc/asterisk/modules.conf
=> (OSS Console Channel Driver)
DEBUG: File config.c, Line 144 (ast_load): Parsing /etc/asterisk/oss.conf
== Console is full duplex
DEBUG: File channel.c, Line 99 (ast_channel_register): Registered handler
for 'Console' (OSS Console Channel Driver)
And one more observation - the problem occurs also in another situations,
especially, when ast_streamfile() has just finished and a translator
is about to be destroyed or has just been destroyed.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum