<div dir="ltr">Hi guys! Thanks for your help! I got it running right now.<div><br></div><div>For future reference, I did the following steps to accomplish a two way audio while calling from Chrome to a PSTN phone.</div><div>
<br></div><div>I've migrated my environment to a CentOS 5.9. I've installed FreeSwitch following the default recipe, but instead of </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
./configure -C</blockquote><div><br></div><div> I did<br></div><div><br></div><div>./configure --with-openssl # suggested by @Iwan<br></div><div><br></div><div>To make available websocket connection on FS, I've just uncommented the following on sip_profiles/internal.xml</div>
<div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><!-- uncomment for sip over websocket support --><br>
<!--<param name="ws-binding" value=":5066"/> --></blockquote><div><br></div><div>And that is it! :D</div></div><div><br></div><div>To reach PSTN I used a pre-configured Asterisk instance as gateway.</div>
<div> </div><div>It is important to note that my client (Chrome), FreeSwitch and Asterisk were all at the same network while doing this tests.</div><div> </div><div>PS: I turned off my iptables to eliminate any possibility of port blocking while doing my tests.</div>
<div><br></div><div>Thanks again!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/6 Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">STUN allows a client behind NAT to find the IP:port its packets are leaving externally on so that it knows the location to tell the server (FreeSWITCH) to send audio back to.<div>
<br></div><div>In short STUN is used at whichever end is using NAT (which could be none, one or both).</div>
<div><br></div><div>If FreeSWITCH is on a public IP but your PC running Chrome is on NAT (extremely likely) then Chrome still needs to use STUN.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br>
<br><div class="gmail_quote">On 4 October 2013 21:21, James Mortensen <span dir="ltr"><<a href="mailto:james.mortensen@synclio.com" target="_blank">james.mortensen@synclio.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">But Chrome isn't on the same network, right? Also, I'm not an expert on this, but from what I understand, STUN binding is something that occurs between Chrome and the media server, not a STUN server. See Example 17 here in this RFC spec: <a href="http://tools.ietf.org/html/rfc5245#section-17" target="_blank">http://tools.ietf.org/html/rfc5245#section-17</a>. The STUN binding occurs between the two user agents, where one is the SIP user and the other could be your media server.<div>
<br></div><div>Chrome will complain about STUN binding errors or receiving unknown packets. If audio isn't flowing, all I'm trying to say is it might not be a FreeSWITCH issue and you should make sure Chrome isn't the culprit before changing too many things in FreeSWITCH. In one instance, my server's network was the problem, and setting up the same exact FreeSWITCH (and even Asterisk) configuration resulted in two way audio. :D)</div>
<div><br></div><div>Not saying this is your problem, just that you should definitely be watching what's happening in the Chrome debug logs too.</div><div><br></div><div>Hope this helps!</div><span><font color="#888888"><div>
<br></div></font></span><div class="gmail_extra"><span><font color="#888888">
<div><div dir="ltr"><div><br></div><div>James<br></div><div><br><div><br></div></div></div></div></font></span><div><div><br><div class="gmail_quote">On Fri, Oct 4, 2013 at 12:19 PM, Rafael Santana <span dir="ltr"><<a href="mailto:rafaelstnoliveira@gmail.com" target="_blank">rafaelstnoliveira@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for the replies! I couldn't test or check anything today. As soon as I do the tests I will inform here the new status. <div>
</div><div>@James</div>
<div>My application server (nginx) is on the same network my FreeSwitch and Asterisk are, so I'm not using a Stun server. </div><div><br></div><div>[]'s</div></div><div class="gmail_extra"><div><div><br>
<br><div class="gmail_quote">
2013/10/4 James Mortensen <span dir="ltr"><<a href="mailto:james.mortensen@synclio.com" target="_blank">james.mortensen@synclio.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Rafael,<div><br></div><div>You didn't mention whether the server was in the cloud. If you're server is on Amazon EC2, make sure you're following the guide here: <a href="https://wiki.freeswitch.org/wiki/Amazon_EC2" target="_blank">https://wiki.freeswitch.org/wiki/Amazon_EC2</a></div>
<div><br></div><div>Also, if you run a tcpdump -s0 -v udp on your FreeSWITCH and Asterisk server, do you see audio flowing? Also, in Chrome, startup chrome from the command line with the options to enable debug logging:</div>
<div><br></div><div>chrome --enable-logging --v=11</div><div><br></div><div>Then look to see if there are STUN binding errors. Also, check chrome://webrtc-internals, which will also tell you if Chrome is trying to send audio.</div>
<div><br></div><div>Is the server behind NAT or is it on the public Internet with it's own public IP bound to the eth0 interface? </div><div><br></div><div>Hope this helps!</div><div><br></div><div class="gmail_extra">
<br clear="all"><div><div dir="ltr"><div><br></div><div>James<br></div><div><div><div><br><div><br></div><div><br></div><div>On Thu, Oct 3, 2013 at 4:44 PM, Rafael Santana <span dir="ltr"><<a href="mailto:rafaelstnoliveira@gmail.com" target="_blank">rafaelstnoliveira@gmail.com</a>></span> wrote:<br>
</div></div></div></div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi,<div><br></div><div>
I'm new to telephony and FreeSwitch's world, so I apologize in advance for any nonsense I speak here. </div>
<div><br></div><div>I've been trying to setup an environment where It can be possible to make a call through Google Chrome Browser using JsSIP to a standard phone device on PSTN. </div>
<div><br></div><div>In my network my "PSTN gateway" is an Asterisk 1.4 instance (No, I can't chance it today). To communicate with Chrome I have a FreeSwitch 1.5.5 instance and to get access to PSTN via this instance I had to register my Asterisk instance as a gateway on my Sofia's external profile. This part of my scenario works fine. I'm able to make calls using a softphone registered on FreeSwitch to standard phones on PSTN with no problems. What I wasn't able to do until now was the JsSIP + FreeSwitch integration. </div>
<div><br></div><div>To setup FreeSwitch to comunicate with JsSIP, the only thing I did was uncomment the line below on sip_profiles/internal.xml.</div><div><br></div><div><param name="ws-binding" value=":5066"/></div>
<div><br></div><div>I really don't know if just this is sufficient. Am I missing something important?<br></div><div><br></div><div>To connect on my FreeSwitch instance from Chrome, I'm using the Tryit JsSIP demo. Today, I'm able to register on FS from Tryit demo and perform a call to a PSTN phone. The connection is established but I don't get any audio in both endpoints. The same happens when I try to call the 5000 ivr extension or an user on a softphone at the same network from my Chrome browser.</div>
<div><br></div><div>Assuming that all the services I've mentioned here are running on the same network, do you have any idea why I can't get audio in both endpoints of my experiment?</div><div><br></div><div>Additional information:</div>
<div>Ubuntu 12.04 64 bits</div><div><div>FreeSwitch version 1.5.5 default install configuration</div><div>Tryit JsSIP Demo with jssip-0.3.0.js</div><div><br></div>Thanks in advance,</div><div>Rafael.</div></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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>
<br></blockquote></div><br></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br>Rafael Santana Oliveira<br>Mestre em Ciência da Computação
</font></span></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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>
<br></blockquote></div><br></div></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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>
<br></blockquote></div><br></div>
</div></div><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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Rafael Santana Oliveira<br>Mestre em Ciência da Computação
</div>