1
votes

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/[email protected])
AddQueueMember(queue_name,SIP/[email protected])
AddQueueMember(queue_name,SIP/[email protected])

and after queue show command

Members:
SIP/[email protected](dynamic) (Invalid) has taken no calls yet
SIP/[email protected] (dynamic) (Invalid) has taken no calls yet
SIP/[email protected] (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/[email protected])
AddQueueMember(queue_name,SIP/[email protected])
AddQueueMember(queue_name,SIP/[email protected])
AddQueueMember(queue_name,SIP/3XXX)

and again after queue show command

Members:

SIP/[email protected](dynamic) (Invalid) has taken no calls yet
SIP/[email protected] (dynamic) (Invalid) has taken no calls yet
SIP/[email protected] (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

1

1 Answers

0
votes

You will have to add them as SIP peers in /etc/sip.conf, for example:

[5001]
disallow=all
host=10.10.X.X
type=friend
dtmfmode=rfc2833
allow=alaw
qualify=yes
canreinvite=yes
insecure=port
context=somecontext

and then do AddQueueMember(queue_name,SIP/5001). It all depends on your configuration.
If 10.10.X.X is your dial out trunk registered in sip.conf where 5XXX extensions are registered, then AddQueueMember(queue_name,SIP/YourDialOutTrunk/5XXX) should work.