Queue member status

I have an issue with queue_member status while being on call. When i use realtme and queuemembers are in queue_member table, while ringing and being connected to call through queue its showing in use but when i use dynamic method its only showing in use while ringing, when getting connected to call through queue its not showing in use, instead it showing not in use:

Dynamic:
Asterisk02*CLI> queue show Mytest
Mytest has 1 calls (max unlimited) in ‘rrmemory’ strategy (20s holdtime, 0s talktime), W:0, C:7, A:12, SL:0.0%, SL2:0.0% within 0s
Members:
PJSIP/101 (Local/PJSIP-101@testing) (ringinuse disabled) (dynamic) (Not in use)

Realtime:
Mytest has 0 calls (max unlimited) in ‘rrmemory’ strategy (17s holdtime, 0s talktime), W:0, C:7, A:13, SL:0.0%, SL2:0.0% within 0s
Members:
101 (Local/101@testing) (ringinuse disabled) (realtime) (in call) (In use) has

What do i need to configure/change while using dynamic method to enable in use functionality for queue and queue members status?

After some further testing and reading documents I figured out:
this worked for me:

queue add member Local/PJSIP-101@testing to Mytest penalty 0 as PJSIP/101 state_interface PJSIP/101

1 Like