A utility to automate the installation, maintenance, and debugging of Asterisk/DAHDI, while integrating additional patches to provide the richest telephony experience

PhreakScript

A utility to automate the installation, maintenance, and debugging of Asterisk/DAHDI, while integrating additional patches to provide the richest telephony experience.

PhreakScript installs:

  • Asterisk 18.8 (latest LTS release of Asterisk)
  • next branch of DAHDI Linux (newer than 3.1.0, with optional DAHDI install flag)
  • DAHDI Tools 3.1.0 (with optional DAHDI install flag)
  • many additional features and stability improvements (see change log for full details)
    • Restores the "great purge" of DAHDI drivers that were removed in 2018 by Sangoma
    • Adds fax timing and parameter control to chan_sip
    • Fixes ulaw/gsm codec translation bug
    • Fixes infinite loop Dial bug
    • Adds the following applications:
      • Assert
      • ReturnIf
      • If, EndIf, ExecIf
      • SendMail
      • MallocTrim
      • SendFrame
      • StreamSilence
      • ReceiveMF
      • ToneSweep
      • ToneScan
      • DialTone
      • SIPAddParameter
      • Softmodem (third-party)
      • TddRx, TddTx (third-party)
    • Adds the following functions:
      • OTHER_CHANNEL
      • NOTCH_FILTER
      • EVAL_EXTEN
      • DB_CHANNEL
      • DB_CHANNEL_PRUNE
      • DB_CHANNEL_PRUNE_TIME
      • JSON_DECODE
      • SIP_PARAMETER

PhreakScript is also useful for:

  • automating installation and maintenance of Asterisk, Asterisk Test Suite, Asterisk Test Framework, DAHDI Linux, DAHDI Tools, and related resources
  • validating Asterisk configuration
    • can find common syntax errors in dialplan code
    • can find missing audio files referenced by the Playback, BackGround, and Read applications
    • suggests optimizations that can be made to dialplan code to make it more readable and efficient
  • generating Asterisk user documentation
  • debugging Asterisk configuration
  • generating core dumps
  • automating PhreakNet boilerplate dialplan installation

Installation

Please refer to the Docs: https://docs.phreaknet.org/#phreakscript

In a nutshell, run:

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.

PhreakScript must be run as root, even if Asterisk does not run as root.

PhreakScript is primarily supported on Debian-based Linux systems. Support has also been added for FreeBSD. Pull requests to add support for other Linux distros or BSD are welcome.

Documentation

Please refer to the PhreakNet Asterisk documentation for PhreakScript-specific module documentation: https://asterisk.phreaknet.org/

Change Log

Please run phreaknet about

Reporting Issues

The preferred issue reporting procedure is by cutting us a ticket at InterLinked Issues: https://issues.interlinked.us/

Choose "PhreakScript" as the category.

Pull Requests

Please see "Contributing to PhreakScript" in the Docs: https://docs.phreaknet.org/#contributions

Similar Resources

Compatibility tool for Steam Play based on Wine and additional components

Introduction Proton is a tool for use with the Steam client which allows games which are exclusive to Windows to run on the Linux operating system. It

Sep 25, 2022

Another version of EVA using anti-debugging techs && using Syscalls

Another version of EVA using anti-debugging techs && using Syscalls

EVA2 Another version of EVA using anti-debugging techs && using Syscalls First thing: Dont Upload to virus total. this note is for you and not for me.

Sep 27, 2022

Libft is an individual project at 42 that requires us to re-create some standard C library functions including some additional ones that can be used later to build a library of useful functions for the rest of the program.

Libft is an individual project at 42 that requires us to re-create some standard C library functions including some additional ones that can be used later to build a library of useful functions for the rest of the program.

Libft is an individual project at 42 that requires us to re-create some standard C library functions including some additional ones that can be used later to build a library of useful functions for the rest of the program.

Apr 5, 2022

Several GX2 test programs to compare it with OpenGL. (With additional GLFW+OpenGL implementation provided)

GX2-Tests Provided are GX2 test programs and samples for comparison with OpenGL and with additional GLFW+OpenGL implementation for test on PC. These s

Nov 15, 2021

Additional components for ESP-IDF, maintained by Espressif

Espressif IDF Extra Components This repository aims to store ESP-IDF extra components which have been seperated and uploaded into IDF Component Manage

