Re: [asterisk-users] Capture queue agent drop and put caller back in queue

2013-01-24 Thread Lenz Emilitri
2013/1/21 Mitch Claborn mitch...@claborn.net

 Asterisk 11

 Occasionally we will have a partial power outage, or a piece of network
 equipment will fail, and our queue agents who are on active calls with
 callers will be disconnected from the caller.  What I'd like to do is
 capture those calls and put them back in the queue (at a high priority) so
 that we don't lose the caller.

 I've tried to duplicate the situation in my lab: I have one agent in the
 queue, a caller dials into the queue, gets connected to the agent then I
 pull the ethernet cable out of the agent's computer (testing with a
 softphone) but I don't see anything happen on the asterisk console.  core
 show channels shows the 2 channels still bridged even though the agent is
 gone.

 Shouldn't asterisk somehow know when the agent disappears?
 How can I accomplish my goal?





I am not sure that from the PoV of the caller this solution would work -
they would experience tens of seconds of silence plus they would have to go
back to the queue. If this happens rarely, you could have a process call
them back instead - you acknowledge what happened and have someone on-line
with the person apologizing.

We have a few clients implementing something like this for calls exiting
the queue on timeouts and it seems to be well-liked by the callers. Of
course it depends on what you are doing and the level of service that
callers come to expect.

Just my two cents,
l.




-- 
Loway - home of QueueMetrics - http://queuemetrics.com
Test-drive WombatDialer beta @ http://wombatdialer.com
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Capture queue agent drop and put caller back in queue

2013-01-22 Thread Benny Amorsen
Mitch Claborn mitch...@claborn.net writes:

 Shouldn't asterisk somehow know when the agent disappears?

You are a bit out of luck since SIP session timers, the obvious
solution, cannot be set lower than 90 seconds.

rtptimeout set to e.g. 10 seconds may work, but you need to then set
rtpholdtimeout higher and hope that voice activity detection or mute
does not kill the calls...

Does Asterisk consider RTCP packets for the purpose of rtptimeout? That
could solve the problems of silence suppression and mute.


/Benny


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Capture queue agent drop and put caller back in queue

2013-01-22 Thread Christopher Harrington
On Mon, Jan 21, 2013 at 12:03 PM, Mitch Claborn mitch...@claborn.netwrote:

 How can I accomplish my goal?


Since nobody seems to have come up with an Asterisk-specific solution, it
sounds like the real approach here is something more generic.

You can set up Nagios to fire off an event if it detects endpoints or
infrastructure are suddenly dead. In particular, Nagios could launch a
program written for this purpose, passing the endpoints it detects are
missing, and that program could then query Asterisk via AMI about the call
IDs each endpoint is a participant in, then do a forced-transfer to a
dedicated queue that announces the failure condition to the caller. This
AMI could also conveniently remove the dead endpoints from the existing
queues (including the failover queue).

The wildcard here is obviously the program itself, which would be slightly
complex. It would have to have intimate knowledge about your
infrastructure. It's unlikely something like this currently exists that you
can just drop-in, but I'm sure there's someone on this list that would be
willing to sell you the labor to write it.

-- 
-Chris Harrington
ACSDi Office: 763.559.5800
Mobile Phone: 612.326.4248
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Capture queue agent drop and put caller back in queue

2013-01-22 Thread Benny Amorsen
Christopher Harrington ch...@acsdi.com writes:

 Since nobody seems to have come up with an Asterisk-specific solution, it
 sounds like the real approach here is something more generic.
 You can set up Nagios to fire off an event if it detects endpoints or
 infrastructure are suddenly dead. In particular, Nagios could launch a
 program written for this purpose, passing the endpoints it detects are
 missing, and that program could then query Asterisk via AMI about the call
 IDs each endpoint is a participant in, then do a forced-transfer to a
 dedicated queue that announces the failure condition to the caller. This
 AMI could also conveniently remove the dead endpoints from the existing
 queues (including the failover queue).

