Hi Michael, See my reply inline below. Okay, I've been really crazy so I just go to this thread. I confess: TL;DR. ;) That's fine, I understand :-) Try this for your originate line: originate {ignore_early_media=true}sofia/internal/1003%192.168.0.2 &eavesdrop('all') Great, your suggestion works! (With or without the single guote in eavesdrop parameter) It also works when I change 'all' to my UUID: this.channelUniqueID. This morning I used "bridge" without eavesdrop to have achieved my goal: Java app does the recording and the softphone listens the voice. both two example below work: bridge","{ignore_early_media=true}sofia/internal/1003%192.168.0.2 bridge","{ignore_early_media=true}user/1003 The key problem was 1. I missed the parenthesis for eavesdrop as also pointed out by Hector. as I quickly checked the usage in the wiki: eavesdrop [<uuid>|all] but didn't notice the usage in the examples. 2. simply combine the originate and eavesdrop won't work because a separated originate needs two parameters <call_url> <exten> | ... but worked combined originate and eavesdrop only needs one: i.e. <call_url> so "originate <call_url>" won't work but "originate <call_url> <exten> |..." works! (though I didn't figure out the <exten> syntax for a dialplan extension, only got &socket(...) work). "originate <call_url> &eavesdrop(UUID)" works! Also, if you have mod_shout and mod_xml_rpc loaded you can do this trick for listening to calls on your computer's speakers: http://wiki.freeswitch.org/wiki/Webapi#Telecast I don't know if that will do exactly what you want but it might get you going in the right direction. I may look at it as well later on as for now I have the solutions, thanks for the suggestions! Thanks so much for your helps! I greatly appreciate it! Best regards, Xing -MC On Tue, Feb 28, 2012 at 3:30 PM, Liu, Xingkun <X.Liu@hw.ac.uk> wrote:
**
Maybe, I am not sure what's wrong.
I didn't do the originate and eavesdrop from dialplan, I do it from a ESL Java app.
My dialplan is as follow:
<extension name="myEslNew5801"> <condition field="destination_number" expression="^5801$"> <action application="limit" data="hash outgoing 5801 4" /> <action application="socket" data="127.0.0.1:9981 async full"/> </condition> </extension>
the extension is also specified in my sip_profile so I can dial into 5801 by calling my sip provider's number.
My Java app answers the call, then from the app (which also do the recording) I do the originate to the softphone (extension 1003):
api originate {ignore_early_media=true}sofia/internal/1003%192.168.0.2 &socket(127.0.0.1:9981 async full) &eavesdrop all
This originate call does not give the error: [ERR] mod_dptools.c:714 Usage: [all | <uuid>] (It would give the error if I remove &socket(127.0.0.1:9981 async full) )
But I can not hear the conversation from the softphone. My goal is to listen to the conversation while doing the recording.
Best, Xing
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org on behalf of Ken Rice Sent: Tue 2/28/2012 22:45 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] How to bridge a call to an extension defined in dialplan
This looks like a dialplan issue...
Show the exact originate and dialplan you are using
K
On 2/28/12 4:10 PM, "Liu, Xingkun" <X.Liu@hw.ac.uk> wrote:
[ERR] mod_dptools.c:714 Usage: [all | <uuid>]
------------------------------
*Heriot-Watt University is the Sunday Times Scottish University of the Year 2011-2012.*
Heriot-Watt University is a Scottish charity registered under charity number SC000278.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
-- Heriot-Watt University is a Scottish charity registered under charity number SC000278. Heriot-Watt University is the Sunday Times Scottish University of the Year 2011-2012