[asterisk-bugs] [Asterisk 0012071]: chan_zap fails to close file descriptors in case of an error

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Aug 21 11:47:37 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12071 
====================================================================== 
Reported By:                tzafrir
Assigned To:                tzafrir
====================================================================== 
Project:                    Asterisk
Issue ID:                   12071
Category:                   Channels/chan_zap
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.4.18 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-02-26 03:47 CST
Last Modified:              2008-08-21 11:47 CDT
====================================================================== 
Summary:                    chan_zap fails to close file descriptors in case of
an error
Description: 
Suppose I have the following zapata.conf:

[channels]
signalling = fxo_ls
channel => 1-8

But my zaptel.conf is actually:

fxoks=1-8

Asterisk would complain of incorrect signalling. But will also leave
zaptel channel 1 open.

If that channel would have been closed, I could have resolved the problem
by:

1. fix my configuration
2. unmodule unload chan_zap.so
3. module load chan_zap.so

But the left-over open channels require me to fully restart Asterisk.
====================================================================== 

---------------------------------------------------------------------- 
 (0091631) tzafrir (manager) - 2008-08-21 11:47
 http://bugs.digium.com/view.php?id=12071#c91631 
---------------------------------------------------------------------- 
In 1.4 the following still "works": a dahdi/zaptel channel with incorrect
signalling. chan_dahdi will open it but fail to close it.

Maybe destroy_dahdi_pvt() should also call dahdi_close()? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-21 11:47 tzafrir        Note Added: 0091631                          
======================================================================




More information about the asterisk-bugs mailing list