[asterisk-bugs] [Asterisk 0013385]: [patch] Reason header support
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu Oct 29 14:51:16 CDT 2009
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=13385
======================================================================
Reported By: adomjan
Assigned To: mnicholson
======================================================================
Project: Asterisk
Issue ID: 13385
Category: Channels/chan_sip/NewFeature
Reproducibility: N/A
Severity: feature
Priority: normal
Status: feedback
Target Version: Feature Tracker
Asterisk Version: SVN
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 139982
Request Review:
======================================================================
Date Submitted: 2008-08-27 10:40 CDT
Last Modified: 2009-10-29 14:51 CDT
======================================================================
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 ...
======================================================================
----------------------------------------------------------------------
(0112921) mnicholson (administrator) - 2009-10-29 14:51
https://issues.asterisk.org/view.php?id=13385#c112921
----------------------------------------------------------------------
This looks good. There are a few whitespace issues that need to be cleaned
up. Also I found a potential bug. In the handle_response() function, if
'cause=' is not included in the reason header, strstr will return NULL, and
asterisk should crash on the call to atoi. A header in the format "Reason:
Q.850;" should cause a crash.
Issue History
Date Modified Username Field Change
======================================================================
2009-10-29 14:51 mnicholson Note Added: 0112921
======================================================================
More information about the asterisk-bugs
mailing list