mob next [ci-skip] [ci skip] [skip ci]

lastFile:modules/clan/phonebox/default.nix
This commit is contained in:
2025-10-29 16:29:44 +07:00
parent 1cfac7b8a6
commit 2c5d6c4e8e

View File

@@ -172,72 +172,77 @@
services.asterisk = { services.asterisk = {
enable = lib.mkDefault true; enable = lib.mkDefault true;
confFiles = { confFiles =
"logger.conf" = '' let
[general] machines = lib.attrNames roles.default.machines;
dateformat = %F %T.%3q ; ISO 8601 date format with milliseconds in
use_callids = yes {
appendhostname = no "logger.conf" = ''
queue_log = yes [general]
queue_log_to_file = no dateformat = %F %T.%3q ; ISO 8601 date format with milliseconds
queue_log_name = queue_log use_callids = yes
queue_log_realtime_use_gmt = no appendhostname = no
rotatestrategy = rotate queue_log = yes
exec_after_rotate=gzip -9 $\{filename\}.2 queue_log_to_file = no
[logfiles] queue_log_name = queue_log
console => notice,warning,error queue_log_realtime_use_gmt = no
security => security rotatestrategy = rotate
messages => notice,warning,error exec_after_rotate=gzip -9 $\{filename\}.2
full => notice,warning,error,verbose,dtmf,fax [logfiles]
syslog.local0 => notice,warning,error console => notice,warning,error
''; security => security
# Dial plan config messages => notice,warning,error
"extensions.conf" = '' full => notice,warning,error,verbose,dtmf,fax
[from-internal] syslog.local0 => notice,warning,error
exten => 100,1,Answer() '';
same => n,Playback(hello-world)
same => n,Hangup()
''; # Dial plan config
"extensions.conf" = ''
[from-internal]
exten => 100,1,Answer()
same => n,Playback(hello-world)
same => n,Hangup()
"rtp.conf" = '' '';
[general]
rtpstart=${rtpPortFrom}
rtpend=${rtpPortTo}
'';
"pjsip.conf" = '' "rtp.conf" = ''
[transport-udp] [general]
type=transport rtpstart=${rtpPortFrom}
protocol=udp rtpend=${rtpPortTo}
bind=0.0.0.0 '';
[transport-udp6]
type=transport
protocol=udp
bind=::
[base_endpoint](!) "pjsip.conf" = ''
type=endpoint [transport-udp]
disallow=all type=transport
allow=ulaw,alaw,g722,gsm protocol=udp
direct_media=no bind=0.0.0.0
[transport-udp6]
type=transport
protocol=udp
bind=::
[internal_endpoint](!,base_endpoint) [base_endpoint](!)
context=from-internal type=endpoint
disallow=all
allow=ulaw,alaw,g722,gsm
direct_media=no
[userpass_auth](!) [internal_endpoint](!,base_endpoint)
type=auth context=from-internal
auth_type=userpass
[ip_auth](!) [userpass_auth](!)
type=identify type=auth
endpoint=external auth_type=userpass
[dynamiic_aor](!) [ip_auth](!)
type=aor type=identify
endpoint=external
''; [dynamiic_aor](!)
}; type=aor
'';
};
}; };
}; };
}; };