Add member to the queue via cli

Hi everyone,
How to add a member to the queue (dynamic) with the parameters (e.x. name)?
The command “queue add member SIP/224 to 9998” - works, and if I execute “queue show 9998” it shows: “SIP/224 (ringinuse enabled) (dynamic) (Unavailable) has taken no calls yet”,
but I need like: “John Doe (Local/224@from-queue/n from SIP/224) (ringinuse enabled) (dynamic) (Unavailable) has taken XXX calls (last was xxx secs ago)”.
Thank you

You are missing the state_interface parameter.

Also note that chan_sip is deprecated, unsupported and is no longer in the master Asterisk branch on github, as it will not be in the Autumn release of Asterisk.

Thank you! It works.
asterisk -rx “queue add member Local/224@from-queue/n to 9999 penalty 0 as “John Doe” state_interface SIP/224”