<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:"Calibri","sans-serif";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:"Calibri","sans-serif";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:"Verdana","sans-serif";color:red">remote_ip_here</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";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:"Calibri","sans-serif";color:#1F497D">It should look SIMILAR to this, but with your provider: </span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif""><param name="realm" value="<span style="color:red">sip.voipinnovations.com</span>:5061"/></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:"Calibri","sans-serif";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:"Calibri","sans-serif";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:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> 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:"Verdana","sans-serif"">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 />
                                         <profiles><br />
                                         <profile name="external"><br />
                                         <domains><br />
                                         <domain name="all" alias="true" parse="false"/><br />
                                         </domains><br />
                                         <gateways><br />
                                         <gateway name="xxx"><br />
                                         <param name="register" value="true"/><br />
                                         <param name="username" value="yyy"/><br />
                                         <param name="realm" value="<span style="color:red">remote_ip_here</span>:5061"/><br />
                                         <param name="password" value="zzz"/><br />
                                         <param name="register-transport" value="tcp"/><br />
                                         <param name="expire-seconds" value="3600"/><br />
                                         <param name="retry-seconds" value="60" /><br />
                                         </gateway><br />
                                         </gateways><br />
                                         <settings><br />
                                         ...<br />
                                         <param name="context" value="external"/><br />
                                         <param name="sip-port" value="5060"/><br />
                                         <param name="tls" value="true"/><br />
                                         <param name="tls-only" value="false"/><br />
                                         <param name="tls-bind-params" value="transport=tls"/><br />
                                         <param name="contact-params" value="tport=tcp"/><br />
                                         <param name="tls-version" value="sslv23"/><br />
                                         <param name="tls-cert-dir" value="/usr/local/freeswitch/conf/ssl"/><br />
                                         <param name="tls-sip-port" value="5061"/><br />
                                         <param name="dialplan" value="XML"/><br />
                                         ...<br />
                                        <br />
                                         </settings><br />
                                         </profile><br />
                                         </profiles><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:"Verdana","sans-serif"">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:"Verdana","sans-serif"">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>