<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"><<a href="mailto:sbirla@tampahost.net" target="_blank">sbirla@tampahost.net</a>></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>
<condition field="destination_number" expression="^(20\d\d)$"><br>
<action application="answer" data=""/><br>
<action application="eval" data="${luarun leg_b.lua ${uuid}}"/><br>
<action application="park" data="”/><br>
</condition><br>
<br>
<br>
leg_b.lua:<br>
<br>
uuid = argv[1]<br>
api = freeswitch.API()<br>
session = freeswitch.Session("{ignore_early_media=true}sofia/gateway/myvoipgw/<a href="tel:18135551212" value="+18135551212">18135551212</a>")<br>
api:execute("uuid_bridge", uuid..' '..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>