[asterisk-bugs] [Asterisk 0013385]: [patch] Reason header support

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Mar 2 10:41:48 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13385 
====================================================================== 
Reported By:                adomjan
Assigned To:                oej
====================================================================== 
Project:                    Asterisk
Issue ID:                   13385
Category:                   Channels/chan_sip/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.0 
SVN Revision (number only!): 139982 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-27 10:40 CDT
Last Modified:              2009-03-02 10:41 CST
====================================================================== 
Summary:                    [patch] Reason header support
Description: 
Cisco GWs use this header, however it is only a rfc draft.

draft-jesske-sipping-etsi-ngn-reason-03.txt

just set:
use_q850_reason=yes 
in sip peer/user configuration and chan_sip.c will insert
Reason: Q.850;cause=17
header.
If the peer send Reason header will be used instead of
hangup_sip2cause().


======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
child of            0014294 [patch] X-Asterisk-Hangupcause header ...
====================================================================== 

---------------------------------------------------------------------- 
 (0100997) RobertoG (reporter) - 2009-03-02 10:41
 http://bugs.digium.com/view.php?id=13385#c100997 
---------------------------------------------------------------------- 
I implemented my idea (above) on chan_sip.c and now it processes Q.850
reason headers for BYE _REQUESTS_. I don't know if this is on the scope of
this bug and it belongs here.

Note: my patch modifies '&owner->hangupcause' successfully but because the
channel expires upon BYE, the HANGUPCAUSE channel variable is not available
in the 'h' extension dialplan.
I changed it further to save the value in a global variable with
'builtin_pbx_setvar_helper(NULL,hangupcause<number>,hangupcausevalue)', but
that's kind of unelegant. If anyone is interested in this patch, I'll post
it. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-02 10:41 RobertoG       Note Added: 0100997                          
======================================================================




More information about the asterisk-bugs mailing list