[Home]

Summary:ASTERISK-13586: [patch] FreeBSD: set nonblocking mode on /dev/dahdi/pseudo failed.
Reporter:Yuri (ys)Labels:
Date Opened:2009-02-16 06:42:49.000-0600Date Closed:2009-02-16 15:50:32.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_meetme
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) meetme.patch
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.






****** ADDITIONAL INFORMATION ******

http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/129682
Comments:By: Digium Subversion (svnbot) 2009-02-16 15:34:28.000-0600

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 ASTERISK-13586)
Reported by: ys
Patches:
     meetme.patch uploaded by ys (license 281)
Tested by: ys


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

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

By: Digium Subversion (svnbot) 2009-02-16 15:40:41.000-0600

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 ASTERISK-13586)
 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

By: Digium Subversion (svnbot) 2009-02-16 15:47:11.000-0600

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 ASTERISK-13586)
   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

By: Digium Subversion (svnbot) 2009-02-16 15:50:32.000-0600

Repository: asterisk
Revision: 176257

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

------------------------------------------------------------------------
r176257 | mmichelson | 2009-02-16 15:50:31 -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 ASTERISK-13586)
   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=176257