[asterisk-bugs] [Asterisk 0017713]: [patch] Add FIELDNUM() function, returns position of a field in a list

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jul 26 10:58:43 CDT 2010


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17713 
====================================================================== 
Reported By:                gareth
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17713
Category:                   Functions/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Target Version:             1.8.0
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 276613 
Request Review:              
====================================================================== 
Date Submitted:             2010-07-26 00:08 CDT
Last Modified:              2010-07-26 10:58 CDT
====================================================================== 
Summary:                    [patch] Add FIELDNUM() function, returns position of
a field in a list
Description: 
FIELDNUM() returns the position of a field in a character delimited list,
ie:

Set(LIST=apples/oranges/bananas/grapes)
${FIELDNUM(LIST,/,oranges)} => Returns '2'
${FIELDNUM(LIST,/,bananas)} => Returns '3'
${FIELDNUM(LIST,/,chicken)} => Returns '0'
${FIELDNUM(LIST,#,bananas)} => Returns '0' (Note: wrong delimiter)

====================================================================== 

---------------------------------------------------------------------- 
 (0125043) lmadsen (administrator) - 2010-07-26 10:58
 https://issues.asterisk.org/view.php?id=17713#c125043 
---------------------------------------------------------------------- 
I'm going to mark this as scheduled for 1.8.0. This would mean we need to
get some people to test it, and a code review done over the next week or
so. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-26 10:58 lmadsen        Note Added: 0125043                          
2010-07-26 10:58 lmadsen        Target Version            => 1.8.0           
======================================================================




More information about the asterisk-bugs mailing list