[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:40:41 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14482 
====================================================================== 
Reported By:                ys
Assigned To:                svnbot
====================================================================== 
Project:                    Asterisk
Issue ID:                   14482
Category:                   Applications/app_meetme
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 176023 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-02-16 06:42 CST
Last Modified:              2009-02-16 15:40 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.





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

---------------------------------------------------------------------- 
 (0100202) svnbot (reporter) - 2009-02-16 15:40
 http://bugs.digium.com/view.php?id=14482#c100202 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 176253

_U  trunk/
U   trunk/apps/app_meetme.c

------------------------------------------------------------------------
r176253 | mmichelson | 2009-02-16 15:40:41 -0600 (Mon, 16 Feb 2009) | 24
lines

Merged revisions 176249,176252 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r176249 | mmichelson | 2009-02-16 15:34:27 -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
........
  r176252 | mmichelson | 2009-02-16 15:39:21 -0600 (Mon, 16 Feb 2009) | 3
lines
  
  Remove unused variable and make dev-mode compilation happy
........

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

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

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




More information about the asterisk-bugs mailing list