Asterisk-devstate
Jump to navigation
Jump to search
Overview
Asterisk cli command devstate 내용 정리
help
pluto*CLI> help devstate devstate change -- Change a custom device state devstate list -- List currently known custom device states
change
Custom device 의 상태 정보를 변경한다.
asterisk*CLI> devstate change help Usage: devstate change <device> <state> Change a custom device to a new state. The possible values for the state are: UNKNOWN | NOT_INUSE | INUSE | BUSY | INVALID | UNAVAILABLE | RINGING | RINGINUSE | ONHOLD Examples: devstate change Custom:mystate1 INUSE devstate change Custom:mystate1 NOT_INUSE
list
현재 등록된 custom device의 상태 정보를 출력한다.
asterisk*CLI> devstate list help Usage: devstate list List all custom device states that have been set by using the DEVICE_STATE dialplan function.
Example
pluto*CLI> devstate list --------------------------------------------------------------------- --- Custom Device States -------------------------------------------- --------------------------------------------------------------------- --- --- Name: 'Custom:pluto' State: 'INUSE' --- --- Name: 'Custom:givemeasuperpower-244Queue' State: 'NOT_INUSE' --- --- Name: 'Custom:givemeasuperpower-600Queue' State: 'NOT_INUSE'