@@ -1469,8 +1469,7 @@ git_patch() {
14691469 wget -q " https://raw.githubusercontent.com/InterLinked1/phreakscript/master/patches/$1 " -O /tmp/$1 --no-cache
14701470 git apply " /tmp/$1 "
14711471 if [ $? -ne 0 ]; then
1472- echoerr " Failed to apply git patch... this should be reported..."
1473- exit 2
1472+ die " Failed to apply git patch $1 ... this should be reported..."
14741473 fi
14751474 rm " /tmp/$1 "
14761475}
@@ -1517,10 +1516,12 @@ asterisk_pr() {
15171516git_custom_patch () {
15181517 printf " Applying git patch: %s\n" " $1 "
15191518 wget -q " $1 " -O /tmp/tmp_git_patch.diff --no-cache
1519+ if [ ! -f /tmp/tmp_git_patch.diff ]; then
1520+ die " Failed to download patch $1 "
1521+ fi
15201522 git apply " /tmp/tmp_git_patch.diff"
15211523 if [ $? -ne 0 ]; then
1522- echoerr " Failed to apply git patch... this should be reported..."
1523- exit 2
1524+ die " Failed to apply git patch $1 ... this should be reported..."
15241525 fi
15251526 rm " /tmp/tmp_git_patch.diff"
15261527}
@@ -1884,8 +1885,6 @@ install_dahdi() {
18841885 git_custom_patch " https://patch-diff.githubusercontent.com/raw/asterisk/dahdi-linux/pull/64.diff" # PR 64: More struct device to const struct device
18851886 git_custom_patch " https://patch-diff.githubusercontent.com/raw/asterisk/dahdi-linux/pull/66.diff" # PR 66: Add braces around empty if body
18861887 git_custom_patch " https://patch-diff.githubusercontent.com/raw/asterisk/dahdi-linux/pull/69.diff" # PR 69: DEFINE_SEMAPHORE for RHEL
1887-
1888- # Not yet merged
18891888 git_custom_patch " https://patch-diff.githubusercontent.com/raw/asterisk/dahdi-linux/pull/32.patch" # PR 32: xpp: Fix 32-bit builds
18901889
18911890 # Fix or skip compilation of the XPP driver for 32-bit
@@ -2357,11 +2356,12 @@ phreak_patches() { # $1 = $PATCH_DIR, $2 = $AST_SRC_DIR
23572356 asterisk_pr_if 994 220200 210700 201200 182700 # FGD regression fix
23582357 asterisk_pr_if 245 220200 210700 201200 182700 # config.c: fix template inheritance/overrides
23592358 asterisk_pr_if 414 220200 210700 201200 182700 # IAX2 loopback warning
2359+ asterisk_pr_if 1030 220200 210700 201200 182700 # chan_dahdi: Fix wrong channel state when RINGING recieved
23602360
23612361 # # Unmerged patches: remove or switch to asterisk_pr_if once merged
2362- asterisk_pr_unconditional 918 # config.c #tryinclude fixes
2362+ # asterisk_pr_unconditional 918 # config.c #tryinclude fixes. Temporarily disabled since patch fails to apply: main/config.c:2750
23632363 asterisk_pr_unconditional 971 # config.c fix issues w/ whitespace in comments
2364- asterisk_pr_unconditional 1030 # chan_dahdi: Fix wrong channel state when RINGING recieved
2364+ asterisk_pr_unconditional 1055 # chan_iax2: Avoid unnecessarily backlogging frames
23652365
23662366 # asterisk_pr_unconditional 272 # Call Waiting Deluxe. This also now conflicts (with the latest revisions), so temp. disabled.
23672367 # asterisk_pr_unconditional 438 # Last Number Redial. This now conflicts with 272, so temp. disabled.
0 commit comments