summaryrefslogtreecommitdiff
path: root/net/asterisk-chan_sccp/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/asterisk-chan_sccp/files')
-rw-r--r--net/asterisk-chan_sccp/files/patch-src_define.h4
-rw-r--r--net/asterisk-chan_sccp/files/patch-src_pbx__impl_ast116_ast116.c41
2 files changed, 43 insertions, 2 deletions
diff --git a/net/asterisk-chan_sccp/files/patch-src_define.h b/net/asterisk-chan_sccp/files/patch-src_define.h
index 5b2d175fb693..ce1846d7b7d7 100644
--- a/net/asterisk-chan_sccp/files/patch-src_define.h
+++ b/net/asterisk-chan_sccp/files/patch-src_define.h
@@ -1,6 +1,6 @@
---- src/define.h.orig 2020-10-24 14:42:40 UTC
+--- src/define.h.orig 2021-12-29 10:49:04 UTC
+++ src/define.h
-@@ -98,10 +98,10 @@ SCCP_LINE unsigned long long ___bswap_64(unsigned long
+@@ -96,10 +96,10 @@ SCCP_LINE unsigned long long ___bswap_64(unsigned long
# define htolel(x) (uint16_t)(x)
# define htoles(x) (uint16_t)(x)
# else
diff --git a/net/asterisk-chan_sccp/files/patch-src_pbx__impl_ast116_ast116.c b/net/asterisk-chan_sccp/files/patch-src_pbx__impl_ast116_ast116.c
new file mode 100644
index 000000000000..57d4afa24dd5
--- /dev/null
+++ b/net/asterisk-chan_sccp/files/patch-src_pbx__impl_ast116_ast116.c
@@ -0,0 +1,41 @@
+--- src/pbx_impl/ast116/ast116.c.orig 2021-12-29 10:49:04 UTC
++++ src/pbx_impl/ast116/ast116.c
+@@ -3063,10 +3063,12 @@ DECLARE_PBX_CHANNEL_STRGET(name)
+ DECLARE_PBX_CHANNEL_STRGET(linkedid)
+ DECLARE_PBX_CHANNEL_STRGET(context)
+ DECLARE_PBX_CHANNEL_STRSET(context)
++#if _ASTERISK_VERSION < 21
+ DECLARE_PBX_CHANNEL_STRGET(macroexten)
+ DECLARE_PBX_CHANNEL_STRSET(macroexten)
+ DECLARE_PBX_CHANNEL_STRGET(macrocontext)
+ DECLARE_PBX_CHANNEL_STRSET(macrocontext)
++#endif
+ DECLARE_PBX_CHANNEL_STRGET(call_forward)
+ DECLARE_PBX_CHANNEL_STRSET(call_forward)
+
+@@ -3534,10 +3536,12 @@ const PbxInterface iPbx = {
+ setChannelExten: sccp_astwrap_set_channel_exten,
+ getChannelContext: sccp_astwrap_get_channel_context,
+ setChannelContext: sccp_astwrap_set_channel_context,
++#if _ASTERISK_VERSION < 21
+ getChannelMacroExten: sccp_astwrap_get_channel_macroexten,
+ setChannelMacroExten: sccp_astwrap_set_channel_macroexten,
+ getChannelMacroContext: sccp_astwrap_get_channel_macrocontext,
+ setChannelMacroContext: sccp_astwrap_set_channel_macrocontext,
++#endif
+ getChannelCallForward: sccp_astwrap_get_channel_call_forward,
+ setChannelCallForward: sccp_astwrap_set_channel_call_forward,
+
+@@ -3685,10 +3689,12 @@ const PbxInterface iPbx = {
+ .setChannelExten = sccp_astwrap_set_channel_exten,
+ .getChannelContext = sccp_astwrap_get_channel_context,
+ .setChannelContext = sccp_astwrap_set_channel_context,
++#if _ASTERISK_VERSION < 21
+ .getChannelMacroExten = sccp_astwrap_get_channel_macroexten,
+ .setChannelMacroExten = sccp_astwrap_set_channel_macroexten,
+ .getChannelMacroContext = sccp_astwrap_get_channel_macrocontext,
+ .setChannelMacroContext = sccp_astwrap_set_channel_macrocontext,
++#endif
+ .getChannelCallForward = sccp_astwrap_get_channel_call_forward,
+ .setChannelCallForward = sccp_astwrap_set_channel_call_forward,
+