Summary: | ASTERISK-03968: IAX2 REJECT does not pass cause code back | ||
Reporter: | Andrew Kohlsmith (akohlsmith) | Labels: | |
Date Opened: | 2005-04-21 13:43:08 | Date Closed: | 2008-01-15 15:32:03.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) chan_iax2-pass-hc-on-reject.diff.txt | |
Description: | When dial(IAX2/) an extension that does not exist, Asterisk sends back a REJECT with cause code 3 (invalid extension) but the receiving side does not pass the cause code back. ****** ADDITIONAL INFORMATION ****** This is a major problem because it's impossible to tell why the call failed. Dial() gets a cause code of 0 and an AST_CONTROL_CONGESTION, so your DIALSTATUS becomes CONGESTION, which means you have no idea that it's invalid. The attached patch simply copies over the received cause. This allows you to check the HANGUPCAUSE and deal with cause code 3 properly. | ||
Comments: | By: Kevin P. Fleming (kpfleming) 2005-04-21 21:40:06 Committed to CVS, thanks! By: Russell Bryant (russell) 2005-05-15 12:06:28 The causecode IE is not sent in 1.0 By: Digium Subversion (svnbot) 2008-01-15 15:32:03.000-0600 Repository: asterisk Revision: 5494 U trunk/channels/chan_iax2.c ------------------------------------------------------------------------ r5494 | kpfleming | 2008-01-15 15:32:03 -0600 (Tue, 15 Jan 2008) | 2 lines ensure cause code supplied by IAX2 peer is passed up to caller properly (bug ASTERISK-3968) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=5494 |