Hi, everyone!
I have installed SIP server Kamailio 4.0.2 and OverSip 1.3.8 on my Ubuntu 12.04 desktop, and run 'servece oversip start' and 'service kamailio start' sucessfully. These two services are on the same PC with IP address 172.16.53.106.
jiada@Ubuntu:~$ sudo service Kamailio start
jiada@Ubuntu:~$ sudo service oversip start
* Starting OverSIP (oversip)
NOTICE: <executable> OverSIP 1.3.8 starting...
INFO: <executable> master process name: oversip
WARN: <Config> cannot autodiscover local IPv6: Network is unreachable - connect(2) (Errno::ENETUNREACH)
WARN: <Config> disabling IPv6 for SIP
WARN: <Config> cannot autodiscover local IPv6: Network is unreachable - connect(2) (Errno::ENETUNREACH)
WARN: <Config> disabling IPv6 for WebSocket
listen_ipv4 : 172.16.53.106
listen_port_tls_tunnel : 5062
callback_on_client_tls_handshake: yes
tcp_keepalive_interval : 300
record_route_hostname_tls_ipv4 : null
record_route_hostname_tls_ipv6 : null
listen_ipv4 : 172.16.53.106
listen_port_tls_tunnel : 10444
callback_on_client_tls_handshake: yes
max_ws_message_size : 65536
max_ws_frame_size : 65536
ws_keepalive_interval : 300
public_cert : /etc/oversip/tls/demo-tls.oversip.net.crt
private_cert : /etc/oversip/tls/demo-tls.oversip.net.key
ca_dir : /etc/oversip/tls/ca/
full_cert : /tmp/oversip_full_cert_20130703-4595-1io8m4z
INFO: <executable> increasing rlimits for 'nofiles'
INFO: <executable> creating Posix Message Queue for communicating master and syslogger processes
INFO: <PosixMQ /oversip_syslogger> queue requires 2004000 bytes
INFO: <PosixMQ /oversip_syslogger> rlimits for 'msgqueue' is 8032000 bytes (>= 2004000), no need to increase it
INFO: <PosixMQ /oversip_syslogger> maxmsg=1000, msgsize=2000
INFO: <TLS> inspecting CA file 'cacert.pem'...
INFO: <TLS> 'cacert.pem': 158 public certificates found
INFO: <TLS> 158 public certificates available for TLS validation
NOTICE: <launcher (master)> using Ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
NOTICE: <launcher (master)> using EventMachine-LE 1.1.5
NOTICE: <launcher (master)> starting event reactor...
INFO: <SIP launcher> SIP TLS-Tunnel server listening on IPv4 127.0.0.1:5062
INFO: <launcher (master)> spawned stud server (PID 4610) listening on 172.16.53.106 : 5061
INFO: <WebSocket launcher> WebSocket WS server listening on IPv4 172.16.53.106:10080 provides 'sip' WS subprotocol
INFO: <WebSocket launcher> WebSocket WSS_TUNNEL server listening on IPv4 127.0.0.1:10444 provides 'sip' WS subprotocol
INFO: <launcher (master)> spawned stud server (PID 4615) listening on 172.16.53.106 : 10443
NOTICE: <launcher (master)> calling OverSIP::SystemEvents.on_initialize() method...
NOTICE: <SystemEvents> on_initialize() method is not defined
NOTICE: <launcher (master)> executing OverSIP::SystemCallbacks.on_started_callbacks...
NOTICE: <launcher (master)> calling OverSIP::SystemEvents.on_started() method...
NOTICE: <SystemEvents> on_started() method is not defined
NOTICE: <launcher (master)> master process (PID 4600) ready
NOTICE: <launcher (master)> OverSIP 1.3.8 running in background
Besides, I have created 2 accounts in Kamailio to test, Kamailio works fine because i have tested these two accounts by using sofephone X-lite to communicate with each other.
I also download JsSIP API jssip-0.3.0.js, write a html page for connecting to oversip, open this page on another pc 172.16.53.2. it seems works fine too, because i checked the output of "netstat -anp | grep oversip", it shows the flowing result:
tcp 0 0 172.16.53.106:10080 172.16.53.2:3299 ESTABLISHED 4600/oversip
Could anyone tell me how to configure OverSIP to convert and redirect my Sip/websocket request to the SIP server Kamailio?
Many thanks to you all!