[asterisk-bugs] [Asterisk 0018023]: [patch] func_strings would like a STRREPLACE function

Asterisk Bug Tracker noreply at bugs.digium.com
Fri May 20 11:27:14 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18023 
====================================================================== 
Reported By:                wdoekes
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18023
Category:                   Functions/func_strings
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     confirmed
Asterisk Version:           1.6.2.13 
JIRA:                       SWP-3144 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-09-21 10:10 CDT
Last Modified:              2011-05-20 11:27 CDT
====================================================================== 
Summary:                    [patch] func_strings would like a STRREPLACE
function
Description: 
Hi,

I needed a function to replace substrings in a variable:

STRREPLACE(<varname>,<needle>,<replacement>[,<occurrences>])

I hope it gets included, saves me a manual patch ;)

Regards,
Walter Doekes
OSSO B.V.


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

---------------------------------------------------------------------- 
 (0135196) svnbot (reporter) - 2011-05-20 11:27
 https://issues.asterisk.org/view.php?id=18023#c135196 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 320040

U   trunk/CHANGES
U   trunk/funcs/func_strings.c

------------------------------------------------------------------------
r320040 | jrose | 2011-05-20 11:27:14 -0500 (Fri, 20 May 2011) | 10 lines

Adds STRREPLACE function

Adds a new STRREPLACe function to func_strings.c that allows users to
search and replace
against a variable in the dialplan.

(closes issue https://issues.asterisk.org/view.php?id=18023)
Reported by: wdoekes

Review: https://reviewboard.asterisk.org/r/1219/ 

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-20 11:27 svnbot         Checkin                                      
2011-05-20 11:27 svnbot         Note Added: 0135196                          
======================================================================




More information about the asterisk-bugs mailing list