Read the &quot;exec in answer confirm&quot; section of <a href="http://wiki.freeswitch.org/wiki/Freeswitch_IVR_Originate#Answer_confirmation">http://wiki.freeswitch.org/wiki/Freeswitch_IVR_Originate#Answer_confirmation</a><br>
<br>I think you would be able to do what you&#39;re asking within a script that&#39;s executed this way, playing the file and reading DTMF then doing logic based on the pressed key from within the script. Any scripting language should work - so lua etc as well as javascript.<br>
<br>-Steve<br><br><br><br><div class="gmail_quote">On 15 June 2010 09:46, Davide Colombo <span dir="ltr">&lt;<a href="mailto:dcolombo@voismart.it">dcolombo@voismart.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
using group_confirm_file and group_confirm_key i have only one choice, connect called party with calling party (1 dtmf maps with group_confirm_key).<br>
What i&#39;d like to do when called party answers, it&#39;s: press 1 to connect with calling party, press 2 to hangup calling party, press 3 move calling party to voicemail.<br>
Additionally, making parellel dial in bridge, called phones stop to ring only when one of them digits the group_confirm_key and not (my purpose) when one of them answers.<br>
<br>
These are the reasons to transfer called channel to an ivr context using &quot;execute_on_answer&quot; variable.<br>
<div class="im"><br>
Best Regards<br>
<br>
<br>
<br>
----- Messaggio originale -----<br>
Da: &quot;Michael Collins&quot; &lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;<br>
A: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
</div>Inviato: Marted́, 15 giugno 2010 0:37:18<br>
<div><div></div><div class="h5">Oggetto: Re: [Freeswitch-users] Question about execute_on_answer<br>
<br>
Aha!<br>
<br>
You are trying to do some sort of answer verification, correct? You do<br>
know that FS already has this feature, correct? Check it out:<br>
<a href="http://wiki.freeswitch.org/wiki/Channel_Variables#Answer_confirmation_variables" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables#Answer_confirmation_variables</a><br>
<br>
Make sure that you aren&#39;t duplicating functionality before continuing.<br>
-MC<br>
<br>
<br>
On Mon, Jun 14, 2010 at 3:12 PM, Davide Colombo &lt; <a href="mailto:dcolombo@voismart.it">dcolombo@voismart.it</a> &gt;<br>
wrote:<br>
<br>
<br>
Hi,<br>
when 1019 answers, i transfer its channel (called channel party) to an<br>
IVR context using &quot;execute_on_answer&quot;. In this context the called party<br>
(1019 in this case) can listen to a message where he can choose to<br>
connect/hang-up the calling party using dtmf tones.<br>
In the meanwhile i need that calling party remains in a ringing state.<br>
<br>
Best regards<br>
<br>
----- Messaggio originale -----<br>
Da: &quot;Michael Collins&quot; &lt; <a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a> &gt;<br>
A: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Inviato: Luned́, 14 giugno 2010 23:46:42<br>
Oggetto: Re: [Freeswitch-users] Question about execute_on_answer<br>
<br>
<br>
<br>
<br>
I&#39;m not sure I follow what you&#39;re trying to accomplish...<br>
<br>
You call from x1000 to x1019... and what exactly do you want to have<br>
happen when 1019 answers?<br>
<br>
-MC<br>
<br>
<br>
On Mon, Jun 14, 2010 at 8:22 AM, Davide Colombo &lt; <a href="mailto:dcolombo@voismart.it">dcolombo@voismart.it</a> &gt;<br>
wrote:<br>
<br>
<br>
Hi all,<br>
<br>
i&#39;m trying to use &quot;execute_on_answer&quot; channel variable with a transfer<br>
before a bridge:<br>
<br>
&lt;action application=&quot;export&quot; data=&quot;nolocal:execute_on_answer=transfer<br>
myivrpresentation XML default&quot;/&gt;<br>
&lt;action application=&quot;bridge&quot; data=&quot;user/1019@${domain_name}&quot;/&gt;<br>
<br>
When i call 1019 from 1000 and 1019 answers, i have this situation:<br>
<br>
1019 is transfered to myivrpresentation but in console i can see this<br>
error<br>
<br>
2010-06-14 16:57:51.053528 [DEBUG] switch_core_codec.c:146<br>
sofia/internal/ <a href="mailto:1000@fs2-devel.voismart.net">1000@fs2-devel.voismart.net</a> Restore previous codec<br>
PCMU:0. 2010-06-14 16:57:51.053528 [DEBUG] switch_ivr_originate.c:3310<br>
Originate Resulted in Error Cause: 487 [ORIGINATOR_CANCEL]<br>
2010-06-14 16:57:51.053528 [ERR] switch_ivr_originate.c:2491 Cannot<br>
create outgoing channel of type [user] cause: [ORIGINATOR_CANCEL]<br>
2010-06-14 16:57:51.053528 [DEBUG] switch_ivr_originate.c:3310 Originate<br>
Resulted in Error Cause: 487 [ORIGINATOR_CANCEL]<br>
<br>
while 1000 goes to next action after bridge in the same extension.<br>
<br>
Is it possible to transfer called channel (when called party answers) to<br>
a particular extension and leave caller channel in ringing state?<br>
<br>
<br>
Best Regards<br>
<br>
_______________________________________________ FreeSWITCH-users mailing<br>
list <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<br>
<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
_______________________________________________ FreeSWITCH-users mailing<br>
<br>
<br>
<br>
list <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<br>
<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
_______________________________________________ FreeSWITCH-users mailing<br>
list <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<br>
<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
_______________________________________________ FreeSWITCH-users mailing<br>
list <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>