[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 16:59:35 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 16:59 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
====================================================================== 

---------------------------------------------------------------------- 
 (0131316) svnbot (reporter) - 2011-01-31 16:59
 https://issues.asterisk.org/view.php?id=18371#c131316 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 305253

_U  branches/1.6.2/
U   branches/1.6.2/apps/app_dial.c
U   branches/1.6.2/channels/chan_sip.c

------------------------------------------------------------------------
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=305253 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-31 16:59 svnbot         Checkin                                      
2011-01-31 16:59 svnbot         Note Added: 0131316                          
======================================================================




More information about the asterisk-bugs mailing list