Copyright 2010-2015 Obihai Technology, Inc.
148
-
Bit0 (LSB) = G711u
-
Bit1 = G711a
-
Bit2 = G726r16
-
Bit3 = G726r24
-
Bit4 = G726r32
-
Bit5 = G726r40
-
Bit6 = G729
$LDN = last dialed number (for redial) (global; read only)
$BAR1 = Enable Barge-In 1 on the next call (global; admissible value: 1 for enable)
$Bxrn = Blind Transfer Target Number (global; admissible value: a token representing the target number)
$LCR = last caller’s number (for call return) (global; read only)
$SPD[
n
] = number for the speed dial
n
(
n
= 1 – 99) (global; admissible value: literal or token representing a phone
number)
$CODE = the digit(s) representing the variable part of a star code (see examples below; read only)
Variable names are CASE INSENSITIVE.
Star Code Script Actions (
ACT
)
The general format of an action:
ACT
(
par
,
par
, ….)
The following actions are supported:
set(
VAR
,
token
) = Set the given
VAR
to the value represented by
token
.
call(
token
) = Call the number represented by
token.
o
Phone Settings
::
OutboundCallRoute
will be applied when making the call (but not the
DigitMap
)
rpdi(
token
) = repeat dial the number represented by
token
coll(
VAR
) = collect a number from the user and store it as the value of the parameter(s) represented by
VAR
.
o
The number is collected with
Phone Settings
::
DigitMap
applied
say(
token
) = display the value represented by
token
in an on-screen notification message
o
Values are announced as a list of alphabets or numbers
where
token
can be a literal (such as 1234) or another variable (such as $CFAN or SP1($CFBN))
btdscvr(
n
) = Enable OBiBT discovery for 2 minutes
o
n
= 0 or 1 for OBiBLueTooth 1 and OBiBlueTooth 2 respectivvely
Action names are CASE INSENSITIVE.
Star Code Script Format
General Format: code, name, action1, action2, action3, …
code = the star code, such as *72. It may contain a variable part enclosed in parenthesis, such as *74(x|xx)
o
The variable part as entered by the user are stored in the variable $CODE
name = a descriptive name of the function of this star code, such as
Call Forward Unconditional
action1, action2, … = a valid action with parameters
Actions are carried out one-by-one in the order as specified in the script.
Restrictions: