Re: [asterisk-users] Wait in Queue for 120 seconds for agent A to become free, THEN ring next agent

2008-02-08 Thread Lenz

Don't worry - I paste this leink becaus eyou should have e good  
understanding about what the queue() cmd does to be safe in implementation  
phase: http://www.voip-info.org/wiki-Asterisk+cmd+Queue
See also: http://astrecipes.net/index.php?n=118
Thanks
l.


On Tue, 05 Feb 2008 06:31:16 +0100, Kev S [EMAIL PROTECTED] wrote:

 Sorry to be painful, But how do i set the queue timeout?
   
 Regards
 Kev

-- 
Loway Research - Home of QueueMetrics
http://queuemetrics.com

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Wait in Queue for 120 seconds for agent A to become free, THEN ring next agent

2008-02-04 Thread Atis Lezdins
On 2/4/08, Kev S [EMAIL PROTECTED] wrote:
 Hi all

 Just trying to set up a queue and wondering if this is possible.

 We have 3 agents, One of them is sort of the first point of contact

 What i am looking to do is

 1. Someone rings the queue.

 2. It rings Agent A.. If Agent A is on the phone then put them on hold
 for 120 seconds, and if Agent A gets off the phone within those 120
 seconds, put the call to them.

 3. If 120 seconds expires, then call agent B, if B rings out, Call agent C

 So all i need is for the call to wait 120 seconds for agent A to get off
 the phone. Then progress the call if they dont.

 Is this possible? If so, any pointers?

I think you should have penalty for agent B, and dial to them trough
local channels - so that busy status gets sent to queue by your own
dialplan. In 1.6 this would mean that you shouldn't use
state_interface - so app_queue can't automatically check that A is
busy.

Then it would go something like this:

Set(started=${EPOCH});
Set(remaining_time=${EPOCH}-started+120);
while(${remaining_time}0) {
  Dial(SIP/a,${remaining_time});
  If (${DIALSTATUS}=ANSWERED) {
break;
  }
  Wait(1); // wait so that this loop doesn't eat much CPU.
  Set(remaining_time=${EPOCH}-started+120);
}

if (${DIALSTATUS}!=ANSWERED) {
  Busy();
}


Regards,
Atis

-- 
Atis Lezdins
VoIP Developer,
IQ Labs Inc.
[EMAIL PROTECTED]
Skype: atis.lezdins
Cell Phone: +371 28806004
Work phone: +1 800 7502835

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Wait in Queue for 120 seconds for agent A to become free, THEN ring next agent

2008-02-04 Thread Lenz

You create three queues: queue A has only agent A, queue B only agent B,  
and queue C only agent C.
You call the firts queue witha timeout of 120 seconds; if call timed out,  
you call queue B with a timeout of 120 seconds and so on.
One note: this does not sound great from a service-level point of view :-)
l.



On Mon, 04 Feb 2008 06:13:17 +0100, Kev S [EMAIL PROTECTED] wrote:

 Hi all

 Just trying to set up a queue and wondering if this is possible.

 We have 3 agents, One of them is sort of the first point of contact

 What i am looking to do is

 1. Someone rings the queue.

 2. It rings Agent A.. If Agent A is on the phone then put them on hold
 for 120 seconds, and if Agent A gets off the phone within those 120
 seconds, put the call to them.

 3. If 120 seconds expires, then call agent B, if B rings out, Call agent  
 C

 So all i need is for the call to wait 120 seconds for agent A to get off
 the phone. Then progress the call if they dont.

 Is this possible? If so, any pointers?

 Cheers
 - Kev




-- 
Loway Research - Home of QueueMetrics
http://queuemetrics.com

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Wait in Queue for 120 seconds for agent A to become free, THEN ring next agent

2008-02-04 Thread Kev S
Sorry to be painful, But how do i set the queue timeout?

Regards
Kev

Lenz wrote:
 You create three queues: queue A has only agent A, queue B only agent B,  
 and queue C only agent C.
 You call the firts queue witha timeout of 120 seconds; if call timed out,  
 you call queue B with a timeout of 120 seconds and so on.
 One note: this does not sound great from a service-level point of view :-)
 l.



 On Mon, 04 Feb 2008 06:13:17 +0100, Kev S [EMAIL PROTECTED] wrote:

   
 Hi all

 Just trying to set up a queue and wondering if this is possible.

 We have 3 agents, One of them is sort of the first point of contact

 What i am looking to do is

 1. Someone rings the queue.

 2. It rings Agent A.. If Agent A is on the phone then put them on hold
 for 120 seconds, and if Agent A gets off the phone within those 120
 seconds, put the call to them.

 3. If 120 seconds expires, then call agent B, if B rings out, Call agent  
 C

 So all i need is for the call to wait 120 seconds for agent A to get off
 the phone. Then progress the call if they dont.

 Is this possible? If so, any pointers?

 Cheers
 - Kev

 



   


-- 
This message has been scanned for viruses and
dangerous content by Mail Call antivirus software, and is
believed to be clean.


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Wait in Queue for 120 seconds for agent A to become free, THEN ring next agent

2008-02-03 Thread Kev S
Hi all

Just trying to set up a queue and wondering if this is possible.

We have 3 agents, One of them is sort of the first point of contact

What i am looking to do is

1. Someone rings the queue.

2. It rings Agent A.. If Agent A is on the phone then put them on hold 
for 120 seconds, and if Agent A gets off the phone within those 120 
seconds, put the call to them.

3. If 120 seconds expires, then call agent B, if B rings out, Call agent C

So all i need is for the call to wait 120 seconds for agent A to get off 
the phone. Then progress the call if they dont.

Is this possible? If so, any pointers?

Cheers
- Kev

-- 
This message has been scanned for viruses and
dangerous content by Mail Call antivirus software, and is
believed to be clean.


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users