New options have been added to the SIPPEER function that reflect the current status of call-forwarding, do not disturb and hunt-group login. Writing to the function will automatically update the phone's display. These settings can also be changed using the command line interface. Read-only information about the registered device is also provided.
; Show the current status
exten => _X.,1,NoOp(Do Not Disturb: ${SIPPEER(${CHANNEL(peername)},donotdisturb)})
; Enables do not disturb
exten => _X.,1,Set(SIPPEER(${CHANNEL(peername)},donotdisturb)=yes);
; Disables do not disutrb
exten => _X.,1,Set(SIPPEER(${CHANNEL(peername)},donotdisturb)=no);
; Show the current status
exten => _X.,1,NoOp(Hunt Group Login: ${SIPPEER(${CHANNEL(peername)},huntgroup)})
; Login to hunt group
exten => _X.,1,Set(SIPPEER(${CHANNEL(peername)},huntgroup)=yes);
; Logout from hunt group
exten => _X.,1,Set(SIPPEER(${CHANNEL(peername)},huntgroup)=no);