[asterisk-users] ring no answer / RONA versus HangUp

2010-06-16 Thread David Backeberg
Hello List:

I'm working on a funny scenario, where I'm bouncing calls from a Cisco
call center into asterisk. Cisco call center has some logic that if a
customer calls in, an agent is logged into a given extension... if
Cisco sends a customer call to that extension, and there is a ring
with no answer after a preset amount of time, Cisco concludes the
agent is unavailable, kicks the agent off the queue, and pulls the
customer call back to the front of the queue for the next available
agent.

This is all good.

My problem is that I'm trying to figure out how best to tell asterisk
'let this ring, and don't pick it up,' that is, I want to exercise
that Cisco behaviour that I've described.

I know if I do not do an Answer() that the call is not yet picked up.
However, if I do a HangUp(), is that functionally equivalent? Can you
Hangup() a channel you never Answer() ed?

I know these are pretty basic questions, but I've never thought about
this problem like this before.

I'm going to go ahead and play, but wanted to brainstorm this on the list.

-- 
_
-- 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] ring no answer / RONA versus HangUp

2010-06-16 Thread Tilghman Lesher
On Wednesday 16 June 2010 08:21:17 David Backeberg wrote:
 I know if I do not do an Answer() that the call is not yet picked up.
 However, if I do a HangUp(), is that functionally equivalent? Can you
 Hangup() a channel you never Answer() ed?

A Hangup just returns -1, which causes the dialplan to terminate.  So yes,
you can Hangup() a call you never answered.

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com  www.asterisk.org

-- 
_
-- 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] ring no answer / RONA versus HangUp

2010-06-16 Thread David Backeberg
On Wed, Jun 16, 2010 at 11:50 AM, Tilghman Lesher tles...@digium.com wrote:
 On Wednesday 16 June 2010 08:21:17 David Backeberg wrote:
 I know if I do not do an Answer() that the call is not yet picked up.
 However, if I do a HangUp(), is that functionally equivalent? Can you
 Hangup() a channel you never Answer() ed?

 A Hangup just returns -1, which causes the dialplan to terminate.  So yes,
 you can Hangup() a call you never answered.

What I was really trying to determine was whether the calling side
would get the same behavior (rings, but no pickup) as if the dialplan
was simulating a phone where nobody was picking it up.

I ended up doing a:

exten = s,1,Wait(10)
exten = s,n,HangUp

essentially, which was good enough for me to simulate 5 seconds of
no-pickup, as perceived by the caller.

Thanks much.

-- 
_
-- 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