Elastix 显示座席的状态

Asterisk 提供了 hints 状态,用于提示座席的状态情况

一般用 core show hints 可以显示状态的情况,如下图:

PH-Elastix02*CLI> core show hints

    -= Registered Asterisk Dial Plan Hints =-

           *47*8004*801@ext-queues          : Queue:801             State:Unavailable     Watchers  0

                   6120@ext-local           : SIP/6120,CustomPrese  State:Unavailable     Watchers  0

                   6121@ext-local           : SIP/6121,CustomPrese  State:Unavailable     Watchers  0

                   6122@ext-local           : SIP/6122,CustomPrese  State:Unavailable     Watchers  0

                   6123@ext-local           : SIP/6123,CustomPrese  State:Unavailable     Watchers  0

                   6124@ext-local           : SIP/6124,CustomPrese  State:Idle            Watchers  0

                   6125@ext-local           : SIP/6125,CustomPrese  State:Unavailable     Watchers  0

           *46*8003*801@ext-queues          : qpause:801:Local/800  State:Unavailable     Watchers  0

                   6126@ext-local           : SIP/6126,CustomPrese  State:Unavailable     Watchers  0

                   6127@ext-local           : SIP/6127,CustomPrese  State:Unavailable     Watchers  0

                   6128@ext-local           : SIP/6128,CustomPrese  State:Unavailable     Watchers  0

或是对单个分机号的状态进行显示:

如:   core show hint 8003

       PH-Elastix02*CLI> core show hint 8003

                   8003@ext-local           : SIP/8003,CustomPrese  State:Ringing         Watchers  0

1 hint matching extension 8003

    -- Connected line update to SIP/8002-000000c0 prevented.

    -- SIP/8003-000000c1 answered SIP/8002-000000c0

PH-Elastix02*CLI> core show hint 8003

                   8003@ext-local           : SIP/8003,CustomPrese  State:InUse           Watchers  0

1 hint matching extension 8003

其状态有以下的状态:

The following list includes the possible values that may be returned back from the EXTENSION_STATE() function:

  •  UNKNOWN 未知状态

  •  NOT_INUSE 没有使用

  •  INUSE 通话中

  •  BUSY 繁忙

  •  UNAVAILABLE 不可用

  •  RINGING 响铃中

  •  RINGINUSE 响铃使用中

  •  HOLDINUSE 保持使用中

  •  ONHOLD 通话保持

猜你喜欢

转载自hwzyyx.iteye.com/blog/2247249