Sep 10, 2022

WIP / DIN-rail compatible WiFi security camera with additional features (doorbell detection, magnetic / reed switch door & PIR sensor...) that sends you alerts on Telegram if someone unauthorised breaks into your house.

WIP / DIN-rail compatible WiFi security camera with additional features (doorbell detection, magnetic / reed switch door & PIR sensor...) that sends you alerts on Telegram if someone unauthorised breaks into your house.

WIP / DIN-rail compatible WiFi security camera with additional features (doorbell detection, magnetic / reed switch door & PIR sensor...) that sends you alerts on Telegram if someone unauthorised breaks into your house.

Dec 18, 2021

Maker of special .exe, which contains additional files which are unpacked when .exe is run

exe-archivator Program that make exec-me.exe, which contains additional files which are unpacked when exec-me.exe is run. After compleating unpacking

Dec 17, 2021

Scroll pos - Provides some additional functions to ScrollController to define item position relative to the screen.

Scroll pos - Provides some additional functions to ScrollController to define item position relative to the screen.

Scroll Position Provides some additional functions to ScrollController to define item position relative to the screen. A live version is available her

Jul 2, 2022

Opt - Class template designed to express optionality without having to sacrifice memory to store additional bool flag

mp::optT, Policy mp::optT, Policy is a class template designed to express optionality. It has interface similar to std::optionalT (see here) but

