learnin9 / sipml5

Automatically exported from code.google.com/p/sipml5
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

'stopping' event never signalled, 'stopped' signalled twice #178

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a new SIPml.Stack with event_listener listening for all events
2. call SIPml.Stack.start() and wait for 'started' event
3. call SIPml.Stack.stop()

What is the expected output? What do you see instead?

event_listener receives 'stopped' event twice
instead it should receive 'stopping' and then 'stopped' event

What version of the product are you using? On what operating system?

SIPML5 API version = 1.4.217

Linux lenovo 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux

Please provide any additional information below.

Console output:

SIPML5 API version = 1.4.217 lib.js:29858
User-Agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like 
Gecko) Ubuntu Chromium/34.0.1847.116 Chrome/34.0.1847.116 Safari/537.36 
lib.js:29858
WebSocket supported = yes lib.js:29858
Navigator friendly name = chrome lib.js:29858
OS friendly name = linux lib.js:29858
Have WebRTC = yes lib.js:29858
Have GUM = yes lib.js:29858
Engine initialized lib.js:29858
s_websocket_server_url=ws://195.200.214.151:8088/ws lib.js:29858
s_sip_outboundproxy_url=(null) lib.js:29858
b_rtcweb_breaker_enabled=no lib.js:29858
b_click2call_enabled=no lib.js:29858
b_early_ims=yes lib.js:29858
b_enable_media_stream_cache=no lib.js:29858
o_bandwidth={} lib.js:29858
o_video_size={} lib.js:29858
SIP stack start: proxy='ns313841.ovh.net:11060', realm='<sip:195.200.214.151>', 
impi='test001', impu='"Olaf Tomczak"<sip:test001@195.200.214.151>' lib.js:29858
Connecting to 'ws://195.200.214.151:8088/ws' lib.js:29858
SIPml.Stack.Event {type: "starting", description: "Stack starting", o_event: 
tsip_event, getSipResponseCode: function, getContent: function…}
__tsip_transport_ws_onopen lib.js:29858
SIPml.Stack.Event {type: "started", description: "Stack started", o_event: 
tsip_event, getSipResponseCode: function, getContent: function…}
SIPml.Stack.Event {type: "stopped", description: "Stack stopped", o_event: 
tsip_event, getSipResponseCode: function, getContent: function…}
__tsip_transport_ws_onclose lib.js:29858
SIPml.Stack.Event {type: "stopped", description: "Stack stopped", o_event: 
tsip_event, getSipResponseCode: function, getContent: function…}

Original issue reported on code.google.com by olaf.tom...@gmail.com on 16 May 2014 at 5:01