well that&#39;s because it&#39;s what &quot;both&quot; implies, the &quot;current&quot; leg and the one it&#39;s bridged to.<div>if you are not bridged anymore, naturally, it won&#39;t work.</div><div><br></div><div><br><br>
<div class="gmail_quote">On Mon, May 3, 2010 at 1:20 PM, Joseph Crivello <span dir="ltr">&lt;<a href="mailto:josephcrivello@gmail.com">josephcrivello@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">











<div lang="EN-US" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Example command:</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Command: transfer</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Arguments: -both ConfXfer-1 XML default</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">And here is the referenced dialplan extension:</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">    &lt;extension name=&quot;ConfXfer&quot;&gt;</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">      &lt;condition field=&quot;destination_number&quot;
expression=&quot;^ConfXfer-(\d+)$&quot;&gt;</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">        &lt;action application=&quot;answer&quot;/&gt;</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">        &lt;action application=&quot;conference&quot;
data=&quot;$1&quot; /&gt;</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">      &lt;/condition&gt;</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">    &lt;/extension&gt;</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Interestingly, I recently discovered that the transfer works if
I do it before the bridge finishes (figured that out by accident).</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">-Joe</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">

<p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Anthony
Minessale<br>
<b>Sent:</b> Monday, May 03, 2010 1:06 PM</span></p><div class="im"><br>
<b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
<b>Subject:</b> Re: [Freeswitch-users] Trouble With Transfer and Async Event
Socket</div><p></p>

</div>

<p class="MsoNormal"> </p>

<p class="MsoNormal">What command are you using to try to transfer it to your
conference?</p><div><div></div><div class="h5">

<div>

<p class="MsoNormal" style="margin-bottom:12.0pt"> </p>

<div>

<p class="MsoNormal">On Mon, May 3, 2010 at 9:33 AM, Joe Crivello &lt;<a href="mailto:josephcrivello@gmail.com" target="_blank">josephcrivello@gmail.com</a>&gt; wrote:</p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:8.0pt">Hello All,<br>
<br>
I am currently working on a conference bridge based on FreeSWITCH that<br>
allows some conference members to dial out to a prompted number.<br>
<br>
Currently my implementation binds * in conference.xml to the
&quot;transfer&quot;<br>
action, leading to a dial plan extension that runs an async full outgoing<br>
event socket. My application serving the event socket does the following:<br>
<br>
1) Verifies the user is allowed to dial out, and writes a record to the<br>
database.<br>
2) Retrieves the number to be dialed with &#39;play_and_get_digits&#39;<br>
3) Bridges the call to the dialed number<br>
4) Waits for the a-leg to press star<br>
5) Uses &#39;transfer&#39; to transfer both legs back to the conference<br>
<br>
Everything works up to step #5, which does nothing.<br>
<br>
There is no NOTICE outputted to the console indicating that a transfer is<br>
taking place and neither leg is rejoined to the conference.<br>
<br>
I get a normal event back after the transfer sendmsg:<br>
<br>
Event-Name: SOCKET_DATA<br>
Content-Type: command/reply<br>
Reply-Text: %2BOK<br>
<br>
If I subscribe to all events before running the transfer and receive events<br>
in a loop, I receive nothing but routine RE_SCHEDULE and CALL_UPDATE events<br>
after the transfer.<br>
<br>
I am using ESL to communicate with FreeSWITCH, and prior to running any of<br>
steps #1-5 I set the event lock to true. The line from the dial plan<br>
extension that calls my application follows:<br>
<br>
&lt;action application=&quot;socket&quot; data=&quot;<a href="http://172.18.11.1:8001/" target="_blank"><span style="color:#0658B5">172.18.11.1:8001</span></a> async
full&quot; /&gt;<br>
<br>
Any ideas? Perhaps I&#39;m &quot;doing it wrong&quot;? I am very new to FS.<br>
<br>
Thanks!<br>
<span style="color:#888888">Joe Crivello</span></span> <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" 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></p>

</div>

<p class="MsoNormal"><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>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</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="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900</p>

</div>

</div></div></div>

</div>


<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><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>