Unable to join the queue

Hi everyone,

We have an asterisk system which has only 3XXX SIP phones. And we have some queues.
I am using AddQueueMember application to add the agents to queues dynamically as the following

AddQueueMember(queue_name,SIP/5XXX@10.10.X.X)
AddQueueMember(queue_name,SIP/6XXX@10.10.X.X)
AddQueueMember(queue_name,SIP/7XXX@10.10.X.X)

and after queue show command

 Members: 
      SIP/5XXX@10.10.X.X(dynamic) (Invalid) has taken no calls yet
      SIP/6XXX@10.10.X.X (dynamic) (Invalid) has taken no calls yet
      SIP/7XXX@10.10.X.X (dynamic) (Invalid)has taken no calls yet

But when i try to add incoming calls to this “queue_name” it says Unable to join the queue.
On the other hand when i add an registered asterisk member to this “queue_name” which has 3XXX phone number as i told you above. It is working and the queue can handle all the incoming calls with rr strategy. And it is valid for all the queues in my systems.

 AddQueueMember(queue_name,SIP/5XXX@10.10.X.X)
 AddQueueMember(queue_name,SIP/6XXX@10.10.X.X)
 AddQueueMember(queue_name,SIP/7XXX@10.10.X.X)
 AddQueueMember(queue_name,SIP/3XXX)

and again after queue show command

 Members: 
      SIP/5XXX@10.10.X.X(dynamic) (Invalid) has taken no calls yet
      SIP/6XXX@10.10.X.X (dynamic) (Invalid) has taken no calls yet
      SIP/7XXX@10.10.X.X (dynamic) (Invalid) has taken no calls yet
      SIP/3489 (dynamic) (Not in use) has taken no calls yet

So is there a way for queues to handle incoming calls without adding this 3XXX phones? Can you show me a better solution for that?

Thanks and Regards