You could try doing a bridge_pre_execute and play the sounds to each leg independently prior to the bridge. Check out these chan vars:<br><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#bridge_pre_execute_aleg_app">http://wiki.freeswitch.org/wiki/Channel_Variables#bridge_pre_execute_aleg_app</a><br>
<a href="http://wiki.freeswitch.org/wiki/Channel_Variables#bridge_pre_execute_aleg_data">http://wiki.freeswitch.org/wiki/Channel_Variables#bridge_pre_execute_aleg_data</a><br><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#bridge_pre_execute_bleg_app">http://wiki.freeswitch.org/wiki/Channel_Variables#bridge_pre_execute_bleg_app</a><br>
<a href="http://wiki.freeswitch.org/wiki/Channel_Variables#bridge_pre_execute_bleg_data">http://wiki.freeswitch.org/wiki/Channel_Variables#bridge_pre_execute_bleg_data</a><br><br>-MC<br><br><div class="gmail_quote">On Wed, Aug 29, 2012 at 4:24 AM, Dave Horton <span dir="ltr"><<a href="mailto:daveh@beachdognet.com" target="_blank">daveh@beachdognet.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Set api_on_answer to execute<br>
> uuid_broadcast<<br>
> <a href="http://wiki.freeswitch.org/wiki/Mod_commands#uuid_broadcast" target="_blank">http://wiki.freeswitch.org/wiki/Mod_commands#uuid_broadcast</a><br>
> ><br>
> which<br>
> will let you pick which legs to play the recording to.<br>
> You can pass in the UUID with ${uuid}<br>
><br>
> -Avi<br>
><br>
I tried this, and it worked.....sort of. If I play the prompt the A leg it is fine -- caller hears the prompt, then is connected to called party. If I play it to the B leg, however, the prompt does not seem to start playing at all until the B party actually starts talking, and then the prompt is played extremely choppy and slow.....it takes about 10 seconds to play a 4 second prompt. Meanwhile, the caller and called party can't hear each other. Any idea what is going on and how to fix it? I am doing it in lua as follows:<br>
<br>
session:execute("export","nolocal:jitterbuffer_msec=100") ;<br>
session:setVariable("RECORD_STEREO","true") ;<br>
session:setVariable("aleg_uuid",uuid) ;<br>
session:execute("record_session", outfile) ;<br>
session:execute("set","progress_timeout=60") ;<br>
session:execute("set","call_timeout=120") ;<br>
session:setVariable("hangup_after_bridge","true") ;<br>
session:execute("bridge","sofia/normal_customer/${outdial}@${egress_gateway}") ;<br>
--session:execute("bridge","{api_on_answer='uuid_broadcast " .. uuid .. " " .. this_call_is_being_recorded .. " " .. "bleg'}sofia/normal_customer/${outdial}@${egress_gateway}") ;<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
</blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>