metajiji / sipml5

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

sipml5 live demo does not work when the ice turn is switched on with Firefox browser #148

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. Open http://sipml5.org/expert.htm with Firefox (in my case Firefox 27)
2. Fill in 'ICE Servers' field and save: [{url: 'turn:usr@192.168.100.64:3478', 
credential:'psw'}]
3. Fill in the main login mask and login
4. Try to call any number

The call should be initiated. Instead JS throws error:
message:"RTCPeerConnection constructor passed invalid RTCConfiguration - 
missing username: turn:usr@192.168.100.64:3478"

With Chrome and same config all works fine.

===== JS Console output 
================================================================================
=============
15:10:13.240 The connection to ws://192.168.100.64:10060/ was interrupted while 
the page was loading. SIPml-api.js:3
15:10:13.263 "__tsip_transport_ws_onclose" SIPml-api.js:1
15:10:13.294 "==stack event = stopped" SIPml-api.js:1
15:10:13.555 "SIPML5 API version = 1.3.203" SIPml-api.js:1
15:10:13.988 Media resource http://sipml5.org/sounds/dtmf.wav could not be 
decoded. call.htm
15:10:14.002 "location=http://sipml5.org/call.htm?svn=203#" call.htm:147
15:10:14.509 "User-Agent=Mozilla/5.0 (X11; Linux i686 on x86_64; rv:27.0) 
Gecko/20100101 Firefox/27.0" SIPml-api.js:1
15:10:14.509 "WebSocket supported = yes" SIPml-api.js:1
15:10:14.510 "Navigator friendly name = firefox" SIPml-api.js:1
15:10:14.510 "OS friendly name = unknown" SIPml-api.js:1
15:10:14.510 "Have WebRTC = yes" SIPml-api.js:1
15:10:14.510 "Have GUM = yes" SIPml-api.js:1
15:10:14.510 "Engine initialized" SIPml-api.js:1
15:10:15.913 Use of getPreventDefault() is deprecated.  Use defaultPrevented 
instead. jquery.js:2
15:10:16.020 "s_websocket_server_url=ws://192.168.100.64:10060" SIPml-api.js:1
15:10:16.020 "s_sip_outboundproxy_url=(null)" SIPml-api.js:1
15:10:16.020 "b_rtcweb_breaker_enabled=no" SIPml-api.js:1
15:10:16.020 "b_click2call_enabled=no" SIPml-api.js:1
15:10:16.020 "b_early_ims=yes" SIPml-api.js:1
15:10:16.020 "b_enable_media_stream_cache=no" SIPml-api.js:1
15:10:16.021 "o_bandwidth={}" SIPml-api.js:1
15:10:16.021 "o_video_size={}" SIPml-api.js:1
15:10:16.023 "SIP stack start: proxy='ns313841.ovh.net:12060', 
realm='<sip:192.168.100.64>', impi='1000', 
impu='"1000"<sip:1000@192.168.100.64>'" SIPml-api.js:1
15:10:16.023 "Connecting to 'ws://192.168.100.64:10060'" SIPml-api.js:1
15:10:16.030 "==stack event = starting" SIPml-api.js:1
15:10:16.036 "__tsip_transport_ws_onopen" SIPml-api.js:1
15:10:16.041 "==stack event = started" SIPml-api.js:1
15:10:16.045 "State machine: 
tsip_dialog_register_Started_2_InProgress_X_oRegister" SIPml-api.js:1
15:10:16.050 "SEND: REGISTER sip:192.168.100.64 SIP/2.0

Via: SIP/2.0/WS 
df7jal23ls0d.invalid;branch=z9hG4bKDsRtAhOFL0JEnyZ5q50HUScE9LCSmm9Z;rport

From: "1000"<sip:1000@192.168.100.64>;tag=ZU5TZ23zTmvPwfN95hAN

To: "1000"<sip:1000@192.168.100.64>

Contact: 
"1000"<sip:1000@df7jal23ls0d.invalid;rtcweb-breaker=no;transport=ws>;expires=200
;click2call=no;+g.oma.sip-im;+audio;language="en,fr"

Call-ID: e60b3400-a279-c369-8d60-c569358396f0

CSeq: 21756 REGISTER

Content-Length: 0

Max-Forwards: 70

User-Agent: IM-client/OMA1.0 sipML5-v1.2013.08.10B

Organization: Doubango Telecom

Supported: path

" SIPml-api.js:1
15:10:16.051 "==session event = connecting" SIPml-api.js:1
15:10:16.067 "==session event = sent_request" SIPml-api.js:1
15:10:16.068 "__tsip_transport_ws_onmessage" SIPml-api.js:1
15:10:16.082 "recv=SIP/2.0 401 Unauthorized

Via: SIP/2.0/UDP 
192.168.100.64:10060;rport=10060;branch=z9hG4bKDsRtAhOFL0JEnyZ5q50HUScE9LCSmm9Z

From: "1000"<sip:1000@192.168.100.64>;tag=ZU5TZ23zTmvPwfN95hAN

To: "1000"<sip:1000@192.168.100.64>;tag=DKD62p5a3tc7D

Call-ID: e60b3400-a279-c369-8d60-c569358396f0

CSeq: 21756 REGISTER

Content-Length: 0

