Discussions
Problem sending SDP answer
9 months ago by jicastillow
Hello, I'm trying to implement the Talks Streams use case. Everything goes well until sending back the SDP answer to the /sdp endpoint. This is the POST call i'm making (authorizaton changed to xxxxxx):
POST <https://api.d-id.com/talks/streams/strm_SHVbBqZk19csWYjIbNGjG/sdp>
Authorization: Basic xxxxxxxx
Accept: application/json
Content-Type: application/json
Content-Length: 2173
{"answer": {"type": "answer", "sdp": "v=0
o=- 3916724198 3916724198 IN IP4 0.0.0.0
s=-
t=0 0
a=group:BUNDLE a v d
a=msid-semantic:WMS \*
m=audio 9 UDP/TLS/RTP/SAVPF 111
c=IN IP4 0.0.0.0
a=recvonly
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=mid:a
a=msid:d1d448d5-75a6-46e3-9395-067f0d0082f5 4a08ca23-cde2-4f3c-9ff7-8315045e58d6
a=rtcp:9 IN IP4 0.0.0.0
a=rtcp-mux
a=ssrc:3871893554 cname:8657df38-c977-4077-870d-686efad4f119
a=rtpmap:111 opus/48000/2
a=ice-ufrag:LkPe
a=ice-pwd:mK6kdnjVahESDgLy4kGw5p
a=fingerprint:sha-256 B5:7F:EC:FD:C3:20:90:03:F7:5F:84:8B:62:F8:9A:FE:CA:6A:CB:92:14:A7:14:11:C2:85:2F:5C:13:EA:01:52
a=setup:active
m=video 9 UDP/TLS/RTP/SAVPF 100 101
c=IN IP4 0.0.0.0
a=recvonly
a=extmap:2 <http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time>
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=mid:v
a=msid:d1d448d5-75a6-46e3-9395-067f0d0082f5 9eea8bc7-b961-4fd2-8914-2aa21cfe8457
a=rtcp:9 IN IP4 0.0.0.0
a=rtcp-mux
a=ssrc-group:FID 3827163737 2086725790
a=ssrc:3827163737 cname:8657df38-c977-4077-870d-686efad4f119
a=ssrc:2086725790 cname:8657df38-c977-4077-870d-686efad4f119
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtcp-fb:100 goog-remb
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=ice-ufrag:LkPe
a=ice-pwd:mK6kdnjVahESDgLy4kGw5p
a=fingerprint:sha-256 B5:7F:EC:FD:C3:20:90:03:F7:5F:84:8B:62:F8:9A:FE:CA:6A:CB:92:14:A7:14:11:C2:85:2F:5C:13:EA:01:52
a=setup:active
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 0.0.0.0
a=mid:d
a=sctp-port:5000
a=max-message-size:65536
a=ice-ufrag:LkPe
a=ice-pwd:mK6kdnjVahESDgLy4kGw5p
a=fingerprint:sha-256 B5:7F:EC:FD:C3:20:90:03:F7:5F:84:8B:62:F8:9A:FE:CA:6A:CB:92:14:A7:14:11:C2:85:2F:5C:13:EA:01:52
a=setup:active
"}, "session_id": "AWSALB=7duYVu3UIjAIvpXADjLVW2ZtWTt9kC9+513tb09zu7ICv8gyW40tuRpm68tmSkIbWLqjsC6hBVVxvPfG8RHIS/8rZRiK2lhQXGRWaV8Gf5WD760kdjseFLiMRfUu; Expires=Mon, 19 Feb 2024 10:56:36 GMT; Path=/; AWSALBCORS=7duYVu3UIjAIvpXADjLVW2ZtWTt9kC9+513tb09zu7ICv8gyW40tuRpm68tmSkIbWLqjsC6hBVVxvPfG8RHIS/8rZRiK2lhQXGRWaV8Gf5WD760kdjseFLiMRfUu; Expires=Mon, 19 Feb 2024 10:56:36 GMT; Path=/; SameSite=None; Secure"}
But i'm receiving back a 500 code.
Where can be the problem?
Thanks in advance.