<span style='font-family:Verdana'><span style='font-size:12px'>Dear Sean,<br /> 
<br /> 
It's not that bad - remote_ip, xxx and yyy are only placeholders in my example - actual config has real params ;)<br /> 
<br /> 
Did you mean that FS will automatically use TLS <u>for registration</u> when I append :5061 to realm value ?<br /> 
<br /> 
Thanks / MiKe<br /> 
<br /> 
<p style="margin:0px; padding:0px;" > 
         </p> 
<blockquote style="border-left: 1px solid #CCC; padding-left: 5px; margin-left: 5px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px;" type="cite"> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">----- Original Message -----</span></span></p> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">From: Sean Devoy</span></span></p> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">Sent: 06/20/12 07:03 PM</span></span></p> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">To: 'FreeSWITCH Users Help'</span></span></p> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">Subject: Re: [Freeswitch-users] gateway registration using TLS</span></span></p> 
        <br /> 
        <div link="blue" vlink="purple"> 
                <div class="WordSection1"> 
                        <p class="MsoNormal"> 
                                <span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Mi Ke,</span></p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <p class="MsoNormal"> 
                                 </p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <p class="MsoNormal"> 
                                <span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">You should put your actual remote provider’s domain name or tip address in where it says “</span><span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:red">remote_ip_here</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">” and I assume you have entered you actual username and password where it says “yyy” and “zzz”.</span></p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <p class="MsoNormal"> 
                                <span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">It should look SIMILAR to this, but with your provider: </span><span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">&lt;param name="realm" value="<span style="color:red">sip.voipinnovations.com</span>:5061"/&gt;</span></p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <p class="MsoNormal"> 
                                <span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hope that helps,</span></p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <p class="MsoNormal"> 
                                <span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Sean</span></p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <p class="MsoNormal"> 
                                 </p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <p class="MsoNormal"> 
                                <b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Mi Ke<br /> 
                                <b>Sent:</b> Wednesday, June 20, 2012 11:46 AM<br /> 
                                <b>To:</b> Freeswitch Users<br /> 
                                <b>Subject:</b> [Freeswitch-users] gateway registration using TLS</span></p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <p class="MsoNormal"> 
                                 </p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <p style="margin:0px; padding:0px;" > 
                                 </p> 
                        <div> 
                                <p class="MsoNormal"> 
                                        <span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Hi All,<br /> 
                                        <br /> 
                                        Is it possible to explicitly tell sofia to register as a client using TLS? Here's my TLS-related part of sofia config:<br /> 
                                        <br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;profiles&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;profile name="external"&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;domains&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;domain name="all" alias="true" parse="false"/&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/domains&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gateways&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gateway name="xxx"&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="register" value="true"/&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="username" value="yyy"/&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="realm" value="<span style="color:red">remote_ip_here</span>:5061"/&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="password" value="zzz"/&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="register-transport" value="tcp"/&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="expire-seconds" value="3600"/&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="retry-seconds" value="60" /&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/gateway&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/gateways&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;settings&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="context" value="external"/&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="sip-port" value="5060"/&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="tls" value="true"/&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="tls-only" value="false"/&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="tls-bind-params" value="transport=tls"/&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="contact-params" value="tport=tcp"/&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="tls-version" value="sslv23"/&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="tls-cert-dir" value="/usr/local/freeswitch/conf/ssl"/&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="tls-sip-port" value="5061"/&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="dialplan" value="XML"/&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<br /> 
                                        <br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/settings&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/profile&gt;<br /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/profiles&gt;<br /> 
                                        <br /> 
                                        But that does not work...<br /> 
                                        <br /> 
                                        tport_connected( </span></p> 
                                <p style="margin:0px; padding:0px;" > 
                                         </p> 
                                <p style="margin:0px; padding:0px;" > 
                                         </p> 
                                <div id=":10l"> 
                                        <p class="MsoNormal"> 
                                                <span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">0x7f9b44014110): events CONNECTED<br /> 
                                                tport_send_event(0x7f9b44014110) - ready to send to (tcp/<a href="http://212.58.166.54:5061" target="_blank">remote_ip_here:5061</a>)<br /> 
                                                tport_vsend(0x7f9b44014110): 600 bytes of 600 to tcp/<a href="http://212.58.166.54:5061" target="_blank">remote_ip_here:5061</a><br /> 
                                                tport_vsend returned 600<br /> 
                                                tport_set_events(0x7f9b44014110): events IN<br /> 
                                                tport(0x7f9b44014110): reset timer<br /> 
                                                tport_wakeup(0x7f9b44014110): events IN HUP ERR<br /> 
                                                tport_release(0x7f9b44014110): 0x7f9b4401a460 by 0x7f9b4402ca70 with (nil)<br /> 
                                                <span style="background:#FF6666">nta: REGISTER (29733430): Connection reset by peer (104) with tcp/[remote_ip_here]:5061</span><br /> 
                                                <span style="background:#FF6666">nua(0x7f9b440196a0): event r_register 503 Service Unavailable</span> </span></p> 
                                        <p style="margin:0px; padding:0px;" > 
                                                 </p> 
                                        <p style="margin:0px; padding:0px;" > 
                                                 </p> 
                                </div> 
                                <p class="MsoNormal"> 
                                        <br /> 
                                        <span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Any ideas what I'm doing wrong?<br /> 
                                        <br /> 
                                        Thanks / MiKe</span></p> 
                                <p style="margin:0px; padding:0px;" > 
                                         </p> 
                                <p style="margin:0px; padding:0px;" > 
                                         </p> 
                        </div> 
                </div> 
        </div> 
</blockquote> 
<p style="margin:0px; padding:0px;" > 
         </p> 
</span></span>