Hi Asterisk Users,<br><br>my apologizes for cross posting.<br clear="all"><br>I&#39;m trying to make the next
scenario in Asterisk DialPlan: Alice calls Bob, Asterisk executes Dial
application with G(context^exten^pri), after that Bob answers the call,
Asterisk transfers Alice to pri, Bob to pri+1. It should be possible
for example that in that context Asterisk executes different scenarios
for Bob and Alice and then connects Alice to Bob to let them
communicate. The problem is that I can not connect both sides for
conversation, Asterisk just hangs up after executes the scenarios.<br>
<br><div style="margin-left: 40px;"><i>[AnswerPrompt]<br>exten =&gt; s,1,Goto(10)<br>exten =&gt; s,2,Playback(Announce1)<br>exten =&gt; s,10,Playback(Announce2)<br><br>[call-number]<br>exten =&gt; _X.,1,Dial(SIP/${EXTEN}|G(AnswerPrompt^s^1))<br>

exten =&gt; _X.,n,Hangup()<br><br></i></div>Is there any solutions? Any help will be appropriate.<br><br><div class="gmail_quote">On Tue, May 20, 2008 at 3:56 PM, Alexander Olekhnovich &lt;<a href="mailto:a.olekhnovich@gmail.com">a.olekhnovich@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks a lot, that&#39;s the answer i could dream of :)<div><div></div><div class="Wj3C7c"><br>
<br><div class="gmail_quote">On Tue, May 20, 2008 at 3:34 PM, Tony Mountifield &lt;<a href="mailto:tony@softins.clara.co.uk" target="_blank">tony@softins.clara.co.uk</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">In article &lt;<a href="mailto:8c3b04020805200514g30422506n111aa9abacb5cb18@mail.gmail.com" target="_blank">8c3b04020805200514g30422506n111aa9abacb5cb18@mail.gmail.com</a>&gt;,<br>


<div><div></div><div>Alexander Olekhnovich &lt;<a href="mailto:a.olekhnovich@gmail.com" target="_blank">a.olekhnovich@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Could anyone please answer my question.<br>
&gt;<br>
&gt; I want to make the next scenario be possible.<br>
&gt; 1. Caller call another user.<br>
&gt; 2. Callee (called party) picks up and enters IVR menu. And then depending on<br>
&gt; his choice he has variants to: transfer the call to another user, transfer<br>
&gt; to voicemail, answer, hangup, etc...<br>
&gt;<br>
&gt; The problem is in the second part. As I remember Asterisk has an A(x)<br>
&gt; parameter of Dial to play the Announce to callee, but is there a possibility<br>
&gt; to organize IVR for callee after he picks up the receiver?<br>
&gt; Any help will be appropriate.<br>
<br>
</div></div>Use the G(context^ext^pri) option to Dial. This will transfer both the<br>
calling and called parties into the dialplan when the call is answered.<br>
Note that the calling party goes to priority pri and the called party<br>
goes to priority pri+1, so that you can do different things for each.<br>
<br>
Cheers<br>
Tony<br>
--<br>
Tony Mountifield<br>
Work: <a href="mailto:tony@softins.co.uk" target="_blank">tony@softins.co.uk</a> - <a href="http://www.softins.co.uk" target="_blank">http://www.softins.co.uk</a><br>
Play: <a href="mailto:tony@mountifield.org" target="_blank">tony@mountifield.org</a> - <a href="http://tony.mountifield.org" target="_blank">http://tony.mountifield.org</a><br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
 &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br><br clear="all"><br></div></div>-- <br>Best Regards<br><font color="#888888">Alexander Olekhnovich
</font></blockquote></div><br><br clear="all"><br>-- <br>Best Regards<br>Alexander Olekhnovich