A utility to automate the installation, maintenance, and debugging of Asterisk/DAHDI, while integrating additional patches to provide the richest telephony experience.
PhreakScript installs:
RECORD FILE
option to require noise before silence detectionchan_sccp
(improved community Skinny/SCCP channel driver), with compilation fixeschan_sip
chan_sip
for master / versions 21+ (removed by Sangoma)Assert
ReturnIf
SendMail
MallocTrim
PartialPlayback
LoopPlayback
RandomPlayback
SayTelephoneNumber
Audichron
FeatureProcess
SelectiveFeature
RemoteAccess
George
RequestCallback
CancelCallback
ScheduleWakeupCall
HandleWakeupCall
CCSA
PreDial
SetMWI
PlayDigits
StreamSilence
RevertivePulse
SendFrame
WaitForFrame
Signal
WaitForSignal
WaitForDeposit
CoinDisposition
LocalCoinDisposition
CoinCall
ACTS
SendCWCID
DAHDIMonitor
DialSpeedTest
LoopDisconnect
ToneSweep
DialTone
InbandDial
Verify
OutVerify
KeyPrefetch
PhreakNetDial
SIPAddParameter
IRCSendMessage
AlarmSensor
AlarmKeypad
AlarmEventReceiver
(not to be confused with AlarmReceiver
)Softmodem
(third-party, with compiler fixes and enhancements, including TDD modem)TddRx
, TddTx
(third-party)TECH_EXISTS
DTMF_FLASH
DTMF_TRACE
NUM2DEVICE
TEXT_QUERY
COIN_DETECT
COIN_EIS
PHREAKNET
NOTCH_FILTER
DB_CHANNEL
DB_CHANNEL_PRUNE
DB_CHANNEL_PRUNE_TIME
DB_MAXKEY
DB_MINKEY
DB_UNIQUE
NANPA
SIP_PARAMETER
MESSAGE_INTERCEPT_SUB
GROUP_VAR
(third-party)GROUP_MATCH_LIST_START
(third-party)chan_sip
include =>
PhreakScript is also useful for:
Playback
, BackGround
, and Read
applications[1] Normally, PhreakScript installs the latest LTS version of Asterisk. However, version 21 will be installed by default until version 22 is released,
due to the significant change in functionality from version 20 which allows for a richer installation by default.
To install the latest LTS version (20), you can specify the version explicitly e.g. --version=20.5.0
.
However, there should not be a need to do so unless you are using obsolete modules that were removed in Asterisk 21.
Please refer to the Docs: https://docs.phreaknet.org/#phreakscript
In a nutshell, run:
Linux:
cd /usr/local/src && wget https://docs.phreaknet.org/script/phreaknet.sh && chmod +x phreaknet.sh && ./phreaknet.sh make
FreeBSD:
pkg install -y wget && cd /usr/local/src && wget https://docs.phreaknet.org/script/phreaknet.sh && chmod +x phreaknet.sh && ./phreaknet.sh make
Then, you can use PhreakScript. Run phreaknet help
or phreaknet examples
to get started.
For a basic install, you can run phreaknet install
To install with DAHDI, run phreaknet install --dahdi
(add --drivers
to also restore drivers that were removed upstream in DAHDI 3).
For a guided, interactive installation, you can also run phreaknet wizard
. The wizard will determine what installation options are best for you, based on your preferences.
PhreakScript must be run as root, even if Asterisk will not be installed to run as root.
PhreakScript is primarily supported on Debian-based Linux systems, and DAHDI and Asterisk are best supported on these platforms. Limited support is available for other Linux distros (Fedora, RHEL, Rocky Linux, SUSE, Arch Linux, etc.). Extremely limited support exists for FreeBSD, and BSDs (and UNIX in general) are not recommended for running Asterisk/DAHDI - use Linux instead if possible.
PhreakScript itself is licensed under the Apache 2.0 License. This includes any scripts in this repository.
However, any Asterisk modules ("C" code) in this repository (such as those that may be installed by PhreakScript) are licensed under the GNU General Public License Version 2 (GPLv2), per the Asterisk licensing terms.
If you have copyright or licensing doubts, please refer to any copyrights and licensing terms in individual source files.
Please refer to the PhreakNet Asterisk documentation for PhreakScript-specific module documentation: https://asterisk.phreaknet.org/
Please run phreaknet about
The preferred issue reporting procedure is by cutting us a ticket at InterLinked Issues: https://issues.interlinked.us/
Choose "PhreakScript" as the category.
Please see "Contributing to PhreakScript" in the Docs: https://docs.phreaknet.org/#contributions