[Asterisk-Users] Asterisk Queue strange behaviour

Jan Marius Evang marius at evang.net
Tue Mar 15 05:19:04 MST 2005


Hi.
I have a problem which I assume would be easy to fix, but I can't find
anything about it...

I wish to have people dialing my phone, and if it is busy, they are put
into a queue. And then I am dialed back when the previous call is
finished, and connected to the waiting caller.

Easy enough?
----------exten
exten => 6,1,Background(salesq-intro);
exten => 6,2,Queue(salesq|tT|||300);

----------queue
[salesq]
music = default
context=default
Member => SIP/99559088 at future-out

----------

So.. what is the problem... The first caller gets connected to my (mobile)
phone. The second and all other caller gets transferred to my phone's
mailbox... Which is not what I intended.

I tried the same using a SIP softphone as my Member, And all calls kept
being sent to the softphone, even when I was busy talking...

So.. I guess I have a few options...
- Instead of putting my SIP directly as a member, put an extension that
will raise a flag when called, drop it when hanging up, and if called when
the flag is up, give a busy()? or return to queue, is this possible?
Problem: If my phone is busy from a call not coming through the asterisk
server...

- I could change my mobile phone mailbox to use asterisk as my "normal"
mailbox. Could I then detect that this is a call commnig from the Queue
and put it back into the queue or return busy()? (And use it as a normal
mailbox when not coming from the queue?)

- I could put some "magic" into my mobile phone voicemail welcome message
that tells asterisk to put the call back into the Queue?

Would any of these help? Or is there a way of specifying that an extension
or a channel can only be used by one call at a time?

Please Help...

Yours
Jan Marius Evang





More information about the asterisk-users mailing list