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

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jan 22 09:15:50 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:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-12-02 20:46 CST
Last Modified:              2009-01-22 09:15 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0098435) svnbot (reporter) - 2009-01-22 09:15
 http://bugs.digium.com/view.php?id=14011#c98435 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 170053

_U  branches/1.6.1/
U   branches/1.6.1/main/pbx.c

------------------------------------------------------------------------
r170053 | file | 2009-01-22 09:15:50 -0600 (Thu, 22 Jan 2009) | 20 lines

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

................
  r170051 | file | 2009-01-22 11:14:50 -0400 (Thu, 22 Jan 2009) | 13 lines
  
  Merged revisions 170050 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r170050 | file | 2009-01-22 11:13:56 -0400 (Thu, 22 Jan 2009) | 6
lines
    
    Do a string comparison instead of pointer comparison since some people
specify the context they are actually in as an argument to get around some
funkiness.
    (closes issue http://bugs.digium.com/view.php?id=14011)
    Reported by: dveiga
    Patches:
          pbx.c.patch uploaded by dveiga (license 665)
  ........
................

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-22 09:15 svnbot         Checkin                                      
2009-01-22 09:15 svnbot         Note Added: 0098435                          
======================================================================




More information about the asterisk-bugs mailing list