Thanks anthony! Works like a charm :-)<br><br><div class="gmail_quote">On Mon, Nov 3, 2008 at 2:47 PM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">your issue with pre_execute_b is probably fixed in latest trunk.<br>As far as execute_on_answer, you need to set the variable on that dialing leg not the inbound leg.<br>
<br>{execute_on_answer=playback\s/some/file.wav}sofia/profile/<a href="mailto:u@dom.com" target="_blank">u@dom.com</a><br>
<br><br><br><div class="gmail_quote"><div><div></div><div class="Wj3C7c">On Sun, Nov 2, 2008 at 8:59 PM, Gonzalo Servat <span dir="ltr">&lt;<a href="mailto:gservat@gmail.com" target="_blank">gservat@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
Hi All,<br><br>This is basically what I&#39;m trying to do:<br><br>- Caller dials in and FS runs the Lua script I&#39;m writing<br>- Main menu is played to the caller<br>- Caller presses 1<br>- Still in Lua, i run session:transfer() to an extension of another dialplan context<br>


- When the called party picks up, a wav file (or TTS) is played to the CALLED party<br>- Once the sound stops playing, the caller is bridged to the called party<br><br>To achieve this, the nice folks at #freeswitch suggested a few things:<br>


<br>1) execute_on_answer. This doesn&#39;t appear to work ... no application seems to be executed when the called party picks up. Is it because the call is already answered when the caller originally dials in at the very beginning?<br>


2) bridge_pre_execute_bleg_app / bridge_pre_execute_bleg_data. This is the closest I&#39;ve come to getting it working. I used the following in the Lua script:<br><br>if( selection == &quot;1&quot; ) then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; session:setAutoHangup(false)<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; session:execute( &quot;set&quot;, &quot;bridge_pre_execute_bleg_app=speak&quot; );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; session:execute( &quot;set&quot;, &quot;bridge_pre_execute_bleg_data=flite|kal|this is kal saying something&quot; );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; session:transfer( &quot;10&quot;, &quot;XML&quot;, &quot;extensions&quot; )<br>


end<br><br>I actually see in the logs that it&#39;s &quot;saying text: this is kal saying something&quot; but it goes no further. On the called party side, I don&#39;t hear the text nor is the call bridged. I tried using &quot;playback&quot; instead of &quot;speak&quot; to see if it was a TTS problem but no, same result.<br>


<br>Any ideas?<br><br>Thanks<br><font color="#888888">Gonzalo<br>
</font><br></div></div>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">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></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>

<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>

IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<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>
<br></blockquote></div><br>