<div dir="ltr">Nevermind I think I figured it out. Using &quot;export&quot; instead of &quot;set&quot; caused api_on_answer to be set on both channels. Combined with the {mintwo} flag on the conference, what ended up happening was FS would execute the transfer of both channels for the first channel, which would place both callers into the conference. Then, it would execute the api_on_answer for the bridged channel (because that variable was exported) which (depending on when it ran) would pull the channel out of the conference and put it back in, but pulling that user out would trip the mintwo flag and apparently leave the call in a strange state.<div><br></div><div>Changing &quot;export&quot; to &quot;set&quot; seems to have solved the problem.</div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Jun 4, 2016 at 12:53 PM Colin Morelli &lt;<a href="mailto:colin.morelli@gmail.com">colin.morelli@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Alright so after experimenting with this, it doesn&#39;t seem to work reliably (though I may be using it wrong). Roughly half of the time everything works fine and both parties are joined together. The other half of the time the bridged leg doesn&#39;t make it to the conference (but also stays active). This is the httapi response I&#39;m providing:<div><br></div><div><div><font face="monospace">&lt;document type=&quot;xml/freeswitch-httapi&quot;&gt;</font></div><div><font face="monospace">   &lt;work&gt;</font></div><div><font face="monospace">      &lt;execute application=&quot;export&quot; data=&quot;hangup_after_bridge=false&quot; /&gt;</font></div><div><font face="monospace">      &lt;execute application=&quot;export&quot; data=&quot;api_on_answer=uuid_transfer ${uuid} -both &#39;conference:2ee73476-aea4-4f85-861f-287f90a42275++flags{mintwo,dist-dtmf}&#39; inline&quot; /&gt;</font></div><div><font face="monospace">      &lt;execute application=&quot;export&quot; data=&quot;ringback=${us-ring}&quot; /&gt;</font></div><div><font face="monospace">      &lt;execute application=&quot;bridge&quot; data=&quot;sofia/external/<a href="mailto:sips%3Anumber@sip.trunking.provider.com" target="_blank">sips:number@sip.trunking.provider.com</a>;transport=tls&quot; /&gt;</font></div><div><font face="monospace">   &lt;/work&gt;</font></div><div><font face="monospace">&lt;/document&gt;</font></div></div><div><br></div><div>Would appreciate any insight.</div><div><br></div><div>Best,</div><div>Colin</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jun 1, 2016 at 12:13 PM Colin Morelli &lt;<a href="mailto:colin.morelli@gmail.com" target="_blank">colin.morelli@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Awesome - this is exactly what I was looking for. Don&#39;t know how I missed it.<div><br></div><div>Thank you!</div><div><br></div><div>Best,</div><div>Colin</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jun 1, 2016 at 12:08 PM Abaci B &lt;<a href="mailto:abaci64@gmail.com" target="_blank">abaci64@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>one way to do it would be to use <a href="https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables#ChannelVariables-Theapi_onfamily" target="_blank">api_on_answer</a> to execute a <a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_commands#mod_commands-uuid_transfer" target="_blank">uuid_transfer -both</a> to transfer both legs to the conference (make sure to set hangup_after_bridge to false).</div></div><div class="gmail_extra"><br><div class="gmail_quote"></div></div><div class="gmail_extra"><div class="gmail_quote">On Tue, May 31, 2016 at 4:59 PM, Colin Morelli <span dir="ltr">&lt;<a href="mailto:colin.morelli@gmail.com" target="_blank">colin.morelli@gmail.com</a>&gt;</span> wrote:<br></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So, I&#39;m trying to setup certain calls such that they enter into a conference asap. I have the process working using bridging conferences right now, which is okay, but bridging conferences forces the dialing leg of the call to go to an answered state immediately, while the bridge leg is still ringing. So, while everything seems to work correctly, it messes with some of my reconciliation/reporting process with another database that are fed off of channel state events. Essentially it looks like every call was answered. <div><br></div><div>So I was curious to know if there&#39;s a way to make a call that creates a bridged leg, and then as soon as the leg is answered immediately joins both legs into a conference. Is the only way to do it to listen for the channel_bridge events and then transfer the call myself?</div><div><br></div><div>Best,</div><div>Colin</div></div>
<br></blockquote></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div></blockquote></div></blockquote></div>