On Sun, Dec 30, 2007 at 07:40:13PM +0100, Arik Raffael Funke wrote:
> Hi,
> 
> this may not be a callweaver question per se but: if I have a sting 
> separated by any character I can use the CUT function to separate it 
> into its part EXCEPT if the delimiter is the space character. Is this 
> intentional?

You are quoting it aren't you? CW dialplan works like most real
programming languages and ignores spaces if they aren't quoted or
"obviously" in the middle of a string. To get the first, third and
fourth fields from a space separated string you should be using
something like:

        CUT("${string}", " ", 1&3-4)

N.B. Strings are expanded _before_ arg splitting so quoting the first
arg avoids commas in the string being treated as arg separators. Think
unix shell rather than C or Perl...

Mike

-- 
Mike Jagdis                        Web: http://www.eris-associates.co.uk
Eris Associates Limited            Tel: +44 7780 608 368
Reading, England                   Fax: +44 118 926 6974
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users

Reply via email to