Trouble With Transfer and Async Event Socket
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
This is your FIRST and LAST warming.. CHILL OUT. We moderate first post (due to trolls and spammers.).... You have demonstrated you're so impatient that you can't wait a few moments to give someone a chance to tend to the moderation queue. You posted the same message 5 times from two address... Please do not do this anymore and CHILL OUT... if you needed help that urgent you should have joined IRC. /b On May 3, 2010, at 9:33 AM, Joe Crivello wrote: CONTENT REMOVED
Brian, I had no intention of spamming the list. I apologize. I sent the original message early this morning and it did not appear in the archive or send me a receipt for the email (when messages from other folks were going through). I asked a few people in the IRC chat room and the consensus was that there was a problem with my email server. I had no idea that the list was moderated (and I did look for documentation of such). I simply thought my email server was misbehaving. Again, my apologies. -Joe -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Monday, May 03, 2010 10:55 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Trouble With Transfer and Async Event Socket This is your FIRST and LAST warming.. CHILL OUT. We moderate first post (due to trolls and spammers.).... You have demonstrated you're so impatient that you can't wait a few moments to give someone a chance to tend to the moderation queue. You posted the same message 5 times from two address... Please do not do this anymore and CHILL OUT... if you needed help that urgent you should have joined IRC. /b On May 3, 2010, at 9:33 AM, Joe Crivello wrote: CONTENT REMOVED _______________________________________________ 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
Forgiven this time. ;) Welcome to FreeSWITCH. /b On May 3, 2010, at 11:43 AM, Joe Crivello [VT] wrote:
Brian,
I had no intention of spamming the list. I apologize.
I sent the original message early this morning and it did not appear in the archive or send me a receipt for the email (when messages from other folks were going through).
I asked a few people in the IRC chat room and the consensus was that there was a problem with my email server. I had no idea that the list was moderated (and I did look for documentation of such).
I simply thought my email server was misbehaving.
Again, my apologies.
-Joe
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 <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
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=" <http://172.18.11.1:8001/> 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 <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
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 <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@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 <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
I think I confused the situation with my ending comment in my last email. The call is bridged and in the CS_EXCHANGE_MEDIA state when I run the transfer. What I meant to say in my ending comment in my last email was that I noticed if I run the transfer command as listed below when the B-leg is not yet in the CS_EXCHANGE_MEDIA state, the transfer works (although of course a WARNING is outputted to the console complaining that there is no B-leg). -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 3:01 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Trouble With Transfer and Async Event Socket 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=" <http://172.18.11.1:8001/> 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 <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@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 <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
Your attempt to underscore the area where you are having the problem has obscured the necessary details to help you. You need to re-describe with more details. you might want to use the api interface on your socket app and use uuid_transfer -both <uuid of a leg> On Mon, May 3, 2010 at 3:22 PM, Joseph Crivello <josephcrivello@gmail.com>wrote:
I think I confused the situation with my ending comment in my last email.
The call is bridged and in the CS_EXCHANGE_MEDIA state when I run the transfer.
What I meant to say in my ending comment in my last email was that I noticed if I run the transfer command as listed below when the B-leg is not yet in the CS_EXCHANGE_MEDIA state, the transfer works (although of course a WARNING is outputted to the console complaining that there is no B-leg).
-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 3:01 PM
*To:* freeswitch-users@lists.freeswitch.org *Subject:* Re: [Freeswitch-users] Trouble With Transfer and Async Event Socket
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 <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@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 <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@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 <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
The uuid_transfer command did the trick for me. I wasn't specifying the UUID explicitly with the "transfer" sendmsg, which happened to be the first command to be sent after the bridge. Apparently you must explicitly specify the UUID with sendmsg commands after the bridge command (which I was not aware of). Thanks! -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 3:52 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Trouble With Transfer and Async Event Socket Your attempt to underscore the area where you are having the problem has obscured the necessary details to help you. You need to re-describe with more details. you might want to use the api interface on your socket app and use uuid_transfer -both <uuid of a leg> On Mon, May 3, 2010 at 3:22 PM, Joseph Crivello <josephcrivello@gmail.com> wrote: I think I confused the situation with my ending comment in my last email. The call is bridged and in the CS_EXCHANGE_MEDIA state when I run the transfer. What I meant to say in my ending comment in my last email was that I noticed if I run the transfer command as listed below when the B-leg is not yet in the CS_EXCHANGE_MEDIA state, the transfer works (although of course a WARNING is outputted to the console complaining that there is no B-leg). -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 3:01 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Trouble With Transfer and Async Event Socket 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=" <http://172.18.11.1:8001/> 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 <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@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 <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@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 <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
participants (5)
-
Anthony Minessale
-
Brian West
-
Joe Crivello
-
Joe Crivello [VT]
-
Joseph Crivello