Avaya 6 manual String Manipulation

Models: 6

1 454
Download 454 pages 47.64 Kb
Page 196
Image 196

4.4.1.10 String Manipulation

This Generic action option allows a call variable to be edited in various ways. For example take the full CLI of a call (for example 01555364200) and save just the area code part (in the example 555) as a new value. The action treats variable values as text strings, it does not differ whether the value is numeric or alphabetic. For numeric variables value, the value can also be manipulated using the Arithmetic Evaluation 185 option.

Select Generic command: String Manipulation

Select Variable

Enter the call variable on which the action should perform an operation.

Select Variable For Result

Enter the call variable which should be used to store the result of the operation.

Select Operation

Select the operation to be performed on the selected input. Depending on the selected operation the additional fields Number of Characters and From Position Index may be displayed.

Operation

Description

Example

 

 

 

 

 

 

 

 

 

 

 

Free Format Command

$CP0

$CP1

 

 

 

 

 

From Position

Return the selected number of characters

STRING:$CP1=mid

01555364200

555

 

starting from the position index and going right.

($CP0,3,3)

 

 

From the Left

Return the selected number of characters

STRING:$CP1=left

01555364200

01555

 

starting from the left end.

($CP0,5)

 

 

From the Right

Return the selected number of characters

STRING:$CP1=right

01555364200

64200

 

starting from the right end.

($CP0,5)

 

 

Lowercase

Change any uppercase characters in the input

STRING:$CP1=lower

ABCdef123

abcdef123

 

into lowercase.

($CP0)

 

 

Reverse

Reverse the order of characters in the input.

STRING:$CP1=reverse

ABCdef123

321fedCBA

 

 

($CP0)

 

 

Uppercase

Change any lowercase characters in the input

STRING:

ABCdef123

ABCDEF123

 

into uppercase.

$CP1=upper($CP0)

 

 

 

 

 

 

 

Number of Characters

This option is displayed for the operation From Position, From the Left and From the Right. It sets the number of characters to be returned.

From Position Index

This option is displayed for the operation From Position. It sets the start character for set of characters to be returned.

Voicemail Pro Installation and Maintenance

Page 196

IP Office Release 6

15-601063 Issue 22e (16 May 2010)

Page 196
Image 196
Avaya 6 manual String Manipulation