[asterisk-bugs] [Asterisk 0015033]: chan_sip sets PRIREDIRECTREASON incorrectly for reason no-answer

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Oct 9 18:12:20 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15033 
====================================================================== 
Reported By:                steinwej
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15033
Category:                   Channels/chan_sip/General
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.0.9 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-05-05 04:41 CDT
Last Modified:              2009-10-09 18:12 CDT
====================================================================== 
Summary:                    chan_sip sets PRIREDIRECTREASON incorrectly for
reason no-answer
Description: 
When a diversion header is received by chan_sip it tries to set the channel
var PRIREDIRECTREASON in sip_set_redirstr(struct sip_pvt *p, char
*reason);
However, the reason "no-answer" is coded as "NOANSWER" but chan_dahdi
expects the PRIREDIRECTREASON "no-answer" as "NO_REPLY".
====================================================================== 

---------------------------------------------------------------------- 
 (0112178) svnbot (reporter) - 2009-10-09 18:12
 https://issues.asterisk.org/view.php?id=15033#c112178 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 223404

U   branches/1.6.0/channels/chan_dahdi.c
U   branches/1.6.0/channels/chan_h323.c

------------------------------------------------------------------------
r223404 | jpeeler | 2009-10-09 18:12:19 -0500 (Fri, 09 Oct 2009) | 13
lines

Fix interpretation of PRIREDIRECTIONREASON set by chan_sip.

This commit is the simplest way to solve a problem that has already been
solved
in trunk with the "COLP/CONP and Redirecting party information into
Asterisk"
commit. In trunk the redirection reason is translated into a generic
redirect 
reason. I would have had to do the same fix except chan_sip never reads
PRIREDIRECTREASON. So both chan_dahdi and chan_h323 have been modified to
interpret the one different redirect reason of "no-answer" properly and
set the
ISDN reason code 2 of "no reply".

(closes issue https://issues.asterisk.org/view.php?id=15033)
Reported by: steinwej

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=223404 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-09 18:12 svnbot         Checkin                                      
2009-10-09 18:12 svnbot         Note Added: 0112178                          
======================================================================




More information about the asterisk-bugs mailing list