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