<div dir="ltr">That b-leg has no place to go when it first comes up, so you should originate it to park then uuid_bridge.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 30, 2014 at 9:08 PM, Sumit Birla <span dir="ltr">&lt;<a href="mailto:sbirla@tampahost.net" target="_blank">sbirla@tampahost.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am having an issue bridging calls with the following call flow:<br>
<br>
Dial plan:<br>
<br>
&lt;condition field=&quot;destination_number&quot; expression=&quot;^(20\d\d)$&quot;&gt;<br>
    &lt;action application=&quot;answer&quot; data=&quot;&quot;/&gt;<br>
    &lt;action application=&quot;eval&quot; data=&quot;${luarun leg_b.lua ${uuid}}&quot;/&gt;<br>
    &lt;action application=&quot;park&quot; data=&quot;”/&gt;<br>
&lt;/condition&gt;<br>
<br>
<br>
leg_b.lua:<br>
<br>
uuid = argv[1]<br>
api = freeswitch.API()<br>
session = freeswitch.Session(&quot;{ignore_early_media=true}sofia/gateway/myvoipgw/<a href="tel:18135551212" value="+18135551212">18135551212</a>&quot;)<br>
api:execute(&quot;uuid_bridge&quot;, uuid..&#39; &#39;..session:get_uuid())<br>
<br>
<br>
The incoming caller is parked as expected, and leg_b.lua makes its call.  However, as soon as the called party answers,  both ends hangup.  I see the following notices in the log:<br>
<br>
<br>
[NOTICE] switch_cpp.cpp:1054 Hangup sofia/external/<a href="tel:18135551212" value="+18135551212">18135551212</a> [CS_RESET] [NORMAL_CLEARING]<br>
...<br>
[NOTICE] switch_ivr_bridge.c:951 Hangup sofia/internal/2000@default [CS_SOFT_EXECUTE] [DESTINATION_OUT_OF_ORDER]<br>
<br>
<br>
<br>
Does any one know why above may be happening?   Perhaps a threading issue?<br>
<br>
Thanks,<br>
<br>
<br>
- Sumit<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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font face="courier new, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font face="courier new, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div>
</div>