Programming
181
7" Modero Widescreen Touch Panels
SIP Commands
The following table lists and describes SIP commands that are generated from the touch panel.
SIP Commands
^PHN-
AUTOANSWER
Provides the state
of the
auto-answer
feature.
Syntax:
"'^PHN-AUTOANSWER, <state>'"
Variable:
state = 0 or 1 (off or on)
Example:
SEND_COMMAND Panel,"'^PHN-AUTOANSWER, 1'"
^PHN-CALL
Provides call
progress
notification for a
call.
Syntax:
"'^PHN-CALL, <status>, <connection id>'"
Variable:
status = CONNECTED, DISCONNECTED, TRYING, RINGING, or HOLD.
connection id = The identifying number of the connection.
Example:
SEND_COMMAND Panel"'^PHN-CALL, CONNECTED, 1'"
Notifies that the call is connected.
^PHN-INCOMING
Provides incoming
call notification.
Syntax:
"'^PHN-INCOMING, <caller number>, <caller name>, <timestamp>,
<connection id>'"
Variable:
caller number = The phone number of the incoming call.
caller name = The name associated with the caller number.
timetamp = The current time in MM/DD/YY HH:MM:SS format.
connection id = The identifying number of the connection.
Example:
SEND_COMMAND Panel,"'^PHN-INCOMING, 2125551000, AMX, 07/22/08
12:00:00, 1'"
^PHN-
LINESTATE
Indicates the
current state of
each of the
available
connections used
to manage calls.
Syntax:
"'^PHN-LINESTATE, <connection id>, <state>, <connection id>,
<state>,...'"
Variable:
connection id = The identifying number of the connection.
state = IDLE, HOLD, or CONNECTED
Example:
SEND_COMMAND Panel,"'^PHN-LINESTATE, 1, IDLE, 2, CONNECTED'"
^PHN-
MSGWAITING
Indicates the
number of
messages waiting
the user’s voice
mail box.
Syntax:
"'^PHN-MSGWAITING, <messages>, <new message count>, <old message
count>, <new urgent message count>, <old urgent message count>'"
Variable:
messages = 0 or 1 (1 indicates new messages)
new message count = The number of new messages.
old message count = The number of old messages.
new urgent message count = The number of new messages marked urgent.
old urgent message count = The number of old messages marked urgent.
Example:
SEND_COMMAND Panel,"'^PHN-MSGWAITING, 1, 1, 2, 1, 0’"