Via: SIP/2.0/TCP 
192.168.100.64:40784;rport;branch=z9hG4bKDsRtAhOFL0JEnyZ5q50HUScE9LCSmm9Z;ws-hac
ked=WS

User-Agent: FreeSWITCH-mod_sofia/1.4.0+git~20131108T221259Z~1a27812896~64bit

Allow: 
INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REGISTER,REFER,NOTIFY,PUBLISH,
SUBSCRIBE

Supported: timer,precondition,path,replaces

WWW-Authenticate: Digest 
realm="192.168.100.64",qop="auth",nonce="9656f149-80ef-4541-a95e-24a0abf6921d",s
tale=FALSE,algorithm=MD5

" SIPml-api.js:1
15:10:16.082 "State machine: 
tsip_dialog_register_InProgress_2_InProgress_X_401_407_421_494" SIPml-api.js:1
15:10:16.087 "SEND: REGISTER sip:192.168.100.64 SIP/2.0

Via: SIP/2.0/WS 
df7jal23ls0d.invalid;branch=z9hG4bKsdxnRFVucUD8VQLnTW49cvhLRzQJera1;rport

From: "1000"<sip:1000@192.168.100.64>;tag=ZU5TZ23zTmvPwfN95hAN

To: "1000"<sip:1000@192.168.100.64>

Contact: 
"1000"<sip:1000@df7jal23ls0d.invalid;rtcweb-breaker=no;transport=ws>;expires=200
;click2call=no;+g.oma.sip-im;+audio;language="en,fr"

Call-ID: e60b3400-a279-c369-8d60-c569358396f0

CSeq: 21757 REGISTER

Content-Length: 0

Max-Forwards: 70

Authorization: Digest 
username="1000",realm="192.168.100.64",nonce="9656f149-80ef-4541-a95e-24a0abf692
1d",uri="sip:192.168.100.64",response="9dcb5edfc33a24c9e9135e5dfa6a42b9",algorit
hm=MD5,cnonce="91532fe33c2fb0e52832b33e4758190f",qop=auth,nc=00000001

User-Agent: IM-client/OMA1.0 sipML5-v1.2013.08.10B

Organization: Doubango Telecom

Supported: path

" SIPml-api.js:1
15:10:16.113 "==session event = sent_request" SIPml-api.js:1
15:10:16.113 "__tsip_transport_ws_onmessage" SIPml-api.js:1
15:10:16.121 "recv=SIP/2.0 200 OK

Via: SIP/2.0/UDP 
192.168.100.64:10060;rport=10060;branch=z9hG4bKsdxnRFVucUD8VQLnTW49cvhLRzQJera1

From: "1000"<sip:1000@192.168.100.64>;tag=ZU5TZ23zTmvPwfN95hAN

To: "1000"<sip:1000@192.168.100.64>;tag=ev6y4Hpe032SS

Contact: 
<sip:1000@192.168.100.64:10060;rtcweb-breaker=no;transport=udp;ws-src-ip=192.168
.100.64;ws-src-port=40784;ws-src-proto=ws>;expires=200

Call-ID: e60b3400-a279-c369-8d60-c569358396f0

CSeq: 21757 REGISTER

Content-Length: 0

Via: SIP/2.0/TCP 
192.168.100.64:40784;rport;branch=z9hG4bKsdxnRFVucUD8VQLnTW49cvhLRzQJera1;ws-hac
ked=WS

Date: 16 Jan 2014 14:10:16 GMT;16

User-Agent: FreeSWITCH-mod_sofia/1.4.0+git~20131108T221259Z~1a27812896~64bit

Allow: 
INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REGISTER,REFER,NOTIFY,PUBLISH,
SUBSCRIBE

Supported: timer,precondition,path,replaces

" SIPml-api.js:1
15:10:16.121 "State machine: tsip_dialog_register_InProgress_2_Connected_X_2xx" 
SIPml-api.js:1
15:10:16.165 "==session event = connected" SIPml-api.js:1
15:10:19.848 "State machine: c0000_Started_2_Outgoing_X_oINVITE" SIPml-api.js:1
15:10:19.849 "PeerConnectionClass = function mozRTCPeerConnection() {
    [native code]
} SessionDescriptionClass = function mozRTCSessionDescription() {
    [native code]
} IceCandidateClass = function mozRTCIceCandidate() {
    [native code]
}" SIPml-api.js:1
15:10:19.850 "ICE 
servers:[{"url":"turn:usr@192.168.100.64:3478","credential":"psw"}]" 
SIPml-api.js:1
15:10:19.850 [object Error] SIPml-api.js:1
15:10:19.851 "=== INVITE Dialog terminated ===" SIPml-api.js:1
15:10:19.851 "PeerConnection::stop()" SIPml-api.js:1
15:10:19.855 "==session event = terminated"

Original issue reported on code.google.com by pburlov on 16 Jan 2014 at 2:15

GoogleCodeExporter commented 9 years ago
I am experiencing the same issue. Anybody know what the problem may be?

Thanks.

Original comment by agfo...@gmail.com on 2 Dec 2014 at 7:27

GoogleCodeExporter commented 9 years ago
same Problem here, something about
 RTCConfiguration - missing username

Original comment by mr.schic...@gmail.com on 27 Mar 2015 at 5:03