Dear all,
A new development in my attempt to register minisip with openser in tls mode. Previously I was getting an exception and after SSL_CTX but now the socket is getting created but still the client is not registered. I am fairly confident about the Certificates, since I created both client and sever certificate with the script files in OpenSER source.
note: minisip (latest source from svn) and OpenSER (compiled with TLS support) both runs in a LAN environment, both on Suse Linux 10
Below, is a post of minisip start. ----------------------------------------------------------------------------------------------------------------------
user1@linux:~> minisip
Starting MiniSIP ... welcome! Initializing NetUtil Creating SipSoftPhoneConfiguration init 1/9: Creating timeout provider init 2/9: Creating GUI Creating GTK GUI (minisip:6125): gtkmm-WARNING **: gtkmm: Attempt to call Gtk::manage() on a Gtk::Window, but a Gtk::Window has no parent container to manage its lifetime. Minisip: gtk 1 Minisip: gtk 2 Setting contact db Thread 2 running - doing initParseConfig init 3/9: Parsing configuration file () Config file version checked ok! SipIdentity::SipIdentity : cretated identity id=1 SipIdentity::setSipUri: sipUsername=<user4> sipDomain=<192.168.0.4> SipIdentity::setSipProxy: autodetect is false; userUri=user4@192.168.0.4; transport = TLS; proxyAddr=192.168.0.4; proxyPort=5061 SipProxy:setProxy(str) : addr = 192.168.0.4 SipIdentity::setProxy: manual sipproxy success ... SipIdentity::setProxy: else ... Identities: identity=1; username=user4; domain=192.168.0.4 proxy=[proxyString=192.168.0.4; proxyString=192.168.0.4; port=5061; transport=TLS; autodetect=no; user=user4; password=user4; expires=1000]; isRegistered=0 init 4/9: Creating IP provider SimpleIPProvider: localIp = SimpleIPProvider: checking interface = lo with IP=127.0.0.1 SimpleIPProvider: checking interface = eth0 with IP=192.168.0.3 SimpleIPProvider: using localIP = 192.168.0.3 init 5/9: Creating MediaHandler Sound I/O: using Spatial Audio Mixer Adding audio codec: G.711 init 6/9: Creating MSip SIP stack init 7/9: Connecting GUI to SIP logic init 8.2/9: Starting TCP transport worker thread init 8.3/9: Starting TLS transport worker thread init 9/9: Registering Identities to registrar server Registering user user4@192.168.0.4 to proxy 192.168.0.4, requesting domain 192.168.0.4 SipMessageTransport: sendMessage: creating new socket
Creating new SSL_CTX SipMessageTransport: sendMessage: reusing old socket TLS: Shutting down TLS Socket ------------------------------------------------------------------------------------------------------------------ The above is the message I get when I start minisip and I cannot understand the reason why its not registering with the OpenSER. When I disable TLS in OpenSer and connect minisip in udp mode, it registers perfectly with openser.
would be very helpful if you can give me your thoughts.....thank you very much for your time.
regards, Pjothi