Here is some CLI output fromt his morning. Agent5 received a call in queue3, displays as “(in call)(In use)”, agent5 made an outbound call to another party to transfer to, agent5 did attended transfer, agent5 still shows “(In use)”
ASTERISK-1*CLI> queue show
queue1 has 0 calls (max unlimited) in 'rrmemory' strategy (32s holdtime, 9s talktime), W:0, C:1, A:0, SL:0.0%, SL2:0.0% within 0s
Members:
PJSIP/agent1 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent2 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent3 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent4 (ringinuse disabled) (dynamic) (Not in use) has taken 1 calls (last was 5132 secs ago)
PJSIP/agent5 (ringinuse disabled) (dynamic) (In use) has taken no calls yet
No Callers
queue2 has 0 calls (max unlimited) in 'rrmemory' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0%, SL2:0.0% within 0s
Members:
PJSIP/agent1 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent2 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent3 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent4 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent5 (ringinuse disabled) (dynamic) (In use) has taken no calls yet
No Callers
queue3 has 0 calls (max unlimited) in 'rrmemory' strategy (7s holdtime, 157s talktime), W:0, C:29, A:1, SL:0.0%, SL2:3.3% within 0s
Members:
PJSIP/agent1 (ringinuse disabled) (dynamic) (Not in use) has taken 6 calls (last was 754 secs ago)
PJSIP/agent2 (ringinuse disabled) (dynamic) (Not in use) has taken 3 calls (last was 637 secs ago)
PJSIP/agent3 (ringinuse disabled) (dynamic) (Not in use) has taken 3 calls (last was 308 secs ago)
PJSIP/agent4 (ringinuse disabled) (dynamic) (Not in use) has taken 12 calls (last was 96 secs ago)
PJSIP/agent5 (ringinuse disabled) (dynamic) (in call) (In use) has taken 5 calls (last was 476 secs ago)
No Callers
queue4 has 0 calls (max unlimited) in 'rrmemory' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0%, SL2:0.0% within 0s
Members:
PJSIP/agent1 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent2 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent3 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent4 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent5 (ringinuse disabled) (dynamic) (In use) has taken no calls yet
No Callers
ASTERISK-1*CLI> pjsip show channels
Channel: <ChannelId........................................> <State.....> <Time.....>
Exten: <DialedExten.............> CLCID: <ConnectedLineCID.......>
==========================================================================================
Channel: PJSIP/agent5-00000311/AppQueue Up 00:01:20
Exten: 1111 CLCID: "WIRELESS CALLER" <XXXXXXXXXX>
Channel: PJSIP/att-00000310/Queue Up 00:01:28
Exten: 1111 CLCID: "agent5" <XXXXXXXXXX>
ASTERISK-1*CLI> pjsip show channels
Channel: <ChannelId........................................> <State.....> <Time.....>
Exten: <DialedExten.............> CLCID: <ConnectedLineCID.......>
==========================================================================================
Channel: PJSIP/agent5-00000311/AppQueue Up 00:02:10
Exten: 1111 CLCID: "WIRELESS CALLER" <XXXXXXXXXX>
Channel: PJSIP/agent5-00000312/Dial Up 00:00:41
Exten: XXXXXXXXXX CLCID: "" <XXXXXXXXXX>
Channel: PJSIP/agent5-00000313/AppDial Up 00:00:41
Exten: CLCID: ""Our Org"" <XXXXXXXXXX>
Channel: PJSIP/att-00000310/Queue Up 00:02:18
Exten: 1111 CLCID: "agent5" <XXXXXXXXXX>
ASTERISK-1*CLI> queue show
queue1 has 0 calls (max unlimited) in 'rrmemory' strategy (32s holdtime, 9s talktime), W:0, C:1, A:0, SL:0.0%, SL2:0.0% within 0s
Members:
PJSIP/agent1 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent2 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent3 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent4 (ringinuse disabled) (dynamic) (Not in use) has taken 1 calls (last was 5271 secs ago)
PJSIP/agent5 (ringinuse disabled) (dynamic) (In use) has taken no calls yet
No Callers
queue2 has 0 calls (max unlimited) in 'rrmemory' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0%, SL2:0.0% within 0s
Members:
PJSIP/agent1 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent2 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent3 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent4 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent5 (ringinuse disabled) (dynamic) (In use) has taken no calls yet
No Callers
queue3 has 0 calls (max unlimited) in 'rrmemory' strategy (7s holdtime, 152s talktime), W:0, C:30, A:1, SL:0.0%, SL2:3.2% within 0s
Members:
PJSIP/agent1 (ringinuse disabled) (dynamic) (Not in use) has taken 6 calls (last was 893 secs ago)
PJSIP/agent2 (ringinuse disabled) (dynamic) (Not in use) has taken 3 calls (last was 776 secs ago)
PJSIP/agent3 (ringinuse disabled) (dynamic) (Not in use) has taken 3 calls (last was 447 secs ago)
PJSIP/agent4 (ringinuse disabled) (dynamic) (Not in use) has taken 12 calls (last was 235 secs ago)
PJSIP/agent5 (ringinuse disabled) (dynamic) (In use) has taken 6 calls (last was 12 secs ago)
No Callers
queue4 has 0 calls (max unlimited) in 'rrmemory' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0%, SL2:0.0% within 0s
Members:
PJSIP/agent1 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent2 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent3 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent4 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet
PJSIP/agent5 (ringinuse disabled) (dynamic) (In use) has taken no calls yet
No Callers
ASTERISK-1*CLI> pjsip show channels
Channel: <ChannelId........................................> <State.....> <Time.....>
Exten: <DialedExten.............> CLCID: <ConnectedLineCID.......>
==========================================================================================
Channel: PJSIP/agent5-00000313/AppDial Up 00:01:13
Exten: CLCID: "WIRELESS CALLER" <XXXXXXXXXX>
Channel: PJSIP/att-00000310/Queue Up 00:02:50
Exten: 5501 CLCID: "" <XXXXXXXXXX>
Objects found: 2
We are using realtime to configure queues and endpoints.
Here is all queue config:
+-------------+-------------+----------+-----------------+---------+-----------+-----------------+-------------+------------------+----------------+-------------+-------------+------------------+----------------+--------------------+-----------------+-----------------+----------------+---------------+--------------+---------------+----------------+----------------------+------------------+--------------------+------------------------+------------------------+------------------------+-------------------+-------------------+-------------------------+-------------------+-----------------------------+----------------------------+--------------------------+-------+------------+---------------------+----------+--------------+-----------+----------------+---------------+------------------+--------+--------------+----------+-----------+----------------+----------------+-------------+--------+----------------+-------------+-----------------+
| name | musiconhold | announce | context | timeout | ringinuse | setinterfacevar | setqueuevar | setqueueentryvar | monitor_format | membermacro | membergosub | queue_youarenext | queue_thereare | queue_callswaiting | queue_quantity1 | queue_quantity2 | queue_holdtime | queue_minutes | queue_minute | queue_seconds | queue_thankyou | queue_callerannounce | queue_reporthold | announce_frequency | announce_to_first_user | min_announce_frequency | announce_round_seconds | announce_holdtime | announce_position | announce_position_limit | periodic_announce | periodic_announce_frequency | relative_periodic_announce | random_periodic_announce | retry | wrapuptime | penaltymemberslimit | autofill | monitor_type | autopause | autopausedelay | autopausebusy | autopauseunavail | maxlen | servicelevel | strategy | joinempty | leavewhenempty | reportholdtime | memberdelay | weight | timeoutrestart | defaultrule | timeoutpriority |
+-------------+-------------+----------+-----------------+---------+-----------+-----------------+-------------+------------------+----------------+-------------+-------------+------------------+----------------+--------------------+-----------------+-----------------+----------------+---------------+--------------+---------------+----------------+----------------------+------------------+--------------------+------------------------+------------------------+------------------------+-------------------+-------------------+-------------------------+-------------------+-----------------------------+----------------------------+--------------------------+-------+------------+---------------------+----------+--------------+-----------+----------------+---------------+------------------+--------+--------------+----------+-----------+----------------+----------------+-------------+--------+----------------+-------------+-----------------+
| queue3 | NULL | yes | queue_voicemail | 15 | no | NULL | NULL | NULL | NULL | NULL | NULL | NULL | queue-thereare | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | 30 | NULL | NULL | NULL | NULL | NULL | NULL | callback | 25 | NULL | NULL | 4 | 30 | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | rrmemory | loose | loose | NULL | NULL | NULL | NULL | NULL | NULL |
| queue4 | NULL | yes | queue_voicemail | 15 | no | NULL | NULL | NULL | NULL | NULL | NULL | NULL | queue-thereare | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | 30 | NULL | NULL | NULL | NULL | NULL | NULL | callback | 25 | NULL | NULL | 4 | 30 | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | rrmemory | loose | loose | NULL | NULL | NULL | NULL | NULL | NULL |
| queue1 | NULL | yes | queue_voicemail | 15 | no | NULL | NULL | NULL | NULL | NULL | NULL | NULL | queue-thereare | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | 30 | NULL | NULL | NULL | NULL | NULL | NULL | callback | 25 | NULL | NULL | 4 | 30 | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | rrmemory | loose | loose | NULL | NULL | NULL | NULL | NULL | NULL |
| queue2 | NULL | yes | queue_voicemail | 15 | no | NULL | NULL | NULL | NULL | NULL | NULL | NULL | queue-thereare | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | 30 | NULL | NULL | NULL | NULL | NULL | NULL | callback | 25 | NULL | NULL | 4 | 30 | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | rrmemory | loose | loose | NULL | NULL | NULL | NULL | NULL | NULL |
+-------------+-------------+----------+-----------------+---------+-----------+-----------------+-------------+------------------+----------------+-------------+-------------+------------------+----------------+--------------------+-----------------+-----------------+----------------+---------------+--------------+---------------+----------------+----------------------+------------------+--------------------+------------------------+------------------------+------------------------+-------------------+-------------------+-------------------------+-------------------+-----------------------------+----------------------------+--------------------------+-------+------------+---------------------+----------+--------------+-----------+----------------+---------------+------------------+--------+--------------+----------+-----------+----------------+----------------+-------------+--------+----------------+-------------+-----------------+
Here is the pjsip endpoint configs for agent5
+------+-----------+------+------+---------+----------+---------------------+--------------+-----------------------+---------------------+-------------------------------+-----------------------------+-----------+------------------------+-------------+-------------+-------------+-----------+-------------+---------------+----------------+-----------------+----------+---------------+----------------+----------+-----------+---------------+--------+---------------------+---------------+------------------+--------------+--------+---------------+------------------+-------------------+-----------+----------+------------------+-----------------+------------+--------------+------------------+--------------------+----------------------+------------+-----------+--------------+-----------------------+---------------+----------------+-----------+----------+---------------------+-------------------+--------------------+------------+----------------+-----------------+-----------+-------------+-----------+-----------+----------------+-------------+-----------+---------------+-------------+------------+----------------+------------------+-------------+--------------+--------------+------------+-------------+---------------+-----------------+---------+-----------+-----------------+-----------+------------------------------+-------------+---------------+-----------------+-----------------------------+----------------+-------------------+---------------+-------------+------------------+---------------------------+---------------------+------------------------------------+------+--------+------+--------------+----------------+-------------+-------------------+--------------------+--------------+----------------------+----------+---------------+----------------------+----------------------------+------------------+----------------------+
| id | transport | aors | auth | context | disallow | allow | direct_media | connected_line_method | direct_media_method | direct_media_glare_mitigation | disable_direct_media_on_nat | dtmf_mode | external_media_address | force_rport | ice_support | identify_by | mailboxes | moh_suggest | outbound_auth | outbound_proxy | rewrite_contact | rtp_ipv6 | rtp_symmetric | send_diversion | send_pai | send_rpid | timers_min_se | timers | timers_sess_expires | callerid | callerid_privacy | callerid_tag | 100rel | aggregate_mwi | trust_id_inbound | trust_id_outbound | use_ptime | use_avpf | media_encryption | inband_progress | call_group | pickup_group | named_call_group | named_pickup_group | device_state_busy_at | fax_detect | t38_udptl | t38_udptl_ec | t38_udptl_maxdatagram | t38_udptl_nat | t38_udptl_ipv6 | tone_zone | language | one_touch_recording | record_on_feature | record_off_feature | rtp_engine | allow_transfer | allow_subscribe | sdp_owner | sdp_session | tos_audio | tos_video | sub_min_expiry | from_domain | from_user | mwi_from_user | dtls_verify | dtls_rekey | dtls_cert_file | dtls_private_key | dtls_cipher | dtls_ca_file | dtls_ca_path | dtls_setup | srtp_tag_32 | media_address | redirect_method | set_var | cos_audio | message_context | force_avp | media_use_received_transport | accountcode | user_eq_phone | moh_passthrough | media_encryption_optimistic | rpid_immediate | g726_non_standard | rtp_keepalive | rtp_timeout | rtp_timeout_hold | bind_rtp_to_media_address | voicemail_extension | mwi_subscribe_replaces_unsolicited | deny | permit | acl | contact_deny | contact_permit | contact_acl | subscribe_context | fax_detect_timeout | contact_user | asymmetric_rtp_codec | rtcp_mux | allow_overlap | refer_blind_progress | notify_early_inuse_ringing | dtls_fingerprint | incoming_mwi_mailbox |
+------+-----------+------+------+---------+----------+---------------------+--------------+-----------------------+---------------------+-------------------------------+-----------------------------+-----------+------------------------+-------------+-------------+-------------+-----------+-------------+---------------+----------------+-----------------+----------+---------------+----------------+----------+-----------+---------------+--------+---------------------+---------------+------------------+--------------+--------+---------------+------------------+-------------------+-----------+----------+------------------+-----------------+------------+--------------+------------------+--------------------+----------------------+------------+-----------+--------------+-----------------------+---------------+----------------+-----------+----------+---------------------+-------------------+--------------------+------------+----------------+-----------------+-----------+-------------+-----------+-----------+----------------+-------------+-----------+---------------+-------------+------------+----------------+------------------+-------------+--------------+--------------+------------+-------------+---------------+-----------------+---------+-----------+-----------------+-----------+------------------------------+-------------+---------------+-----------------+-----------------------------+----------------+-------------------+---------------+-------------+------------------+---------------------------+---------------------+------------------------------------+------+--------+------+--------------+----------------+-------------+-------------------+--------------------+--------------+----------------------+----------+---------------+----------------------+----------------------------+------------------+----------------------+
| agent5 | NULL | agent5 | agent5 | agent | all | g729,ulaw,t140,h264 | no | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | yes | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | a | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | chat | NULL | yes | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | hint | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL |
+------+-----------+------+------+---------+----------+---------------------+--------------+-----------------------+---------------------+-------------------------------+-----------------------------+-----------+------------------------+-------------+-------------+-------------+-----------+-------------+---------------+----------------+-----------------+----------+---------------+----------------+----------+-----------+---------------+--------+---------------------+---------------+------------------+--------------+--------+---------------+------------------+-------------------+-----------+----------+------------------+-----------------+------------+--------------+------------------+--------------------+----------------------+------------+-----------+--------------+-----------------------+---------------+----------------+-----------+----------+---------------------+-------------------+--------------------+------------+----------------+-----------------+-----------+-------------+-----------+-----------+----------------+-------------+-----------+---------------+-------------+------------+----------------+------------------+-------------+--------------+--------------+------------+-------------+---------------+-----------------+---------+-----------+-----------------+-----------+------------------------------+-------------+---------------+-----------------+-----------------------------+----------------+-------------------+---------------+-------------+------------------+---------------------------+---------------------+------------------------------------+------+--------+------+--------------+----------------+-------------+-------------------+--------------------+--------------+----------------------+----------+---------------+----------------------+----------------------------+------------------+----------------------+