Can a Nagios-based solution provide quicker failover than the 90 seconds
provided by sip timers or the 10-30 seconds provided by rtptimeout?


/Benny


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Capture queue agent drop and put caller back in queue

2013-01-22 Thread Christopher Harrington
On Tue, Jan 22, 2013 at 3:01 PM, Benny Amorsen benny+use...@amorsen.dkwrote:


 Can a Nagios-based solution provide quicker failover than the 90 seconds
 provided by sip timers or the 10-30 seconds provided by rtptimeout?


Certainly; Nagios can detect missed ping responses with a granularity of
single seconds.


-- 
-Chris Harrington
ACSDi Office: 763.559.5800
Mobile Phone: 612.326.4248
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Capture queue agent drop and put caller back in queue

2013-01-22 Thread Danny Nicholas
Not doubting how quickly Nagios can respond, but if the Nagios solution is 
going to place a call using Asterisk, wouldn’t it be just as efficient (or more 
so) to depend on Asterisk? 

 

From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Christopher 
Harrington
Sent: Tuesday, January 22, 2013 3:30 PM
To: Benny Amorsen
Cc: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Capture queue agent drop and put caller back in 
queue

 

On Tue, Jan 22, 2013 at 3:01 PM, Benny Amorsen benny+use...@amorsen.dk wrote:

 

Can a Nagios-based solution provide quicker failover than the 90 seconds
provided by sip timers or the 10-30 seconds provided by rtptimeout?

 

Certainly; Nagios can detect missed ping responses with a granularity of single 
seconds.




 

-- 
-Chris Harrington

ACSDi Office: 763.559.5800

Mobile Phone: 612.326.4248

 

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Capture queue agent drop and put caller back in queue

2013-01-22 Thread Christopher Harrington
How do you propose that Asterisk determines that the endpoint has vanished
off the network without waiting for a 10-90 second timeout period?


On Tue, Jan 22, 2013 at 4:07 PM, Danny Nicholas da...@debsinc.com wrote:

 Not doubting how quickly Nagios can respond, but if the Nagios solution is
 going to place a call using Asterisk, wouldn’t it be just as efficient (or
 more so) to depend on Asterisk? 

 **

-- 
-Chris Harrington
ACSDi Office: 763.559.5800
Mobile Phone: 612.326.4248
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Capture queue agent drop and put caller back in queue

2013-01-22 Thread Eric Wieling
Using qualify=10 ?

-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Christopher 
Harrington
Sent: Tuesday, January 22, 2013 5:11 PM
To: Danny Nicholas
Cc: Asterisk Users Mailing List - Non-Commercial Discussion; Benny Amorsen
Subject: Re: [asterisk-users] Capture queue agent drop and put caller back in 
queue

How do you propose that Asterisk determines that the endpoint has vanished off 
the network without waiting for a 10-90 second timeout period?



On Tue, Jan 22, 2013 at 4:07 PM, Danny Nicholas da...@debsinc.com wrote:


Not doubting how quickly Nagios can respond, but if the Nagios solution 
is going to place a call using Asterisk, wouldn’t it be just as efficient (or 
more so) to depend on Asterisk? 

 

-- 
-Chris Harrington

ACSDi Office: 763.559.5800
Mobile Phone: 612.326.4248

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Capture queue agent drop and put caller back in queue

2013-01-22 Thread Christopher Harrington
Does that, then, solve Mitch's original issue? I only proposed Nagios
because nobody actually responded to his question.


On Tue, Jan 22, 2013 at 4:12 PM, Eric Wieling ewiel...@nyigc.com wrote:

 Using qualify=10 ?

 -Original Message-
 From: asterisk-users-boun...@lists.digium.com [mailto:
 asterisk-users-boun...@lists.digium.com] On Behalf Of Christopher
 Harrington
 Sent: Tuesday, January 22, 2013 5:11 PM
 To: Danny Nicholas
 Cc: Asterisk Users Mailing List - Non-Commercial Discussion; Benny Amorsen
 Subject: Re: [asterisk-users] Capture queue agent drop and put caller back
 in queue

 How do you propose that Asterisk determines that the endpoint has vanished
 off the network without waiting for a 10-90 second timeout period?