Jun 5, 2022
Comments
  • wanpipe install is broken on Debian

    wanpipe install is broken on Debian

    Formally opening a bug for this: this was discussed via email about a month ago.

    Wanpipe installation appears to be broken on Debian, but not Ubuntu. See unary operator expected warnings below:

            ----------------------------------------------------------
                      WANPIPE v7.0.34 Installation Script
                Copyright (c) 1995-2013, Sangoma Technologies Inc.
            ----------------------------------------------------------
    
    
    Installing WANPIPE Device Drivers: Linux KERNEL
    
    To integrate WANPIPE Multi-Protocol Voice & WAN Router
    modules into the Linux kernel, the kernel has to be
    updated with latest wanpipe sources.  Install will only
    modify existing wanpipe source that is already in the
    Kernel.
    
    IMPORTANT:
    It is always recommended to say YES to all options
    prompted during the install!
    
    
            ----------------------------------------------------------
                      WANPIPE v7.0.34 Installation Script
                Copyright (c) 1995-2013, Sangoma Technologies Inc.
            ----------------------------------------------------------
    
    
    Please specify absolute path name of your linux headers/source directory
    
    Press Enter for Default: /lib/modules/5.10.0-12-amd64/build
    
    #>Setting linux directory to /lib/modules/5.10.0-12-amd64/build
    
    ./Setup: line 1350: [: : integer expression expected
    ./Setup: line 1350: [: : integer expression expected
    ./Setup: line 1350: [: : integer expression expected
    ./Setup: line 1360: [: : integer expression expected
    ./Setup: line 1364: [: : integer expression expected
    ./Setup: line 1367: [: : integer expression expected
    
    
    Upgrading WANPIPE kernel documentation ...Done.
    
    
    Installing WANPIPE include headers ...
    ERROR: Directory /lib/modules/5.10.0-12-amd64/build/include/linux not found!
           Corrupted linux headers in /lib/modules/5.10.0-12-amd64/build dir.
    
    
    ERROR: Failed to upgrade WANPIPE device drivers!
    
    Make sure that following directories exist:
            '/lib/modules/5.10.0-12-amd64/build/net/wanrouter'
            '/lib/modules/5.10.0-12-amd64/build/drivers/net'
    
    Make sure that current kernel image version
    matches the kernel version in /lib/modules/5.10.0-12-amd64/build !!!
    
    
    
    
            ----------------------------------------------------------
                      WANPIPE v7.0.34 Installation Script
                Copyright (c) 1995-2013, Sangoma Technologies Inc.
            ----------------------------------------------------------
    
    WANPIPE KERNEL DRIVER COMPILATION
    
    The next step in WANPIPE installation involves compiling
    WANPIPE kernel modules.
    
    This script will compile and install WANPIPE modules
    into the currently running linux kernel.
    
    For greater customization you will be prompted to
    select which Protocol/Drivers you would like to
    build into the WANPIPE kernel modules.
    
    Wanpipe for Asterisk/Dahdi/Zaptel
            Default for Asterisk/Dahdi/Zaptel
    Wanpipe for Wan Routing/API
            Default for Wan/IP Routing and Data API
    Wanpipe for Asterisk SMG/SS7
            Default for Asterisk SS7
    Wanpipe for TDM API
            Default for FreeSwitch and Voice API
    
    Custom Compilation:
    ------------------
      Customise WANPIPE driver compilation to add only the
      protocols that you need.  This way one can reduce
      the size of the WANPIPE kernel drivers.
    
    Refer to http://wiki.sangoma.com for more info
    ./Setup: line 1350: [: : integer expression expected
    ./Setup: line 1350: [: : integer expression expected
    ./Setup: line 1350: [: : integer expression expected
    ./Setup: line 1360: [: : integer expression expected
    ./Setup: line 1364: [: : integer expression expected
    ./Setup: line 1367: [: : integer expression expected
    
    
            ----------------------------------------------------------
                      WANPIPE v7.0.34 Installation Script
                Copyright (c) 1995-2013, Sangoma Technologies Inc.
            ----------------------------------------------------------
    
    
    Checking for SMP support ...Enabled.
    
    Checking current processor type ...x86_64
    
    ./Setup: line 2654: [: -eq: unary operator expected
    ERROR: Unsupported Kernel Version 5.10.0-12-amd64
    wanpipe install failed: unsupported kernel?
    
Linux v4.14 with the latest security patches and PS4 patches.

Patches are from https://github.com/Ps3itaTeam/ps4-linux Linux kernel ============ This file was moved to Documentation/admin-guide/README.rst Plea

Oct 12, 2021
Linux 4.19 + PS4 patches + Latest security patches

Linux kernel ============ There are several guides for kernel developers and users. These guides can be rendered in a number of formats, like HTML an

Oct 12, 2021
Fork of the RPCEmu RISC PC emulator, with patches. The "master" branch is the original RPCEmu, the "philpem" branch contains my patches.

RPCEmu ~~~~~~ RPCEmu is an emulator of Acorn's Risc PC and A7000 machines. It is a work in progress and should be considered of Alpha Quality. The l

Jan 21, 2022
SystemGap - Maintenance Tools after privilege escalation
SystemGap - Maintenance Tools after privilege escalation

SystemGap 适用于解决不稳定Windows漏洞提权成功后进行权限驻守的办法 SystemGap - 监听者 SystemGap 负责监听一个任意用户可读写的匿名管道,从管道中读取命令进行执行 SystemGapClient - 发送者 SystemGapClient 负责向匿名管道中传入指令

Aug 31, 2022
A npm package that lets you automate your windows desktop.

js-macro A npm package that lets you automate your windows desktop. npm i js-macro Examples Simple cursor usage const { cursor } = require("js-macro"

Jul 30, 2022
A npm package that lets you automate your windows desktop.

js-macro A npm package that lets you automate your windows desktop. npm i js-macro Examples Simple cursor usage const { cursor } = require("js-macro"

Jul 30, 2022
Implémentation en C d'un automate LR1 reconnaissant divers langages
Implémentation en C d'un automate LR1 reconnaissant divers langages

Dans un shell Unix : -WSL (cd /mnt/c pour accéder au répertoire C:) ou Virtualbox linux (dossiers partagés) sous Windows -terminal pour Linux ou MacOs

Jun 13, 2022
A simple utility that cold patches dwm (uDWM.dll) in order to disable window rounded corners in Windows 11

Win11DisableRoundedCorners A simple utility that cold patches the Desktop Window Manager (uDWM.dll) in order to disable window rounded corners in Wind

Sep 21, 2022
Ziggified GLFW bindings with 100% API coverage, zero-fuss installation, cross compilation, and more.

mach/glfw - Ziggified GLFW bindings Ziggified GLFW bindings that Mach engine uses, with 100% API coverage, zero-fuss installation, cross compilation,

Sep 27, 2022
This repository provides you the material of installation the Catalana Hackintosh

VivoBook Asus X542UQ laptop Catalina 10.15.7 Hackintosh This repository provides you the material of installation the Catalana Hackintosh with Opencor

Oct 9, 2021