Forcing Connection (c) to an IP in SDP

93 views
Skip to first unread message

Steve W

unread,
Aug 4, 2022, 1:51:43 PM8/4/22
to rtpengine
Hello,

Is there a way of Forcing Connection (c) to an IP in SDP.  Note that I am using rtpengine with Kamailio.

Thank you,

Richard Fuchs

unread,
Aug 4, 2022, 2:15:02 PM8/4/22
to rtpe...@googlegroups.com
Can you be more specific about what you want to do? Are we talking about
incoming SDP or outgoing SDP?

Cheers

Richard Fuchs

unread,
Aug 4, 2022, 3:12:13 PM8/4/22
to rtpe...@googlegroups.com
On 04/08/2022 14.30, [EXT] Steve W wrote:
> This is an SIP message being passed on from Kamailio to Asterisk.  I
> am doing some work with Docker where the Docker network=overlay. and I
> have a need to force the connection to a specific IP for testing purposes.

Still not quite sure what you're asking. Which connection? But anyway,
perhaps the `media-address=...` key, given in the offer/answer, might do
what you want? Or perhaps the "advertised address" notation in the
interface config (notation with exclamation point) is what you're
looking for?

Chers

Richard Fuchs

unread,
Aug 4, 2022, 3:50:02 PM8/4/22
to rtpe...@googlegroups.com
On 04/08/2022 15.28, [EXT] Steve W wrote:
> When an INVITE arrives, it comes into my Kamailio Server, I then
> forward that INVITE to Asterisk.  I currently have Kamailio configured
> to use rtpengine_manage(); it is here where I would like to change the
> SDP connection (c) to be an IP Address of my choosing before the
> INVITE is forwarded onto Asterisk.  Is this even possible?.

Do you mean without proxying the media through rtpengine? Then no, but
you can probably use some Kamailio module for that, sdpops, mangler,
nathelper, etc?

If you do want to proxy the media, but the externally visible address is
different from the locally bound one, then you can use either the
"advertised address" notation in the config if the external address is
static and known ahead of time (perhaps in combination with
`direction=...` to select which address to use on a case by case basis),
or `media-address=...` in the offer/answer for a dynamically changing
address.

Cheers

Reply all
Reply to author
Forward
0 new messages