webrtc - JsSIP Firefox - InvalidSessionDescriptionError: Answer tried to set recv when offer did not set send -
i working jssip. tried connect conference 1 way (incoming) audio stream, firefox not working.
firefox error message:
invalidsessiondescriptionerror: answer tried set recv when offer did not set send
so our jssip configuration is:
mediaconstraints: {'audio': false, 'video': false}, rtcofferconstraints: { offertoreceiveaudio: true, offertoreceivevideo: false }, sessiontimersexpires: 120, pcconfig: { iceservers: [{'url': 'stun:stun.services.mozilla.com'}, {'url': 'stun:stun.l.google.com:19302'}] }
here offer body
v=0 o=mozilla...this_is_sdparta-39.0 1234582256825317267 0 in ip4 0.0.0.0 s=- t=0 0 a=sendrecv a=fingerprint:sha-256 78:ff:54:2c:9a:b0:dc:2b:fc:31:83:89:17:aa:33:af:fc:ec:c5:9e:0c:8b:e4:aa:23:47:15:09:71:dd:4d:a0 a=group:bundle sdparta_0 a=ice-options:trickle a=msid-semantic:wms * m=audio 44686 rtp/savpf 109 9 0 8 c=in ip4 x.x.x.x a=candidate:0 1 udp 2122252543 x.x.x.x 44686 typ host a=candidate:0 2 udp 2122252542 x.x.x.x 52130 typ host a=candidate:2 1 udp 1686110207 x.x.x.x 44686 typ srflx raddr x.x.x.x rport 44686 a=candidate:2 2 udp 1686110206 x.x.x.x 52130 typ srflx raddr x.x.x.x rport 52130 a=recvonly a=end-of-candidates a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level a=ice-pwd:06bf8e8ece7e22f262546b874e13010e a=ice-ufrag:d0d3aae0 a=mid:sdparta_0 a=rtcp-mux a=rtpmap:109 opus/48000/2 a=rtpmap:9 g722/8000/1 a=rtpmap:0 pcmu/8000 a=rtpmap:8 pcma/8000 a=setup:actpass
here answer body:
v=0 o=matrix 1454436711 1454436712 in ip4 x.x.x.x s=matrix c=in ip4 x.x.x.x t=0 0 a=msid-semantic: wms prznrr78adkqadzi3cj4tkdyf1cojinz m=audio 22178 rtp/savpf 0 a=rtpmap:0 pcmu/8000 a=ptime:20 a=fingerprint:sha-256 56:34:dc:1d:d5:94:2b:f5:f0:ba:13:45:fd:a7:54:78:a0:bf:d0:bb:45:dd:fc:e9:d0:33:0b:88:12:dc:84:30 a=rtcp-mux a=rtcp:22178 in ip4 x.x.x.x a=ssrc:4206958201 cname:zddhvagvdrcdubco a=ssrc:4206958201 msid:prznrr78adkqadzi3cj4tkdyf1cojinz a0 a=ssrc:4206958201 mslabel:prznrr78adkqadzi3cj4tkdyf1cojinz a=ssrc:4206958201 label:prznrr78adkqadzi3cj4tkdyf1cojinza0 a=ice-ufrag:dmixmmlsde7nmkdm a=ice-pwd:ngt8gzukgwdbogpssxg5aio4 a=candidate:9067675717 1 udp 659136 x.x.x.x 22178 typ host generation 0
p.s. on chrome, configuration works well
solution: valid answers a=recvonly a=sendonly , a=inactive.
rfc 3264: " if media stream listed recvonly in offer, answer must marked sendonly or inactive in answer. "
Comments
Post a Comment