Справочник Пользователя для Avaya 6
Voicemail Pro Installation and Maintenance
Page 196
15-601063 Issue 22e (16 May 2010)
IP Office Release 6
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
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
option.
·
Select Generic command: String Manipulation
·
Select Variable
Enter the call variable on which the action should perform an operation.
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.
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.
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
starting from the position index and going right.
starting from the position index and going right.
STRING:$CP1=mid
($CP0,3,3)
($CP0,3,3)
01555364200 555
From the Left
Return the selected number of characters
starting from the left end.
starting from the left end.
STRING:$CP1=left
($CP0,5)
($CP0,5)
01555364200 01555
From the Right Return the selected number of characters
starting from the right end.
STRING:$CP1=right
($CP0,5)
($CP0,5)
01555364200 64200
Lowercase
Change any uppercase characters in the input
into lowercase.
into lowercase.
STRING:$CP1=lower
($CP0)
($CP0)
ABCdef123
abcdef123
Reverse
Reverse the order of characters in the input.
STRING:$CP1=reverse
($CP0)
($CP0)
ABCdef123
321fedCBA
Uppercase
Change any lowercase characters in the input
into uppercase.
into uppercase.
STRING:
$CP1=upper($CP0)
$CP1=upper($CP0)
ABCdef123
ABCDEF123
·
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.
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.
This option is displayed for the operation From Position. It sets the start character for set of characters to be
returned.
185