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}.&nbsp; You can also add GotoIf to add condition statements.
<br><br>[macro-acceptcall]<br>exten =&gt; s,1,Answer()<br>exten =&gt; s,2,Wait(1)<br>exten =&gt; s,3,Background(makechoice)&nbsp;&nbsp;;make a choice, press 1 or 2<br>exten =&gt; s,4,WaitExten(3)<br>exten =&gt; s,5,NoOp(${EXTEN})<br>
exten =&gt; s,6,GotoIf($[&quot;${EXTEN}&quot; = &quot;1&quot;]?youchose1|1|1:youchose2|1|1)<br><br>[youchose1]<br>exten =&gt; 1,1,Background(youchose1)<br><br>[youchose2]<br>exten =&gt; 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> &lt;<a href="mailto:jason@clickforacall.com">
jason@clickforacall.com</a>&gt; 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. &#39;Called&#39; party answers the phone, and hears a message (this is a<br>function of the macro)<br><br>At this point I&#39;d like for the &#39;Called&#39; 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 &#39;Called&#39; 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 =&gt; s,1,Answer()<br>exten =&gt; s,2,Wait(1)<br>exten =&gt; s,3,Background(makechoice)&nbsp;&nbsp;;make a choice, press 1 or 2<br>exten =&gt; s,4,WaitExten(3)<br>exten =&gt; s,5,Goto(s,3)<br><br><br>exten =&gt; 1,1,Background(youchose1)
<br><br>exten =&gt; 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>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>