well that's because it's what "both" implies, the "current" leg and the one it's bridged to.
if you are not bridged anymore, naturally, it won't work.



On Mon, May 3, 2010 at 1:20 PM, Joseph Crivello <josephcrivello@gmail.com> wrote:

Example command:

 

Command: transfer

Arguments: -both ConfXfer-1 XML default

 

And here is the referenced dialplan extension:

 

    <extension name="ConfXfer">

      <condition field="destination_number" expression="^ConfXfer-(\d+)$">

        <action application="answer"/>

        <action application="conference" data="$1" />

      </condition>

    </extension>

 

Interestingly, I recently discovered that the transfer works if I do it before the bridge finishes (figured that out by accident).

 

-Joe

 

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale
Sent: Monday, May 03, 2010 1:06 PM


To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Trouble With Transfer and Async Event Socket

 

What command are you using to try to transfer it to your conference?

 

On Mon, May 3, 2010 at 9:33 AM, Joe Crivello <josephcrivello@gmail.com> wrote:

Hello All,

I am currently working on a conference bridge based on FreeSWITCH that
allows some conference members to dial out to a prompted number.

Currently my implementation binds * in conference.xml to the "transfer"
action, leading to a dial plan extension that runs an async full outgoing
event socket. My application serving the event socket does the following:

1) Verifies the user is allowed to dial out, and writes a record to the
database.
2) Retrieves the number to be dialed with 'play_and_get_digits'
3) Bridges the call to the dialed number
4) Waits for the a-leg to press star
5) Uses 'transfer' to transfer both legs back to the conference

Everything works up to step #5, which does nothing.

There is no NOTICE outputted to the console indicating that a transfer is
taking place and neither leg is rejoined to the conference.

I get a normal event back after the transfer sendmsg:

Event-Name: SOCKET_DATA
Content-Type: command/reply
Reply-Text: %2BOK

If I subscribe to all events before running the transfer and receive events
in a loop, I receive nothing but routine RE_SCHEDULE and CALL_UPDATE events
after the transfer.

I am using ESL to communicate with FreeSWITCH, and prior to running any of
steps #1-5 I set the event lock to true. The line from the dial plan
extension that calls my application follows:

<action application="socket" data="172.18.11.1:8001 async full" />

Any ideas? Perhaps I'm "doing it wrong"? I am very new to FS.

Thanks!
Joe Crivello

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900