mob next [ci-skip] [ci skip] [skip ci]
lastFile:modules/clan/phonebox/default.nix
This commit is contained in:
@@ -250,37 +250,45 @@
|
|||||||
rtpend=${rtpPortTo}
|
rtpend=${rtpPortTo}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
"pjsip.conf" = ''
|
"pjsip.conf" =
|
||||||
[transport-udp]
|
let
|
||||||
type=transport
|
serverConf = builtins.foldl' (
|
||||||
protocol=udp
|
conf: node: conf ++ (genServerSIPEndpoint node.hostname node.address)
|
||||||
bind=0.0.0.0
|
) "" nodes;
|
||||||
[transport-udp6]
|
in
|
||||||
type=transport
|
''
|
||||||
protocol=udp
|
[transport-udp]
|
||||||
bind=::
|
type=transport
|
||||||
|
protocol=udp
|
||||||
|
bind=0.0.0.0
|
||||||
|
[transport-udp6]
|
||||||
|
type=transport
|
||||||
|
protocol=udp
|
||||||
|
bind=::
|
||||||
|
|
||||||
[base_endpoint](!)
|
[base_endpoint](!)
|
||||||
type=endpoint
|
type=endpoint
|
||||||
disallow=all
|
disallow=all
|
||||||
allow=ulaw,alaw,g722,gsm
|
allow=ulaw,alaw,g722,gsm
|
||||||
direct_media=no
|
direct_media=no
|
||||||
|
|
||||||
[internal_endpoint](!,base_endpoint)
|
[internal_endpoint](!,base_endpoint)
|
||||||
context=from-internal
|
context=from-internal
|
||||||
|
|
||||||
[userpass_auth](!)
|
[userpass_auth](!)
|
||||||
type=auth
|
type=auth
|
||||||
auth_type=userpass
|
auth_type=userpass
|
||||||
|
|
||||||
[ip_auth](!)
|
[ip_auth](!)
|
||||||
type=identify
|
type=identify
|
||||||
endpoint=external
|
endpoint=external
|
||||||
|
|
||||||
[dynamiic_aor](!)
|
[dynamiic_aor](!)
|
||||||
type=aor
|
type=aor
|
||||||
|
|
||||||
'';
|
''
|
||||||
|
+ (genLocalSIPEndpoint config.clan.core.vars.generators.phonebox.files.ata-local-number)
|
||||||
|
+ serverConf;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user