<div dir="ltr">AFAIK on AWS EC2 the server runs behind NAT. My guess is your FS install isn't configured correctly to be behind NAT, so the server wasn't able to send media to FS correctly. But it can send correctly to itself (bypass_media).</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 1 April 2013 20:27, Jun Sun <span dir="ltr"><<a href="mailto:jsun@junsun.net" target="_blank">jsun@junsun.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hmm, crazy! After enabling "bypass_media" I can start to hear the<br>
conversation from both ends.<br>
<br>
originate<br>
{bypass_media=true}sofia/internal/<a href="tel:15107079642" value="+15107079642">15107079642</a>@216.xxx.xxx.11:5060<br>
&bridge(sofia/internal/<a href="tel:15102991921" value="+15102991921">15102991921</a>@216.xxx.xxx.11:5060)<br>
<br>
This is even better for my callback purpose. However, I really thought<br>
without bypassing media would be easier to get work first. Still feel<br>
strange why it would not work ...<br>
<br>
Cheers.<br>
<span class="HOEnZb"><font color="#888888"><br>
Jun<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On 3/31/2013 5:19 PM, Jun Sun wrote:<br>
><br>
> Thanks for the pastebin suggestion. I have attached pastebin URL for the<br>
> output from fs_cli console (debug level 7), from initiating the command<br>
> to both parties picking up the phone.<br>
><br>
> <a href="http://pastebin.com/tZewdvri" target="_blank">http://pastebin.com/tZewdvri</a><br>
><br>
> I did not touch bypass_media in any way. I assume it should be off. (And<br>
> this is a fairly standard system, other than that it is hosted on AWS<br>
> EC2 machine)<br>
><br>
> Since I"m using the same SIP trunk, even if bypass_media is set to true,<br>
> it probably should still work.<br>
><br>
> Thanks in advance. I can get a pcap file if that will be helpful.<br>
><br>
> Jun<br>
><br>
> On 3/31/2013 12:18 AM, Peter Olsson wrote:<br>
>> Yes, it's there to separate if the second parameter is for en<br>
>> extension (no '&' prefix) or an application (using '&' prefix). Read<br>
>> the full description here:<br>
>> <a href="http://wiki.freeswitch.org/wiki/Mod_commands#originate" target="_blank">http://wiki.freeswitch.org/wiki/Mod_commands#originate</a>. If you would<br>
>> allow a space in between it would make '&' the second parameter, and<br>
>> the actual string the third - which is not correct. This is just<br>
>> normal syntax rules for how to parse arguments.<br>
>><br>
>> About the audio issue - make sure to get debug logs, and a pcap when<br>
>> making the call, post to pastebin. This is usually a NAT or codec<br>
>> issue. SInce you said it was working if calling a conference, another<br>
>> thing to check might be if you're settings bypass_media or not.<br>
>><br>
>> /Peter<br>
>> ________________________________________<br>
>> Från: Jun Sun [<a href="mailto:jsun@junsun.net">jsun@junsun.net</a>]<br>
>> Skickat: den 31 mars 2013 08:30<br>
>> Till: FreeSWITCH Users Help<br>
>> Cc: Peter Olsson<br>
>> Ämne: Re: [Freeswitch-users] bridging two outbound calls<br>
>><br>
>> Is there any specific reason why "&" must be immediately followed by the<br>
>> application name? I found this restriction pretty annoying (at least for<br>
>> newbies ;0)<br>
>><br>
>> A simple patch would easily fix this. See one attached. Any takers?<br>
>><br>
>> I'm still searching for the solution for no sound after bridging. Would<br>
>> appreciate any pointers. (Again, this really has to be one of the<br>
>> simplest cases ... why it has been so hard?)<br>
>><br>
>> Cheers.<br>
>><br>
>> Jun<br>
>><br>
>> On 3/30/2013 8:36 AM, Jun Sun wrote:<br>
>>><br>
>>> Oh, my god. That is it! After removing the extra space between "&" and<br>
>>> "bridge", the second number now gets dialed.<br>
>>><br>
>>> However, I cannot hear each other between these two phones. I think the<br>
>>> signaling part is working, because hanging up one end will cause the<br>
>>> other end hung up. However, the media is not flowing through.<br>
>>><br>
>>> This must be a simple mistake. Any pointers?<br>
>>><br>
>>> BTW, using conference() app works, i.e., both ends can connect and talk.<br>
>>> So my system should be in general healthy state.<br>
>>><br>
>>> Cheers.<br>
>>><br>
>>> Jun<br>
>>><br>
>>> On 3/29/2013 11:38 PM, Peter Olsson wrote:<br>
>>>> It looks like you have a space between & and bridge? It might be my<br>
>>>> email reader though. Anyway, it must be set like this: &bridge().<br>
>>>><br>
>>>> Also, I'm not sure about the tel: stuff, if you can set it that way,<br>
>>>> especially since there is a whitespace in between as well.<br>
>>>><br>
>>>> /Peter<br>
>>>><br>
>>>> 30 mar 2013 kl. 07:27 skrev "Jun Sun" <<a href="mailto:jsun@junsun.net">jsun@junsun.net</a>>:<br>
>>>><br>
>>>>><br>
>>>>> Yes, I tried. I can reverse the positions of those two numbers and<br>
>>>>> always the first number gets called and the second number gets<br>
>>>>> nothing.<br>
>>>>><br>
>>>>> I start to wonder whether I'm using bridge() application wrongly.<br>
>>>>> Can it<br>
>>>>> dial out directly to a PSTN number via sofia?<br>
>>>>><br>
>>>>> I was also fumbling with two orignate commands (followed by park()<br>
>>>>> application) and uuid_bridge to connect. No failures on console,<br>
>>>>> but the<br>
>>>>> two lines are not talking.<br>
>>>>><br>
>>>>> Thanks.<br>
>>>>><br>
>>>>> Jun<br>
>>>>><br>
>>>>> On 3/29/2013 6:25 PM, Zoltan Medveczky wrote:<br>
>>>>>> You probably already tried this, but are you able to place a call to<br>
>>>>>> your party B endpoint at all (i.e.<br>
>>>>>> originate(sofia/internal/<a href="tel:18005551212" value="+18005551212">18005551212</a><br>
>>>>>> <tel:<a href="tel:18005551212" value="+18005551212">18005551212</a>>@X.X.X.X:5060)?<br>
>>>>>><br>
>>>>>> If that's failing, I'd say there's probably something wrong with your<br>
>>>>>> dial string. Perhaps your SIP UA is not bound to port 5060?<br>
>>>>>><br>
>>>>>> On Fri, Mar 29, 2013 at 5:45 PM, Jun Sun <<a href="mailto:jsun@junsun.net">jsun@junsun.net</a><br>
>>>>>> <mailto:<a href="mailto:jsun@junsun.net">jsun@junsun.net</a>>> wrote:<br>
>>>>>><br>
>>>>>> I feel really stupid. This has to be one of the simplest<br>
>>>>>> cases in<br>
>>>>>> freeswitch, but I can't seem to get it work.<br>
>>>>>><br>
>>>>>> My goal is to originate two outbound calls and bridge them<br>
>>>>>> together, a<br>
>>>>>> typical callback use case. I like to to do it from socket<br>
>>>>>> api/fs_cli.<br>
>>>>>><br>
>>>>>> Here is what I typed in fs_cli:<br>
>>>>>><br>
>>>>>> originate sofia/internal/<a href="tel:15102991912" value="+15102991912">15102991912</a><br>
>>>>>> <tel:<a href="tel:15102991912" value="+15102991912">15102991912</a>>@X.X.X.X:5060 &<br>
>>>>>> bridge(sofia/internal/<a href="tel:18005551212" value="+18005551212">18005551212</a><br>
>>>>>> <tel:<a href="tel:18005551212" value="+18005551212">18005551212</a>>@X.X.X.X:5060)<br>
>>>>>><br>
>>>>>> The first leg is initiated and answered successfully, but the<br>
>>>>>> second leg<br>
>>>>>> never happens. From the console I don't see any action done by<br>
>>>>>> FS to do<br>
>>>>>> the bridging part.<br>
>>>>>><br>
>>>>>> Any idea? Thanks in advance.<br>
>>>>>><br>
>>>>>> Cheers.<br>
>>>>>><br>
>>>>>> Jun<br>
>>>>>><br>
>>>>>><br>
>>>>>> _________________________________________________________________________<br>
>>>>>><br>
>>>>>><br>
>>>>>> Professional FreeSWITCH Consulting Services:<br>
>>>>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> <mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>><br>
>>>>>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>>>>><br>
>>>>>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
>>>>>> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
>>>>>><br>
>>>>>> Official FreeSWITCH Sites<br>
>>>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>>>>> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
>>>>>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>>>>>><br>
>>>>>> FreeSWITCH-users mailing list<br>
>>>>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>>>>> <mailto:<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>
>>>>>><br>
>>>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>>>>><br>
>>>>>><br>
>>>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> _________________________________________________________________________<br>
>>>>>><br>
>>>>>><br>
>>>>>> Professional FreeSWITCH Consulting Services:<br>
>>>>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>>>>>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>>>>><br>
>>>>>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
>>>>>> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
>>>>>><br>
>>>>>> Official FreeSWITCH Sites<br>
>>>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>>>>> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
>>>>>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
>>>>>><br>
>>>>>><br>
>>>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>>>><br>
>>>>><br>
>>>>> _________________________________________________________________________<br>
>>>>><br>
>>>>><br>
>>>>> Professional FreeSWITCH Consulting Services:<br>
>>>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>>>>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>>>><br>
>>>>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
>>>>> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
>>>>><br>
>>>>> Official FreeSWITCH Sites<br>
>>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>>>> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
>>>>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
>>>>><br>
>>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>><br>
>>>> _________________________________________________________________________<br>
>>>><br>
>>>> Professional FreeSWITCH Consulting Services:<br>
>>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>>>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>>><br>
>>>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
>>>> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
>>>><br>
>>>> Official FreeSWITCH Sites<br>
>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>>> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
>>>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
>>>><br>
>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>>><br>
>>><br>
>>><br>
>><br>
>><br>
>><br>
>> !DSPAM:5157d35132761492122807!<br>
>><br>
><br>
><br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
</div></div></blockquote></div><br></div>