Giter Club home page Giter Club logo

interlinked1 / phreakscript Goto Github PK

View Code? Open in Web Editor NEW
37.0 10.0 13.0 1.32 MB

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

Home Page: https://asterisk.phreaknet.org

License: Apache License 2.0

Shell 13.57% C 85.44% Roff 0.99%
asterisk asterisk-development asterisk-pbx payphone pbx softswitch telephony voip phreaking dahdi

phreakscript's Introduction

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 21.2.0 (latest standard release[1] of Asterisk)
  • DAHDI Linux 3.3.0 (with optional DAHDI install flag)
  • DAHDI Tools 3.3.0 (with optional DAHDI install flag)
  • wanpipe 7.0.38 (with optional wanpipe install flag)
  • many additional features and stability improvements
    • Restores the "great purge" of DAHDI drivers that were removed in 2018 by Sangoma
    • DAHDI/wanpipe/LibPRI compilation fixes
    • Native coin detection and blue boxing support
    • Class 4 and Class 5 coin trunk support
    • Real time dial pulsing support
    • "Hearpulsing" patches
    • Automatic dialplan context to digit map generation
    • Broadworks compatible device feature key synchronization (PJSIP)
    • Broadworks compatible Shared Call Appearances (PJSIP)
    • Presence publishing (PJSIP)
    • Message Send Protocol send support
    • AGI RECORD FILE option to require noise before silence detection
    • Optional build enhancements
      • chan_sccp (improved community Skinny/SCCP channel driver), with compilation fixes
      • Cisco Call Manager support for chan_sip
      • Restored and enhanced chan_sip for master / versions 21+ (removed by Sangoma)
    • Adds the following applications:
      • 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
      • Softmodem (third-party, with compiler fixes and enhancements, including TDD modem)
      • TddRx, TddTx (third-party)
    • Adds the following functions:
      • 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)
    • Miscellaneous improvements
      • Enhances performance by completely removing Newexten AMI event
      • Adds fax timing and parameter control to chan_sip
      • Adds prefix capabilities to include =>
      • Fixes ulaw/gsm codec translation bug

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

