[asterisk-bugs] [Asterisk 0014482]: [patch] FreeBSD: set nonblocking mode on /dev/dahdi/pseudo failed.

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Feb 16 15:34:29 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14482 
====================================================================== 
Reported By:                ys
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14482
Category:                   Applications/app_meetme
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 176023 
Request Review:              
====================================================================== 
Date Submitted:             2009-02-16 06:42 CST
Last Modified:              2009-02-16 15:34 CST
====================================================================== 
Summary:                    [patch] FreeBSD: set nonblocking mode on
/dev/dahdi/pseudo failed.
Description: 

If, we try to open conference with meetme() command, we got an warning:

[Feb 16 14:09:14] WARNING[13282]: app_meetme.c:2349 conf_run: Unable to
set flags: Inappropriate ioctl for device
    -- Hungup 'DAHDI/pseudo-321225823'

As solution, we can open pseudo channel initially in non blocking mode,
and don't call fcntl()'s.





====================================================================== 

---------------------------------------------------------------------- 
 (0100201) svnbot (reporter) - 2009-02-16 15:34
 http://bugs.digium.com/view.php?id=14482#c100201 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 176249

U   branches/1.4/apps/app_meetme.c

------------------------------------------------------------------------
r176249 | mmichelson | 2009-02-16 15:34:28 -0600 (Mon, 16 Feb 2009) | 14
lines

Open the DAHDI pseudo device and set it to be nonblocking atomically

Apparently on FreeBSD, attempting to set the O_NONBLOCKING flag separately
from opening the file was causing an "inappropriate ioctl for device"
error.
While I cannot fathom why this would be happening, I certainly am not
opposed
to making the code a bit more compact/efficient if it also fixes a bug.

(closes issue http://bugs.digium.com/view.php?id=14482)
Reported by: ys
Patches:
      meetme.patch uploaded by ys (license 281)
Tested by: ys


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=176249 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-02-16 15:34 svnbot         Checkin                                      
2009-02-16 15:34 svnbot         Note Added: 0100201                          
======================================================================




More information about the asterisk-bugs mailing list