[asterisk-bugs] [Asterisk 0013027]: [patch] Zaptel/DAHDI channel name don't change after a hookflash event

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Jul 8 15:02:36 CDT 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=13027 
====================================================================== 
Reported By:                dferrer
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13027
Category:                   Channels/chan_zap
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 129106 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             07-08-2008 15:02 CDT
Last Modified:              07-08-2008 15:02 CDT
====================================================================== 
Summary:                    [patch] Zaptel/DAHDI channel name don't change after
a hookflash event
Description: 
During a conversation using Zaptel/DAHDI channels, pressing flash on
Zap/1-1 creates a new channel named Zap/1-1 instead of Zap/1-2 like
previous asterisk versions, so there are 2 active channels with same name.
Looking further in SVN tree, seems that this is broken since Asterisk
1.4.5. exactly is broken between releases 66312 and 66602 when changed
function asprintf to ast_safe_string_alloc inside func zt_new. It compares
channel names 'Zap/1-1' with content of var 'b2' that has the remaining
part of the string, '1-1' instead of the full channel name string.
(see diff
http://svn.digium.com/view/asterisk/tags/1.4.5/channels/chan_zap.c?r1=66312&r2=66602
or attached svn diff)
I don't think that is a new convention for names, seems like a bug to me
introduced when wanted to correct http://bugs.digium.com/view.php?id=9825.

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-08-08 15:02  dferrer        SVN Revision (number only!) => 129106          
======================================================================




More information about the asterisk-bugs mailing list