Failed to start SIP stack

477 views
Skip to first unread message

Peter Armitage

unread,
Dec 4, 2012, 12:32:00 PM12/4/12
to doub...@googlegroups.com
If I quit and restart webrtc2sip quickly it fails:

(Waiting about 30 seconds seems to help. Do I have to kill anything else (ps doesn't show anything obvious)?)

Copyright (C) 2012 Doubango Telecom <http://www.doubango.org>

*INFO: transport = udp://*:10060
*INFO: transport = ws://*:10060
*INFO: transport = wss://*:10062
*INFO: enable-100rel = no
*INFO: enable-media-coder = no
*INFO: enable-videojb = yes
*INFO: rtp-buffsize = 65535
*INFO: avpf-tail-length = [100-400]
*INFO: codecs = 70647920: pcma;pcmu;gsm;vp8;h264-bp;h264-mp;h263;h263+
*INFO: Stack running in SERVER mode
*INFO: tsk_timer_manager_start
*INFO: Timer manager run()::enter
*INFO: TIMER MANAGER -- START
*INFO: SIP STACK::run -- START
***ERROR: function: "tnet_socket_ctor()" 
file: "src/tnet_socket.c" 
line: "227" 
MSG: bind to [10.47.213.242:10060]have failed
***ERROR: function: "tnet_socket_ctor()" 
file: "src/tnet_socket.c" 
line: "227" 
MSG: (SYSTEM)NETWORK ERROR ==>Address already in use
***ERROR: function: "tnet_socket_ctor()" 
file: "src/tnet_socket.c" 
line: "262" 
MSG: Invalid socket.
***ERROR: function: "tnet_socket_ctor()" 
file: "src/tnet_socket.c" 
line: "262" 
MSG: (SYSTEM)NETWORK ERROR ==>Address already in use
***ERROR: function: "tnet_transport_create()" 
file: "src/tnet_transport.c" 
line: "69" 
MSG: Failed to create master socket
***ERROR: function: "tsip_stack_start()" 
file: "src/tsip.c" 
line: "710" 
MSG: Failed to add new transport
*INFO: Timer manager run()::exit
*INFO: TIMER MANAGER -- STOP
*INFO: SIP STACK::run -- STOP
***ERROR: function: "start()" 
file: "mp_engine.cc" 
line: "205" 
MSG: Failed to start SIP stack

Peter Armitage

unread,
Dec 4, 2012, 1:11:55 PM12/4/12
to doub...@googlegroups.com
http://serverfault.com/questions/329845/how-to-forcibly-close-a-socket-in-time-wait

Seems to be a workaround, probably caused by w2s not closing sockets properly.

int main: (mp_mediaproxy.cc) returns when you type "quit" without any cleanup - does it need to close sockets explicitly?

Mamadou

unread,
Dec 4, 2012, 3:23:39 PM12/4/12
to doub...@googlegroups.com, Peter Armitage
Starting SVN r25, the app gracefully hangup all calls and close the sockets.
--
 
 

Reply all
Reply to author
Forward
0 new messages