blob: bfb7339ec3c0df4ef5883483f25e58798cec61d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import ./make-test-python.nix ({ pkgs, ...} : {
name = "freeswitch";
meta = with pkgs.lib.maintainers; {
maintainers = [ misuzu ];
};
nodes = {
node0 = { config, lib, ... }: {
networking.useDHCP = false;
networking.interfaces.eth1 = {
ipv4.addresses = [
{
address = "192.168.0.1";
prefixLength = 24;
}
];
};
services.freeswitch = {
enable = true;
enableReload = true;
configTemplate = "${config.services.freeswitch.package}/share/freeswitch/conf/minimal";
};
};
};
testScript = ''
node0.wait_for_unit("freeswitch.service")
# Wait for SIP port to be open
node0.wait_for_open_port(5060)
'';
})
|