Something was broken with the script on the Wiki... this worked for me, however I have not touched it as I had more interesting projects on the table. I do know when you reject the call it will send the caller to your voicemail (or whatever else you wish to define).
<br><br>[macro-screen]<br>exten => s,1,Playback(silence/1)<br>exten => s,2,Playback(screen-from)<br>exten => s,3,SayDigits(${ARG1})<br>exten => s,4,Read(ACCEPT|screen-accept|1||1)<br>exten => s,5,GotoIf($[${ACCEPT} = 1 ] ?7:6)
<br>exten => s,6,SetVar(MACRO_RESULT=CONTINUE)<br>exten => s,7,NoOp<br><br><br><br><div><span class="gmail_quote">On 10/18/06, <b class="gmail_sendername">Eric Jacksch</b> <<a href="mailto:eric.jacksch@tenebris.ca">
eric.jacksch@tenebris.ca</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><font color="#000000" face="Arial" 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></div>
<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --<br><br>
asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br><br><br></blockquote></div><br>