[asterisk-bugs] [Asterisk 0015810]: [patch] SoftHangup() incorrectly truncates multi-hyphen channel names

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Sep 1 17:48:08 CDT 2009


The following issue has been ASSIGNED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15810 
====================================================================== 
Reported By:                dhubbard
Assigned To:                dhubbard
====================================================================== 
Project:                    Asterisk
Issue ID:                   15810
Category:                   Applications/app_softhangup
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.26.1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 215252 
Request Review:              
====================================================================== 
Date Submitted:             2009-09-01 17:37 CDT
Last Modified:              2009-09-01 17:48 CDT
====================================================================== 
Summary:                    [patch] SoftHangup() incorrectly truncates
multi-hyphen channel names
Description: 
The SoftHangup application assumes that a channel name will only have one
hyphen in it (ala Foo/Bar-Z) and cuts the channel name at the first hyphen.
 The dialplan snippet in the Additional Information section will result in
an incorrectly cut channel name:

[Sep  1 17:07:03] NOTICE[1355]: app_softhangup.c:81 softhangup_exec:
before cut: 'Local/my-multi-hyphen at default-56a3,2'
[Sep  1 17:07:03] NOTICE[1355]: app_softhangup.c:93 softhangup_exec: after
cut: 'Local/my'

SoftHangup should start at the end of the string and cut the channel name
at the last hyphen.

This bug affects all versions of Asterisk.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-01 17:48 dhubbard       Status                   new => assigned     
2009-09-01 17:48 dhubbard       Assigned To               => dhubbard        
======================================================================




More information about the asterisk-bugs mailing list