2
2
3
3
# PhreakScript
4
4
# (C) 2021-2023 Naveen Albert, PhreakNet, and others - https://github.com/InterLinked1/phreakscript ; https://portal.phreaknet.org ; https://docs.phreaknet.org
5
- # v0.3.2 (2023-03-16 )
5
+ # v0.3.3 (2023-05-25 )
6
6
7
7
# Setup (as root):
8
8
# cd /usr/local/src
13
13
# phreaknet install
14
14
15
15
# # Begin Change Log:
16
+ # 2023-05-25 0.3.3 Asterisk: target 20.3.0
16
17
# 2023-03-16 0.3.2 Asterisk: target 20.2.0
17
18
# 2023-03-03 0.3.1 DAHDI: disable XPP drivers on all 32-bit architectures to fix build failures
18
19
# 2023-02-26 0.2.7 PhreakScript: fix install user (again)
@@ -224,6 +225,8 @@ DEBUG_LEVEL=0
224
225
FREEPBX_GUI=0
225
226
GENERIC_HEADERS=0
226
227
EXTERNAL_CODECS=0
228
+ RTPULSING=0 # XXX: Change to 1 as soon as we can
229
+ HAVE_COMPATIBLE_SPANDSP=0 # XXX: Change to 1 as soon as we can
227
230
228
231
handler () {
229
232
kill $BGPID
@@ -1280,8 +1283,9 @@ install_dahdi() {
1280
1283
tar -zxvf ${LIBPRI_SOURCE_NAME} .tar.gz
1281
1284
rm ${LIBPRI_SOURCE_NAME} .tar.gz
1282
1285
cd ${LIBPRI_SOURCE_NAME}
1283
- # Unmerged compiler fix patch for q921/q931 in libpri:
1284
- gerrit_patch 19311 " https://gerrit.asterisk.org/changes/libpri~19311/revisions/8/patch?download"
1286
+ # Unreleased compiler fix patch for q921/q931 in libpri:
1287
+ gerrit_patch 19967 " https://gerrit.asterisk.org/changes/libpri~19967/revisions/1/patch?download"
1288
+ git_custom_patch " https://github.com/asterisk/libpri/commit/a7a2245b12288fc0657e0a8f8071bdf8ed840f4b.diff"
1285
1289
make && make install
1286
1290
1287
1291
# Wanpipe
@@ -1455,7 +1459,9 @@ phreak_patches() { # $1 = $PATCH_DIR, $2 = $AST_SRC_DIR
1455
1459
phreak_tree_module " apps/app_remoteaccess.c"
1456
1460
phreak_tree_module " apps/app_saytelnumber.c"
1457
1461
phreak_tree_module " apps/app_selective.c"
1458
- phreak_tree_module " apps/app_softmodem.c"
1462
+ if [ " $HAVE_COMPATIBLE_SPANDSP " = " 1" ]; then
1463
+ phreak_tree_module " apps/app_softmodem.c"
1464
+ fi
1459
1465
phreak_tree_module " apps/app_streamsilence.c"
1460
1466
phreak_tree_module " apps/app_tonetest.c"
1461
1467
phreak_tree_module " apps/app_verify.c"
@@ -1478,14 +1484,18 @@ phreak_patches() { # $1 = $PATCH_DIR, $2 = $AST_SRC_DIR
1478
1484
if [ " $DEVMODE " = " 1" ]; then
1479
1485
phreak_tree_module " res/res_deadlock.c" # this is not possibly useful to non-developers
1480
1486
fi
1481
- phreak_tree_module " res/res_dialpulse.c"
1487
+ if [ " $RTPULSING " = " 1" ]; then
1488
+ phreak_tree_module " res/res_dialpulse.c"
1489
+ fi
1482
1490
phreak_tree_module " res/res_digitmap.c"
1483
1491
phreak_tree_module " res/res_irc.c"
1484
1492
phreak_tree_module " res/res_phreaknet.c"
1485
1493
phreak_tree_module " res/res_pjsip_presence.c"
1486
1494
1487
1495
# # Third Party Modules
1488
- custom_module " apps/app_tdd.c" " https://raw.githubusercontent.com/dgorski/app_tdd/main/app_tdd.c"
1496
+ if [ " $HAVE_COMPATIBLE_SPANDSP " = " 1" ]; then
1497
+ custom_module " apps/app_tdd.c" " https://raw.githubusercontent.com/dgorski/app_tdd/main/app_tdd.c"
1498
+ fi
1489
1499
custom_module " apps/app_fsk.c" " https://raw.githubusercontent.com/alessandrocarminati/app-fsk/master/app_fsk_18.c"
1490
1500
sed -i ' s/<defaultenabled>no<\/defaultenabled>//g' apps/app_fsk.c # temporary bug fix
1491
1501
@@ -1538,8 +1548,10 @@ phreak_patches() { # $1 = $PATCH_DIR, $2 = $AST_SRC_DIR
1538
1548
1539
1549
gerrit_patch 18577 " https://gerrit.asterisk.org/changes/asterisk~18577/revisions/2/patch?download" # app_confbridge: Fix bridge shutdown race condition
1540
1550
gerrit_patch 17655 " https://gerrit.asterisk.org/changes/asterisk~17655/revisions/25/patch?download" # func_groupcount: GROUP VARs
1541
- gerrit_patch 19897 " https://gerrit.asterisk.org/changes/asterisk~19897/revisions/6/patch?download" # res_pjsip_stir_shaken: Fix JSON field ordering
1542
- git_patch " ast_rtoutpulsing.diff" # chan_dahdi: add rtoutpulsing
1551
+ if [ " $RTPULSING " = " 1" ]; then
1552
+ # XXX Temporarily disabled because it causes a patch conflict in chan_dahdi, line 938. We'll get this fixed soon.
1553
+ git_patch " ast_rtoutpulsing.diff" # chan_dahdi: add rtoutpulsing
1554
+ fi
1543
1555
1544
1556
git_patch " blueboxing.diff" # dsp: make blue boxing easier
1545
1557
git_patch " prefixinclude.diff" # pbx: prefix includes
@@ -1549,7 +1561,7 @@ phreak_patches() { # $1 = $PATCH_DIR, $2 = $AST_SRC_DIR
1549
1561
1550
1562
if [ " $EXPERIMENTAL_FEATURES " = " 1" ]; then
1551
1563
printf " Installing patches for experimental features\n"
1552
- git_custom_patch " https://code.phreaknet.org/asterisk/pubsub.diff"
1564
+ git_custom_patch " https://code.phreaknet.org/asterisk/pubsub.diff" # NOTE: Already merged into master.
1553
1565
custom_module " include/asterisk/res_pjsip_body_generator_types.h" " https://code.phreaknet.org/asterisk/res_pjsip_body_generator_types.h"
1554
1566
custom_module " res/res_pjsip_device_features.c" " https://code.phreaknet.org/asterisk/res_pjsip_device_features.c"
1555
1567
custom_module " res/res_pjsip_device_features_body_generator.c" " https://code.phreaknet.org/asterisk/res_pjsip_device_features_body_generator.c"
@@ -1560,8 +1572,6 @@ phreak_patches() { # $1 = $PATCH_DIR, $2 = $AST_SRC_DIR
1560
1572
if [ " $DEVMODE " = " 1" ]; then # highly experimental
1561
1573
# does not cleanly patch, do not uncomment:
1562
1574
# this does not apply even with gerrit_fuzzy_patch:
1563
- # gerrit_patch 18304 "https://gerrit.asterisk.org/changes/asterisk~18304/revisions/3/patch?download" # chan_dahdi: add dialmode
1564
- # this does not apply even with gerrit_fuzzy_patch:
1565
1575
# gerrit_patch 17719 "https://gerrit.asterisk.org/changes/asterisk~17719/revisions/8/patch?download" # res_pbx_validate
1566
1576
:
1567
1577
fi
@@ -2126,6 +2136,17 @@ elif [ "$cmd" = "mancached" ]; then
2126
2136
mandb
2127
2137
elif [ " $cmd " = " install" ]; then
2128
2138
preinstall_warn=0
2139
+
2140
+ # XXX: Warnings so we don't forget to fix these:
2141
+ if [ " $RTPULSING " != " 1" ]; then
2142
+ echoerr " Real time pusling is not compatible or has been disabled for this build."
2143
+ sleep 1
2144
+ fi
2145
+ if [ " $HAVE_COMPATIBLE_SPANDSP " != " 1" ]; then
2146
+ echoerr " SpanDSP is not compatible or has been disabled for this build."
2147
+ sleep 1
2148
+ fi
2149
+
2129
2150
if [ ${# AST_USER} -eq 0 ]; then
2130
2151
echoerr " WARNING: You are installing Asterisk to run as root. This is not recommended."
2131
2152
echoerr " Specify -u or --user to specify a run user"
0 commit comments