The call forward, do not disturb and hunt-group login state of a phone can be viewed and changed using the Asterisk command line. These values can also be changed using SIPPEER options.
sip callforward on
Sets the call forwarding target.
asterisk*CLI> sip callforward on 301 123456
Call forwarding on '301' set to 123456
sip callforward off
Clears the call forwarding target.
asterisk*CLI> sip callforward off 301
Call forwarding on '301' cleared
sip donotdisturb on
Enables do not disturb.
asterisk*CLI> sip donotdisturb on 301
Do Not Disturb on '301' enabled
sip donotdisturb off
Disables do not disturb.
asterisk*CLI> sip donotdisturb 301 off
Do Not Disturb on '301' disabled
sip huntgroup on
Logs a phone into the hunt-group.
asterisk*CLI> sip huntgroup on 301
Hunt Group login for '301'
sip huntgroup off
Logs a phone out of the hunt-group.
asterisk*CLI> sip huntgroup off 301
Hunt Group logout for '301'
sip notify cisco-restart
Does a quick restart of the phone. See SIP Notify Commands for more information.
asterisk*CLI> sip notify cisco-restart 301
Sending NOTIFY of type 'cisco-restart' to '301'
asterisk*CLI> sip notify cisco-reset 301
Sending NOTIFY of type 'cisco-reset to '301'
sip show peer
SIP peer details now include the call forward, do not disturb, hunt group login state. For Cisco phone peers the device name, subscriptions and any bulk-registered peers will also be shown.
asterisk*CLI> sip show peer 301
* Name : 301
...
DND : Yes
CallFwd Ext. : 305
Hunt Group : No
Device Name : SEP58971ECC97C1
Subscriptions: 302@extensions
303@extensions
BulkReg.Peers: 311 (Line 2)
321 (Line 3)
core show hints
The presence state of a hint is now included in core show hints.
asterisk*CLI> core show hints
Location Hints DeviceState PresenceState Watchers
301@extensions SIP/301,SIP/301 InUse Available 3
302@extensions SIP/302,SIP/303 Idle DND 2
303@extensions SIP/303,SIP/303 Idle Available 0
...