<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML DIR=ltr><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"></HEAD><BODY><DIV><FONT face='Arial' color=#000000 size=2>Greetings all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I've been working on having Asterisk put a call
through to two different numbers, and give the call to the first one that
acknowledges by pressing the 1 key. I found an example on the wiki, but I
can't get it working.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>When I answer the call I hear the message telling
me to press 1 to connect, and as soon as the message is done, the call is
connected. In other words, it is not waiting for me to press a
key.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm sure this is a forehead slapper, but I just
can't see it...can anyone help? Here's the relevant portion of the
dialplan, It executes the NoOp(Waiting) and then the macro seems to
immediately exit and the call is connected.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[default]<BR>exten =>
_9999XXXXXXXXXX,1,Dial(SIP/provider/${EXTEN:4},40,M(screen))<BR>exten =>
_9999XXXXXXXXXX,2,Hangup</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[macro-screen]<BR>exten => s,1,Wait(1)<BR>exten
=> s,2,Set(TIMEOUT(digit)=5)<BR>exten =>
s,3,Set(TIMEOUT(response)=10)<BR>exten => s,4,Background(press-1)<BR>exten
=> s,5,NoOp(Waiting)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>exten => 1,1,NoOp(Caller accepted)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>exten => i,1,NoOp(Invalid response)</FONT></DIV>
<DIV><FONT face=Arial size=2>exten =>
i,2,Set(MACRO_RESULT=CONTINUE)</FONT></DIV>
<DIV><FONT face=Arial size=2><BR>exten => t,1,NoOp(Timeout)<BR>exten =>
t,2,Set(MACRO_RESULT=CONTINUE)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[find-eric]<BR>exten =>
s,1,Playback(pls-wait-connect-call)<BR>exten =>
s,n,Dial(LOCAL/99996135551212&LOCAL/99996135551313,40,m)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>(I have replaced the phone numbers with bogus
ones).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>Eric</FONT></DIV></BODY></HTML>