[asterisk-bugs] [Asterisk 0013140]: [patch] Setting up a HANGUPCAUSETEXT variable for SIP channel

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Nov 14 14:13:56 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13140 
====================================================================== 
Reported By:                cpina
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13140
Category:                   Channels/chan_sip/NewFeature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 133097 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-07-23 13:31 CDT
Last Modified:              2008-11-14 14:13 CST
====================================================================== 
Summary:                    [patch] Setting up a HANGUPCAUSETEXT variable for
SIP channel
Description: 
I found that sometimes it's needed to have the exactly "SIP disconnect
code" from the other end. HANGUPCAUSE could not be enough as it's mapping
different SIP codes to the same number.

After talking about it in -dev mailing list:
http://lists.digium.com/pipermail/asterisk-dev/2008-July/034004.html

Some people was interested and attached there is a initial patch to
implement it.

Note: there is a problem with a Dial to multiple channels: same problem
than HANGUPCAUSE. A good solution, as talked here:

http://lists.digium.com/pipermail/asterisk-dev/2008-July/034020.html

is to have a hash/function handling all disconnect reasons. In this status
the classic HANGUPCAUSE and also HANGUPCAUSETEXT don't handle it.

PATCH:
Mail:
http://lists.digium.com/pipermail/asterisk-dev/2008-July/034049.html
Attachment:
http://lists.digium.com/pipermail/asterisk-dev/attachments/20080723/6da29aa3/attachment.patch

In my tests the patch has been working fine. If you see any problem or
patch should be done in a different way, I'm open to work on it.
====================================================================== 

---------------------------------------------------------------------- 
 (0094913) Corydon76 (administrator) - 2008-11-14 14:13
 http://bugs.digium.com/view.php?id=13140#c94913 
---------------------------------------------------------------------- 
I've taken the liberty of updating this issue with an initial
implementation of reverse inheritance just discussed on the -dev list. 
This implementation isn't yet complete, because I'd like to add several
more measures to deal with multiple children, as well as avoiding
overwriting variables in the parent channel.  However, the actual
inheritance should work now, in a way that is more widely useful than just
this single use case. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-14 14:13 Corydon76      Note Added: 0094913                          
======================================================================




More information about the asterisk-bugs mailing list