mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
o Provide rc.d script;
o Fix build on 5.2.1. Submitted by: Marat N.Afanasyev <amarat@ksu.ru>
This commit is contained in:
parent
8a2f81433d
commit
eb61df704e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125397
28 changed files with 476 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= asterisk
|
PORTNAME= asterisk
|
||||||
PORTVERSION= 1.0.2
|
PORTVERSION= 1.0.2
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
|
MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
|
||||||
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
|
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
|
||||||
|
@ -24,6 +25,7 @@ GNU_CONFIGURE= yes
|
||||||
CONFIGURE_WRKSRC= ${WRKSRC}/editline
|
CONFIGURE_WRKSRC= ${WRKSRC}/editline
|
||||||
USE_GMAKE= yes
|
USE_GMAKE= yes
|
||||||
USE_BISON= yes
|
USE_BISON= yes
|
||||||
|
USE_RC_SUBR= yes
|
||||||
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
||||||
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
||||||
MKDIR="${MKDIR}" \
|
MKDIR="${MKDIR}" \
|
||||||
|
@ -59,4 +61,7 @@ RUN_DEPENDS+= ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel
|
||||||
PLIST_SUB+= WITH_ZAPTEL=""
|
PLIST_SUB+= WITH_ZAPTEL=""
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
@${INSTALL_SCRIPT} ${FILESDIR}/asterisk.sh ${PREFIX}/etc/rc.d
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
25
net/asterisk-bristuff/files/asterisk.sh
Normal file
25
net/asterisk-bristuff/files/asterisk.sh
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# PROVIDE asterisk
|
||||||
|
# REQUIRE: NETWORKING SERVERS
|
||||||
|
# BEFORE: DAEMON
|
||||||
|
# KEYWORD: FreeBSD shutdown
|
||||||
|
|
||||||
|
#
|
||||||
|
# Add the following lines to /etc/rc.conf to enable asterisk:
|
||||||
|
#
|
||||||
|
# asterisk_enable="YES"
|
||||||
|
#
|
||||||
|
|
||||||
|
. /etc/rc.subr
|
||||||
|
|
||||||
|
name=asterisk
|
||||||
|
rcvar=`set_rcvar`
|
||||||
|
|
||||||
|
command=/usr/local/sbin/asterisk
|
||||||
|
pidfile=/var/run/asterisk.pid
|
||||||
|
|
||||||
|
asterisk_enable=${asterisk_enable:-"NO"}
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
run_rc_command "$1"
|
|
@ -0,0 +1,37 @@
|
||||||
|
|
||||||
|
$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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -124,6 +124,7 @@ etc/asterisk/vpb.conf-dist
|
||||||
@unexec if cmp -s %D/etc/asterisk/zapata.conf %D/etc/asterisk/zapata.conf-dist; then rm -f %D/etc/asterisk/zapata.conf; fi
|
@unexec if cmp -s %D/etc/asterisk/zapata.conf %D/etc/asterisk/zapata.conf-dist; then rm -f %D/etc/asterisk/zapata.conf; fi
|
||||||
etc/asterisk/zapata.conf-dist
|
etc/asterisk/zapata.conf-dist
|
||||||
@exec [ -f %B/zapata.conf ] || cp %B/%f %B/zapata.conf
|
@exec [ -f %B/zapata.conf ] || cp %B/%f %B/zapata.conf
|
||||||
|
etc/rc.d/asterisk.sh
|
||||||
include/asterisk/acl.h
|
include/asterisk/acl.h
|
||||||
include/asterisk/adsi.h
|
include/asterisk/adsi.h
|
||||||
include/asterisk/aes.h
|
include/asterisk/aes.h
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= asterisk
|
PORTNAME= asterisk
|
||||||
PORTVERSION= 1.0.2
|
PORTVERSION= 1.0.2
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
|
MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
|
||||||
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
|
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
|
||||||
|
@ -24,6 +25,7 @@ GNU_CONFIGURE= yes
|
||||||
CONFIGURE_WRKSRC= ${WRKSRC}/editline
|
CONFIGURE_WRKSRC= ${WRKSRC}/editline
|
||||||
USE_GMAKE= yes
|
USE_GMAKE= yes
|
||||||
USE_BISON= yes
|
USE_BISON= yes
|
||||||
|
USE_RC_SUBR= yes
|
||||||
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
||||||
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
||||||
MKDIR="${MKDIR}" \
|
MKDIR="${MKDIR}" \
|
||||||
|
@ -59,4 +61,7 @@ RUN_DEPENDS+= ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel
|
||||||
PLIST_SUB+= WITH_ZAPTEL=""
|
PLIST_SUB+= WITH_ZAPTEL=""
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
@${INSTALL_SCRIPT} ${FILESDIR}/asterisk.sh ${PREFIX}/etc/rc.d
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
25
net/asterisk-devel/files/asterisk.sh
Normal file
25
net/asterisk-devel/files/asterisk.sh
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# PROVIDE asterisk
|
||||||
|
# REQUIRE: NETWORKING SERVERS
|
||||||
|
# BEFORE: DAEMON
|
||||||
|
# KEYWORD: FreeBSD shutdown
|
||||||
|
|
||||||
|
#
|
||||||
|
# Add the following lines to /etc/rc.conf to enable asterisk:
|
||||||
|
#
|
||||||
|
# asterisk_enable="YES"
|
||||||
|
#
|
||||||
|
|
||||||
|
. /etc/rc.subr
|
||||||
|
|
||||||
|
name=asterisk
|
||||||
|
rcvar=`set_rcvar`
|
||||||
|
|
||||||
|
command=/usr/local/sbin/asterisk
|
||||||
|
pidfile=/var/run/asterisk.pid
|
||||||
|
|
||||||
|
asterisk_enable=${asterisk_enable:-"NO"}
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
run_rc_command "$1"
|
37
net/asterisk-devel/files/patch-channels::h323::ast_h323.cpp
Normal file
37
net/asterisk-devel/files/patch-channels::h323::ast_h323.cpp
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
|
||||||
|
$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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -124,6 +124,7 @@ etc/asterisk/vpb.conf-dist
|
||||||
@unexec if cmp -s %D/etc/asterisk/zapata.conf %D/etc/asterisk/zapata.conf-dist; then rm -f %D/etc/asterisk/zapata.conf; fi
|
@unexec if cmp -s %D/etc/asterisk/zapata.conf %D/etc/asterisk/zapata.conf-dist; then rm -f %D/etc/asterisk/zapata.conf; fi
|
||||||
etc/asterisk/zapata.conf-dist
|
etc/asterisk/zapata.conf-dist
|
||||||
@exec [ -f %B/zapata.conf ] || cp %B/%f %B/zapata.conf
|
@exec [ -f %B/zapata.conf ] || cp %B/%f %B/zapata.conf
|
||||||
|
etc/rc.d/asterisk.sh
|
||||||
include/asterisk/acl.h
|
include/asterisk/acl.h
|
||||||
include/asterisk/adsi.h
|
include/asterisk/adsi.h
|
||||||
include/asterisk/aes.h
|
include/asterisk/aes.h
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= asterisk
|
PORTNAME= asterisk
|
||||||
PORTVERSION= 1.0.2
|
PORTVERSION= 1.0.2
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
|
MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
|
||||||
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
|
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
|
||||||
|
@ -24,6 +25,7 @@ GNU_CONFIGURE= yes
|
||||||
CONFIGURE_WRKSRC= ${WRKSRC}/editline
|
CONFIGURE_WRKSRC= ${WRKSRC}/editline
|
||||||
USE_GMAKE= yes
|
USE_GMAKE= yes
|
||||||
USE_BISON= yes
|
USE_BISON= yes
|
||||||
|
USE_RC_SUBR= yes
|
||||||
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
||||||
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
||||||
MKDIR="${MKDIR}" \
|
MKDIR="${MKDIR}" \
|
||||||
|
@ -59,4 +61,7 @@ RUN_DEPENDS+= ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel
|
||||||
PLIST_SUB+= WITH_ZAPTEL=""
|
PLIST_SUB+= WITH_ZAPTEL=""
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
@${INSTALL_SCRIPT} ${FILESDIR}/asterisk.sh ${PREFIX}/etc/rc.d
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
25
net/asterisk/files/asterisk.sh
Normal file
25
net/asterisk/files/asterisk.sh
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# PROVIDE asterisk
|
||||||
|
# REQUIRE: NETWORKING SERVERS
|
||||||
|
# BEFORE: DAEMON
|
||||||
|
# KEYWORD: FreeBSD shutdown
|
||||||
|
|
||||||
|
#
|
||||||
|
# Add the following lines to /etc/rc.conf to enable asterisk:
|
||||||
|
#
|
||||||
|
# asterisk_enable="YES"
|
||||||
|
#
|
||||||
|
|
||||||
|
. /etc/rc.subr
|
||||||
|
|
||||||
|
name=asterisk
|
||||||
|
rcvar=`set_rcvar`
|
||||||
|
|
||||||
|
command=/usr/local/sbin/asterisk
|
||||||
|
pidfile=/var/run/asterisk.pid
|
||||||
|
|
||||||
|
asterisk_enable=${asterisk_enable:-"NO"}
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
run_rc_command "$1"
|
37
net/asterisk/files/patch-channels::h323::ast_h323.cpp
Normal file
37
net/asterisk/files/patch-channels::h323::ast_h323.cpp
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
|
||||||
|
$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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -124,6 +124,7 @@ etc/asterisk/vpb.conf-dist
|
||||||
@unexec if cmp -s %D/etc/asterisk/zapata.conf %D/etc/asterisk/zapata.conf-dist; then rm -f %D/etc/asterisk/zapata.conf; fi
|
@unexec if cmp -s %D/etc/asterisk/zapata.conf %D/etc/asterisk/zapata.conf-dist; then rm -f %D/etc/asterisk/zapata.conf; fi
|
||||||
etc/asterisk/zapata.conf-dist
|
etc/asterisk/zapata.conf-dist
|
||||||
@exec [ -f %B/zapata.conf ] || cp %B/%f %B/zapata.conf
|
@exec [ -f %B/zapata.conf ] || cp %B/%f %B/zapata.conf
|
||||||
|
etc/rc.d/asterisk.sh
|
||||||
include/asterisk/acl.h
|
include/asterisk/acl.h
|
||||||
include/asterisk/adsi.h
|
include/asterisk/adsi.h
|
||||||
include/asterisk/aes.h
|
include/asterisk/aes.h
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= asterisk
|
PORTNAME= asterisk
|
||||||
PORTVERSION= 1.0.2
|
PORTVERSION= 1.0.2
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
|
MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
|
||||||
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
|
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
|
||||||
|
@ -24,6 +25,7 @@ GNU_CONFIGURE= yes
|
||||||
CONFIGURE_WRKSRC= ${WRKSRC}/editline
|
CONFIGURE_WRKSRC= ${WRKSRC}/editline
|
||||||
USE_GMAKE= yes
|
USE_GMAKE= yes
|
||||||
USE_BISON= yes
|
USE_BISON= yes
|
||||||
|
USE_RC_SUBR= yes
|
||||||
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
||||||
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
||||||
MKDIR="${MKDIR}" \
|
MKDIR="${MKDIR}" \
|
||||||
|
@ -59,4 +61,7 @@ RUN_DEPENDS+= ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel
|
||||||
PLIST_SUB+= WITH_ZAPTEL=""
|
PLIST_SUB+= WITH_ZAPTEL=""
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
@${INSTALL_SCRIPT} ${FILESDIR}/asterisk.sh ${PREFIX}/etc/rc.d
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
25
net/asterisk10/files/asterisk.sh
Normal file
25
net/asterisk10/files/asterisk.sh
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# PROVIDE asterisk
|
||||||
|
# REQUIRE: NETWORKING SERVERS
|
||||||
|
# BEFORE: DAEMON
|
||||||
|
# KEYWORD: FreeBSD shutdown
|
||||||
|
|
||||||
|
#
|
||||||
|
# Add the following lines to /etc/rc.conf to enable asterisk:
|
||||||
|
#
|
||||||
|
# asterisk_enable="YES"
|
||||||
|
#
|
||||||
|
|
||||||
|
. /etc/rc.subr
|
||||||
|
|
||||||
|
name=asterisk
|
||||||
|
rcvar=`set_rcvar`
|
||||||
|
|
||||||
|
command=/usr/local/sbin/asterisk
|
||||||
|
pidfile=/var/run/asterisk.pid
|
||||||
|
|
||||||
|
asterisk_enable=${asterisk_enable:-"NO"}
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
run_rc_command "$1"
|
37
net/asterisk10/files/patch-channels::h323::ast_h323.cpp
Normal file
37
net/asterisk10/files/patch-channels::h323::ast_h323.cpp
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
|
||||||
|
$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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -124,6 +124,7 @@ etc/asterisk/vpb.conf-dist
|
||||||
@unexec if cmp -s %D/etc/asterisk/zapata.conf %D/etc/asterisk/zapata.conf-dist; then rm -f %D/etc/asterisk/zapata.conf; fi
|
@unexec if cmp -s %D/etc/asterisk/zapata.conf %D/etc/asterisk/zapata.conf-dist; then rm -f %D/etc/asterisk/zapata.conf; fi
|
||||||
etc/asterisk/zapata.conf-dist
|
etc/asterisk/zapata.conf-dist
|
||||||
@exec [ -f %B/zapata.conf ] || cp %B/%f %B/zapata.conf
|
@exec [ -f %B/zapata.conf ] || cp %B/%f %B/zapata.conf
|
||||||
|
etc/rc.d/asterisk.sh
|
||||||
include/asterisk/acl.h
|
include/asterisk/acl.h
|
||||||
include/asterisk/adsi.h
|
include/asterisk/adsi.h
|
||||||
include/asterisk/aes.h
|
include/asterisk/aes.h
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= asterisk
|
PORTNAME= asterisk
|
||||||
PORTVERSION= 1.0.2
|
PORTVERSION= 1.0.2
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
|
MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
|
||||||
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
|
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
|
||||||
|
@ -24,6 +25,7 @@ GNU_CONFIGURE= yes
|
||||||
CONFIGURE_WRKSRC= ${WRKSRC}/editline
|
CONFIGURE_WRKSRC= ${WRKSRC}/editline
|
||||||
USE_GMAKE= yes
|
USE_GMAKE= yes
|
||||||
USE_BISON= yes
|
USE_BISON= yes
|
||||||
|
USE_RC_SUBR= yes
|
||||||
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
||||||
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
||||||
MKDIR="${MKDIR}" \
|
MKDIR="${MKDIR}" \
|
||||||
|
@ -59,4 +61,7 @@ RUN_DEPENDS+= ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel
|
||||||
PLIST_SUB+= WITH_ZAPTEL=""
|
PLIST_SUB+= WITH_ZAPTEL=""
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
@${INSTALL_SCRIPT} ${FILESDIR}/asterisk.sh ${PREFIX}/etc/rc.d
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
25
net/asterisk12/files/asterisk.sh
Normal file
25
net/asterisk12/files/asterisk.sh
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# PROVIDE asterisk
|
||||||
|
# REQUIRE: NETWORKING SERVERS
|
||||||
|
# BEFORE: DAEMON
|
||||||
|
# KEYWORD: FreeBSD shutdown
|
||||||
|
|
||||||
|
#
|
||||||
|
# Add the following lines to /etc/rc.conf to enable asterisk:
|
||||||
|
#
|
||||||
|
# asterisk_enable="YES"
|
||||||
|
#
|
||||||
|
|
||||||
|
. /etc/rc.subr
|
||||||
|
|
||||||
|
name=asterisk
|
||||||
|
rcvar=`set_rcvar`
|
||||||
|
|
||||||
|
command=/usr/local/sbin/asterisk
|
||||||
|
pidfile=/var/run/asterisk.pid
|
||||||
|
|
||||||
|
asterisk_enable=${asterisk_enable:-"NO"}
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
run_rc_command "$1"
|
37
net/asterisk12/files/patch-channels::h323::ast_h323.cpp
Normal file
37
net/asterisk12/files/patch-channels::h323::ast_h323.cpp
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
|
||||||
|
$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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -124,6 +124,7 @@ etc/asterisk/vpb.conf-dist
|
||||||
@unexec if cmp -s %D/etc/asterisk/zapata.conf %D/etc/asterisk/zapata.conf-dist; then rm -f %D/etc/asterisk/zapata.conf; fi
|
@unexec if cmp -s %D/etc/asterisk/zapata.conf %D/etc/asterisk/zapata.conf-dist; then rm -f %D/etc/asterisk/zapata.conf; fi
|
||||||
etc/asterisk/zapata.conf-dist
|
etc/asterisk/zapata.conf-dist
|
||||||
@exec [ -f %B/zapata.conf ] || cp %B/%f %B/zapata.conf
|
@exec [ -f %B/zapata.conf ] || cp %B/%f %B/zapata.conf
|
||||||
|
etc/rc.d/asterisk.sh
|
||||||
include/asterisk/acl.h
|
include/asterisk/acl.h
|
||||||
include/asterisk/adsi.h
|
include/asterisk/adsi.h
|
||||||
include/asterisk/aes.h
|
include/asterisk/aes.h
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= asterisk
|
PORTNAME= asterisk
|
||||||
PORTVERSION= 1.0.2
|
PORTVERSION= 1.0.2
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
|
MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
|
||||||
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
|
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
|
||||||
|
@ -24,6 +25,7 @@ GNU_CONFIGURE= yes
|
||||||
CONFIGURE_WRKSRC= ${WRKSRC}/editline
|
CONFIGURE_WRKSRC= ${WRKSRC}/editline
|
||||||
USE_GMAKE= yes
|
USE_GMAKE= yes
|
||||||
USE_BISON= yes
|
USE_BISON= yes
|
||||||
|
USE_RC_SUBR= yes
|
||||||
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
||||||
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
||||||
MKDIR="${MKDIR}" \
|
MKDIR="${MKDIR}" \
|
||||||
|
@ -59,4 +61,7 @@ RUN_DEPENDS+= ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel
|
||||||
PLIST_SUB+= WITH_ZAPTEL=""
|
PLIST_SUB+= WITH_ZAPTEL=""
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
@${INSTALL_SCRIPT} ${FILESDIR}/asterisk.sh ${PREFIX}/etc/rc.d
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
25
net/asterisk14/files/asterisk.sh
Normal file
25
net/asterisk14/files/asterisk.sh
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# PROVIDE asterisk
|
||||||
|
# REQUIRE: NETWORKING SERVERS
|
||||||
|
# BEFORE: DAEMON
|
||||||
|
# KEYWORD: FreeBSD shutdown
|
||||||
|
|
||||||
|
#
|
||||||
|
# Add the following lines to /etc/rc.conf to enable asterisk:
|
||||||
|
#
|
||||||
|
# asterisk_enable="YES"
|
||||||
|
#
|
||||||
|
|
||||||
|
. /etc/rc.subr
|
||||||
|
|
||||||
|
name=asterisk
|
||||||
|
rcvar=`set_rcvar`
|
||||||
|
|
||||||
|
command=/usr/local/sbin/asterisk
|
||||||
|
pidfile=/var/run/asterisk.pid
|
||||||
|
|
||||||
|
asterisk_enable=${asterisk_enable:-"NO"}
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
run_rc_command "$1"
|
37
net/asterisk14/files/patch-channels::h323::ast_h323.cpp
Normal file
37
net/asterisk14/files/patch-channels::h323::ast_h323.cpp
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
|
||||||
|
$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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -124,6 +124,7 @@ etc/asterisk/vpb.conf-dist
|
||||||
@unexec if cmp -s %D/etc/asterisk/zapata.conf %D/etc/asterisk/zapata.conf-dist; then rm -f %D/etc/asterisk/zapata.conf; fi
|
@unexec if cmp -s %D/etc/asterisk/zapata.conf %D/etc/asterisk/zapata.conf-dist; then rm -f %D/etc/asterisk/zapata.conf; fi
|
||||||
etc/asterisk/zapata.conf-dist
|
etc/asterisk/zapata.conf-dist
|
||||||
@exec [ -f %B/zapata.conf ] || cp %B/%f %B/zapata.conf
|
@exec [ -f %B/zapata.conf ] || cp %B/%f %B/zapata.conf
|
||||||
|
etc/rc.d/asterisk.sh
|
||||||
include/asterisk/acl.h
|
include/asterisk/acl.h
|
||||||
include/asterisk/adsi.h
|
include/asterisk/adsi.h
|
||||||
include/asterisk/aes.h
|
include/asterisk/aes.h
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= asterisk
|
PORTNAME= asterisk
|
||||||
PORTVERSION= 1.0.2
|
PORTVERSION= 1.0.2
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
|
MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
|
||||||
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
|
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
|
||||||
|
@ -24,6 +25,7 @@ GNU_CONFIGURE= yes
|
||||||
CONFIGURE_WRKSRC= ${WRKSRC}/editline
|
CONFIGURE_WRKSRC= ${WRKSRC}/editline
|
||||||
USE_GMAKE= yes
|
USE_GMAKE= yes
|
||||||
USE_BISON= yes
|
USE_BISON= yes
|
||||||
|
USE_RC_SUBR= yes
|
||||||
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
||||||
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
||||||
MKDIR="${MKDIR}" \
|
MKDIR="${MKDIR}" \
|
||||||
|
@ -59,4 +61,7 @@ RUN_DEPENDS+= ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel
|
||||||
PLIST_SUB+= WITH_ZAPTEL=""
|
PLIST_SUB+= WITH_ZAPTEL=""
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
@${INSTALL_SCRIPT} ${FILESDIR}/asterisk.sh ${PREFIX}/etc/rc.d
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
25
net/asterisk16/files/asterisk.sh
Normal file
25
net/asterisk16/files/asterisk.sh
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# PROVIDE asterisk
|
||||||
|
# REQUIRE: NETWORKING SERVERS
|
||||||
|
# BEFORE: DAEMON
|
||||||
|
# KEYWORD: FreeBSD shutdown
|
||||||
|
|
||||||
|
#
|
||||||
|
# Add the following lines to /etc/rc.conf to enable asterisk:
|
||||||
|
#
|
||||||
|
# asterisk_enable="YES"
|
||||||
|
#
|
||||||
|
|
||||||
|
. /etc/rc.subr
|
||||||
|
|
||||||
|
name=asterisk
|
||||||
|
rcvar=`set_rcvar`
|
||||||
|
|
||||||
|
command=/usr/local/sbin/asterisk
|
||||||
|
pidfile=/var/run/asterisk.pid
|
||||||
|
|
||||||
|
asterisk_enable=${asterisk_enable:-"NO"}
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
run_rc_command "$1"
|
37
net/asterisk16/files/patch-channels::h323::ast_h323.cpp
Normal file
37
net/asterisk16/files/patch-channels::h323::ast_h323.cpp
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
|
||||||
|
$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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -124,6 +124,7 @@ etc/asterisk/vpb.conf-dist
|
||||||
@unexec if cmp -s %D/etc/asterisk/zapata.conf %D/etc/asterisk/zapata.conf-dist; then rm -f %D/etc/asterisk/zapata.conf; fi
|
@unexec if cmp -s %D/etc/asterisk/zapata.conf %D/etc/asterisk/zapata.conf-dist; then rm -f %D/etc/asterisk/zapata.conf; fi
|
||||||
etc/asterisk/zapata.conf-dist
|
etc/asterisk/zapata.conf-dist
|
||||||
@exec [ -f %B/zapata.conf ] || cp %B/%f %B/zapata.conf
|
@exec [ -f %B/zapata.conf ] || cp %B/%f %B/zapata.conf
|
||||||
|
etc/rc.d/asterisk.sh
|
||||||
include/asterisk/acl.h
|
include/asterisk/acl.h
|
||||||
include/asterisk/adsi.h
|
include/asterisk/adsi.h
|
||||||
include/asterisk/aes.h
|
include/asterisk/aes.h
|
||||||
|
|
Loading…
Add table
Reference in a new issue