yate: ignorevia
This commit is contained in:
parent
3517e542ba
commit
d7c5c4c0f6
@ -56,8 +56,8 @@
|
|||||||
tcp dport 22 accept
|
tcp dport 22 accept
|
||||||
tcp dport { ${tcpPorts} } accept
|
tcp dport { ${tcpPorts} } accept
|
||||||
|
|
||||||
udp dport 5060 ip saddr { 10.42.10.6, 217.10.68.150 } accept
|
ip saddr { 10.42.10.6, 217.10.68.150 } accept
|
||||||
udp dport 5060 ip6 saddr { 2a01:4f8:1c0c:8221::6, 2001:ab7::0/64 } accept
|
ip6 saddr { 2a01:4f8:1c0c:8221::6, 2001:ab7::0/64 } accept
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
[dialout]
|
[dialout]
|
||||||
\${username}^$=-;error=noauth
|
\${username}^$=-;error=noauth
|
||||||
^.*$=sip/sip:\\0;line=sipgate;osip_P-Preferred-Identity=<sip:4933921999799\${caller}@sipconnect.sipgate.de>;caller=3400888t0;domain=sipconnect.sipgate.de;";
|
^.*$=sip/sip:\\0;line=sipgate;osip_P-Preferred-Identity=<sip:4933921999799\${caller}@sipconnect.sipgate.de>;caller=3400888t0;domain=sipconnect.sipgate.de;";
|
||||||
|
ysipchan.general = {
|
||||||
|
ignorevia = "yes";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -20,6 +23,8 @@
|
|||||||
restartUnits = [ "yate.service" ];
|
restartUnits = [ "yate.service" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#networking.hosts."2001:ab7::9" = [ "sipconnect.sipgate.de" ];
|
||||||
|
|
||||||
systemd.services.yate = {
|
systemd.services.yate = {
|
||||||
preStart = let
|
preStart = let
|
||||||
accfile = pkgs.writeText "accfile.conf" (lib.generators.toINI { } {
|
accfile = pkgs.writeText "accfile.conf" (lib.generators.toINI { } {
|
||||||
|
@ -48,6 +48,28 @@
|
|||||||
|
|
||||||
[dialin]
|
[dialin]
|
||||||
\${sip_x-called}^.*$=lateroute/\\1";
|
\${sip_x-called}^.*$=lateroute/\\1";
|
||||||
|
ysipchan = {
|
||||||
|
general = {
|
||||||
|
ignorevia = "yes";
|
||||||
|
};
|
||||||
|
#"listener general".enable = "no";
|
||||||
|
#"listener dect" = {
|
||||||
|
# type = "udp";
|
||||||
|
# addr = "10.42.132.1";
|
||||||
|
# port = "5060";
|
||||||
|
#};
|
||||||
|
#"listener sip" = {
|
||||||
|
# type = "udp";
|
||||||
|
# addr = "10.42.133.1";
|
||||||
|
# port = "5060";
|
||||||
|
#};
|
||||||
|
#"listener voip" = {
|
||||||
|
# type = "udp";
|
||||||
|
# addr = "10.42.10.6";
|
||||||
|
# port = "5060";
|
||||||
|
# default = "yes";
|
||||||
|
#};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
@ -34,7 +34,7 @@ in {
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "forking";
|
Type = "forking";
|
||||||
ExecStart =
|
ExecStart =
|
||||||
"${pkgs.yate}/bin/yate -d -p /run/yate/yate.pid -c /etc/yate -F -s -q -DF -r -l /var/lib/yate/yate.log";
|
"${pkgs.yate}/bin/yate -d -p /run/yate/yate.pid -c /etc/yate -F -s -vvv -DF -r -l /var/lib/yate/yate.log";
|
||||||
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||||
User = "yate";
|
User = "yate";
|
||||||
Group = "yate";
|
Group = "yate";
|
||||||
|
Loading…
Reference in New Issue
Block a user