diff --git a/hosts/pbx/services/fieldpoc/default.nix b/hosts/pbx/services/fieldpoc/default.nix index 17c9af7..bd63f23 100644 --- a/hosts/pbx/services/fieldpoc/default.nix +++ b/hosts/pbx/services/fieldpoc/default.nix @@ -45,9 +45,18 @@ in { ]; services = { - yate.config.yrtpchan.general = { - minport = rtpPorts.from; - maxport = rtpPorts.to; + yate.config = { + yrtpchan.general = { + minport = rtpPorts.from; + maxport = rtpPorts.to; + }; + ysipchan = { + "listener voice" = { + addr = (builtins.elemAt config.networking.interfaces.voice.ipv4.addresses 0).address; + type = "udp"; + port = 5060; + }; + }; }; fieldpoc = { diff --git a/hosts/pbx/services/public-ip4-tunnel.nix b/hosts/pbx/services/public-ip4-tunnel.nix index 061b2db..93ab81e 100644 --- a/hosts/pbx/services/public-ip4-tunnel.nix +++ b/hosts/pbx/services/public-ip4-tunnel.nix @@ -19,11 +19,11 @@ in { }; services.yate.config.ysipchan = { - general.rtp_localip = externalIp; general = { addr = externalIp; type = "udp"; port = 5060; + rtp_localip = externalIp; }; };