[asterisk-bugs] [Asterisk 0014011]: [patch] Incorrect jump to extension

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jan 4 12:30:54 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/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:                     closed
Asterisk Version:           1.6.1-beta3 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 160441 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-12-02 20:46 CST
Last Modified:              2010-01-04 12:30 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.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0014940 Background application executed in post...
related to          0015091 [patch] digit timeout problem with 1.4 ...
related to          0016434 [patch] Background() when called from A...
====================================================================== 

---------------------------------------------------------------------- 
 (0115966) svnbot (reporter) - 2010-01-04 12:30
 https://issues.asterisk.org/view.php?id=14011#c115966 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 237409

_U  branches/1.6.2/
U   branches/1.6.2/include/asterisk/channel.h
U   branches/1.6.2/main/pbx.c
U   branches/1.6.2/res/res_agi.c

------------------------------------------------------------------------
r237409 | tilghman | 2010-01-04 12:30:53 -0600 (Mon, 04 Jan 2010) | 30
lines

Merged revisions 237406 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
  r237406 | tilghman | 2010-01-04 12:28:28 -0600 (Mon, 04 Jan 2010) | 23
lines
  
  Merged revisions 237405 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r237405 | tilghman | 2010-01-04 12:19:00 -0600 (Mon, 04 Jan 2010) | 16
lines
    
    Add a flag to disable the Background behavior, for AGI users.
    This is in a section of code that relates to two other issues, namely
    issue https://issues.asterisk.org/view.php?id=14011 and issue
https://issues.asterisk.org/view.php?id=14940), one of which was the behavior of
    Background when called with a context argument that matched the
current
    context.  This fix broke FreePBX, however, in a post-Dial situation.
    Needless to say, this is an extremely difficult collision of several
    different issues.  While the use of an exception flag is ugly, fixing
all
    of the issues linked is rather difficult (although if someone would
like
    to propose a better solution, we're happy to entertain that
suggestion).
    (closes issue https://issues.asterisk.org/view.php?id=16434)
     Reported by: rickead2000
     Patches: 
           20091217__issue16434.diff.txt uploaded by tilghman (license 14)
           20091222__issue16434__1.6.1.diff.txt uploaded by tilghman
(license 14)
     Tested by: rickead2000
  ........
................

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-04 12:30 svnbot         Checkin                                      
2010-01-04 12:30 svnbot         Note Added: 0115966                          
======================================================================




More information about the asterisk-bugs mailing list