Support domain names in SDP bodies

47 views
Skip to first unread message

QQ Q

unread,
May 27, 2024, 9:17:32 PMMay 27
to Sipwise rtpengine
Is it possible with the latest version to support domain names in both the received SDP bodies and outgoing SDP bodies?

v=0 o=Node 1 1 IN IP4 rtp-server1.example.com s=Stream1 t=0 0 m=audio 5004 RTP/AVP 96 c=IN IP4 rtp-server1.example.com a=rtpmap:96 L24/48000/2 a=recvonly a=ptime:1 a=ts-refclk:ptp=IEEE1588-2008:01-23-45-67-89-AB-CD-EF:127 a=mediaclk:direct=0 a=sync-time:0

In version 12.3, an error is triggered: Error parsing SDP at offset 77: Error parsing c= line

Richard Fuchs

unread,
May 28, 2024, 8:27:00 AMMay 28
to rtpe...@googlegroups.com
Domain names in c= lines are not supported.

Cheers


On 27/05/2024 21.17, QQ Q wrote:
Is it possible with the latest version to support domain names in both the received SDP bodies and outgoing SDP bodies?
v=0 o=Node 1 1 IN IP4 rtp-server1.example.com s=Stream1 t=0 0 m=audio 5004 RTP/AVP 96 c=IN IP4 rtp-server1.example.com a=rtpmap:96 L24/48000/2 a=recvonly a=ptime:1 a=ts-refclk:ptp=IEEE1588-2008:01-23-45-67-89-AB-CD-EF:127 a=mediaclk:direct=0 a=sync-time:0
In version 12.3, an error is triggered: Error parsing SDP at offset 77: Error parsing c= line --
You received this message because you are subscribed to the Google Groups "Sipwise rtpengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtpengine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rtpengine/801a7aba-2a00-445e-8f46-c6a06f371357n%40googlegroups.com.
Message has been deleted
Message has been deleted

QQ Q

unread,
May 31, 2024, 7:56:54 AMMay 31
to Sipwise rtpengine
using  kamailio, I can use dns_query() to resolve the domain name to an ipv4 address. Is it possible to replace c=lines in rtpengine_offer() or rtpengine_answer()?

Richard Fuchs

unread,
May 31, 2024, 8:12:32 AMMay 31
to rtpe...@googlegroups.com
On 28/05/2024 23.09, QQ Q wrote:
> using  kamailio, I can use dns_query() to resolve the domain name to
> an ipv4 address. Is it possible to replace c=lines in
> rtpengine_offer() or rtpengine_answer()?

You can probably use sdpops or textops to do a simple text replacement
in the SDP before passing it to rtpengine.

Another option is to put the address as `received-from=x.x.x.x` into the
flags and also set the `SIP-source-address` flag. Although it's possible
that the SDP would be rejected anyway as the c= line couldn't be parsed.

Cheers

Reply all
Reply to author
Forward
0 new messages