unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob d18aa75f32e990fc94927f6115d31be9c42d9dbf 2350 bytes (raw)
name: packages/patches/sipwitch-fix-build-with-exosip5.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
 
From 59c0063443ce0de7f93c34b6c29dd3f12e678848 Mon Sep 17 00:00:00 2001
From: Fredrick Brennan <copypaste@kittens.ph>
Date: Fri, 3 Nov 2023 20:57:59 -0400
Subject: [PATCH] Fix build with 5.x series of libexosip2

---
 common/voip.cpp    | 5 +++--
 utils/Makefile.am  | 3 ++-
 utils/sipquery.cpp | 6 +++++-
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/common/voip.cpp b/common/voip.cpp
index d3ee15b..d0f6ebd 100644
--- a/common/voip.cpp
+++ b/common/voip.cpp
@@ -138,9 +138,10 @@ bool voip::make_prack_message(context_t ctx, tid_t tid, msg_t *msg)
     if(!msg)
         return false;
 
+    msg_t onexxmsg = NULL;
     *msg = NULL;
     eXosip_lock(ctx);
-    eXosip_call_build_prack(ctx, tid, msg);
+    eXosip_call_build_prack(ctx, tid, onexxmsg, msg);
     if(!*msg) {
         eXosip_unlock(ctx);
         return false;
@@ -438,7 +439,7 @@ void voip::create(context_t *ctx, const char *agent, int f)
 
 #ifdef  AF_INET6
     if(family == AF_INET6)
-        eXosip_enable_ipv6(1);
+        voip::option(*ctx, EXOSIP_OPT_ENABLE_IPV6, (void *)2);
 #endif
 }
 
diff --git a/utils/Makefile.am b/utils/Makefile.am
index dd2040f..ffe6d09 100644
--- a/utils/Makefile.am
+++ b/utils/Makefile.am
@@ -22,7 +22,8 @@ sipcontrol_SOURCES = sipcontrol.cpp
 sipcontrol_LDADD = @LDFLAGS@ @SIPWITCH_LIBS@
 
 sipquery_SOURCES = sipquery.cpp
-sipquery_LDADD = @LDFLAGS@ @SIPWITCH_EXOSIP2@ @SIPWITCH_LIBS@
+sipquery_LDFLAGS = -L$(top_builddir)/common -lsipwitch
+sipquery_LDADD = @LDFLAGS@ @SIPWITCH_LIBS@ @SIPWITCH_EXOSIP2@
 
 sippasswd_SOURCES = sippasswd.cpp
 sippasswd_LDADD = @LDFLAGS@ @SIPWITCH_LIBS@
diff --git a/utils/sipquery.cpp b/utils/sipquery.cpp
index 5b83590..f99512d 100644
--- a/utils/sipquery.cpp
+++ b/utils/sipquery.cpp
@@ -50,6 +50,10 @@ static struct eXosip_t *context = NULL;
 
 using namespace ucommon;
 
+#include "sipwitch/voip.h"
+
+using namespace sipwitch;
+
 #if defined(_MSWINDOWS_) && defined(__GNUC__)
 // binds addrinfo for mingw32 linkage since otherwise mingw32 cannot
 // cannot link proper getaddrinfo/freeaddrinfo calls that eXosip uses.
@@ -226,7 +230,7 @@ usage:
 
 #ifdef  AF_INET6
     if(family == AF_INET6) {
-        eXosip_enable_ipv6(1);
+        sipwitch::voip::option(EXOSIP_CONTEXT, EXOSIP_OPT_ENABLE_IPV6, (void *)2);
         if(binding == NULL)
             binding = "::0";
     }
-- 
2.42.0


debug log:

solving d18aa75f32e990fc94927f6115d31be9c42d9dbf ...
found d18aa75f32e990fc94927f6115d31be9c42d9dbf in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).