summaryrefslogtreecommitdiff
path: root/net/asterisk-devel/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/asterisk-devel/files')
-rw-r--r--net/asterisk-devel/files/patch-channels::h323::Makefile21
-rw-r--r--net/asterisk-devel/files/patch-channels::h323::ast_h323.cpp37
2 files changed, 11 insertions, 47 deletions
diff --git a/net/asterisk-devel/files/patch-channels::h323::Makefile b/net/asterisk-devel/files/patch-channels::h323::Makefile
index bc34083e2ff3..779096bb2267 100644
--- a/net/asterisk-devel/files/patch-channels::h323::Makefile
+++ b/net/asterisk-devel/files/patch-channels::h323::Makefile
@@ -1,8 +1,8 @@
$FreeBSD$
---- channels/h323/Makefile.orig Tue Aug 31 16:32:11 2004
-+++ channels/h323/Makefile Sun Oct 10 15:25:42 2004
+--- channels/h323/Makefile.orig
++++ channels/h323/Makefile
@@ -53,7 +53,7 @@
LIBS+=-lpthread
endif
@@ -12,27 +12,28 @@ $FreeBSD$
endif
CFLAGS += -D_REENTRANT -D_GNU_SOURCE
CFLAGS += -DP_HAS_SEMAPHORES -DP_SSL -DP_PTHREADS
-@@ -74,19 +74,19 @@
-
+@@ -77,20 +77,20 @@
+ ar cr libchanh323.a ast_h323.o
ast_h323.o: ast_h323.cpp
- $(CXX) -g -c -fno-rtti -o $@ $(CFLAGS) $<
+ $(CXX) $(CXXFLAGS) -c -fno-rtti -o $@ $(CFLAGS) $<
- libchanh323.a: ast_h323.o
- ar cr libchanh323.a ast_h323.o
+ ifneq ($(wildcard .depend),)
+ include .depend
+ endif
chan_h323.so:
- $(CXX) -g -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib -lpt_linux_x86_r -L$(OPENH323DIR)/lib -lh323_linux_x86_r -L/usr/lib $(CHANH323LIB)
-+ $(CXX) $(CXXFLAGS) -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib -lpt_FreeBSD_x86_r_s -L$(OPENH323DIR)/lib -lh323_FreeBSD_x86_r -L/usr/lib $(CHANH323LIB)
++ $(CXX) $(CXXFLAGS) -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib -lpt_FreeBSD_x86_r_s -L$(OPENH323DIR)/lib -lh323_FreeBSD_x86_r $(CHANH323LIB)
chan_h323_d.so: chan_h323.o ast_h323.o
- $(CXX) -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib -lpt_linux_x86_d -L$(OPENH323DIR)/lib -lh323_linux_x86_d -L/usr/lib $(CHANH323LIB)
-+ $(CXX) $(CXXFLAGS) -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib -lpt_FreeBSD_x86_d -L$(OPENH323DIR)/lib -lh323_FreeBSD_x86_d -L/usr/lib $(CHANH323LIB)
++ $(CXX) $(CXXFLAGS) -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib -lpt_FreeBSD_x86_r_s -L$(OPENH323DIR)/lib -lh323_FreeBSD_x86_r $(CHANH323LIB)
chan_h323_s.so: chan_h323.o ast_h323.o
- $(CXX) -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib -lpt_linux_x86_r_s -L$(OPENH323DIR)/lib -lh323_linux_x86_r_s -L/usr/lib $(CHANH323LIB)
-+ $(CXX) $(CXXFLAGS) -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib -lpt_FreeBSD_x86_r_s -L$(OPENH323DIR)/lib -lh323_FreeBSD_x86_r_s -L/usr/lib $(CHANH323LIB)
++ $(CXX) $(CXXFLAGS) -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib -lpt_FreeBSD_x86_r_s -L$(OPENH323DIR)/lib -lh323_FreeBSD_x86_r $(CHANH323LIB)
clean:
- rm -f *.o *.so core.* libchanh323.a
+ rm -f *.o *.so core.* libchanh323.a .depend
diff --git a/net/asterisk-devel/files/patch-channels::h323::ast_h323.cpp b/net/asterisk-devel/files/patch-channels::h323::ast_h323.cpp
deleted file mode 100644
index 6cfae1ec5d05..000000000000
--- a/net/asterisk-devel/files/patch-channels::h323::ast_h323.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-
-$FreeBSD$
-
---- channels/h323/ast_h323.cpp.orig
-+++ channels/h323/ast_h323.cpp
-@@ -722,7 +722,7 @@
- if (h323debug) {
- cout << " -- Sending user input tone (" << tone << ") to remote" << endl;
- }
-- on_send_digit(GetCallReference(), tone);
-+ on_send_digit(GetCallReference(), &tone);
- H323Connection::SendUserInputTone(tone, duration);
- }
-
-@@ -732,18 +732,20 @@
- if (h323debug) {
- cout << " -- Received user input tone (" << tone << ") from remote" << endl;
- }
-- on_send_digit(GetCallReference(), tone);
-+ on_send_digit(GetCallReference(), &tone);
- }
- H323Connection::OnUserInputTone(tone, duration, logicalChannel, rtpTimestamp);
- }
-
- void MyH323Connection::OnUserInputString(const PString &value)
- {
-+ char val;
- if (mode == H323_DTMF_RFC2833) {
- if (h323debug) {
- cout << " -- Received user input string (" << value << ") from remote." << endl;
- }
-- on_send_digit(GetCallReference(), value[0]);
-+ val = value[0];
-+ on_send_digit(GetCallReference(), &val);
- }
- }
-