[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.

Installation

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 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.

License

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.

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

phreakscript's People

Contributors

brown1d avatar crvallance avatar encbar5 avatar famicoman avatar hharte avatar interlinked1 avatar jxmx avatar seanbright avatar sudofox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phreakscript's Issues

Rocky 8.9 - Tried the script.

I tried the script as suggested here:

asterisk/dahdi-tools#9 (comment)

It seems it was written for a Debian specific environment (apt-get, not yum & or dnf)
Also, it seems it doesn't like that I am on an older kernel - (I need an older kernel because of the hardware - newer kernels drop support for my,

Intel(R) Atom(TM) CPU D525

which is the hardware I have available currently (yes I know its old)

root@rocky /u/l/src [SIGINT]# phreaknet install --force --dahdi
Real time pusling is not compatible or has been disabled for this build.
WARNING: You are installing Asterisk to run as root. This is not recommended.
Specify -u or --user to specify a run user

Starting installation with country code 1
Installing prerequisites...
/usr/local/sbin/phreaknet: line 583: apt-get: command not found
/usr/local/sbin/phreaknet: line 584: apt-get: command not found
/usr/local/sbin/phreaknet: line 585: apt-get: command not found
/usr/local/sbin/phreaknet: line 587: apt-get: command not found
/usr/local/sbin/phreaknet: line 589: apt-get: command not found
/usr/local/sbin/phreaknet: line 591: apt-get: command not found
/usr/local/sbin/phreaknet: line 596: apt-get: command not found
/usr/local/sbin/phreaknet: line 599: apt-get: command not found
/usr/local/sbin/phreaknet: line 600: apt-get: command not found
/usr/local/sbin/phreaknet: line 1164: apt-get: command not found
/usr/local/sbin/phreaknet: line 1165: apt-get: command not found
/usr/local/sbin/phreaknet: line 1142: apt-get: command not found
Unable to find automatic installation candidate for 4.18.0-513.11.1.el8_9.x86_64 - reboot needed?
/usr/local/sbin/phreaknet: line 1153: apt-get: command not found
Failed to download system headers and exception failed
Your kernel: 4.18.0-513.11.1.el8_9.x86_64
Available headers for your system:
You may need to upgrade your kernel using apt-get dist-upgrade to install the build headers for your system.
Installed:
total 12
drwxr-xr-x.  5 root root  106 Jan 28 00:48 .
dr-xr-xr-x. 36 root root 4096 Feb  4 23:55 ..
drwxr-xr-x.  7 root root 4096 Feb  4 05:22 4.18.0-513.11.1.el8_9.x86_64
drwxr-xr-x.  6 root root 4096 Jan 27 23:53 4.18.0-513.5.1.el8_9.x86_64
drwxr-xr-x.  3 root root   19 Jan 27 23:38 4.18.0-513.el8.x86_64

Version Switch Broken with sh

Performing phreaknet install --version xx.x.x on a new and updated Debian 12 breaks with

phreaknet install -b --version 20.4.0
Real time pusling is not compatible or has been disabled for this build.
WARNING: You are installing Asterisk to run as root. This is not recommended.
Specify -u or --user to specify a run user

Starting installation with country code 1
Installing prerequisites...
4507
Package updates occured recently, skipping...
/usr/local/sbin/phreaknet: 1933: Bad substitution

Changing the shebang line from sh to bash allows the install to complete.

coindsp patch breaks faxing

I was able to reproduce this simply doing a fax from one PJSIP trunk to another. My exact call topology is:

PSTN -> (pjsip trunk) -> Asterisk 21 -> (pjsip trunk) -> Cisco 2921 -> (fxs) -> Brother FAX machine

With the coindsp patch applied, I get a bunch of this in the logs:

[May 20 18:26:06] WARNING[621039][C-0000030a]: res_rtp_asterisk.c:4309 ast_rtp_dtmf_begin: Don't know how to represent '-'
[May 20 18:26:07] WARNING[621039][C-0000030a]: res_rtp_asterisk.c:4431 ast_rtp_dtmf_end_with_duration: Don't know how to represent '-'

And my faxes all fail with complaints about poor line quality. If I reverse that patch and restart Asterisk, the issues disappear. As I don't have any kind of coin phones attached to my system, I'll just keep this one reverted.

Reverting can be done by:

# go to your asterisk source directory
cd /usr/src/asterisk-*

# download the patch
wget -O /tmp/coindsp.patch https://raw.githubusercontent.com/InterLinked1/phreakscript/448f7e7d099bda3b709717ab099f080a9880a52e/patches/coindsp.patch

# revert the patch
sudo patch -p1 -R < /tmp/coindsp.patch

# rebuild and install
sudo make
sudo make install

Phreaknet install issue as of 06-03-2023 [Makefile:396: res] Error 2

Errors below:
[CCi] res_convert.i -> res_convert.o
[CCi] res_crypto.i -> res_crypto.o
[CCi] res_curl.i -> res_curl.o
res_crypto.c: In function ‘try_load_key.isra’:
res_crypto.c:199:35: error: ‘%s’ directive output may be truncated writing between 5 and 2147483645 bytes into a region of size 255 [-Werror=format-truncation=]
199 | snprintf(ffname, sizeof(ffname), "%s/%s", dir, fname);
| ^~~~~~~
res_crypto.c:199:2: note: ‘snprintf’ output 7 or more bytes (assuming 2147483647) into a destination of size 256
199 | snprintf(ffname, sizeof(ffname), "%s/%s", dir, fname);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[CCi] res_deadlock.i -> res_deadlock.o
cc1: all warnings being treated as errors
make[1]: *** [/usr/src/asterisk-20.3.0/Makefile.rules:150: res_crypto.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:396: res] Error 2
root@TEST-ASL30-K6CV:/#
root@TEST-ASL30-K6CV:/# phreaknet info
Hostname: TEST-ASL30-K6CV
Raspbian GNU/Linux 11 (bullseye)
Linux TEST-ASL30-K6CV 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
Package Manager: apt-get
DAHDI Tools Version - 3.2.0
DAHDI Version: 3.2.0
PhreakScript 0.3.3 (2023-05-25)

dadhi-linux will not compile on linux 6.0.0-0.deb11.6-amd64

<stdbool.h> has been removed from kernel headers, replacing all instances with <linux/types.h> works as a fix. I've had success with adding
find ./ -type f -exec sed -i 's/stdbool.h/linux\/types.h/gI' {} \; into the build script manually.
There's a 1 year old identified bug in the debian listings with a working patch that would probably be more inline with the applying patches code currently implemented:
Bug#1005390: Fails to build with Linux 5.16 onward

DAHDI: Installing with `--drivers` option fails

From a run of phreaknet install -d --drivers:

We have an exact kernel match: 6.1.0-9-amd64
Reverting patches that removed driver support in DAHDI...
Applying custom reverse DAHDI patch: Remove unnecessary dahdi_pci_module macro
patching file drivers/dahdi/wcaxx-base.c
Hunk #1 succeeded at 4488 (offset 14 lines).
patching file drivers/dahdi/wcb4xxp/base.c
patching file drivers/dahdi/wct4xxp/base.c
Hunk #1 succeeded at 5393 (offset -150 lines).
patching file drivers/dahdi/wctc4xxp/base.c
Hunk #1 succeeded at 4241 (offset 5 lines).
patching file drivers/dahdi/wctdm24xxp/base.c
Hunk #1 succeeded at 6110 (offset 8 lines).
patching file drivers/dahdi/wcte13xp-base.c
Hunk #1 succeeded at 2794 (offset 6 lines).
patching file drivers/dahdi/wcte43x-base.c
Hunk #1 succeeded at 3618 (offset 6 lines).
patching file include/dahdi/kernel.h
Applying custom reverse DAHDI patch: Remove unnecessary DAHDI_IRQ_HANDLER macro
patching file drivers/dahdi/wcb4xxp/base.c
patching file drivers/dahdi/wct4xxp/base.c
Hunk #1 succeeded at 3843 (offset -98 lines).
Hunk #2 succeeded at 4135 (offset -128 lines).
patching file drivers/dahdi/wctc4xxp/base.c
Hunk #1 succeeded at 2736 (offset 5 lines).
patching file drivers/dahdi/wcxb.c
Hunk #1 succeeded at 483 (offset 5 lines).
patching file include/dahdi/kernel.h
Restoring drivers by undoing PATCH: Remove struct devtype for unsupported drivers
Restoring drivers by undoing PATCH: Remove support for all but wcb41xp wcb43xp and wcb23xp.
Restoring drivers by undoing PATCH: Remove support for wctdm800, wcaex800, wctdm410, wcaex410.
Restoring drivers by undoing PATCH: Remove support for wcte12xp.
Applying custom DAHDI patch: wcte12xp_base
File /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wcte12xp/base.c does not exist

res_phreaknet: iax.conf, et. al. are truncated when there is no disk space left

If there is no disk space left, and res_phreaknet attempts to update IAX config files, it will be unable to successfully write any data and as a result, all the IAX config files are truncated to 0 bytes when they are updated.

A simple fix would be to detect the low disk space condition (< 1MB) and not attempt to do any file I/O in this situation. However, this could be subject to race conditions and doesn't feel like a completely proper fix for this.

Because we're using ast_config_text_file_save2, we can't directly handle this scenario in this module, such as by writing to a temp file first, ensuring we wrote everything we meant to write, and then renaming the file, at least without working around it in some other way.

app_selective: compiler warnings using gcc12

Compilation fail reported by Danny Lloyd (Debian 12, gcc 12):

[CCi] app_selective.i -> app_selective.o
In file included from /usr/src/asterisk-20.3.0/include/asterisk/utils.h:750,
                 from /usr/src/asterisk-20.3.0/include/asterisk/alertpipe.h:22,
                 from /usr/src/asterisk-20.3.0/include/asterisk/channel.h:127,
                 from app_selective.c:43:
In function 'ast_copy_string',
    inlined from 'selective_reload' at app_selective.c:732:132:
/usr/src/asterisk-20.3.0/include/asterisk/strings.h:412:295: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
  412 | AST_INLINE_API(
      |                                                                                                                                                                                                                                                                                                       ^
app_selective.c: In function 'selective_reload':
app_selective.c:496:13: note: at offset -1 into destination object 'brief_wait' of size 4096

System info:

root@debian12:~# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/12/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 12.2.0-14' --with-bugurl=file:///usr/share/doc/gcc-12/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-12 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-12-bTRWOB/gcc-12-12.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-12-bTRWOB/gcc-12-12.2.0/debian/tmp-gcn/usr --enable-offload-defaulted --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.2.0 (Debian 12.2.0-14)

Failed to apply Gerrit patch 19967

I'm running phreakscript on a fresh system to look more into my wanpipe issue and am seeing the following:

Downloading and applying Gerrit patch 19967
base64: invalid input
error: unrecognized input
Failed to apply Gerrit patch 19967 (https://gerrit.asterisk.org/changes/libpri~19967/revisions/1/patch?download)... this should be reported...
--2023-08-16 23:05:29--  https://octothorpe.info/downloads/pulsar-agi.tar.gz
Resolving octothorpe.info (octothorpe.info)... 173.255.205.127, 2600:3c00:e000:134::1
Connecting to octothorpe.info (octothorpe.info)|173.255.205.127|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 108206 (106K) [application/x-gzip]
Saving to: ‘pulsar-agi.tar.gz’

pulsar-agi.tar.gz                     100%[========================================================================>] 105.67K  --.-KB/s    in 0.1s

2023-08-16 23:05:30 (714 KB/s) - ‘pulsar-agi.tar.gz’ saved [108206/108206]

--2023-08-16 23:05:30--  https://code.phreaknet.org/asterisk/pulsar-noanswer.agi
Resolving code.phreaknet.org (code.phreaknet.org)... 172.67.175.181, 104.21.48.12, 2606:4700:3036::6815:300c, ...
Connecting to code.phreaknet.org (code.phreaknet.org)|172.67.175.181|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2452 (2.4K)
Saving to: ‘pulsar-noanswer.agi’

pulsar-noanswer.agi                   100%[========================================================================>]   2.39K  --.-KB/s    in 0s

2023-08-16 23:05:31 (19.6 MB/s) - ‘pulsar-noanswer.agi’ saved [2452/2452]

/usr/local/sbin/phreaknet: 2681: cd: can't cd to /var/lib/asterisk
tar (child): pulsar-agi.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
mv: failed to access '/var/lib/asterisk/agi-bin/pulsar.agi': Not a directory
chmod: cannot access '/var/lib/asterisk/agi-bin/pulsar.agi': Not a directory
pulsar.agi is missing
Installing Asterisk audio files...
Installing Pat Fleet audio files...
Cloning into 'PatFleet-asterisk'...
remote: Enumerating objects: 1871, done.
remote: Total 1871 (delta 0), reused 0 (delta 0), pack-reused 1871
Receiving objects: 100% (1871/1871), 17.86 MiB | 39.66 MiB/s, done.
Resolving deltas: 100% (18/18), done.
mv: failed to access '/var/lib/asterisk/sounds/en/dictate': Not a directory
mv: failed to access '/var/lib/asterisk/sounds/en/digits': Not a directory
mv: failed to access '/var/lib/asterisk/sounds/en/followme': Not a directory
mv: failed to access '/var/lib/asterisk/sounds/en/letters': Not a directory
mv: failed to access '/var/lib/asterisk/sounds/en/phonetic': Not a directory
mv: failed to access '/var/lib/asterisk/sounds/en/silence': Not a directory
mv: failed to access '/var/lib/asterisk/sounds/en': Not a directory
/usr/local/sbin/phreaknet: 631: cd: can't cd to /var/lib/asterisk/sounds/en
mkdir: cannot create directory ‘custom’: No such file or directory
/usr/local/sbin/phreaknet: 633: cd: can't cd to custom/signal
--2023-08-16 23:05:32--  https://audio.phreaknet.org/stock/dialtone.ulaw
Resolving audio.phreaknet.org (audio.phreaknet.org)... 104.21.48.12, 172.67.175.181, 2606:4700:3030::ac43:afb5, ...
Connecting to audio.phreaknet.org (audio.phreaknet.org)|104.21.48.12|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 445544 (435K)
dialtone.ulaw: No such file or directory

Cannot write to ‘dialtone.ulaw’ (No such file or directory).
--2023-08-16 23:05:32--  https://audio.phreaknet.org/stock/busy.ulaw
Resolving audio.phreaknet.org (audio.phreaknet.org)... 172.67.175.181, 104.21.48.12, 2606:4700:3036::6815:300c, ...
Connecting to audio.phreaknet.org (audio.phreaknet.org)|172.67.175.181|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 167184 (163K)
busy.ulaw: No such file or directory

Cannot write to ‘busy.ulaw’ (No such file or directory).
--2023-08-16 23:05:32--  https://audio.phreaknet.org/stock/reorder.ulaw
Resolving audio.phreaknet.org (audio.phreaknet.org)... 104.21.48.12, 172.67.175.181, 2606:4700:3030::ac43:afb5, ...
Connecting to audio.phreaknet.org (audio.phreaknet.org)|104.21.48.12|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 312448 (305K)
reorder.ulaw: No such file or directory

Cannot write to ‘reorder.ulaw’ (No such file or directory).
--2023-08-16 23:05:32--  https://audio.phreaknet.org/stock/ccad.ulaw
Resolving audio.phreaknet.org (audio.phreaknet.org)... 172.67.175.181, 104.21.48.12, 2606:4700:3036::6815:300c, ...
Connecting to audio.phreaknet.org (audio.phreaknet.org)|172.67.175.181|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 65497 (64K)
ccad.ulaw: No such file or directory

Cannot write to ‘ccad.ulaw’ (No such file or directory).
--2023-08-16 23:05:33--  https://audio.phreaknet.org/stock/acbn.ulaw
Resolving audio.phreaknet.org (audio.phreaknet.org)... 104.21.48.12, 172.67.175.181, 2606:4700:3030::ac43:afb5, ...
Connecting to audio.phreaknet.org (audio.phreaknet.org)|104.21.48.12|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 57678 (56K)
acbn.ulaw: No such file or directory

Cannot write to ‘acbn.ulaw’ (No such file or directory).
/usr/local/sbin/phreaknet: 639: cd: can't cd to /var/lib/asterisk/moh
mkdir: cannot create directory ‘ringback’: No such file or directory
/usr/local/sbin/phreaknet: 641: cd: can't cd to ringback
--2023-08-16 23:05:33--  https://audio.phreaknet.org/stock/ringback.ulaw
Resolving audio.phreaknet.org (audio.phreaknet.org)... 172.67.175.181, 104.21.48.12, 2606:4700:3036::6815:300c, ...
Connecting to audio.phreaknet.org (audio.phreaknet.org)|172.67.175.181|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 495978 (484K)
ringback.ulaw: No such file or directory

Cannot write to ‘ringback.ulaw’ (No such file or directory).

app_verify: Double free or memory corruption

Backtrace from some system, running Asterisk 18.13.0, built 2022-07-30:

#1  0x00007fcaaa494537 in __GI_abort () at abort.c:79
        save_stage = 1
        act = {__sigaction_handler = {sa_handler = 0x7fca81bae118, sa_sigaction = 0x7fca81bae118}, sa_mask = {__val = {13961818710507735296, 140508110961184, 140507736629632, 140508110954439, 139>
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007fcaaa4ec3a8 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fcaaa60a390 "%sn") at ../sysdeps/posix/libc_fatal.c:155
        ap = {{gp_offset = 24, fp_offset = 4294967295, overflow_arg_area = 0x7fca81bae2b0, reg_save_area = 0x7fca81bae240}}
        fd = <optimized out>
        list = <optimized out>
        nlist = <optimized out>
        cp = <optimized out>
#3  0x00007fcaaa4f369a in malloc_printerr (str=str@entry=0x7fcaaa60c6b0 "free(): double free detected in tcache 2") at malloc.c:5347
#4  0x00007fcaaa4f4c95 in _int_free (av=0x7fca98000020, p=0x7fca980a9da0, have_lock=0) at malloc.c:4201
        tmp = <optimized out>
        e = 0x7fca980a9db0
        tc_idx = 32
        size = 544
        fb = <optimized out>
        nextchunk = <optimized out>
        nextsize = <optimized out>
        nextinuse = <optimized out>
        prevsize = <optimized out>
        bck = <optimized out>
        fwd = <optimized out>
        __PRETTY_FUNCTION__ = "_int_free"
#5  0x00007fca8821ac02 in verify_exec (chan=0x55899e4a28a0, data=<optimized out>) at app_verify.c:1549
        v = <optimized out>
        vresult = <optimized out>
        argstr = <optimized out>
        callerid = 0x55899e4ae3a0 "REDACTED"
        strbuf = 0x7fca980a9db0
        blacklisted = 0
        success = <optimized out>
        curl = <optimized out>
        method = <optimized out>
        extendtrust = <optimized out>
        allowtoken = <optimized out>
        sanitychecks = <optimized out>
        threshold = <optimized out>
        blacklist_failopen = <optimized out>
        name = "pstn-us", '000' <repeats 72 times>
        verifyrequest = '000' <repeats 4095 times>
        verifycontext = "pstn-us-verify-patterns", '000' <repeats 56 times>
        local_var = "__clidverif", '000' <repeats 68 times>
        stirshaken_var = "__ssverstat", '000' <repeats 68 times>
        remote_stirshaken_var = '000' <repeats 79 times>
        remote_var = '000' <repeats 79 times>
        via_remote_var = '000' <repeats 79 times>
        token_remote_var = '000' <repeats 79 times>
        validatetokenrequest = '000' <repeats 4095 times>
        code_good = '000' <repeats 4095 times>
        code_fail = "32", '000' <repeats 4093 times>
        code_spoof = '000' <repeats 4095 times>
        exceptioncontext = '000' <repeats 848 times>...
        setinvars = '000' <repeats 3504 times>...
        failgroup = "spam", '000' <repeats 3500 times>...
        failureaction = '000' <repeats 1088 times>...
        failurefile = '000' <repeats 3592 times>...
        failurelocation = "000000000000000000000000p002t230312177", '000' <repeats 130 times>, "210000000000000000000000윋213312177000000000000000000000000000000370X217213312177000000026000000000>
        successregex = "[0-9]0000000203234273201312177000000360000177252312177000000000241273201312177", '000' <repeats 42 times>, " 000000000060000000000Т273201312177000000000242273201312177", '>
        blacklist_endpoint = "REDACTED", '000' <repeats 3900 times>...
        loglevel = '000' <repeats 79 times>
        logmsg = "000ER(0-9,${EXTEN:-10})}&cnam=${cnamencoded})", '000' <repeats 1269 times>...
        blacklist_threshold = <optimized out>
        args = {argc = 1, {argv = {0x7fca81bae360 "pstn-us", 0x0}, {profile = 0x7fca81bae360 "pstn-us", against = 0x0}}}
        __FUNCTION__ = "verify_exec"
        __PRETTY_FUNCTION__ = "verify_exec"
#6  0x000055899cf60848 in pbx_exec (c=c@entry=0x55899e4a28a0, app=app@entry=0x55899ddf20d0, data=data@entry=0x7fca81bbec30 "pstn-us") at pbx_app.c:492

DAHDI: compilation fails on 32-bit

Reported by another user:

make -C /lib/modules/5.10.0-21-686-pae/build M=/usr/src/dahdi-linux-3.2.0/drivers/dahdi DAHDI_INCLUDE=/usr/src/dahdi-linux-3.2.0/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory '/usr/src/linux-headers-5.10.0-21-686-pae'
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_interrupts.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_memory.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_phasing_tsst.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_remote_debug.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tlv.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsi_cnct.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/apilib/bt/octapi_bt0.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/apilib/largmath/octapi_largmath.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/apilib/llman/octapi_llman.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/oct612x-user.o
  LD [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/oct612x/oct612x.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wct4xxp/base.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wct4xxp/vpm450m.o
  LD [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wct4xxp/wct4xxp.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wctc4xxp/base.o
  LD [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wctc4xxp/wctc4xxp.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wctdm24xxp/base.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wctdm24xxp/xhfc.o
  LD [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wctdm24xxp/wctdm24xxp.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/voicebus/voicebus.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/voicebus/GpakCust.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/voicebus/GpakApi.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/voicebus/voicebus_net.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/voicebus/vpmoct.o
  LD [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/voicebus/dahdi_voicebus.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wcb4xxp/base.o
  LD [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wcb4xxp/wcb4xxp.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/xbus-core.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/xbus-sysfs.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/xbus-pcm.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/xframe_queue.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/xpp_dahdi.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/xproto.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/card_global.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/dahdi_debug.o
  LD [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/xpp.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/card_fxs.o
  LD [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/xpd_fxs.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/card_fxo.o
  LD [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/xpd_fxo.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/card_pri.o
  LD [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/xpd_pri.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/card_bri.o
  LD [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/xpd_bri.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/card_echo.o
  LD [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/xpd_echo.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/xpp_usb.o
  VERIFY  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/init_card_1_30
  VERIFY  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/init_card_2_30
  VERIFY  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/init_card_3_30
  VERIFY  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/init_card_4_30
  HOSTCC  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/print_fxo_modes.o
  HOSTLD  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/print_fxo_modes
  GEN     /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/init_fxo_modes
  CHECK   /usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/init_card_2_30
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/dahdi-base.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/dahdi-sysfs.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/dahdi-sysfs-chan.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/dahdi-version.o
  LD [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/dahdi.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/dahdi_dynamic.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/dahdi_dynamic_loc.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/dahdi_dynamic_eth.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/dahdi_dynamic_ethmf.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/dahdi_transcode.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wcte13xp-base.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wcxb_spi.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wcxb.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wcxb_flash.o
  LD [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wcte13xp.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wcte43x-base.o
  LD [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wcte43x.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wcaxx-base.o
  LD [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/wcaxx.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/dahdi_echocan_jpah.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/dahdi_echocan_sec.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/dahdi_echocan_sec2.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/dahdi_echocan_kb1.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/dahdi_echocan_mg2.o
  CC [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/vpmadt032_loader/dahdi_vpmadt032_loader.o
  SHIPPED /usr/src/dahdi-linux-3.2.0/drivers/dahdi/vpmadt032_loader/vpmadt032_x86_32.o
  LD [M]  /usr/src/dahdi-linux-3.2.0/drivers/dahdi/dahdi_vpmadt032_loader.o
  MODPOST /usr/src/dahdi-linux-3.2.0/drivers/dahdi/Module.symvers
ERROR: modpost: "__divdi3" [/usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/xpp_usb.ko] undefined!
ERROR: modpost: "__udivdi3" [/usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/xpp_usb.ko] undefined!
ERROR: modpost: "__moddi3" [/usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/xpp.ko] undefined!
ERROR: modpost: "__divdi3" [/usr/src/dahdi-linux-3.2.0/drivers/dahdi/xpp/xpp.ko] undefined!
make[3]: *** [/usr/src/linux-headers-5.10.0-21-common/scripts/Makefile.modpost:123: /usr/src/dahdi-linux-3.2.0/drivers/dahdi/Module.symvers] Error 1
make[3]: *** Deleting file '/usr/src/dahdi-linux-3.2.0/drivers/dahdi/Module.symvers'
make[2]: *** [/usr/src/linux-headers-5.10.0-21-common/Makefile:1765: modules] Error 2
make[1]: *** [/usr/src/linux-headers-5.10.0-21-common/Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-21-686-pae'
make: *** [Makefile:74: modules] Error 2
DAHDI Linux compilation failed, aborting install

DAHDI Tools compilation failed, aborting install

RPi3b+ with 32bit Debian
cvictor@TEST-ASL30-K6CV:/usr/src $ cat /etc/release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"

Ran into this Dahdi Tools compilation failed error, when following the AllStarLink Version 3 readme.md file
4:43
make[3]: Entering directory '/usr/src/dahdi-tools-3.2.0/xpp'
CC astribank_tool-astribank_tool.o
CC libastribank_la-astribank.lo
CC libastribank_la-mpptalk.lo
CC libastribank_la-astribank_license.lo
CCLD libastribank.la
CCLD astribank_tool
CC astribank_hexload-astribank_hexload.o
CC astribank_hexload-pic_loader.o
CC hexfile.lo
CCLD libhexfile.la
CC libecholoader_la-parse_span_specs.lo
CC libecholoader_la-echo_loader.lo
CCLD libecholoader.la
CCLD astribank_hexload
/usr/bin/ld: ./.libs/libecholoader.a(libecholoader_la-echo_loader.o): in function init_octasic': echo_loader.c:(.text+0x1c24): undefined reference to get_ver'
/usr/bin/ld: ./.libs/libecholoader.a(libecholoader_la-echo_loader.o): in function echo_ver': echo_loader.c:(.text+0x29f0): undefined reference to get_ver'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:739: astribank_hexload] Error 1
make[3]: Leaving directory '/usr/src/dahdi-tools-3.2.0/xpp'
make[2]: *** [Makefile:1061: all-recursive] Error 1
make[2]: Leaving directory '/usr/src/dahdi-tools-3.2.0/xpp'
make[1]: *** [Makefile:1138: all-recursive] Error 1
make[1]: Leaving directory '/usr/src/dahdi-tools-3.2.0'
make: *** [Makefile:681: all] Error 2
DAHDI Tools compilation failed, aborting install
cvictor@TEST-ASL30-K6CV:/usr/src $

cvictor@TEST-ASL30-K6CV:/usr/src $ phreaknet info
Hostname: TEST-ASL30-K6CV
Raspbian GNU/Linux 11 (bullseye)
Linux TEST-ASL30-K6CV 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
Package Manager: apt-get
PhreakScript 0.3.3 (2023-05-25)
https://github.com/InterLinked1/phreakscript
(C) 2021-2023 PhreakNet - https://portal.phreaknet.org https://docs.phreaknet.org
To report bugs or request feature additions, please report at https://issues.interlinked.us

wizard seems to ignore request for install user

Being a noob I tried out the script's install wizard and noticed I was still getting errors that asterisk was being installed as root. Not having spent much time looking at the script, I did a quick peek and found what appears to just be a copy paste error. I might not have enough of an understanding to to find other dependencies etc. but if this really is it, happy to PR.

master...crvallance:phreakscript:wizard-bug

libpri is broken for Q.931 messages

Libpri is broken for sending Q.931 messages, additional 18 bytes are inserted when installed from phreakscript.

Traced to patch for zero length data segments put in for correcting compile problems with GNU CC 11.

Patch to be reworked.

app_acts: ACTS_RESULT == CALLER_HANGUP even if call doesn't answer

[Mar 9 12:02:41] -- Executing [16107970014@from-payphone:4] ACTS("IAX2/9020-asterisk-5635", "local/16107970014@test,tops,i(55)o(15)") in new stack
[Mar 9 12:02:43] -- Expanded In-Band OPERATOR ATTACHED on IAX2/9020-asterisk-5635
[Mar 9 12:02:44] -- <IAX2/9020-asterisk-5635> Playing 'tops/50.ulaw' (language 'en')
[Mar 9 12:02:45] -- <IAX2/9020-asterisk-5635> Playing 'tops/5.ulaw' (language 'en')
[Mar 9 12:02:45] -- <IAX2/9020-asterisk-5635> Playing 'tops/cents.ulaw' (language 'en')
[Mar 9 12:02:46] -- <IAX2/9020-asterisk-5635> Playing 'tops/please.ulaw' (language 'en')
[Mar 9 12:02:47] -- <IAX2/9020-asterisk-5635> Playing 'silence/1.ulaw' (language 'en')
[Mar 9 12:02:48] -- <IAX2/9020-asterisk-5635> Playing 'tops/please-deposit.ulaw' (language 'en')
[Mar 9 12:02:48] -- <IAX2/9020-asterisk-5635> Playing 'tops/50.ulaw' (language 'en')
[Mar 9 12:02:49] -- <IAX2/9020-asterisk-5635> Playing 'tops/5.ulaw' (language 'en')
[Mar 9 12:02:49] -- <IAX2/9020-asterisk-5635> Playing 'tops/cents.ulaw' (language 'en')
[Mar 9 12:02:50] -- <IAX2/9020-asterisk-5635> Playing 'tops/for-the-first.ulaw' (language 'en')
[Mar 9 12:02:51] -- <IAX2/9020-asterisk-5635> Playing 'tops/3.ulaw' (language 'en')
[Mar 9 12:02:51] -- 25 cents just deposited (15 total so far)
[Mar 9 12:02:51] -- <IAX2/9020-asterisk-5635> Playing 'tops/minutes.ulaw' (language 'en')
[Mar 9 12:02:53] -- 25 cents just deposited (50 total so far)
[Mar 9 12:03:02] -- <IAX2/9020-asterisk-5635> Playing 'tops/please-deposit.ulaw' (language 'en')
[Mar 9 12:03:03] -- <IAX2/9020-asterisk-5635> Playing 'tops/5.ulaw' (language 'en')
[Mar 9 12:03:03] -- <IAX2/9020-asterisk-5635> Playing 'tops/cents.ulaw' (language 'en')
[Mar 9 12:03:04] -- <IAX2/9020-asterisk-5635> Playing 'tops/more.ulaw' (language 'en')
[Mar 9 12:03:08] -- 5 cents just deposited (55 total so far)
[Mar 9 12:03:09] -- 55 total cents deposited
[Mar 9 12:03:09] -- <IAX2/9020-asterisk-5635> Playing 'tops/thank-you.ulaw' (language 'en')
[Mar 9 12:03:11] -- Expanded In-Band OPERATOR RELEASED on IAX2/9020-asterisk-5635
[Mar 9 12:03:11] > Initial deposit has been satisfied
[Mar 9 12:03:11] -- Called local/16107970014@test
[Mar 9 12:03:11] -- Executing [16107970014@test:1] Dial("Local/16107970014@test-00000010;2", "IAX2/9020-asterisk/16107970014") in new stack
[Mar 9 12:03:11] -- Called IAX2/9020-asterisk/16107970014
[Mar 9 12:03:11] -- Call accepted by 192.168.0.82:4569 (format ulaw)
[Mar 9 12:03:11] -- Format for call is (ulaw)
[Mar 9 12:03:11] -- IAX2/9020-asterisk-8279 is making progress passing it to Local/16107970014@test-00000010;2
[Mar 9 12:03:11] -- Got Progress on Local/16107970014@test-00000010;1, passing it to IAX2/9020-asterisk-5635
[Mar 9 12:03:14] -- IAX2/9020-asterisk-8279 is making progress passing it to Local/16107970014@test-00000010;2
[Mar 9 12:03:14] -- Got Progress on Local/16107970014@test-00000010;1, passing it to IAX2/9020-asterisk-5635
[Mar 9 12:03:20] > Caller IAX2/9020-asterisk-5635 hung up
[Mar 9 12:03:20] == Spawn extension (from-payphone, 16107970014, 5) exited non-zero on 'IAX2/9020-asterisk-5635'
[Mar 9 12:03:20] -- Executing [h@from-payphone:1] NoOp("IAX2/9020-asterisk-5635", "'payphone call hung up dialstatus = '") in new stack
[Mar 9 12:03:20] -- Hungup 'IAX2/9020-asterisk-8279'
[Mar 9 12:03:20] -- Executing [h@from-payphone:2] NoOp("IAX2/9020-asterisk-5635", "'ACTS_RESULT = CALLER_HANGUP'") in new stack
[Mar 9 12:03:20] -- Executing [h@from-payphone:3] System("IAX2/9020-asterisk-5635", "/scripts/payphone/reset.sh") in new stack
[Mar 9 12:03:20] == Spawn extension (test, 16107970014, 1) exited non-zero on 'Local/16107970014@test-00000010;2'
[Mar 9 12:03:20] -- Executing [h@from-payphone:4] GotoIf("IAX2/9020-asterisk-5635", "0?collect") in new stack
[Mar 9 12:03:20] -- Executing [h@from-payphone:5] GotoIf("IAX2/9020-asterisk-5635", "1?collect") in new stack
[Mar 9 12:03:20] -- Goto (from-payphone,h,10)
[Mar 9 12:03:20] -- Executing [h@from-payphone:10] NoOp("IAX2/9020-asterisk-5635", "'collecting coin'") in new stack
[Mar 9 12:03:20] -- Executing [h@from-payphone:11] System("IAX2/9020-asterisk-5635", "/scripts/payphone/collect.sh") in new stack
[Mar 9 12:03:20] -- Executing [h@from-payphone:12] Hangup("IAX2/9020-asterisk-5635", "") in new stack
[Mar 9 12:03:20] == Spawn extension (from-payphone, h, 12) exited non-zero on 'IAX2/9020-asterisk-5635'

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?

Wanpipe install broken on Debian 12, kernel 6.1

Tried running phreakscript and getting my DAHDI device online today and noticed after install that wanpipe didn't seem to be build. When I try running manually I see that it does not seem to support kernel 6.1.x which is the default on my fresh installation.

        ----------------------------------------------------------
                  WANPIPE v7.0.34 Installation Script
            Copyright (c) 1995-2013, Sangoma Technologies Inc.
        ----------------------------------------------------------

WANPIPE INSTALLATION FOR DAHDI

You are about to install WANPIPE TDM Voice drivers
for Asterisk/Dahdi framework.

You will be prompted for path to DAHDI source.

Wanpipe drivers will compile into dahdi WITHOUT any
dahdi patching or need to recompile dahdi modules.

You must have Linux Kernel Headers along with
full development tools (i.e. GNU C compiler and utilities)
installed in order to be able to install this product.

If you have previoulsy installed WANPIPE, this release
will overrite/upgrade full release without the need to
uninstall first!

IMPORTANT:
It is always recommended to say YES to all options
prompted during the install!

Please visit: http://wiki.sangoma.com for more info.

Would you like to install WANPIPE now? [y] (y/n) y

        ----------------------------------------------------------
                  WANPIPE v7.0.34 Installation Script
            Copyright (c) 1995-2013, Sangoma Technologies Inc.
        ----------------------------------------------------------

Fixing file permissions...

Verifying files and fixing permissions ...Done
Checking for C developement tools ...(gcc) OK
Checking for C++ developement tools ...OK
Checking for Make utility ...OK
Checking for ncurses library ... OK
Checking for Perl developement tools ...OK
Checking for AWK ...OK
Checking for FLEX ...OK
Checking for Patch ...OK
Checking for libtermcap-devel...OK
Checking for bison...OK
Checking for libtool...OK


        ----------------------------------------------------------
                  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/6.1.0-11-amd64/build

#>Setting linux directory to /lib/modules/6.1.0-11-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 ...Done.

WANPIPE device drivers upgraded successfully!


        ----------------------------------------------------------
                  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.
        ----------------------------------------------------------


        Please Select Compilation Mode

1. WAN Protocols Support
       Protocols: Frame Relay, CHDLC, PPP, ATM, X25, ADSL, TDM API
       Default for: Wan Routing, Data & Voice API devel.

2. Asterisk/Dahdi Support
       Asterisk protocols: libpri (PRI,BRI), Analog (FXO/FXS), libss7 (SS7)
       Default for: Asterisk

3. Asterisk/Dahdi + WAN Protocol Support

4. TDM API (libsangoma)
       Protocols: TDM API (libsangoma) on AFT adapters:
       Default for: FreeSWITCH, Yate, Sunrise
                    Custom voice development

5. Custom Compilation Mode
       Specify protocols to be added into the WANPIPE
       kernel drivers.

6. Deprecated: SMG (BRI) (Asterisk SMG/BRI [Use Asterisk/Dahdi option 2 instead])

7. Deprecated: SMG (BRI) + Asterisk/Dahdi [Use Asterisk/Dahdi option 2 instead]


Please select (1-7) [Default: 1]:
        ----------------------------------------------------------
                  WANPIPE v7.0.34 Installation Script
            Copyright (c) 1995-2013, Sangoma Technologies Inc.
        ----------------------------------------------------------


Looking for zaptel/dahdi directory in /usr/src ...
-------------------------------------------
1 : /usr/src/dahdi-linux-3.2.0
------------------------------------------
------------------------------------------
m : Enter zaptel path manually

(ctrl-c to Exit)
Please select working zaptel directory [1-1][m]: 1

Enabling the TDM Voice Asterisk Support

Dahdi HW HDLC Support Detected: Enabling DCHAN Feature
Native Dahdi HW HDLC Support Detected - No patch required
Dahdi source unmodified

Checking for UDEV Zaptel compatibility...     Dahdi installed, no need to add UDEV rules
Enabling the AFT TE1 Support

Checking for SMP support ...Enabled.

Checking current processor type ...x86_64

./Setup: line 2654: [: -eq: unary operator expected
ERROR: Unsupported Kernel Version 6.1.0-11-amd64
root@kabelsalat:/usr/src/wanpipe-7.0.34#

06-25-2023 make: *** [Makefile:681: all] Error 2

## Platform RPi3b+ ##
root@TEST--ASL30-K6CV:/# uname -a
Linux TEST--ASL30-K6CV 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
root@TEST--ASL30-K6CV:/# phreaknet info
WARNING: PhreakScript is out of date (most recent stable version is 0.3.4 (2023-06-18)) - run 'phreaknet update' to update
Hostname: TEST--ASL30-K6CV
Debian GNU/Linux 11 (bullseye)
Linux TEST--ASL30-K6CV 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
Package Manager: apt-get
PhreakScript 0.3.3 (2023-05-25)

## Install log attached ##
install log 06-25-2023.txt

##Problem ##
make[3]: Entering directory '/usr/src/dahdi-tools-3.2.0/xpp'
CC astribank_tool-astribank_tool.o
CC libastribank_la-astribank.lo
CC libastribank_la-mpptalk.lo
CC libastribank_la-astribank_license.lo
CCLD libastribank.la
CCLD astribank_tool
CC astribank_hexload-astribank_hexload.o
CC astribank_hexload-pic_loader.o
CC hexfile.lo
CCLD libhexfile.la
CC libecholoader_la-parse_span_specs.lo
CC libecholoader_la-echo_loader.lo
CCLD libecholoader.la
CCLD astribank_hexload
/usr/bin/ld: ./.libs/libecholoader.a(libecholoader_la-echo_loader.o): in function init_octasic': echo_loader.c:(.text+0x1700): undefined reference to get_ver'
/usr/bin/ld: ./.libs/libecholoader.a(libecholoader_la-echo_loader.o): in function echo_ver': echo_loader.c:(.text+0x2290): undefined reference to get_ver'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:739: astribank_hexload] Error 1
make[3]: Leaving directory '/usr/src/dahdi-tools-3.2.0/xpp'
make[2]: *** [Makefile:1061: all-recursive] Error 1
make[2]: Leaving directory '/usr/src/dahdi-tools-3.2.0/xpp'
make[1]: *** [Makefile:1138: all-recursive] Error 1
make[1]: Leaving directory '/usr/src/dahdi-tools-3.2.0'
make: *** [Makefile:681: all] Error 2
DAHDI Tools compilation failed, aborting install

Invalid command: -d

Brand new Debian 11 install. Have run the following commands:

apt install gcc build-essential git
cd /usr/local/src
wget https://docs.phreaknet.org/script/phreaknet.sh
chmod +x phreaknet.sh
./phreaknet.sh make
phreaknet update

The above works fine, but then:

phreaknet -d install
Invalid command: -d, type phreaknet help for usage.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.