[Home]

Summary:ASTERISK-02856: [patch] leading + and - in Goto/GotoIf to go with priority n stuff
Reporter:Anthony Minessale (anthm)Labels:
Date Opened:2004-11-18 19:08:14.000-0600Date Closed:2008-01-15 15:14:21.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) goto.diff
Description:This patch lets you use a leading + or - in a priority-only style goto

e.g.

exten => 1,1,NoOp
exten => 1,n,Goto(+2)
exten => 1,n,Verbose(0|example A)
exten => 1,n,Verbose(0|example B)

exten => 2,1,NoOp
exten => 2,n,GotoIf($[ 1 > 2]?+1:+2)
exten => 2,n,Verbose(0|example A)
exten => 2,n,Verbose(0|example B)





****** ADDITIONAL INFORMATION ******

Disclaimer on file
anthmct@yahoo.com
Comments:By: Mark Spencer (markster) 2004-11-19 00:18:23.000-0600

Added to CVS (simplified implementation) although I'd like to point out that labels are a more robust way of implementing this kind of behavior.

By: Russell Bryant (russell) 2004-11-25 01:24:04.000-0600

not in 1.0

By: Digium Subversion (svnbot) 2008-01-15 15:14:20.000-0600

Repository: asterisk
Revision: 4292

U   trunk/pbx.c

------------------------------------------------------------------------
r4292 | markster | 2008-01-15 15:14:20 -0600 (Tue, 15 Jan 2008) | 2 lines

Add incremental/decremental priorities (bug ASTERISK-2856)

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

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