Hi Jason,<br><br>Try to use NoOp, You can use it as printf or echo for the console but set the verbose level to 3 or higher. So that you will be able to check the value of the ${EXTEN}. You can also add GotoIf to add condition statements.
<br><br>[macro-acceptcall]<br>exten => s,1,Answer()<br>exten => s,2,Wait(1)<br>exten => s,3,Background(makechoice) ;make a choice, press 1 or 2<br>exten => s,4,WaitExten(3)<br>exten => s,5,NoOp(${EXTEN})<br>
exten => s,6,GotoIf($["${EXTEN}" = "1"]?youchose1|1|1:youchose2|1|1)<br><br>[youchose1]<br>exten => 1,1,Background(youchose1)<br><br>[youchose2]<br>exten => 1,1,Background(youchose2)<br><br>Hope that helps.
<br><br>Best Regards,<br>Joanna Liza Mariazeta<br><a href="http://www.mariazeta.com">www.mariazeta.com</a><br><br><div><span class="gmail_quote">On 2/15/07, <b class="gmail_sendername">Jason Wolfe</b> <<a href="mailto:jason@clickforacall.com">
jason@clickforacall.com</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;">Hello,<br><br>I have the following simple application...
<br><br><br>1. Call is answered, and Dial() function is used with a macro to dial<br>out to a number.<br>2. 'Called' party answers the phone, and hears a message (this is a<br>function of the macro)<br><br>At this point I'd like for the 'Called' Party to be able to make a
<br>decision and press 1 or 2 to hear some additional information before<br>accepting the call.<br><br>The problem is that any key pressed causes the call to be bridged.<br><br>Is this the only behavior, or can someone help me with an example of a
<br>script that will allow the 'Called' party to do some things before the<br>call is bridged.<br><br>I have included my macro code below<br>**************************************************************<br><br>[macro-acceptcall]
<br>exten => s,1,Answer()<br>exten => s,2,Wait(1)<br>exten => s,3,Background(makechoice) ;make a choice, press 1 or 2<br>exten => s,4,WaitExten(3)<br>exten => s,5,Goto(s,3)<br><br><br>exten => 1,1,Background(youchose1)
<br><br>exten => 2,1,Background(youchose2)<br><br>***************************************************************<br><br>This is what I want to happen, but it just bridges the call immediately<br>without playing the respective messages. Thanks for the help.
<br><br><br>Thanks!<br><br>J<br><br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:
<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>