sipwise / rtpengine

The Sipwise media proxy for Kamailio
GNU General Public License v3.0
765 stars 362 forks source link

sdp-attr syntax [Question] #1741

Closed voztovoice closed 9 months ago

voztovoice commented 9 months ago

I'm trying to use sdp-attr with the RTPEngine Kamailio module.

In the offer I put:

rtcp-mux-demux DTLS=off SDES-off ICE=remove RTP/AVP sdp-attr-remove-audio-ssrc:

en the RTPEngine LOG I can see:

Oct 16 06:32:53 sip1 rtpengine[146001]: DEBUG: [28vs0pbtdtu7udefti8m]: ... ": [ "sdp-attr-remove-audio-ssrc::" ], "replace": [ "origin", "session-connection" ], "transport-protocol": "RTP/AVP", "rtcp-mux": [ "demux" ], "SDES": [ "off" ], "call-id": "28vs0pbtdtu7udefti8m", "via-branch": "z9hG4bK4978560", "received-from": [ "IP4", "186.98.231.105" ], "from-tag": "h8l2da68sp", "command": "offer" }

and the lines still in SDP Annex.

Can I have some type of help, please?

zenichev commented 9 months ago

Hi @voztovoice , it looks like you have a wrong syntax here, pay attention that prefixing is not allowed for the usage. Not implemented at the moment (even though we have this in mind for the future). So that, you have to give a full value of the ssrc: attribute.

See the doc: https://rtpengine.readthedocs.io/en/latest/ng_control_protocol.html

remove

Removes a specified a= line from the concerned attributes list. If such line hasn’t been found, then the attributes list remains untouched.

The matching is done using the full attribute line (value and the following attribute parameters, if given). Prefix-based matching is not supported.

Can take multiple values (so multiple attributes can removed per one command).