-- 
-Chris Harrington
ACSDi Office: 763.559.5800
Mobile Phone: 612.326.4248
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Capture queue agent drop and put caller back in queue

2013-01-22 Thread Danny Nicholas
A qualify value that low would be a resource hog (some phones can't even 
re-register in 10 seconds).  The Nagios solution would require a custom shell, 
so it would less needy to make the shell be a daemon independent of either.

-Original Message-
From: Eric Wieling [mailto:ewiel...@nyigc.com] 
Sent: Tuesday, January 22, 2013 4:12 PM
To: ch...@acsdi.com; Asterisk Users Mailing List - Non-Commercial Discussion; 
Danny Nicholas
Cc: Benny Amorsen
Subject: RE: [asterisk-users] Capture queue agent drop and put caller back in 
queue

Using qualify=10 ?

-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Christopher 
Harrington
Sent: Tuesday, January 22, 2013 5:11 PM
To: Danny Nicholas
Cc: Asterisk Users Mailing List - Non-Commercial Discussion; Benny Amorsen
Subject: Re: [asterisk-users] Capture queue agent drop and put caller back in 
queue

How do you propose that Asterisk determines that the endpoint has vanished off 
the network without waiting for a 10-90 second timeout period?



On Tue, Jan 22, 2013 at 4:07 PM, Danny Nicholas da...@debsinc.com wrote:


Not doubting how quickly Nagios can respond, but if the Nagios solution 
is going to place a call using Asterisk, wouldn’t it be just as efficient (or 
more so) to depend on Asterisk? 

 

-- 
-Chris Harrington

ACSDi Office: 763.559.5800
Mobile Phone: 612.326.4248



--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Capture queue agent drop and put caller back in queue

2013-01-22 Thread Christopher Harrington
My suggestion of Nagios was only to avoid re-implementing the detect
device has gone out to lunch code. Obviously the part interacting with AMI
is still custom and always will be.


On Tue, Jan 22, 2013 at 4:15 PM, Danny Nicholas da...@debsinc.com wrote:

 A qualify value that low would be a resource hog (some phones can't even
 re-register in 10 seconds).  The Nagios solution would require a custom
 shell, so it would less needy to make the shell be a daemon independent of
 either.

 -Original Message-
 From: Eric Wieling [mailto:ewiel...@nyigc.com]
 Sent: Tuesday, January 22, 2013 4:12 PM
 To: ch...@acsdi.com; Asterisk Users Mailing List - Non-Commercial
 Discussion; Danny Nicholas
 Cc: Benny Amorsen
 Subject: RE: [asterisk-users] Capture queue agent drop and put caller back
 in queue

 Using qualify=10 ?


-- 
-Chris Harrington
ACSDi Office: 763.559.5800
Mobile Phone: 612.326.4248
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Capture queue agent drop and put caller back in queue

2013-01-22 Thread Eric Wieling
I should have actually suggested qualifyfreq=10.

Qualify has nothing whatsoever to do with registration.

-Original Message-
From: Danny Nicholas [mailto:da...@debsinc.com] 
Sent: Tuesday, January 22, 2013 5:15 PM
To: Eric Wieling; ch...@acsdi.com; 'Asterisk Users Mailing List - 
Non-Commercial Discussion'
Cc: 'Benny Amorsen'
Subject: RE: [asterisk-users] Capture queue agent drop and put caller back in 
queue

A qualify value that low would be a resource hog (some phones can't even 
re-register in 10 seconds).  The Nagios solution would require a custom shell, 
so it would less needy to make the shell be a daemon independent of either.

