Initial import of iaxclient 2.1beta3
A lightweight cross platform IP telephony client using the IAX protocol, designed for use with the asterisk open source PBX. OK, landry@ jasper@
This commit is contained in:
parent
6ba93a2a29
commit
a540a8b3b4
95
telephony/iaxclient/Makefile
Normal file
95
telephony/iaxclient/Makefile
Normal file
@ -0,0 +1,95 @@
|
||||
# $OpenBSD: Makefile,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
|
||||
COMMENT-main= IAX client library
|
||||
COMMENT-tcl= IAX client library, tcl bindings
|
||||
COMMENT-iaxcomm=IAX softphone
|
||||
|
||||
DISTNAME= iaxclient-2.1beta3
|
||||
PKGNAME-main= ${DISTNAME}
|
||||
PKGNAME-tcl= ${DISTNAME:S/iaxclient/iaxclient-tcl/}
|
||||
PKGNAME-iaxcomm=iaxcomm-1.1.0
|
||||
|
||||
CATEGORIES= telephony
|
||||
USE_LIBTOOL= Yes
|
||||
SHARED_LIBS= tcliaxclient02 0.0 \
|
||||
iaxclient 0.0
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=iaxclient/}
|
||||
HOMEPAGE= http://iaxclient.sourceforge.net/
|
||||
MAINTAINER= Sebastian Reitenbach <sebastia@openbsd.org>
|
||||
|
||||
# LGPLv2.1
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MULTI_PACKAGES= -main -tcl -iaxcomm
|
||||
MODULES= devel/gettext x11/tk
|
||||
|
||||
WANTLIB-main += c faac faad m mp3lame ogg oil-0.3 ossaudio pthread
|
||||
WANTLIB-main += schroedinger-1.0 sndio theora vorbis vorbisenc x264
|
||||
WANTLIB-main += z
|
||||
|
||||
WANTLIB-tcl += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
|
||||
WANTLIB-tcl += Xi Xinerama Xrandr Xrender atk-1.0 c cairo expat faac
|
||||
WANTLIB-tcl += faad fontconfig freetype gio-2.0 glib-2.0 glitz gmodule-2.0
|
||||
WANTLIB-tcl += gobject-2.0 gthread-2.0 m mp3lame ogg oil-0.3 ossaudio
|
||||
WANTLIB-tcl += pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre pixman-1
|
||||
WANTLIB-tcl += png pthread pthread-stubs schroedinger-1.0 sndio theora
|
||||
WANTLIB-tcl += vorbis vorbisenc x264 xcb xcb-render xcb-render-util
|
||||
WANTLIB-tcl += z
|
||||
|
||||
WANTLIB-iaxcomm += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
|
||||
WANTLIB-iaxcomm += Xi Xinerama Xrandr Xrender atk-1.0 avcodec avutil c
|
||||
WANTLIB-iaxcomm += cairo expat faac faad fontconfig freetype gdk-x11-2.0
|
||||
WANTLIB-iaxcomm += gdk_pixbuf-2.0 gio-2.0 glib-2.0 glitz gmodule-2.0 gobject-2.0
|
||||
WANTLIB-iaxcomm += gsm gthread-2.0 gtk-x11-2.0 m mp3lame ogg oil-0.3 ossaudio
|
||||
WANTLIB-iaxcomm += pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre pixman-1
|
||||
WANTLIB-iaxcomm += png portaudio pthread pthread-stubs schroedinger-1.0
|
||||
WANTLIB-iaxcomm += sndio speex speexdsp stdc++ theora vidcap vorbis vorbisenc
|
||||
WANTLIB-iaxcomm += x264 xcb xcb-render xcb-render-util z
|
||||
|
||||
LIB_DEPENDS= gsm.>=1::audio/gsm \
|
||||
portaudio::audio/portaudio-svn \
|
||||
speex.>=8,speexdsp.>=1::audio/speex \
|
||||
avcodec.>=13,avutil.>=6::graphics/ffmpeg \
|
||||
vidcap.>=0::graphics/libvidcap
|
||||
|
||||
LIB_DEPENDS-tcl=${LIB_DEPENDS} \
|
||||
iaxclient::${BASE_PKGPATH} \
|
||||
gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2
|
||||
|
||||
RUN_DEPENDS-tcl=${MODTCL_RUN_DEPENDS}
|
||||
|
||||
RUN_DEPENDS-iaxcomm=${MODGETTEXT_RUN_DEPENDS}
|
||||
LIB_DEPENDS-iaxcomm=${MODGETTEXT_LIB_DEPENDS} \
|
||||
iaxclient::${BASE_PKGPATH} \
|
||||
wx_base,wx_base_net,wx_base_odbc,wx_base_xml,wx_gtk2_adv,wx_gtk2_aui,wx_gtk2_core,wx_gtk2_dbgrid,wx_gtk2_html,wx_gtk2_qa,wx_gtk2_richtext,wx_gtk2_xrc::x11/wxWidgets
|
||||
|
||||
CONFIGURE_STYLE=gnu
|
||||
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -L/usr/lib -lossaudio" \
|
||||
WISH=${MODTK_BIN}
|
||||
CONFIGURE_ARGS=--enable-clients="testcall tkphone iaxcomm"
|
||||
# iaxphone needs an ANSI (not unicode) build of wxWidgets
|
||||
# vtestcall pulls in SDL dependency, not doing this for now
|
||||
|
||||
# ALLOW_SMP_DANGERS is at least needed on sparc64 and mips64
|
||||
CFLAGS+= -I${LOCALBASE}/include -DALLOW_SMP_DANGERS
|
||||
MAKE_ENV= LDFLAGS='-L/usr/lib -lossaudio'
|
||||
|
||||
pre-configure:
|
||||
@# non-standard, not using MODTCL_WISH_ADJ
|
||||
perl -pi -e '$$. == 6 && s!wish!${MODTK_BIN}!;' \
|
||||
${WRKSRC}/simpleclient/tkphone/tkiaxphone
|
||||
${SUBST_CMD} ${WRKSRC}/contrib/tcl/configure \
|
||||
${WRKSRC}/simpleclient/tkphone/tkiaxphone
|
||||
|
||||
post-build:
|
||||
cd ${WRKSRC}/contrib/tcl && ${CONFIGURE_ENV} ./configure \
|
||||
--with-tcl=${MODTCL_LIBDIR} && ${MAKE_PROGRAM}
|
||||
|
||||
post-install:
|
||||
cd ${WRKSRC}/contrib/tcl && ${MAKE_PROGRAM} install
|
||||
|
||||
.include <bsd.port.mk>
|
5
telephony/iaxclient/distinfo
Normal file
5
telephony/iaxclient/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (iaxclient-2.1beta3.tar.gz) = R9VLnV1I3Gqh9tflBscrpw==
|
||||
RMD160 (iaxclient-2.1beta3.tar.gz) = OsUWuaB8SCAvLnF7rz3hOW91Zwc=
|
||||
SHA1 (iaxclient-2.1beta3.tar.gz) = 27Dc3C93XXQajoavHIDkDXAiW00=
|
||||
SHA256 (iaxclient-2.1beta3.tar.gz) = bKbOgQODftb6L9LojBwNOj2T17S9CEh4NRUn6/sgUUk=
|
||||
SIZE (iaxclient-2.1beta3.tar.gz) = 1418674
|
39
telephony/iaxclient/patches/patch-contrib_tcl_Makefile_in
Normal file
39
telephony/iaxclient/patches/patch-contrib_tcl_Makefile_in
Normal file
@ -0,0 +1,39 @@
|
||||
$OpenBSD: patch-contrib_tcl_Makefile_in,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
--- contrib/tcl/Makefile.in.orig Mon Apr 7 18:05:36 2008
|
||||
+++ contrib/tcl/Makefile.in Sun Nov 15 20:27:50 2009
|
||||
@@ -108,7 +108,7 @@ RANLIB = @RANLIB@
|
||||
RANLIB_STUB = @RANLIB_STUB@
|
||||
SHLIB_CFLAGS = @SHLIB_CFLAGS@
|
||||
SHLIB_LD = @SHLIB_LD@
|
||||
-SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
|
||||
+SHLIB_LD_LIBS = @SHLIB_LD_LIBS@ -L../../lib/.libs
|
||||
STLIB_LD = @STLIB_LD@
|
||||
#TCL_DEFS = @TCL_DEFS@
|
||||
TCL_BIN_DIR = @TCL_BIN_DIR@
|
||||
@@ -203,7 +203,7 @@ doc:
|
||||
@echo " xml2nroff sample.xml > sample.n"
|
||||
@echo " xml2html sample.xml > sample.html"
|
||||
|
||||
-install: all install-binaries install-libraries install-doc
|
||||
+install: all install-binaries install-libraries
|
||||
|
||||
install-binaries: binaries install-lib-binaries install-bin-binaries
|
||||
|
||||
@@ -318,7 +318,7 @@ dist: dist-clean
|
||||
chmod 664 $(DIST_DIR)/tclconfig/tcl.m4
|
||||
chmod +x $(DIST_DIR)/tclconfig/install-sh
|
||||
|
||||
- list='demos doc generic library mac tests unix win'; \
|
||||
+ list='demos generic library mac tests unix win'; \
|
||||
for p in $$list; do \
|
||||
if test -d $(srcdir)/$$p ; then \
|
||||
mkdir $(DIST_DIR)/$$p; \
|
||||
@@ -430,7 +430,7 @@ uninstall-binaries:
|
||||
rm -f $(DESTDIR)$(bindir)/$$p; \
|
||||
done
|
||||
|
||||
-.PHONY: all binaries clean depend distclean doc install libraries test
|
||||
+.PHONY: all binaries clean depend distclean install libraries test
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
30
telephony/iaxclient/patches/patch-contrib_tcl_configure
Normal file
30
telephony/iaxclient/patches/patch-contrib_tcl_configure
Normal file
@ -0,0 +1,30 @@
|
||||
$OpenBSD: patch-contrib_tcl_configure,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
--- contrib/tcl/configure.orig Mon Apr 7 18:05:36 2008
|
||||
+++ contrib/tcl/configure Sun Dec 6 20:59:31 2009
|
||||
@@ -6685,7 +6685,7 @@ else
|
||||
|
||||
else
|
||||
|
||||
- vars="-lpthread -lasound"
|
||||
+ vars="-pthread"
|
||||
for i in $vars; do
|
||||
if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
|
||||
# Convert foo.lib to -lfoo for GCC. No-op if not *.lib
|
||||
@@ -8476,7 +8476,7 @@ echo "${ECHO_T}$tcl_cv_ld_elf" >&6; }
|
||||
if test $tcl_cv_ld_elf = yes; then
|
||||
SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
|
||||
else
|
||||
- SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
|
||||
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${LIBtcliaxclient02_VERSION}'
|
||||
fi
|
||||
|
||||
# Ancient FreeBSD doesn't handle version numbers with dots.
|
||||
@@ -8499,7 +8499,7 @@ echo "${ECHO_T}$tcl_cv_ld_elf" >&6; }
|
||||
DL_LIBS=""
|
||||
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
|
||||
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
|
||||
- SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
|
||||
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${LIBtcliaxclient02_VERSION}'
|
||||
{ echo "$as_me:$LINENO: checking for ELF" >&5
|
||||
echo $ECHO_N "checking for ELF... $ECHO_C" >&6; }
|
||||
if test "${tcl_cv_ld_elf+set}" = set; then
|
12
telephony/iaxclient/patches/patch-contrib_tcl_iaxclient_c
Normal file
12
telephony/iaxclient/patches/patch-contrib_tcl_iaxclient_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-contrib_tcl_iaxclient_c,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
--- contrib/tcl/iaxclient.c.orig Sun Nov 15 20:08:09 2009
|
||||
+++ contrib/tcl/iaxclient.c Sun Nov 15 20:08:24 2009
|
||||
@@ -20,7 +20,7 @@
|
||||
#if TARGET_API_MAC_CARBON
|
||||
// typedef int socklen_t;
|
||||
#endif
|
||||
-#include "iaxclient.h"
|
||||
+#include "../../lib/iaxclient.h"
|
||||
|
||||
/* thread support */
|
||||
#if defined(WIN32) || defined(_WIN32_WCE)
|
14
telephony/iaxclient/patches/patch-lib_Makefile_in
Normal file
14
telephony/iaxclient/patches/patch-lib_Makefile_in
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-lib_Makefile_in,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
remove some parameters to make gcc-2.95 happy
|
||||
--- lib/Makefile.in.orig Mon Apr 7 18:08:38 2008
|
||||
+++ lib/Makefile.in Wed Jun 16 09:02:35 2010
|
||||
@@ -352,8 +352,7 @@ AM_CPPFLAGS = \
|
||||
-I$(srcdir)/portmixer/px_common
|
||||
|
||||
AM_CFLAGS = $(PTHREAD_CFLAGS) $(SPEEX_CFLAGS) $(SPEEXDSP_CFLAGS) \
|
||||
- $(IAX2_CFLAGS) $(PORTAUDIO_CFLAGS) -Wall -Wextra \
|
||||
- -Wno-unused-parameter -Wpointer-arith \
|
||||
+ $(IAX2_CFLAGS) $(PORTAUDIO_CFLAGS) -Wall -Wpointer-arith \
|
||||
-DLIBVER='"$(PACKAGE_VERSION)"' $(am__append_8) \
|
||||
$(am__append_11) $(am__append_16) $(am__append_18) \
|
||||
$(am__append_21) $(am__append_24)
|
12
telephony/iaxclient/patches/patch-lib_codec_ffmpeg_c
Normal file
12
telephony/iaxclient/patches/patch-lib_codec_ffmpeg_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-lib_codec_ffmpeg_c,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
--- lib/codec_ffmpeg.c.orig Sat Nov 14 14:01:02 2009
|
||||
+++ lib/codec_ffmpeg.c Sat Nov 14 14:02:59 2009
|
||||
@@ -25,6 +25,8 @@
|
||||
|
||||
#ifdef WIN32
|
||||
#include "libavcodec/avcodec.h"
|
||||
+#elif defined(__OpenBSD__)
|
||||
+#include "libavcodec/avcodec.h"
|
||||
#else
|
||||
#include <ffmpeg/avcodec.h>
|
||||
#endif
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-lib_portmixer_px_unix_oss_px_unix_oss_c,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
--- lib/portmixer/px_unix_oss/px_unix_oss.c.orig Sat Nov 14 13:57:56 2009
|
||||
+++ lib/portmixer/px_unix_oss/px_unix_oss.c Sat Nov 14 13:58:45 2009
|
||||
@@ -39,6 +39,8 @@
|
||||
#include <linux/soundcard.h>
|
||||
#elif defined(__FreeBSD__)
|
||||
#include <sys/soundcard.h>
|
||||
+#elif defined(__OpenBSD__)
|
||||
+#include <soundcard.h>
|
||||
#else
|
||||
#include <machine/soundcard.h> /* JH20010905 */
|
||||
#endif
|
27
telephony/iaxclient/patches/patch-lib_unixfuncs_c
Normal file
27
telephony/iaxclient/patches/patch-lib_unixfuncs_c
Normal file
@ -0,0 +1,27 @@
|
||||
$OpenBSD: patch-lib_unixfuncs_c,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
we do not have sched_get_priority_{min/max}, fix was inspired by patch to pjsua
|
||||
to fix the same problem.
|
||||
--- lib/unixfuncs.c.orig Sun Nov 15 10:43:40 2009
|
||||
+++ lib/unixfuncs.c Sun Nov 15 10:44:46 2009
|
||||
@@ -217,7 +217,8 @@ static int WatchDogProc( prioboost *b )
|
||||
/* Run at a priority level above main thread so we can still run if it hangs. */
|
||||
/* Rise more than 1 because of rumored off-by-one scheduler bugs. */
|
||||
schp.sched_priority = b->priority + 4;
|
||||
- maxPri = sched_get_priority_max(SCHEDULER_POLICY);
|
||||
+// maxPri = sched_get_priority_max(SCHEDULER_POLICY);
|
||||
+ maxPri=0;
|
||||
if( schp.sched_priority > maxPri ) schp.sched_priority = maxPri;
|
||||
|
||||
if (pthread_setschedparam(pthread_self(), SCHEDULER_POLICY, &schp) != 0)
|
||||
@@ -368,8 +369,9 @@ int iaxci_prioboostbegin()
|
||||
|
||||
int result = 0;
|
||||
|
||||
- b->priority = (sched_get_priority_max(SCHEDULER_POLICY) -
|
||||
- sched_get_priority_min(SCHEDULER_POLICY)) / 2;
|
||||
+// b->priority = (sched_get_priority_max(SCHEDULER_POLICY) -
|
||||
+// sched_get_priority_min(SCHEDULER_POLICY)) / 2;
|
||||
+ b->priority = 0;
|
||||
schp.sched_priority = b->priority;
|
||||
|
||||
b->ThreadID = pthread_self();
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-simpleclient_iaxcomm_calls_cc,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
--- simpleclient/iaxcomm/calls.cc.orig Sun Jun 6 13:46:43 2010
|
||||
+++ simpleclient/iaxcomm/calls.cc Sun Jun 6 13:46:55 2010
|
||||
@@ -85,7 +85,7 @@ CallList::CallList(wxWindow *parent, int nCalls, wxWin
|
||||
|
||||
Hide();
|
||||
|
||||
-#if !defined(__UNICODE__)
|
||||
+#if !defined(wxUSE_UNICODE)
|
||||
wxFont font = GetFont();
|
||||
font.SetPointSize(11);
|
||||
font.SetFamily(wxSWISS);
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-simpleclient_iaxcomm_frame_cc,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
--- simpleclient/iaxcomm/frame.cc.orig Sun Jun 6 13:46:27 2010
|
||||
+++ simpleclient/iaxcomm/frame.cc Sun Jun 6 13:46:41 2010
|
||||
@@ -425,7 +425,7 @@ void MyFrame::ShowDirectoryControls()
|
||||
config->SetPath(_T("/OT"));
|
||||
bCont = config->GetFirstGroup(OTName, dummy);
|
||||
while ( bCont ) {
|
||||
-#if defined(__UNICODE__)
|
||||
+#if defined(wxUSE_UNICODE)
|
||||
ot = ((wxButton *)((*aPanel).FindWindow(wxXmlResource::GetXRCID(OTName))));
|
||||
#else
|
||||
ot = XRCCTRL(*aPanel, OTName, wxButton);
|
@ -0,0 +1,23 @@
|
||||
$OpenBSD: patch-simpleclient_iaxcomm_ringer_cc,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
--- simpleclient/iaxcomm/ringer.cc.orig Sun Jun 6 14:01:31 2010
|
||||
+++ simpleclient/iaxcomm/ringer.cc Sun Jun 6 14:03:06 2010
|
||||
@@ -58,14 +58,18 @@
|
||||
#ifdef __WXGTK__
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/fcntl.h>
|
||||
+ #ifdef __OpenBSD__
|
||||
+ #include <dev/wscons/wsdisplay_usl_io.h>
|
||||
+ #else
|
||||
#include <linux/kd.h>
|
||||
+ #endif
|
||||
|
||||
static void Beep(int freq, int dur)
|
||||
{
|
||||
int fd;
|
||||
int arg;
|
||||
|
||||
- fd = open("/dev/tty0", O_RDONLY);
|
||||
+ fd = open("/dev/tty", O_RDONLY);
|
||||
arg = (dur<<16)+(1193180/freq);
|
||||
ioctl(fd,KDMKTONE,arg);
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-simpleclient_tkphone_Makefile_in,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
--- simpleclient/tkphone/Makefile.in.orig Sun Nov 15 13:09:13 2009
|
||||
+++ simpleclient/tkphone/Makefile.in Sun Nov 15 13:09:31 2009
|
||||
@@ -251,7 +251,7 @@ top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
|
||||
# Should support LINUX MACOSX WIN32 SOLARIS FREEBSD
|
||||
-bin_SCRIPTS = tkphone
|
||||
+bin_SCRIPTS = tkiaxphone
|
||||
iaxcli_SOURCES = iaxcli.c tones.c tones.h
|
||||
iaxclidir = ${libdir}/iaxclient/tkphone
|
||||
iaxcli_SCRIPTS = tkiaxphone
|
@ -0,0 +1,33 @@
|
||||
$OpenBSD: patch-simpleclient_tkphone_iaxcli_c,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
Just use the 1, otherwise we would have "too many arguments to function `iaxc_initialize'"
|
||||
and some variable initialization reshuffling to be able to build with gcc-2.95
|
||||
--- simpleclient/tkphone/iaxcli.c.orig Mon Apr 7 18:05:28 2008
|
||||
+++ simpleclient/tkphone/iaxcli.c Wed Jun 16 14:36:19 2010
|
||||
@@ -413,7 +413,7 @@ int main(int argc, char **argv) {
|
||||
#endif
|
||||
|
||||
atexit(iaxc_shutdown); /* activate the exit handler */
|
||||
- if (iaxc_initialize(AUDIO_INTERNAL_PA,1)) {
|
||||
+ if (iaxc_initialize(1)) {
|
||||
fatal_error("cannot initialize iaxclient!");
|
||||
}
|
||||
|
||||
@@ -478,6 +478,8 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
break;
|
||||
case 'R': { /* ring [o(ff)|<ms>] [<vol %>] */
|
||||
+ struct iaxc_sound sound; /* sound to play */
|
||||
+ int repeat;
|
||||
if (token && *token == 'o') {
|
||||
if (sound_id != -1) {
|
||||
iaxc_stop_sound(sound_id);
|
||||
@@ -491,8 +493,7 @@ int main(int argc, char **argv) {
|
||||
value = token ? atoi(token) : 0; /* duration in ms */
|
||||
arg = strtok(NULL, DELIM); /* volume in % */
|
||||
|
||||
- struct iaxc_sound sound; /* sound to play */
|
||||
- int repeat = -1; /* -1 => forever (or 'til ring off) */
|
||||
+ repeat = -1; /* -1 => forever (or 'til ring off) */
|
||||
|
||||
gen_ring_samples(arg ? atoi(arg) : 90);
|
||||
|
@ -0,0 +1,35 @@
|
||||
$OpenBSD: patch-simpleclient_tkphone_tkiaxphone,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
--- simpleclient/tkphone/tkiaxphone.orig Mon Apr 7 17:05:28 2008
|
||||
+++ simpleclient/tkphone/tkiaxphone Wed Dec 9 23:54:06 2009
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/bash
|
||||
+#!/bin/sh
|
||||
# TK interface to iax client library command line interface.
|
||||
# Copyright 2004-2005 Sun Microsystems, by Stephen Uhler.
|
||||
# see License for license terms
|
||||
@@ -49,11 +49,11 @@ if {$tcl_platform(platform) == "windows"} {
|
||||
}
|
||||
|
||||
# uname -m -s seems to be the most x-plaform on unices
|
||||
-if {$tcl_platform(platform) == "unix"} {
|
||||
- set ext -[exec uname -s]-[exec uname -m]
|
||||
- set platform(pref_format) ".%src"
|
||||
- append platform(cli_cmd) $ext
|
||||
-}
|
||||
+#if {$tcl_platform(platform) == "unix"} {
|
||||
+# set ext -[exec uname -s]-[exec uname -m]
|
||||
+# set platform(pref_format) ".%src"
|
||||
+# append platform(cli_cmd) $ext
|
||||
+#}
|
||||
|
||||
# verify sufficient tk version number (need spinbox)
|
||||
|
||||
@@ -86,7 +86,7 @@ proc real_path {file} {
|
||||
if {[info exists env(IAXPHONEHOME)]} {
|
||||
set base $env(IAXPHONEHOME)
|
||||
} else {
|
||||
- set base [file dirname [file join [pwd] $argv0]]
|
||||
+ set base "${LOCALBASE}/lib/iaxclient/tkphone"
|
||||
}
|
||||
set result [file join $base $file]
|
||||
debug "$result"
|
1
telephony/iaxclient/pkg/DESCR-iaxcomm
Normal file
1
telephony/iaxclient/pkg/DESCR-iaxcomm
Normal file
@ -0,0 +1 @@
|
||||
iaxComm is an Open Source softphone for the Asterisk PBX.
|
3
telephony/iaxclient/pkg/DESCR-main
Normal file
3
telephony/iaxclient/pkg/DESCR-main
Normal file
@ -0,0 +1,3 @@
|
||||
A lightweight cross platform IP telephony client using
|
||||
the IAX protocol, designed for use with the asterisk
|
||||
open source PBX.
|
3
telephony/iaxclient/pkg/DESCR-tcl
Normal file
3
telephony/iaxclient/pkg/DESCR-tcl
Normal file
@ -0,0 +1,3 @@
|
||||
A lightweight cross platform IP telephony client using
|
||||
the IAX protocol, designed for use with the Asterisk
|
||||
open source PBX. This package contains the Tcl bindings.
|
2
telephony/iaxclient/pkg/PFRAG.shared-main
Normal file
2
telephony/iaxclient/pkg/PFRAG.shared-main
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.shared-main,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
@lib lib/libiaxclient.so.${LIBiaxclient_VERSION}
|
2
telephony/iaxclient/pkg/PFRAG.shared-tcl
Normal file
2
telephony/iaxclient/pkg/PFRAG.shared-tcl
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.shared-tcl,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
@lib lib/tcliaxclient0.2/libtcliaxclient02.so.${LIBtcliaxclient02_VERSION}
|
27
telephony/iaxclient/pkg/PLIST-iaxcomm
Normal file
27
telephony/iaxclient/pkg/PLIST-iaxcomm
Normal file
@ -0,0 +1,27 @@
|
||||
@comment $OpenBSD: PLIST-iaxcomm,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
@bin bin/iaxcomm
|
||||
share/iaxcomm/
|
||||
share/iaxcomm/iaxcomm.htb
|
||||
share/iaxcomm/rc/
|
||||
share/iaxcomm/rc/accounts.xrc
|
||||
share/iaxcomm/rc/application.ico
|
||||
share/iaxcomm/rc/bitmaps/
|
||||
share/iaxcomm/rc/bitmaps/KP0.bmp
|
||||
share/iaxcomm/rc/bitmaps/KP1.bmp
|
||||
share/iaxcomm/rc/bitmaps/KP2.bmp
|
||||
share/iaxcomm/rc/bitmaps/KP3.bmp
|
||||
share/iaxcomm/rc/bitmaps/KP4.bmp
|
||||
share/iaxcomm/rc/bitmaps/KP5.bmp
|
||||
share/iaxcomm/rc/bitmaps/KP6.bmp
|
||||
share/iaxcomm/rc/bitmaps/KP7.bmp
|
||||
share/iaxcomm/rc/bitmaps/KP8.bmp
|
||||
share/iaxcomm/rc/bitmaps/KP9.bmp
|
||||
share/iaxcomm/rc/bitmaps/KPPOUND.bmp
|
||||
share/iaxcomm/rc/bitmaps/KPSTAR.bmp
|
||||
share/iaxcomm/rc/devices.xrc
|
||||
share/iaxcomm/rc/directory.xrc
|
||||
share/iaxcomm/rc/frame.xrc
|
||||
share/iaxcomm/rc/logo.xpm
|
||||
share/iaxcomm/rc/menubar.xrc
|
||||
share/iaxcomm/rc/panel.xrc
|
||||
share/iaxcomm/rc/prefs.xrc
|
9
telephony/iaxclient/pkg/PLIST-main
Normal file
9
telephony/iaxclient/pkg/PLIST-main
Normal file
@ -0,0 +1,9 @@
|
||||
@comment $OpenBSD: PLIST-main,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
%%SHARED%%
|
||||
@sample ${SYSCONFDIR}/iaxmodem/
|
||||
@bin bin/testcall
|
||||
include/iaxclient.h
|
||||
lib/libiaxclient.a
|
||||
lib/libiaxclient.la
|
||||
lib/pkgconfig/
|
||||
lib/pkgconfig/iaxclient.pc
|
16
telephony/iaxclient/pkg/PLIST-tcl
Normal file
16
telephony/iaxclient/pkg/PLIST-tcl
Normal file
@ -0,0 +1,16 @@
|
||||
@comment $OpenBSD: PLIST-tcl,v 1.1 2010/06/18 17:32:21 sebastia Exp $
|
||||
%%SHARED%%
|
||||
bin/tkiaxphone
|
||||
lib/iaxclient/
|
||||
lib/iaxclient/tkphone/
|
||||
@bin lib/iaxclient/tkphone/iaxcli
|
||||
lib/iaxclient/tkphone/monitor.ui
|
||||
lib/iaxclient/tkphone/monitor.ui.tcl
|
||||
lib/iaxclient/tkphone/phone.ui
|
||||
lib/iaxclient/tkphone/phone.ui.tcl
|
||||
lib/iaxclient/tkphone/pref.ui
|
||||
lib/iaxclient/tkphone/pref.ui.tcl
|
||||
lib/iaxclient/tkphone/tkiaxphone
|
||||
lib/tcliaxclient0.2/
|
||||
lib/tcliaxclient0.2/iaxclient.tcl
|
||||
lib/tcliaxclient0.2/pkgIndex.tcl
|
Loading…
x
Reference in New Issue
Block a user