-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcursed_phone.conf
169 lines (126 loc) · 5.8 KB
/
cursed_phone.conf
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# ==================================== ROBIN PEDERSON PROUDLY PRESENTS =====================================
#
# @@@@@@@ @@@ @@@ @@@@@@@ @@@@@@ @@@@@@@@ @@@@@@@ @@@@@@@ @@@ @@@ @@@@@@ @@@ @@@ @@@@@@@@
# @@@@@@@@ @@@ @@@ @@@@@@@@ @@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@@@ @@@ @@@ @@@@@@@@ @@@@ @@@ @@@@@@@@
# !@@ @@! @@@ @@! @@@ !@@ @@! @@! @@@ @@! @@@ @@! @@@ @@! @@@ @@!@:@@@ @@!
# !@! !@! @!@ !@! @!@ !@! !@! @@! @!@ !@! @!@ !@! @!@ !@! @!@ !@!!@!@! !@!
# !@! @!@ !@! @!@!!@! !!@@!! @!!!:! @!@ !@! @!@@!@! @!@!@!@! @!@ !@! @!@ !@@! @!!!:!
# !!! !@! !!! !!@!@! !!@!!! !!!!!: !@! !!! !!@!!! !!!@!!!! !@! !!! !@! !!! !!!!!:
# :!! !!: !!! !!: :!! !:! !!: !!: !!! !!: !!: !!! !!: !!! !!: !!! !!!:
# :!: :!: !:! :!: !:! !:! :!: :!: !:! :!: :!: !:! :!: !:! :!: !:! :!:
# ::: ::: ::::: :: :: ::: :::: :: :: :::: :::::::: :: :: ::: :::::::: :: :: :: ::::
# :: :: : : : : : : : :: : : : :: :: :: : : : : : : : : : :: : : :: ::
#
# ------------------------------------ THE LANDLINE STRAIGHT TO HELL! --------------------------------------
# Use the CURSED_CONFIG_PATH environment variable to specify a custom location for this file.
# Resource directories to mount (supports glob patterns)
# Additional paths may also be specified in the CURSED_RESOURCES_PATH environment variable.
# (Note: Directories specified here will always be mounted first.)
include-resources = [
"res/",
"addons/*/",
]
# Number of engine updates (ticks) per second.
# Higher values give better timing accuracy, but also consume more CPU cycles.
tick-rate = 120
# Max number of instructions to allow per script execution.
# Not enforced across yield boundaries.
script-execution-limit = 1000000
# Post-Dial Delay
# Delay (as seconds) to wait after the last digit is dialed,
# before the phone attempts to place the call.
pdd = 4.0
# Delay (as seconds) before off-hook intercept agent activates.
off-hook-delay = 20.0
# Allows phone to receive calls from agents.
allow-incoming-calls = true
# Enables the mechanical ringer output.
ringer-enabled = true
# Default ring pattern (a.k.a. "cadence") assigned to agents who don't specify a custom pattern
default-ring-pattern = "Q2000 L4000"
# Enables switchhook dialing.
shd-enabled = true
# The maximum time (as seconds) between switchhook dialing pulses when dialing a digit.
shd-manual-pulse-interval = 0.3
# Number of seconds phone must be on the hook to end the call.
# MUST be greater than manual-pulse-interval!
# (Only used if enable-switch-hook-dialing = true)
shd-hangup-delay = 0.4
[gpio.inputs]
# Switchhook
switchhook = { pin = 5, bounce-ms = 25, pull = "up" }
[gpio.outputs]
# Ringer
pin-ringer = 17
[rotary]
# Enabling this activates the rotary dial and related GPIO pins
enabled = false
# Describes the digit mapping for pulse dialing, sorted by pulse count.
digit-layout = "1234567890"
# Delay (as milliseconds) between rotary dial leaving resting state and first valid pulse.
first-pulse-delay-ms = 300
# Rotary dial pulse input
input-pulse = { pin = 2, bounce-ms = 25, pull = "up" }
# Rotary dial rest input
input-rest = { pin = 4, bounce-ms = 100, pull = "up" }
[payphone]
# Enabling this activates the coin mech and enables coin requirement for calls
enabled = false
# Default rate (given in units of lowest denomination) applied to calls. Defaults to 0 (free).
# Certain agents may opt to override this with their own rate.
standard-call-rate = 50
# Amount of call time (as whole seconds) credited for the standard (or custom) call rate.
# Defaults to 0 (no time limit, single deposit only).
time-credit-seconds = 120
# Amount of call time remaining (as whole seconds) before the Tollmaster alerts the user.
# Defaults to 60 seconds.
time-credit-warn-seconds = 45
# Delay (as milliseconds) between an outgoing call being accepted and the coin deposit being consumed.
# Defaults to 0 (instant).
coin-consume-delay-ms = 2000
# Allows agents to set their own prices. (default: true)
enable-custom-agent-rates = true
# Monetary value constants for coin triggers.
# Set values in terms of the lowest denomination of your currency.
coin-values = [ 5, 10, 25 ]
# Coin triggers
# Arrays must be the same length as coin-values.
coin-input-pins = [17, 27, 22]
coin-input-bounce-ms = [25, 25, 25]
coin-input-pull = "up"
[keypad]
# Enabling this activates the keypad and registers related GPIO inputs/outputs
enabled = false
# Keypad matrix output pins
output-cols = [16, 20, 21]
# Keypad matrix input pins
input-rows = [19, 13, 11, 9]
[sound]
# Affects all sounds
master-volume = 1.0
# Volume of DTMF tones.
dtmf-volume = 0.25
# Duration (as milliseconds) of DTMF tones.
dtmf-tone-duration-ms = 75
# Loudness difference (as relative dB) of DTMF frequency components.
dtmf-twist = 0.0
# Frequency drift (as relative %) of DTMF frequency components.
dtmf-drift = 0.0
# Call progress tone gain values per the North American Precise Tone Plan.
# Gain (as dB) of dial tone. (Precise Tone Plan: -13 dBm)
dial-tone-gain = -13.0
# Gain (as dB) of ringback tone. (Precise Tone Plan: -19 dBm)
ringback-tone-gain = -19.0
# Gain (as dB) of busy tone. (Precise Tone Plan: -24 dBm)
busy-tone-gain = -24.0
# Gain (as dB) of off-hook tone.
off-hook-tone-gain = -4.0
# Gain (as dB) of Special Information Tones (SITs). (ITU: -24 dBm0)
special-info-tone-gain = -24.0
# Volume of comfort noise.
comfort-noise-volume = 0.325
# (Optional) Sound key of comfort noise.
comfort-noise-name = "ambient/comfort_noise"
[debug]
# The panic tone plays when a Lua script encounters an error.
enable-panic-tone = true