[asterisk-bugs] [Asterisk 0018371]: [patch] asterisk crash when dialing SIP/${var} where var is empty or not set

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jan 31 17:08:40 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18371 
====================================================================== 
Reported By:                gbour
Assigned To:                qwell
====================================================================== 
Project:                    Asterisk
Issue ID:                   18371
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     closed
Target Version:             1.4.41
Asterisk Version:           SVN 
JIRA:                       SWP-2652 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 295998 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-11-24 08:58 CST
Last Modified:              2011-01-31 17:08 CST
====================================================================== 
Summary:                    [patch] asterisk crash when dialing SIP/${var} where
var is empty or not set
Description: 
exten = 500,1,NoOp()
exten = 500,n,Set(var=)
exten = 500,n,Dial(SIP/${var})

if var is not set or empy, executing Dial(SIP/${var}) make asterisk crash
====================================================================== 

---------------------------------------------------------------------- 
 (0131318) svnbot (reporter) - 2011-01-31 17:08
 https://issues.asterisk.org/view.php?id=18371#c131318 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 305255

_U  trunk/
U   trunk/apps/app_dial.c
U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r305255 | qwell | 2011-01-31 17:08:39 -0600 (Mon, 31 Jan 2011) | 31 lines

Merged revisions 305254 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r305254 | qwell | 2011-01-31 17:07:00 -0600 (Mon, 31 Jan 2011) | 24
lines
  
  Merged revisions 305253 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ................
    r305253 | qwell | 2011-01-31 16:59:34 -0600 (Mon, 31 Jan 2011) | 17
lines
    
    Merged revisions 305252 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
      r305252 | qwell | 2011-01-31 16:56:54 -0600 (Mon, 31 Jan 2011) | 10
lines
      
      Prevent a crash when dialing a technology with no destination (ex:
Dial(SIP/))
      
      chan_iax2 and other channel drivers already had code to prevent
this.  The
      attempt that app_dial was making to prevent it was not correct, so I
fixed that.
      
      (closes issue https://issues.asterisk.org/view.php?id=18371)
      Reported by: gbour
      Patches: 
            18371.patch uploaded by gbour (license 1162)
    ........
  ................
................

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-31 17:08 svnbot         Checkin                                      
2011-01-31 17:08 svnbot         Note Added: 0131318                          
======================================================================




More information about the asterisk-bugs mailing list