fpm123 / sipml5

Automatically exported from code.google.com/p/sipml5
0 stars 0 forks source link

Set Remote Description Error #88

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I am trying to call a sip endpoint "Kapi" bu i get the 
SetRemoteDescriptionError. What am I doing wrong?

Here is my code :

<html>
  <head>
  <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
    <script src="SIPml-api.js"></script>
  </head>
  <body>
<video id="video-local" width="320" height="240" controls>
</video>
<video id="video-remote" width="320" height="240" controls>
</video>
<audio id="audio-remote" controls>
</audio>
   <script>
    $(document).ready(function(){

        SIPml.init(
                function(e){
                    var stack =  new SIPml.Stack({
                        realm: '212.174.90.241:5061', 
                        impi: 'enes', 
                        impu: 'sip:enes@212.174.90.241:5061', 
                        password: '123',
                        events_listener: { events: 'started', listener: function(e){
                                var callSession = stack.newSession('call-audiovideo', {
                                 video_local: document.getElementById('video-local'),
                                 video_remote: document.getElementById('video-remote'),
                                 audio_remote: document.getElementById('audio-remote')
                                });
                                callSession.call('sip:Kapi@212.174.90.241:5061');
                            } 
                        }
                    });
                    stack.start();
                }
        );

    })
    </script>

  </body>
</html>

Here is console log :

