Open topilski opened 3 months ago
2024-03-19 09:34:14.657 DEBUG [0x7fdca1ffb700][RequestHandler] POST response {"audio":{"payload-types":[{"channels":2,"clockrate":48000,"id":111,"name":"opus","parameters":{"minptime":"10","useinbandfec":"1"},"rtcp-fbs":[]},{"clockrate":48000,"id":110,"name":"telephone-event","parameters":{},"rtcp-fbs":[]}],"rtp-hdrexts":[{"id":1,"uri":"urn:ietf:params:rtp-hdrext:ssrc-audio-level"},{"id":3,"uri":"http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time"},{"id":8,"uri":"c9:params:rtp-hdrext:info"}],"ssrcs":[629495325]},"bundle-transport":{"dtls":{"hash":"44:23:38:33:B4:03:35:96:F4:84:A5:1B:43:75:17:9F:72:68:A7:D8:1A:54:12:C6:07:36:D3:90:FC:64:5B:AB","setup":"actpass","type":"sha-256"},"ice":{"candidates":[{"component":1,"foundation":"969969762896","generation":0,"ip":"192.168.16.3","network":1,"port":12000,"priority":142541055,"protocol":"udp","type":"host"},{"component":1,"foundation":"969969762897","generation":0,"ip":"74.81.33.52","network":1,"port":12000,"priority":140837119,"protocol":"udp","rel-addr":"192.168.16.3","rel-port":12000,"type":"srflx"}],"pwd":"AqSE40ooWfBiIJnXVKB+px3X","ufrag":"UNmgJTj3PnGWNY"},"rtcp-mux":true},"video":{"payload-types":[{"clockrate":90000,"id":100,"name":"VP8","parameters":{},"rtcp-fbs":[{"type":"goog-remb"},{"type":"nack"},{"subtype":"pli","type":"nack"}]},{"clockrate":90000,"id":96,"name":"rtx","parameters":{"apt":"100"},"rtcp-fbs":[]}],"rtp-hdrexts":[{"id":3,"uri":"http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time"},{"id":4,"uri":"urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id"}],"streams":[{"content":"local","sources":[{"main":1141997220}]}]}}
2024-03-19 09:34:14.657 INFO [0x7fdca1ffb700][RequestHandler] Outgoing response [1002] 200
2024-03-19 09:34:14.660 INFO [0x7fdca1ffb700][RequestHandler] Incoming request [1003] POST /conferences/9751696680690624088/ingest
2024-03-19 09:34:14.661 WARN [0x7fdca1ffb700][RequestHandler] Outgoing response [1003] 400. Error message: rtp payload '' not supported
Issue in this commit: 32167aa0c49b32e2ae73880f63fce668fea5d903
Hello @topilski,
We changed the format of "audio" object. Before there was a single attribute "payload-type" for describing the supported payload of the audio stream. Like this:
"audio": {
"payload-type": {
"channels": 2,
"clockrate": 48000,
"id": 111,
"name": "opus",
"parameters": {
"minptime": "10",
"useinbandfec": "1"
},
...
}
As we introduced NTE support, we changed this from "payload-type" to "payload-types" and we made it an array. So you have to change to:
"audio": {
"payload-types": [{
"channels": 2,
"clockrate": 48000,
"id": 111,
"name": "opus",
"parameters": {
"minptime": "10",
"useinbandfec": "1"
}],
},
...
}
Also, if you haven't noticed yet, the POST response you get from this request 2024-03-19 09:34:14.657 DEBUG [0x7fdca1ffb700][RequestHandler] POST response
has the same modification. So you get an offer description with "payload-types" and SymphonyMediaBridge expects an answer on action: configure
with same format.
Please check the description on this PR for more details: https://github.com/finos/SymphonyMediaBridge/pull/352.
If you are struggle with this change, please share with me the payload you are sending.
type SmbEndpointAudioDescription struct {
SSRCs []int `json:"ssrcs"`
PayloadType []SmbPayloadType `json:"payload-types"`
RtpHdrExts []SmbRtpHeaderExtension `json:"rtp-hdrexts"`
}
type SmbEndpointVideoDescription struct {
Streams []SmbVideoStream `json:"streams"`
PayloadTypes []SmbPayloadType `json:"payload-types"`
RtpHdrExts []SmbRtpHeaderExtension `json:"rtp-hdrexts,omitempty"`
}
right?
type SmbEndpointAudioDescription struct { SSRCs []int `json:"ssrcs"` PayloadType []SmbPayloadType `json:"payload-types"` RtpHdrExts []SmbRtpHeaderExtension `json:"rtp-hdrexts"` } type SmbEndpointVideoDescription struct { Streams []SmbVideoStream `json:"streams"` PayloadTypes []SmbPayloadType `json:"payload-types"` RtpHdrExts []SmbRtpHeaderExtension `json:"rtp-hdrexts,omitempty"` }
right?
Yes, looks correct
Support Question
Hello, i have in logs:
how can i debug this? thx