[asterisk-bugs] [Asterisk 0017115]: When providing a delemeter character, placing it betwenn apostrophy signs does not work. CUT retruns the shole string in this ca

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Apr 28 16:11:21 CDT 2010


The following issue has been CLOSED 
====================================================================== 
https://issues.asterisk.org/view.php?id=17115 
====================================================================== 
Reported By:                roland65
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   17115
Category:                   Functions/func_cut
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.2.6 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-03-30 07:04 CDT
Last Modified:              2010-04-28 16:11 CDT
====================================================================== 
Summary:                    When providing a delemeter character, placing it
betwenn apostrophy signs does not work. CUT retruns the shole string in this ca
Description: 
The following example fails:
exten => 123,1,Set(foo=1 2 3 4 5)
exten => 123,n,Set(foo=${CUT(foo,' ',2)})

which means that instead of returning the second space separated field,
CUT returns the whole string.

A work-around is to replace the ' apostrophy sign by double quotes like:

exten => 123,1,Set(foo=1 2 3 4 5)
exten => 123,n,Set(foo=${CUT(foo," ",2)})

This correctly returns 2.

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

---------------------------------------------------------------------- 
 (0121120) pabelanger (manager) - 2010-04-28 16:11
 https://issues.asterisk.org/view.php?id=17115#c121120 
---------------------------------------------------------------------- 
As Tilghman reported, this does not appear to be an issue.  And will be
closing as a result. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-28 16:11 pabelanger     Note Added: 0121120                          
2010-04-28 16:11 pabelanger     Status                   feedback => closed  
======================================================================




More information about the asterisk-bugs mailing list