[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:56:56 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:                     ready for testing
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:              
====================================================================== 
Date Submitted:             2010-11-24 08:58 CST
Last Modified:              2011-01-31 16:56 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
====================================================================== 

---------------------------------------------------------------------- 
 (0131315) svnbot (reporter) - 2011-01-31 16:56
 https://issues.asterisk.org/view.php?id=18371#c131315 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 305252

U   branches/1.4/apps/app_dial.c
U   branches/1.4/channels/chan_sip.c

------------------------------------------------------------------------
r305252 | qwell | 2011-01-31 16:56:55 -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=305252 

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




More information about the asterisk-bugs mailing list