-Original Message-
From: Eric Wieling [mailto:ewiel...@nyigc.com] 
Sent: Tuesday, January 22, 2013 4:12 PM
To: ch...@acsdi.com; Asterisk Users Mailing List - Non-Commercial Discussion; 
Danny Nicholas
Cc: Benny Amorsen
Subject: RE: [asterisk-users] Capture queue agent drop and put caller back in 
queue

Using qualify=10 ?

-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Christopher 
Harrington
Sent: Tuesday, January 22, 2013 5:11 PM
To: Danny Nicholas
Cc: Asterisk Users Mailing List - Non-Commercial Discussion; Benny Amorsen
Subject: Re: [asterisk-users] Capture queue agent drop and put caller back in 
queue

How do you propose that Asterisk determines that the endpoint has vanished off 
the network without waiting for a 10-90 second timeout period?



On Tue, Jan 22, 2013 at 4:07 PM, Danny Nicholas da...@debsinc.com wrote:


Not doubting how quickly Nagios can respond, but if the Nagios solution 
is going to place a call using Asterisk, wouldn’t it be just as efficient (or 
more so) to depend on Asterisk? 

 

-- 
-Chris Harrington

ACSDi Office: 763.559.5800
Mobile Phone: 612.326.4248


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Capture queue agent drop and put caller back in queue

2013-01-22 Thread Benny Amorsen
Un-topposted

Eric Wieling ewiel...@nyigc.com writes:

 Using qualify=10 ?

qualifyfreq=10 is fine, but Asterisk will not AFAIK do anything to a
call just because the peer goes unreachable qualify-wise. You are still
stuck with running a script that listens to qualify-unreachables and
does the appropriate thing to the calls.

It is doable and a valid solution, but not something I would be very
happy with personally.

I still think that rtptimeout is the appropriate solution. Combine it
with the g option to Dial, and you can redirect the call wherever you
want. The problems are still: can it be made safe against mute and
silence suppression, and does HANGUPCAUSE or similar get set to a useful
value when a call is hung up due to rtptimeout?


/Benny

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


[asterisk-users] Capture queue agent drop and put caller back in queue

2013-01-21 Thread Mitch Claborn

Asterisk 11

Occasionally we will have a partial power outage, or a piece of network 
equipment will fail, and our queue agents who are on active calls with 
callers will be disconnected from the caller.  What I'd like to do is 
capture those calls and put them back in the queue (at a high priority) 
so that we don't lose the caller.


I've tried to duplicate the situation in my lab: I have one agent in the 
queue, a caller dials into the queue, gets connected to the agent then I 
pull the ethernet cable out of the agent's computer (testing with a 
softphone) but I don't see anything happen on the asterisk console.  
core show channels shows the 2 channels still bridged even though the 
agent is gone.


Shouldn't asterisk somehow know when the agent disappears?
How can I accomplish my goal?

--

Mitch


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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


Re: [asterisk-users] Capture queue agent drop and put caller back in queue

2013-01-21 Thread Carlos Alvarez
On Mon, Jan 21, 2013 at 11:03 AM, Mitch Claborn mitch...@claborn.netwrote:

 How can I accomplish my goal?


http://lmgtfy.com/?q=battery+backup


-- 
Carlos Alvarez
TelEvolve
602-889-3003
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Capture queue agent drop and put caller back in queue

2013-01-21 Thread Christopher Harrington
On Mon, Jan 21, 2013 at 12:03 PM, Mitch Claborn mitch...@claborn.netwrote:

 Shouldn't asterisk somehow know when the agent disappears?

Asterisk will only notice that the agent is gone when a timeout has
occurred. When you're pulling out the Ethernet cable, there's no
opportunity for any equipment to signal to Asterisk that something has
changed.


-- 
-Chris Harrington
ACSDi Office: 763.559.5800
Mobile Phone: 612.326.4248
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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