[asterisk-bugs] [Asterisk 0013385]: [patch] Reason header support
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Feb 25 15:09:06 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-02-25 15:09 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 ...
======================================================================
----------------------------------------------------------------------
(0100752) RobertoG (reporter) - 2009-02-25 15:09
http://bugs.digium.com/view.php?id=13385#c100752
----------------------------------------------------------------------
I tried this patch this week and found why HANGUPCAUSE is not set when the
remote party hangs up.
This part of the patch:
if (ast_test_flag(&p->flags[1], SIP_PAGE2_Q850_REASON) &&
(reason_header = strstr(get_header(req, "Reason"),
"cause=")) &&
sscanf(reason_header, "cause=%d", &owner->hangupcause))
ast_verb(3,"Using SIP Reason header for cause
code:%d\n", owner->hangupcause);
Modifies the handle_response() function in chan_sip.c, but the "Reason:"
code of interest (to me at least), comes in a BYE message, which is a
_request_ SIP message.
If I missed something obvious, please forgive me. I am just an Asterisk
newbie.
Issue History
Date Modified Username Field Change
======================================================================
2009-02-25 15:09 RobertoG Note Added: 0100752
======================================================================
More information about the asterisk-bugs
mailing list