Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/github_actions/actions/upload-art…
Browse files Browse the repository at this point in the history
…ifact-4
  • Loading branch information
felipecrs committed Mar 10, 2024
2 parents 20aa42c + c535206 commit 8ca336b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
19 changes: 10 additions & 9 deletions asterisk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,17 @@ COPY patches/app_rtsp_sip/*.patch ./
ARG APP_RTSP_SIP_VERSION="d0fb18b4813e4ae8940029a8a62030443d9feaec"
ARG TARGETARCH
# hadolint ignore=DL3003,SC2164
RUN if [[ "${TARGETARCH}" == "amd64" || "${TARGETARCH}" == "i386" ]]; then \
curl -fsSL "https://github.com/tommyjlong/app_rtsp_sip/archive/${APP_RTSP_SIP_VERSION}.tar.gz" | \
RUN curl -fsSL "https://github.com/tommyjlong/app_rtsp_sip/archive/${APP_RTSP_SIP_VERSION}.tar.gz" | \
tar --strip-components 1 -xz; \
patch -p1 < disable_auth.patch; \
patch -p1 < remove_sudo.patch; \
cp -f app_rtsp_sip.c /usr/src/asterisk/apps; \
cp -f rtsp_sip_links.sh /usr/src/asterisk; \
cd /usr/src/asterisk; \
./rtsp_sip_links.sh; \
fi
patch -p1 < disable_auth.patch; \
patch -p1 < remove_sudo.patch; \
if [[ "${TARGETARCH}" == arm* ]]; then \
patch -p1 < fix_arm.patch; \
fi; \
cp -f app_rtsp_sip.c /usr/src/asterisk/apps; \
cp -f rtsp_sip_links.sh /usr/src/asterisk; \
cd /usr/src/asterisk; \
./rtsp_sip_links.sh

# Copy patches specific for this addon
COPY patches/asterisk/*.patch /usr/src/asterisk-patches/
Expand Down
13 changes: 13 additions & 0 deletions asterisk/patches/app_rtsp_sip/fix_arm.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/app_rtsp_sip.c b/app_rtsp_sip.c
index 42933af..e72c2f7 100755
--- a/app_rtsp_sip.c
+++ b/app_rtsp_sip.c
@@ -64,6 +64,8 @@
#include <asterisk.h>
#include "asterisk/app.h" /* PORT 17.3 ADDed for parsing args */

+#define PJ_IS_BIG_ENDIAN 0
+#define PJ_IS_LITTLE_ENDIAN 1

#include <stdlib.h>
#include <stdio.h>

0 comments on commit 8ca336b

Please sign in to comment.