[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:47:12 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:47 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.





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

---------------------------------------------------------------------- 
 (0100203) svnbot (reporter) - 2009-02-16 15:47
 http://bugs.digium.com/view.php?id=14482#c100203 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 176256

_U  branches/1.6.0/
U   branches/1.6.0/apps/app_meetme.c

------------------------------------------------------------------------
r176256 | mmichelson | 2009-02-16 15:47:11 -0600 (Mon, 16 Feb 2009) | 31
lines

Merged revisions 176253 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
  r176253 | mmichelson | 2009-02-16 15:40:40 -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=176256 

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




More information about the asterisk-bugs mailing list