SIPML5 API version = 1.2.185 SIPml-api.js:826
User-Agent=Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.31 (KHTML, like 
Gecko) Chrome/26.0.1410.64 Safari/537.31 SIPml-api.js:826
WebSocket supported = yes SIPml-api.js:826
Navigator friendly name = chrome SIPml-api.js:826
OS friendly name = windows SIPml-api.js:826
Have WebRTC = yes SIPml-api.js:826
Have GUM = yes SIPml-api.js:826
Engine initialized SIPml-api.js:826
s_websocket_server_url=(null) SIPml-api.js:826
s_sip_outboundproxy_url=(null) SIPml-api.js:826
b_rtcweb_breaker_enabled=no SIPml-api.js:826
b_click2call_enabled=no SIPml-api.js:826
SIP stack start: proxy='ns313841.ovh.net:11060', 
realm='<sip:212.174.90.241:5061>', impi='enes', 
impu='<sip:enes@212.174.90.241:5061>' SIPml-api.js:826
Connecting to 'ws://ns313841.ovh.net:11060' SIPml-api.js:826
__tsip_transport_ws_onopen SIPml-api.js:826
State machine: c0000_Started_2_Outgoing_X_oINVITE SIPml-api.js:826
PeerConnectionClass = function RTCPeerConnection() { [native code] } 
SessionDescriptionClass = function RTCSessionDescription() { [native code] } 
IceCandidateClass = function RTCIceCandidate() { [native code] } 
SIPml-api.js:826
ICE 
servers:[{"url":"stun:stun.l.google.com:19302"},{"url":"stun:stun.counterpath.ne
t:3478"},{"url":"stun:numb.viagenie.ca:3478"}] SIPml-api.js:826
onGetUserMediaSuccess SIPml-api.js:826
createOffer SIPml-api.js:826
onCreateSdpSuccess SIPml-api.js:826
__on_state_change SIPml-api.js:826
onSetLocalDescriptionSuccess SIPml-api.js:826
onIceCandidate = undefined SIPml-api.js:826
onIceCandidate = undefined SIPml-api.js:826
onIceCandidate = undefined SIPml-api.js:826
onIceCandidate = undefined SIPml-api.js:826
onIceCandidate = undefined SIPml-api.js:826
onIceCandidate = undefined SIPml-api.js:826
onIceCandidate = undefined SIPml-api.js:826
onIceCandidate = undefined SIPml-api.js:826
onIceCandidate = undefined SIPml-api.js:826
onIceCandidate = undefined SIPml-api.js:826
onIceCandidate = undefined SIPml-api.js:826
onIceCandidate = undefined SIPml-api.js:826
onIceCandidate = undefined SIPml-api.js:826
ICE GATHERING COMPLETED! SIPml-api.js:826
onIceGatheringCompleted SIPml-api.js:826
SEND: INVITE sip:Kapi@212.174.90.241:5061 SIP/2.0
Via: SIP/2.0/WS 
df7jal23ls0d.invalid;branch=z9hG4bKVb30SUSaRTddgvixi3oGkZrVeE1tzxPv;rport
From: <sip:enes@212.174.90.241:5061>;tag=NbPu4OmQvEg2epKDLxSx
To: <sip:Kapi@212.174.90.241:5061>
Contact: 
"undefined"<sip:enes@df7jal23ls0d.invalid;rtcweb-breaker=no;click2call=no;transp
ort=ws>
Call-ID: 0fc600bc-71ba-b85a-842e-e137786b285b
CSeq: 58831 INVITE
Content-Type: application/sdp
Content-Length: 2558
Max-Forwards: 70

v=0
o=- 2897482112 2 IN IP4 127.0.0.1
s=Doubango Telecom - chrome
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS qCXVwCRpqH2bjXfG7uKmK3Gw8wJ9kI3khZ8y
m=audio 62633 RTP/SAVPF 103 104 111 0 8 107 106 105 13 126
c=IN IP4 176.41.233.24
a=rtcp:62633 IN IP4 176.41.233.24
a=candidate:1652638471 1 udp 2113937151 192.168.2.126 51267 typ host generation 
0
a=candidate:1652638471 2 udp 2113937151 192.168.2.126 51267 typ host generation 
0
a=candidate:3821618611 1 udp 1845501695 176.41.233.24 62633 typ srflx raddr 
192.168.2.126 rport 51267 generation 0
a=candidate:3821618611 2 udp 1845501695 176.41.233.24 62633 typ srflx raddr 
192.168.2.126 rport 51267 generation 0
a=candidate:738377719 1 tcp 1509957375 192.168.2.126 65389 typ host generation 0
a=candidate:738377719 2 tcp 1509957375 192.168.2.126 65389 typ host generation 0
a=ice-ufrag:72/UiKoO8+q1FGwe
a=ice-pwd:ePupSV9H8xw+4YLZ2rES7FP8
a=ice-options:google-ice
a=sendrecv
a=mid:audio
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 
inline:fDM83/N4rOmgvprfysHNkuMqu3hJQ5CpHCjQy5ig
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:107 CN/48000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:3760416115 cname:VJsgeu76+/2/Ud91
a=ssrc:3760416115 msid:qCXVwCRpqH2bjXfG7uKmK3Gw8wJ9kI3khZ8y 
qCXVwCRpqH2bjXfG7uKmK3Gw8wJ9kI3khZ8ya0
a=ssrc:3760416115 mslabel:qCXVwCRpqH2bjXfG7uKmK3Gw8wJ9kI3khZ8y
a=ssrc:3760416115 label:qCXVwCRpqH2bjXfG7uKmK3Gw8wJ9kI3khZ8ya0
m=video 62633 RTP/SAVPF 100 116 117
c=IN IP4 176.41.233.24
a=rtcp:62633 IN IP4 176.41.233.24
a=candidate:1652638471 1 udp 2113937151 192.168.2.126 51267 typ host generation 
0
a=candidate:1652638471 2 udp 2113937151 192.168.2.126 51267 typ host generation 
0
a=candidate:3821618611 1 udp 1845501695 176.41.233.24 62633 typ srflx raddr 
192.168.2.126 rport 51267 generation 0
a=candidate:3821618611 2 udp 1845501695 176.41.233.24 62633 typ srflx raddr 
192.168.2.126 rport 51267 generation 0
a=candidate:738377719 1 tcp 1509957375 192.168.2.126 65389 typ host generation 0
a=candidate:738377719 2 tcp 1509957375 192.168.2.126 65389 typ host generation 0
a=ice-ufrag:72/UiKoO8+q1FGwe
a=ice-pwd:ePupSV9H8xw+4YLZ2rES7FP8
a=ice-options:google-ice
a=sendrecv
a=mid:video
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 
inline:fDM83/N4rOmgvprfysHNkuMqu3hJQ5CpHCjQy5ig
a=rtpmap:100 VP8/90000
a=rtpmap:116 red/90000
a=rtpmap:117 ulpfec/90000
 SIPml-api.js:826
__tsip_transport_ws_onmessage SIPml-api.js:826
recv=SIP/2.0 100 Trying
Via: SIP/2.0/UDP 
188.165.231.30:11060;rport=11060;branch=z9hG4bKVb30SUSaRTddgvixi3oGkZrVeE1tzxPv
From: <sip:enes@212.174.90.241:5061>;tag=NbPu4OmQvEg2epKDLxSx
To: <sip:Kapi@212.174.90.241:5061>
Call-ID: 0fc600bc-71ba-b85a-842e-e137786b285b
CSeq: 58831 INVITE
Content-Length: 0
Via: SIP/2.0/TCP 
176.41.233.24:29785;rport;branch=z9hG4bKVb30SUSaRTddgvixi3oGkZrVeE1tzxPv;ws-hack
ed=WS
User-Agent: Linphone/3.0.0 MX Video (eXosip2/3.1.0)

 SIPml-api.js:826
State machine: x0000_Any_2_Any_X_i1xx SIPml-api.js:826
__tsip_transport_ws_onmessage SIPml-api.js:826
recv=SIP/2.0 101 Dialog Establishement
Via: SIP/2.0/UDP 
188.165.231.30:11060;rport=11060;branch=z9hG4bKVb30SUSaRTddgvixi3oGkZrVeE1tzxPv
From: <sip:enes@212.174.90.241:5061>;tag=NbPu4OmQvEg2epKDLxSx
To: <sip:Kapi@212.174.90.241:5061>;tag=1135644538
Contact: <sip:Kapi@212.174.90.241:5060>
Call-ID: 0fc600bc-71ba-b85a-842e-e137786b285b
CSeq: 58831 INVITE
Content-Length: 0
Via: SIP/2.0/TCP 
176.41.233.24:29785;rport;branch=z9hG4bKVb30SUSaRTddgvixi3oGkZrVeE1tzxPv;ws-hack
ed=WS
User-Agent: Linphone/3.0.0 MX Video (eXosip2/3.1.0)

 SIPml-api.js:826
State machine: x0000_Any_2_Any_X_i1xx SIPml-api.js:826
__tsip_transport_ws_onmessage SIPml-api.js:826
recv=SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 
188.165.231.30:11060;rport=11060;branch=z9hG4bKVb30SUSaRTddgvixi3oGkZrVeE1tzxPv
From: <sip:enes@212.174.90.241:5061>;tag=NbPu4OmQvEg2epKDLxSx
To: <sip:Kapi@212.174.90.241:5061>;tag=1135644538
Contact: <sip:Kapi@212.174.90.241:5060>
Call-ID: 0fc600bc-71ba-b85a-842e-e137786b285b
CSeq: 58831 INVITE
Content-Length: 0
Via: SIP/2.0/TCP 
176.41.233.24:29785;rport;branch=z9hG4bKVb30SUSaRTddgvixi3oGkZrVeE1tzxPv;ws-hack
ed=WS
User-Agent: Linphone/3.0.0 MX Video (eXosip2/3.1.0)

 SIPml-api.js:826
State machine: x0000_Any_2_Any_X_i1xx SIPml-api.js:826
__tsip_transport_ws_onmessage SIPml-api.js:826
recv=SIP/2.0 200 OK
Via: SIP/2.0/UDP 
188.165.231.30:11060;rport=11060;branch=z9hG4bKVb30SUSaRTddgvixi3oGkZrVeE1tzxPv
From: <sip:enes@212.174.90.241:5061>;tag=NbPu4OmQvEg2epKDLxSx
To: <sip:Kapi@212.174.90.241:5061>;tag=1135644538
Contact: <sip:Kapi@212.174.90.241:5060>
Call-ID: 0fc600bc-71ba-b85a-842e-e137786b285b
CSeq: 58831 INVITE
Content-Type: application/sdp
Content-Length: 242
Via: SIP/2.0/TCP 
176.41.233.24:29785;rport;branch=z9hG4bKVb30SUSaRTddgvixi3oGkZrVeE1tzxPv;ws-hack
ed=WS
User-Agent: Linphone/3.0.0 MX Video (eXosip2/3.1.0)

v=0
o=celil 123456 654321 IN IP4 212.174.90.241
s=A conversation
c=IN IP4 212.174.90.241
t=0 0
m=audio 7078 RTP/SAVPF 8 126
a=sendrecv
a=rtpmap:8 PCMA/8000
a=rtpmap:126 telephone-event/8000
a=fmtp:126 0-11
m=video 1024 RTP/SAVPF 0
 SIPml-api.js:826
State machine: c0000_Outgoing_2_Connected_X_i2xxINVITE SIPml-api.js:826
setRemoteDescription(answer)
v=0
o=celil 123456 654321 IN IP4 212.174.90.241
s=A conversation
c=IN IP4 212.174.90.241
t=0 0
m=audio 7078 RTP/SAVPF 8 126
a=sendrecv
a=rtpmap:8 PCMA/8000
a=rtpmap:126 telephone-event/8000
a=fmtp:126 0-11
m=video 1024 RTP/SAVPF 0
 SIPml-api.js:826
SEND: ACK sip:Kapi@212.174.90.241:5060 SIP/2.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKgkrKHEF1Bxf6whhgOrmA;rport
From: <sip:enes@212.174.90.241:5061>;tag=NbPu4OmQvEg2epKDLxSx
To: <sip:Kapi@212.174.90.241:5061>;tag=1135644538
Contact: 
"undefined"<sip:enes@df7jal23ls0d.invalid;rtcweb-breaker=no;click2call=no;transp
ort=ws>
Call-ID: 0fc600bc-71ba-b85a-842e-e137786b285b
CSeq: 58831 ACK
Content-Length: 0
Max-Forwards: 70

 SIPml-api.js:826
onSetRemoteDescriptionError SIPml-api.js:826
SetRemoteDescription failed. SIPml-api.js:836
tsk_utils_log_error SIPml-api.js:836
tmedia_session_jsep01.onSetRemoteDescriptionError SIPml-api.js:2141
(anonymous function) SIPml-api.js:2289

Original issue reported on code.google.com by eaenesal...@gmail.com on 13 May 2013 at 5:37

GoogleCodeExporter commented 8 years ago
Already explained what you're doing is not correct at 
https://groups.google.com/group/doubango/browse_thread/thread/beced7ec71293e23

Original comment by boss...@yahoo.fr on 13 May 2013 at 5:44