[asterisk-dev] Provisional cross-connect?

Alex Balashov abalashov at evaristesys.com
Wed Nov 14 12:21:21 CST 2007

On Wed, 14 Nov 2007, Eric "ManxPower" Wieling wrote:

> Asterisk does not answer the channel unless you tell it to or run an
> application that answers.  Also on analog FXO all calls are considered
> answered as soon as dialing is finished.  I suspect this is your issue.

   The call is going out on a PRI in this case.

   The question I asked was rather theoretical;  what we are trying to do 
concretely is use the automatic dial-out functionality 
(/var/spool/asterisk/outgoing) to play a message to a callee.  The problem 
is that we have to have some sense of whether the callee has answered 
first (yes, there are going to be other issues like tone detection, etc. - 
we are just aiming for a simple pickup for now).

   The Asterisk box that originates the call is behind another Asterisk box
that actually terminates the PRIs.

   So, what happens is that the call goes out, is immediately picked up
by the Asterisk media gateway box, and the dialplan rules associated
with the outbound announcement start regardless of whether the call has
actually been picked up on the far end.  The SIP UAS on the Asterisk MGW
side sends back a 200 OK instantly.

   We were wondering if there is some way to make it pick up contingently
on whether the far end it is dialing picks up.  It ultimately uses the
Dial() app, of course.

   Perhaps there is a special flag to Dial() that can accomplish this?

Thanks a lot for your help,

Alex Balashov
Evariste Systems
Web    : http://www.evaristesys.com/
Tel    : +1-678-954-0670
Direct : +1-678-954-0671

More information about the asterisk-dev mailing list