[asterisk-bugs] [Asterisk 0014011]: [patch] Incorrect jump to extension
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Jan 14 13:25:34 CST 2009
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=14011
======================================================================
Reported By: dveiga
Assigned To: file
======================================================================
Project: Asterisk
Issue ID: 14011
Category: Applications/General
Reproducibility: always
Severity: major
Priority: normal
Status: needs license
Asterisk Version: 1.6.1-beta3
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 160441
Request Review:
======================================================================
Date Submitted: 2008-12-02 20:46 CST
Last Modified: 2009-01-14 13:25 CST
======================================================================
Summary: [patch] Incorrect jump to extension
Description:
When calling Background() application, function pbx_builtin_background() is
called. Inside it, I believe there's a bug when comparing the channel
context with the one used as a parameter. Where it says "if (args.context
!= chan->context && res)" it should say "if ( strcmp(args.context,
chan->context) && res)".
I just explained it because in this simple case I think its easier than
sending a patch, but I can send the patch file if it helps.
======================================================================
----------------------------------------------------------------------
(0097779) file (administrator) - 2009-01-14 13:25
http://bugs.digium.com/view.php?id=14011#c97779
----------------------------------------------------------------------
There is additional code after the AST_STANDARD_APP_ARGS call:
if (ast_strlen_zero(args.context))
args.context = chan->context;
So that if no context was specified in the arguments then it points to
chan->context - this would cause the comparison to be true.
Issue History
Date Modified Username Field Change
======================================================================
2009-01-14 13:25 file Note Added: 0097779
======================================================================
More information about the asterisk-bugs
mailing list