add fieldpoc-dect module
This commit is contained in:
@@ -13,6 +13,11 @@
|
||||
|
||||
networking.hostName = "pre-yate-n0emis";
|
||||
|
||||
boot.kernel.sysctl = {
|
||||
"net.ipv4.conf.all.forwarding" = true;
|
||||
"net.ipv6.conf.all.forwarding" = true;
|
||||
};
|
||||
|
||||
networking.useNetworkd = true;
|
||||
systemd.network = {
|
||||
links."10-eth0" = {
|
||||
@@ -25,9 +30,67 @@
|
||||
};
|
||||
DHCP = "yes";
|
||||
};
|
||||
|
||||
links."20-vlan132" = {
|
||||
matchConfig.MACAddress = "8e:50:2d:73:27:51";
|
||||
linkConfig.Name = "vlan132";
|
||||
};
|
||||
networks."20-vlan132" = {
|
||||
matchConfig = {
|
||||
Name = "vlan132";
|
||||
};
|
||||
address = [ "10.42.132.1/24" ];
|
||||
};
|
||||
};
|
||||
|
||||
services.fieldpoc = {
|
||||
enable = true;
|
||||
dhcp = {
|
||||
enable = true;
|
||||
interface = "vlan132";
|
||||
subnet = "10.42.132.0/24";
|
||||
pool = "10.42.132.200 - 10.42.132.250";
|
||||
router = "10.42.132.1";
|
||||
dnsServers = "1.1.1.1,9.9.9.9";
|
||||
omm = "10.42.132.11";
|
||||
reservations = [
|
||||
{
|
||||
name = "rfp-01";
|
||||
macAddress = "00:30:42:1B:8C:7A";
|
||||
ipAddress = "10.42.132.11";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
services.yate.config = {
|
||||
yate.ygi = {
|
||||
sndpath = "/opt/sounds";
|
||||
sndformats = "slin,gsm,wav";
|
||||
};
|
||||
accfile.dialout = {
|
||||
enabled = "yes";
|
||||
protocol = "sip";
|
||||
username = "iocaste";
|
||||
password = "iocaste";
|
||||
registrar = "172.16.1.1";
|
||||
};
|
||||
regexroute = "[default]
|
||||
\${username}^$=-;error=noauth
|
||||
^iocaste$=goto dialin
|
||||
^99991001$=tone/dial
|
||||
^99991002$=tone/busy
|
||||
^99991003$=tone/ring
|
||||
^99991004$=tone/specdial
|
||||
^99991005$=tone/congestion
|
||||
^99991006$=tone/outoforder
|
||||
^99991007$=tone/milliwatt
|
||||
^99991008$=tone/info
|
||||
^.*$=line/\\0;line=dialout
|
||||
|
||||
[dialin]
|
||||
\${sip_x-called}^.*$=lateroute/\\1";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [ python3.pkgs.fieldpoc ];
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
|
Reference in New Issue
Block a user