[Freeswitch-users] gateway registration using TLS
Mi Ke
mi.ke at null.net
Wed Jun 20 19:45:40 MSD 2012
Hi All,
Is it possible to explicitly tell sofia to register as a client using TLS? Here's my TLS-related part of sofia config:
<profiles>
<profile name="external">
<domains>
<domain name="all" alias="true" parse="false"/>
</domains>
<gateways>
<gateway name="xxx">
<param name="register" value="true"/>
<param name="username" value="yyy"/>
<param name="realm" value="remote_ip_here:5061"/>
<param name="password" value="zzz"/>
<param name="register-transport" value="tcp"/>
<param name="expire-seconds" value="3600"/>
<param name="retry-seconds" value="60" />
</gateway>
</gateways>
<settings>
...
<param name="context" value="external"/>
<param name="sip-port" value="5060"/>
<param name="tls" value="true"/>
<param name="tls-only" value="false"/>
<param name="tls-bind-params" value="transport=tls"/>
<param name="contact-params" value="tport=tcp"/>
<param name="tls-version" value="sslv23"/>
<param name="tls-cert-dir" value="/usr/local/freeswitch/conf/ssl"/>
<param name="tls-sip-port" value="5061"/>
<param name="dialplan" value="XML"/>
...
</settings>
</profile>
</profiles>
But that does not work...
tport_connected(
0x7f9b44014110): events CONNECTED
tport_send_event(0x7f9b44014110) - ready to send to (tcp/remote_ip_here:5061 http://212.58.166.54:5061 )
tport_vsend(0x7f9b44014110): 600 bytes of 600 to tcp/remote_ip_here:5061 http://212.58.166.54:5061
tport_vsend returned 600
tport_set_events(0x7f9b44014110): events IN
tport(0x7f9b44014110): reset timer
tport_wakeup(0x7f9b44014110): events IN HUP ERR
tport_release(0x7f9b44014110): 0x7f9b4401a460 by 0x7f9b4402ca70 with (nil)
nta: REGISTER (29733430): Connection reset by peer (104) with tcp/[remote_ip_here]:5061
nua(0x7f9b440196a0): event r_register 503 Service Unavailable
Any ideas what I'm doing wrong?
Thanks / MiKe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120620/9c85af48/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list