On 11/02/2026 18.07, Jose Figueroa wrote:
> I'm trying to do something similar and I have only 1-way audio at the
> moment. I have two questions:
> 1. What does the ens5 means in interface=priv/ens5 the linux
> interface name?
No, it's the other way around. The primary config value for an interface
is an address, but you can also use a Linux interface name (in which
case all addresses present on that interface will be used).
The second value (after the first slash) is an internal "logical"
interface name. You use this to identify the interface when
communicating with rtpengine, e.g. from Kamailio. A "logical" interface
can be made up from multiple real interfaces or addresses, mostly useful
in multi-homed scenarios when ICE is in use.
> 2. I have in 1 kamailio with 2 interfaces:
> ens34: public IP XX.XX.XX.10
> ens33: private IP 192.168.30.145
>
> Now I have RTP server 1 with 1 single interface:
> private IP: 10.1.130.110
> -- config --
> interface=priv/
10.1.130.110!192.168.30.145;pubc/
10.1.130.110!XX.XX.XX.10
> # corresponding with public IP from kamailio
The `interface` config given to rtpengine is only about which local
interfaces it may use for RTP. The interfaces used by Kamailio are
irrelevant. If you need RTP flowing to/from the public internet, then
rtpengine must have an interface configured that is able to do that.
> rtpengine_offer = "replace-origin direction=pub direction=priv
> trust-address ICE=remove RTP/AVP"
> rtpengine_answer ="replace-origin direction=priv direction=pub
> trust-address ICE=remove RTP/AVP"
>
> What would be the proper config setup here?
In the rtpengine config, probably something like `interface =
55.66.77.88/pub ;
10.3.4.5/priv`
Both addresses must be bound on the rtpengine host. Alternatively the
public address could be behind 1-to-1 NAT, in which case you'd use the
"advertised address" syntax instead of the public address directly.
> The idea is to have multiple Rtpengines
Now this has very little to do with the rtpengine interface config, and
has more to do with the configuration of the rtpengine "sets" in Kamailio.
As for interface config, probably each rtpengine instance would use
different local addresses, but use the same logical interface names.
Cheers