[asterisk-bugs] [Asterisk 0017204]: [patch] Dial()'s do_forward() breaks Local/ channel frame forwarding
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Jun 1 16:12:49 CDT 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=17204
======================================================================
Reported By: one47
Assigned To: twilson
======================================================================
Project: Asterisk
Issue ID: 17204
Category: Applications/app_dial
Reproducibility: always
Severity: minor
Priority: normal
Status: feedback
Target Version: 1.6.2.10
Asterisk Version: SVN
JIRA: SWP-1313
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2010-04-19 12:07 CDT
Last Modified: 2010-06-01 16:12 CDT
======================================================================
Summary: [patch] Dial()'s do_forward() breaks Local/ channel
frame forwarding
Description:
This was spotted due to an issue that is caused with CDR records of calls
redirected via a SIP 302 message. The dstchannel is recorded incorrectly.
In chan_local:local_queue_frame(), there is a test to see whether
there is a channel or app to forward data to before frames are passed
on:
if (other->pbx || other->_bridge ||
!ast_strlen_zero(other->appl)) {
ast_queue_frame(other, f);
}
For a call that is being dialled, there is no pbx or bridge object, so
chan_local will only forward data if 'appl' is correctly set.
In app_dial:do_forward(), the original channel is replaced with a new
"forward" channel, but 'appl' is never set on this channel - The
effectively kills frame passing on the new Local/ channel created by
do_forward, and it stays that way until it is optimized away.
======================================================================
----------------------------------------------------------------------
(0122739) svnbot (reporter) - 2010-06-01 16:12
https://issues.asterisk.org/view.php?id=17204#c122739
----------------------------------------------------------------------
Repository: asterisk
Revision: 266786
U trunk/UPGRADE.txt
U trunk/apps/app_dial.c
------------------------------------------------------------------------
r266786 | twilson | 2010-06-01 16:12:48 -0500 (Tue, 01 Jun 2010) | 6 lines
Set app and appdata fields when a Dial is redirected
(closes issue https://issues.asterisk.org/view.php?id=17204)
Reported by: one47
Tested by: twilson, one47
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=266786
Issue History
Date Modified Username Field Change
======================================================================
2010-06-01 16:12 svnbot Checkin
2010-06-01 16:12 svnbot Note Added: 0122739
======================================================================
More information about the asterisk-bugs
mailing list