sipwise / rtpengine

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

"subscribe request" creates SDP with private address #1506

Closed davehorton closed 2 years ago

davehorton commented 2 years ago

I am trying to use 'subscribe request' to implement a SIPREC client, using version mr10.4.1.4. The problem that I am having is that I want to send the streams to an external SIPREC server but the SDP returned from 'subscribe request' includes the IP on the private interface, not the public one. I tried to adding direction: ['public', 'public'] to the options sent in the 'subscribe request' but this did not help.

I've defined my interfaces like this

ExecStart=/usr/local/bin/rtpengine \
--interface private/${LOCAL_IP} \
--interface public/${LOCAL_IP}!${PUBLIC_IP} \

rtpengine log is here

Is there a mechanism for indicating which interface I want the generated SDP to reference?

rfuchs commented 2 years ago

Yes there is, and it's described in the docs. Screenshot_2022-06-16_17-59-09

davehorton commented 2 years ago

Ah, thanks!