summaryrefslogtreecommitdiff
path: root/net/asterisk14
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--net/asterisk14-addons/Makefile47
-rw-r--r--net/asterisk14-addons/distinfo3
-rw-r--r--net/asterisk14-addons/files/codecnego.diff215
-rw-r--r--net/asterisk14-addons/files/patch-Makefile11
-rw-r--r--net/asterisk14-addons/pkg-descr5
-rw-r--r--net/asterisk14-addons/pkg-plist8
-rw-r--r--net/asterisk14/Makefile183
-rw-r--r--net/asterisk14/distinfo6
-rw-r--r--net/asterisk14/files/asterisk.sh.in33
-rw-r--r--net/asterisk14/files/codecnego-patch-Makefile207
-rw-r--r--net/asterisk14/files/dtmf_debug.diff225
-rw-r--r--net/asterisk14/files/feature_disconnect.diff292
-rw-r--r--net/asterisk14/files/nocodecnego-patch-Makefile207
-rw-r--r--net/asterisk14/files/patch-agi::Makefile25
-rw-r--r--net/asterisk14/files/patch-channels::Makefile35
-rw-r--r--net/asterisk14/files/patch-channels::chan_sip.c54
-rw-r--r--net/asterisk14/files/patch-channels::chan_zap.c80
-rw-r--r--net/asterisk14/files/patch-channels::h323::ast_h323.cxx29
-rw-r--r--net/asterisk14/files/patch-configure71
-rw-r--r--net/asterisk14/files/patch-include::asterisk::utils.h13
-rw-r--r--net/asterisk14/files/patch-main::Makefile22
-rw-r--r--net/asterisk14/files/patch-main::db.c21
-rw-r--r--net/asterisk14/files/patch-main::frame.c14
-rw-r--r--net/asterisk14/files/patch-main::manager.c31
-rw-r--r--net/asterisk14/files/rtp_force_dtmf-codecnego.diff86
-rw-r--r--net/asterisk14/files/rtp_force_dtmf-nocodecnego.diff70
-rw-r--r--net/asterisk14/files/sip_force_callid.diff12
-rw-r--r--net/asterisk14/pkg-descr5
-rw-r--r--net/asterisk14/pkg-plist863
29 files changed, 0 insertions, 2873 deletions
diff --git a/net/asterisk14-addons/Makefile b/net/asterisk14-addons/Makefile
deleted file mode 100644
index 59df206e6025..000000000000
--- a/net/asterisk14-addons/Makefile
+++ /dev/null
@@ -1,47 +0,0 @@
-# New ports collection makefile for: asterisk-addons
-# Date created: 23 March 2006
-# Whom: Fabian Gast <fgast@only640k.org>
-#
-# $FreeBSD$
-#
-
-PORTNAME= asterisk-addons
-PORTVERSION= 1.4.6
-PORTREVISION= 1
-CATEGORIES= net
-MASTER_SITES= http://ftp.digium.com/pub/asterisk/releases/
-
-MAINTAINER= pneumann@gmail.com
-COMMENT= GPL modules for the Asterisk Open Source PBX
-
-BUILD_DEPENDS= asterisk:${PORTSDIR}/net/asterisk
-RUN_DEPENDS= asterisk:${PORTSDIR}/net/asterisk
-
-OPTIONS= SAMPLE_CONFIG "Install sample configuration files" off
-
-ONLY_FOR_ARCHS= i386 amd64 powerpc
-USE_AUTOTOOLS= libtool:15
-USE_MYSQL= yes
-USE_GMAKE= yes
-GNU_CONFIGURE= yes
-
-.include <bsd.port.pre.mk>
-
-.if defined(WITH_SAMPLE_CONFIG)
-PLIST_SUB+= SAMPLE_CONFIG=""
-.else
-PLIST_SUB+= SAMPLE_CONFIG="@comment "
-.endif
-
-pre-configure:
- if ${GREP} -sq fixup_codecs ${LOCALBASE}/include/asterisk/channel.h; \
- then \
- ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/codecnego.diff; \
- fi
-
-post-install:
-.if defined(WITH_SAMPLE_CONFIG)
- @cd ${WRKSRC} && ${GMAKE} samples
-.endif
-
-.include <bsd.port.post.mk>
diff --git a/net/asterisk14-addons/distinfo b/net/asterisk14-addons/distinfo
deleted file mode 100644
index 89c6fc1fcbae..000000000000
--- a/net/asterisk14-addons/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 (asterisk-addons-1.4.6.tar.gz) = e9240dfbcbeca8c60d5f9704d1135e14
-SHA256 (asterisk-addons-1.4.6.tar.gz) = af7c0258837a9f211ecbb58c47cd1a793e943577f37e8e47155e8d07b0c93a73
-SIZE (asterisk-addons-1.4.6.tar.gz) = 798869
diff --git a/net/asterisk14-addons/files/codecnego.diff b/net/asterisk14-addons/files/codecnego.diff
deleted file mode 100644
index 0cfe569b41ea..000000000000
--- a/net/asterisk14-addons/files/codecnego.diff
+++ /dev/null
@@ -1,215 +0,0 @@
---- channels/chan_ooh323.c.orig 2007-07-21 15:17:52.000000000 +0800
-+++ channels/chan_ooh323.c 2008-02-13 15:37:17.000000000 +0800
-@@ -42,8 +42,8 @@
-
-
- /* Channel Definition */
--static struct ast_channel *ooh323_request(const char *type, int format,
-- void *data, int *cause);
-+static struct ast_channel *ooh323_request(const char *type, const struct ast_codec_pref *format, void *data, int *cause);
-+
- static int ooh323_digit_begin(struct ast_channel *ast, char digit);
- static int ooh323_digit_end(struct ast_channel *ast, char digit, unsigned int duration);
- static int ooh323_call(struct ast_channel *ast, char *dest, int timeout);
-@@ -57,8 +57,7 @@
-
- static enum ast_rtp_get_result ooh323_get_rtp_peer(struct ast_channel *chan, struct ast_rtp **rtp);
- static enum ast_rtp_get_result ooh323_get_vrtp_peer(struct ast_channel *chan, struct ast_rtp **rtp);
--static int ooh323_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp,
-- struct ast_rtp *vrtp, int codecs, int nat_active);
-+static int ooh323_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp, struct ast_rtp *vrtp, const struct ast_codec_pref *codecs, int nat_active);
-
- static void print_codec_to_cli(int fd, struct ast_codec_pref *pref);
- static void ast_ooh323c_exit();
-@@ -244,6 +243,7 @@
- {
- struct ast_channel *ch = NULL;
- int fmt;
-+ int cap;
- if(gH323Debug)
- ast_log(LOG_DEBUG, "--- ooh323_new - %s\n", host);
-
-@@ -258,10 +258,11 @@
- ast_mutex_lock(&ch->lock);
- ch->tech = &ooh323_tech;
-
-- ch->nativeformats = i->capability;
--
-+ ast_codec_pref_init(&ch->nativeformats);
-+ ast_codec_pref_append_missing2(&ch->nativeformats, i->capability);
-
-- fmt = ast_best_codec(ch->nativeformats);
-+ cap = ast_codec_pref_bits(&ch->nativeformats);
-+ fmt = ast_best_codec(cap);
-
- ch->fds[0] = ast_rtp_fd(i->rtp);
- ch->fds[1] = ast_rtcp_fd(i->rtp);
-@@ -451,8 +452,7 @@
- /*
- Possible data values - peername, exten/peername, exten@ip
- */
--static struct ast_channel *ooh323_request(const char *type, int format,
-- void *data, int *cause)
-+static struct ast_channel *ooh323_request(const char *type, const struct ast_codec_pref *formats, void *data, int *cause)
-
- {
- struct ast_channel *chan=NULL;
-@@ -461,22 +461,11 @@
- char *dest = NULL;
- char *ext = NULL;
- char tmp[256];
-- char formats[512];
-- int oldformat;
- char *sport = NULL;
- int port = 0;
-
- if(gH323Debug)
-- ast_verbose("--- ooh323_request - data %s format %s\n", (char*)data,
-- ast_getformatname_multiple(formats,512,format) );
--
-- oldformat = format;
-- format &= ((AST_FORMAT_MAX_AUDIO << 1) - 1);
-- if (!format) {
-- ast_log(LOG_NOTICE, "Asked to get a channel of unsupported format "
-- "'%d'\n", format);
-- return NULL;
-- }
-+ ast_verbose("--- ooh323_request - data %s format %s\n", (char*)data, ast_codec_pref_dump(tmp, sizeof(tmp), formats) );
-
- p = ooh323_alloc(0,0); /* Initial callRef is zero */
-
-@@ -536,8 +525,8 @@
- if(ext)
- strncpy(p->exten, ext, sizeof(p->exten)-1);
-
-- if(peer->capability & format)
-- p->capability = peer->capability & format;
-+ if(peer->capability & formats->audio_bits)
-+ p->capability = peer->capability & formats->audio_bits;
- else{
- p->capability = peer->capability;
- }
-@@ -971,11 +960,11 @@
-
- if(f->frametype == AST_FRAME_VOICE)
- {
-- if(!(f->subclass & ast->nativeformats))
-+ if(!(f->subclass & ast->nativeformats.audio_bits))
- {
- ast_log(LOG_WARNING, "Asked to transmit frame type %d, while native "
- "formats is %d (read/write = %d/%d)\n",
-- f->subclass, ast->nativeformats, ast->readformat,
-+ f->subclass, ast->nativeformats.audio_bits, ast->readformat,
- ast->writeformat);
- return 0;
- }
-@@ -2219,12 +2208,12 @@
- int x, codec;
-
- for(x = 0; x < 32 ; x++) {
-- codec = ast_codec_pref_index(pref, x);
-+ codec = ast_codec_pref_index_audio(pref, x);
- if (!codec)
- break;
- ast_cli(fd, "%s", ast_getformatname(codec));
-- ast_cli(fd, ":%d", pref->framing[x]);
-- if (x < 31 && ast_codec_pref_index(pref, x + 1))
-+ ast_cli(fd, ":%d", pref->audio_framing[x]);
-+ if (x < 31 && ast_codec_pref_index_audio(pref, x + 1))
- ast_cli(fd, ",");
- }
- if (!x)
-@@ -3020,13 +3009,13 @@
- (ooCallData *call, struct ast_codec_pref *prefs)
- {
- int i=0;
-- int codec = ast_codec_pref_index(prefs, i);
-+ int codec = ast_codec_pref_index_audio(prefs, i);
-
- ooResetCapPrefs(call);
- while(codec)
- {
- ooAppendCapToCapPrefs(call, ooh323_convertAsteriskCapToH323Cap(codec));
-- codec = ast_codec_pref_index(prefs, ++i);
-+ codec = ast_codec_pref_index_audio(prefs, ++i);
- }
-
- return 0;
-@@ -3058,7 +3047,7 @@
-
- static int ooh323_set_rtp_peer
- (struct ast_channel *chan, struct ast_rtp *rtp, struct ast_rtp *vrtp,
-- int codecs, int nat_active)
-+ const struct ast_codec_pref *codecs, int nat_active)
- {
- /* XXX Deal with Video */
- struct ooh323_pvt *p;
-@@ -3106,7 +3095,7 @@
- strncpy(mediaInfo.lMediaIP, ast_inet_ntoa(us.sin_addr), sizeof(mediaInfo.lMediaIP)-1);
- mediaInfo.lMediaPort = ntohs(us.sin_port);
- mediaInfo.lMediaCntrlPort = mediaInfo.lMediaPort +1;
-- for(x=0; 0 != (format=ast_codec_pref_index(&p->prefs, x)); x++)
-+ for(x=0; 0 != (format=ast_codec_pref_index_audio(&p->prefs, x)); x++)
- {
- strcpy(mediaInfo.dir, "transmit");
- mediaInfo.cap = ooh323_convertAsteriskCapToH323Cap(format);
-@@ -3250,10 +3239,11 @@
- /* We already hold the channel lock */
- if (f->frametype == AST_FRAME_VOICE)
- {
-- if (f->subclass != p->owner->nativeformats)
-+ if (!(f->subclass & p->owner->nativeformats.audio_bits))
- {
- ast_log(LOG_DEBUG, "Oooh, format changed to %d\n", f->subclass);
-- p->owner->nativeformats = f->subclass;
-+ ast_codec_pref_append(&p->owner->nativeformats, f->subclass);
-+ p->capability |= f->subclass;
- ast_set_read_format(p->owner, p->owner->readformat);
- ast_set_write_format(p->owner, p->owner->writeformat);
- }
---- channels/ooh323cDriver.c.orig 2007-01-20 06:27:05.000000000 +0800
-+++ channels/ooh323cDriver.c 2008-02-11 16:47:24.000000000 +0800
-@@ -66,7 +66,7 @@
- if(gH323Debug)
- ast_verbose("\tAdding capabilities to H323 endpoint\n");
-
-- for(x=0; 0 != (format=ast_codec_pref_index(prefs, x)); x++)
-+ for(x=0; 0 != (format=ast_codec_pref_index_audio(prefs, x)); x++)
- {
- if(format & AST_FORMAT_ULAW)
- {
-@@ -172,14 +172,14 @@
- ret |= ooCallEnableDTMFH245Signal(call);
-
-
-- for(x=0; 0 !=(format=ast_codec_pref_index(prefs, x)); x++)
-+ for(x=0; 0 !=(format=ast_codec_pref_index_audio(prefs, x)); x++)
- {
- if(format & AST_FORMAT_ULAW)
- {
- if(gH323Debug)
- ast_verbose("\tAdding g711 ulaw capability to call(%s, %s)\n",
- call->callType, call->callToken);
-- txframes = prefs->framing[x];
-+ txframes = prefs->audio_framing[x];
- ret= ooCallAddG711Capability(call, OO_G711ULAW64K, txframes,
- grxframes, OORXANDTX,
- &ooh323c_start_receive_channel,
-@@ -192,7 +192,7 @@
- if(gH323Debug)
- ast_verbose("\tAdding g711 alaw capability to call(%s, %s)\n",
- call->callType, call->callToken);
-- txframes = prefs->framing[x];
-+ txframes = prefs->audio_framing[x];
- ret= ooCallAddG711Capability(call, OO_G711ALAW64K, txframes,
- grxframes, OORXANDTX,
- &ooh323c_start_receive_channel,
-@@ -206,7 +206,7 @@
- if(gH323Debug)
- ast_verbose("\tAdding g729A capability to call(%s, %s)\n",
- call->callType, call->callToken);
-- txframes = (prefs->framing[x])/10;
-+ txframes = (prefs->audio_framing[x])/10;
- ret= ooCallAddG729Capability(call, OO_G729A, txframes, 24,
- OORXANDTX, &ooh323c_start_receive_channel,
- &ooh323c_start_transmit_channel,
diff --git a/net/asterisk14-addons/files/patch-Makefile b/net/asterisk14-addons/files/patch-Makefile
deleted file mode 100644
index 4bcc7f4e3115..000000000000
--- a/net/asterisk14-addons/files/patch-Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.orig Thu Feb 14 00:58:11 2008
-+++ Makefile Fri Feb 22 19:17:58 2008
-@@ -27,7 +27,7 @@
- # Overwite config files on "make samples"
- OVERWRITE:=y
-
--ASTCFLAGS+=-fPIC
-+ASTCFLAGS+=-fPIC -I${PREFIX}/include
-
- #NOISY_BUILD=yes
-
diff --git a/net/asterisk14-addons/pkg-descr b/net/asterisk14-addons/pkg-descr
deleted file mode 100644
index d2454dbd184f..000000000000
--- a/net/asterisk14-addons/pkg-descr
+++ /dev/null
@@ -1,5 +0,0 @@
-This package contains additional modules for the Asterisk Open Source PBX
-which are, not included in the normal base distribution, becouse of licence
-incompatilities.
-
-WWW: http://www.asteriskpbx.com
diff --git a/net/asterisk14-addons/pkg-plist b/net/asterisk14-addons/pkg-plist
deleted file mode 100644
index f53cedf9e3fb..000000000000
--- a/net/asterisk14-addons/pkg-plist
+++ /dev/null
@@ -1,8 +0,0 @@
-lib/asterisk/modules/app_addon_sql_mysql.so
-lib/asterisk/modules/app_saycountpl.so
-lib/asterisk/modules/cdr_addon_mysql.so
-lib/asterisk/modules/res_config_mysql.so
-lib/asterisk/modules/format_mp3.so
-lib/asterisk/modules/chan_ooh323.so
-%%SAMPLE_CONFIG%%etc/asterisk/cdr_mysql.conf
-%%SAMPLE_CONFIG%%etc/asterisk/res_mysql.conf
diff --git a/net/asterisk14/Makefile b/net/asterisk14/Makefile
deleted file mode 100644
index c1c8e5eaa5c1..000000000000
--- a/net/asterisk14/Makefile
+++ /dev/null
@@ -1,183 +0,0 @@
-# New ports collection makefile for: asterisk
-# Date created: 17 October 2003
-# Whom: Maxim Sobolev <sobomax@portaone.com>
-#
-# $FreeBSD$
-#
-
-PORTNAME= asterisk
-PORTVERSION= 1.4.19.2
-CATEGORIES= net
-MASTER_SITES= http://ftp.digium.com/pub/asterisk/ \
- http://ftp.digium.com/pub/asterisk/old-releases/
-
-MAINTAINER= sobomax@FreeBSD.org
-COMMENT= An Open Source PBX and telephony toolkit
-
-BUILD_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
-LIB_DEPENDS= speex.1:${PORTSDIR}/audio/speex \
- newt.51:${PORTSDIR}/devel/newt \
- gsm.1:${PORTSDIR}/audio/gsm \
- curl.4:${PORTSDIR}/ftp/curl
-RUN_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
-
-ONLY_FOR_ARCHS= i386 sparc64 amd64 powerpc
-
-GNU_CONFIGURE= yes
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/openh323" \
- LDFLAGS="-L${LOCALBASE}/lib"
-CONFIGURE_ARGS= --with-gsm=${LOCALBASE}
-CPPFLAGS= -I${LOCALBASE}/include -I${LOCALBASE}/include/openh323
-USE_GMAKE= yes
-USE_BISON= build
-USE_RC_SUBR= asterisk.sh
-MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
- PTHREAD_LIBS="${PTHREAD_LIBS}" \
- MKDIR="${MKDIR}" \
- PWLIBDIR=${LOCALBASE}/share/pwlib \
- OPENH323DIR=${LOCALBASE}/share/openh323 \
- OSVERSION=${OSVERSION} \
- CXX="${CXX}"
-MAN8= asterisk.8 astgenkey.8 autosupport.8 safe_asterisk.8
-
-OPTIONS= OGGVORBIS "Enable Ogg Vorbis support" on \
- ODBC "Enable ODBC support" on \
- POSTGRES "Enable PostgreSQL support" on \
- RADIUS "Enable RADIUS accounting support" on \
- SNMP "Enable SNMP support" on \
- H323 "Enable H.323 support" on \
- FREETDS "Enable FreeTDS support" on \
- JABBER "Enable Jabber and Gtalk support" on \
- SQLITE "Enable SQLITE support" on \
- CODEC_PATCH "Apply codec negotiation patch" off \
- MISC_PATCHES "Apply additional patches" off
-
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "i386" || ${ARCH} == "amd64"
-OPTIONS+= ZAPTEL "Enable Zaptel support" off
-.else
-WITHOUT_ZAPTEL= yes
-.endif
-
-.if defined(WITHOUT_H323)
-PLIST_SUB+= WITH_H323="@comment "
-CONFIGURE_ARGS+= --without-h323
-.else
-PLIST_SUB+= WITH_H323=""
-CONFIGURE_ARGS+= --with-h323=${LOCALBASE}
-LIB_DEPENDS+= pt_r.1:${PORTSDIR}/devel/pwlib \
- h323_r.1:${PORTSDIR}/net/openh323
-.endif
-
-.if defined(WITHOUT_ZAPTEL)
-PLIST_SUB+= WITH_ZAPTEL="@comment "
-CONFIGURE_ARGS+= --without-zaptel
-.else
-PLIST_SUB+= WITH_ZAPTEL=""
-CONFIGURE_ARGS+= --with-zaptel
-BUILD_DEPENDS+= libpri>=1.2.0:${PORTSDIR}/misc/libpri \
- ${LOCALBASE}/include/zaptel/zaptel.h:${PORTSDIR}/misc/zaptel
-LIB_DEPENDS+= pri.1:${PORTSDIR}/misc/libpri
-RUN_DEPENDS+= ${LOCALBASE}/include/zaptel/zaptel.h:${PORTSDIR}/misc/zaptel
-.endif
-
-#
-# WITH_FREETDS, WITH_PGSQL and WITH_SQLITE can also be added to MAKE_ENV
-# similarly
-.if defined(WITHOUT_ODBC)
-PLIST_SUB+= WITH_ODBC="@comment "
-CONFIGURE_ARGS+= --without-odbc
-.else
-PLIST_SUB+= WITH_ODBC=""
-CONFIGURE_ARGS+= --with-odbc --with-ltdl
-LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC \
- ltdl.4:${PORTSDIR}/devel/libltdl15
-.endif
-
-.if defined(WITHOUT_FREETDS)
-PLIST_SUB+= WITH_FREETDS="@comment "
-CONFIGURE_ARGS+= --without-tds
-.else
-PLIST_SUB+= WITH_FREETDS=""
-CONFIGURE_ARGS+= --with-tds=${LOCALBASE}
-LIB_DEPENDS+= tds.5:${PORTSDIR}/databases/freetds
-.endif
-
-.if defined(WITHOUT_POSTGRES)
-PLIST_SUB+= WITH_POSTGRES="@comment "
-CONFIGURE_ARGS+= --without-postgres
-.else
-PLIST_SUB+= WITH_POSTGRES=""
-USE_PGSQL= yes
-CONFIGURE_ARGS+= --with-postgres
-.endif
-
-.if defined(WITHOUT_OGGVORBIS)
-PLIST_SUB+= WITH_OGGVORBIS="@comment "
-CONFIGURE_ARGS+= --without-ogg
-.else
-PLIST_SUB+= WITH_OGGVORBIS=""
-CONFIGURE_ARGS+= --with-ogg
-LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis
-.endif
-
-.if defined(WITHOUT_RADIUS)
-PLIST_SUB+= WITH_RADIUS="@comment "
-CONFIGURE_ARGS+= --without-radius
-.else
-PLIST_SUB+= WITH_RADIUS=""
-CONFIGURE_ARGS+= --with-radius
-LIB_DEPENDS+= radiusclient-ng.2:${PORTSDIR}/net/radiusclient
-.endif
-
-.if defined(WITHOUT_SNMP)
-PLIST_SUB+= WITH_SNMP="@comment "
-CONFIGURE_ARGS+= --without-netsnmp
-.else
-PLIST_SUB+= WITH_SNMP=""
-CONFIGURE_ARGS+= --with-netsnmp
-LIB_DEPENDS+= netsnmp.16:${PORTSDIR}/net-mgmt/net-snmp
-.endif
-
-.if defined(WITHOUT_JABBER)
-PLIST_SUB+= WITH_JABBER="@comment "
-CONFIGURE_ARGS+= --without-iksemel
-.else
-PLIST_SUB+= WITH_JABBER=""
-CONFIGURE_ARGS+= --with-iksemel
-LIB_DEPENDS+= iksemel.4:${PORTSDIR}/textproc/iksemel
-.endif
-
-.if defined(WITHOUT_SQLITE)
-PLIST_SUB+= WITH_SQLITE="@comment "
-CONFIGURE_ARGS+= --without-sqlite
-.else
-PLIST_SUB+= WITH_SQLITE=""
-CONFIGURE_ARGS+= --with-sqlite
-LIB_DEPENDS+= sqlite:${PORTSDIR}/databases/sqlite2
-.endif
-
-.if defined(WITH_CODEC_PATCH)
-PATCHFILES= asterisk-1.4.19-codec-negotiation-20080408.diff.gz
-PATCH_SITES= http://b2bua.org/chrome/site/
-EXTRA_PATCHES+= ${PATCHDIR}/codecnego-patch-Makefile
-.else
-EXTRA_PATCHES+= ${PATCHDIR}/nocodecnego-patch-Makefile
-.endif
-
-.if defined(WITH_MISC_PATCHES)
-EXTRA_PATCHES+= ${PATCHDIR}/dtmf_debug.diff
-EXTRA_PATCHES+= ${PATCHDIR}/feature_disconnect.diff
-EXTRA_PATCHES+= ${PATCHDIR}/sip_force_callid.diff
-.if defined(WITH_CODEC_PATCH)
-EXTRA_PATCHES+= ${PATCHDIR}/rtp_force_dtmf-codecnego.diff
-.else
-EXTRA_PATCHES+= ${PATCHDIR}/rtp_force_dtmf-nocodecnego.diff
-.endif
-.endif
-
-post-patch:
- ${REINPLACE_CMD} -e 's|/var/lib|${PREFIX}/share|g' ${WRKSRC}/configs/musiconhold.conf.sample
-
-.include <bsd.port.post.mk>
diff --git a/net/asterisk14/distinfo b/net/asterisk14/distinfo
deleted file mode 100644
index 64a1135cfcd3..000000000000
--- a/net/asterisk14/distinfo
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 (asterisk-1.4.19.2.tar.gz) = a942367e20a364510881c086a3517321
-SHA256 (asterisk-1.4.19.2.tar.gz) = b3248b84ec824c3c21861607fdc0c71e4acee16edc570004ee6c9e2f712705c4
-SIZE (asterisk-1.4.19.2.tar.gz) = 11496546
-MD5 (asterisk-1.4.19-codec-negotiation-20080408.diff.gz) = 12db6a4bc354d3eeeee7a900a6060b2f
-SHA256 (asterisk-1.4.19-codec-negotiation-20080408.diff.gz) = 55290639455b1117541c5bf560ef8326c3e9414d266459293893b0e3d36c64f9
-SIZE (asterisk-1.4.19-codec-negotiation-20080408.diff.gz) = 39004
diff --git a/net/asterisk14/files/asterisk.sh.in b/net/asterisk14/files/asterisk.sh.in
deleted file mode 100644
index e05d58ed6ee8..000000000000
--- a/net/asterisk14/files/asterisk.sh.in
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh
-
-# PROVIDE: asterisk
-# REQUIRE: DAEMON
-# KEYWORD: shutdown
-#
-# Add the following lines to /etc/rc.conf to enable asterisk:
-#
-# asterisk_enable="YES"
-#
-
-. %%RC_SUBR%%
-
-stop_precmd=asterisk_shutdown
-sig_stop=KILL
-asterisk_shutdown () {
- %%PREFIX%%/sbin/asterisk -qrx 'stop now'
- sleep 1
- return 0
-}
-
-name=asterisk
-rcvar=`set_rcvar`
-
-command=%%PREFIX%%/sbin/asterisk
-
-load_rc_config $name
-
-pidfile=${asterisk_pidfile:-"/var/run/asterisk.pid"}
-
-asterisk_enable=${asterisk_enable:-"NO"}
-
-run_rc_command "$1"
diff --git a/net/asterisk14/files/codecnego-patch-Makefile b/net/asterisk14/files/codecnego-patch-Makefile
deleted file mode 100644
index c94aad32f623..000000000000
--- a/net/asterisk14/files/codecnego-patch-Makefile
+++ /dev/null
@@ -1,207 +0,0 @@
---- Makefile.orig 2008-04-08 14:50:57.000000000 +0300
-+++ Makefile 2008-04-08 14:52:01.000000000 +0300
-@@ -129,7 +129,7 @@
- ASTMANDIR=$(mandir)
- ifneq ($(findstring BSD,$(OSARCH)),)
- ASTVARLIBDIR=$(prefix)/share/asterisk
-- ASTVARRUNDIR=$(localstatedir)/run/asterisk
-+ ASTVARRUNDIR=$(localstatedir)/run
- else
- ASTVARLIBDIR=$(localstatedir)/lib/asterisk
- endif
-@@ -224,7 +224,7 @@
-
- ifeq ($(OSARCH),FreeBSD)
- # -V is understood by BSD Make, not by GNU make.
-- BSDVERSION=$(shell make -V OSVERSION -f /usr/share/mk/bsd.port.subdir.mk)
-+ BSDVERSION=$(OSVERSION)
- ASTCFLAGS+=$(shell if test $(BSDVERSION) -lt 500016 ; then echo "-D_THREAD_SAFE"; fi)
- AST_LIBS+=$(shell if test $(BSDVERSION) -lt 502102 ; then echo "-lc_r"; else echo "-pthread"; fi)
- endif
-@@ -404,15 +404,15 @@
- # Should static HTTP be installed during make samples or even with its own target ala
- # webvoicemail? There are portions here that *could* be customized but might also be
- # improved a lot. I'll put it here for now.
-- mkdir -p $(DESTDIR)$(ASTDATADIR)/static-http
-+ $(MKDIR) $(DESTDIR)$(ASTDATADIR)/static-http
- for x in static-http/*; do \
-- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTDATADIR)/static-http ; \
-+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTDATADIR)/static-http ; \
- done
-- mkdir -p $(DESTDIR)$(ASTDATADIR)/images
-+ $(MKDIR) $(DESTDIR)$(ASTDATADIR)/images
- for x in images/*.jpg; do \
-- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTDATADIR)/images ; \
-+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTDATADIR)/images ; \
- done
-- mkdir -p $(DESTDIR)$(AGI_DIR)
-+ $(MKDIR) $(DESTDIR)$(AGI_DIR)
- $(MAKE) -C sounds install
-
- update:
-@@ -433,45 +433,45 @@
- OLDHEADERS=$(filter-out $(NEWHEADERS),$(notdir $(wildcard $(DESTDIR)$(ASTHEADERDIR)/*.h)))
-
- bininstall: _all
-- mkdir -p $(DESTDIR)$(MODULES_DIR)
-- mkdir -p $(DESTDIR)$(ASTSBINDIR)
-- mkdir -p $(DESTDIR)$(ASTETCDIR)
-- mkdir -p $(DESTDIR)$(ASTBINDIR)
-- mkdir -p $(DESTDIR)$(ASTVARRUNDIR)
-- mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/voicemail
-- mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/dictate
-- mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/system
-- mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/tmp
-- mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/meetme
-- mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/monitor
-- $(INSTALL) -m 755 main/asterisk $(DESTDIR)$(ASTSBINDIR)/
-+ $(MKDIR) $(DESTDIR)$(MODULES_DIR)
-+ $(MKDIR) $(DESTDIR)$(ASTSBINDIR)
-+ $(MKDIR) $(DESTDIR)$(ASTETCDIR)
-+ $(MKDIR) $(DESTDIR)$(ASTBINDIR)
-+ $(MKDIR) $(DESTDIR)$(ASTVARRUNDIR)
-+ $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/voicemail
-+ $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/dictate
-+ $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/system
-+ $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/tmp
-+ $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/meetme
-+ $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/monitor
-+ $(BSD_INSTALL_PROGRAM) main/asterisk $(DESTDIR)$(ASTSBINDIR)/
- $(LN) -sf asterisk $(DESTDIR)$(ASTSBINDIR)/rasterisk
-- $(INSTALL) -m 755 contrib/scripts/astgenkey $(DESTDIR)$(ASTSBINDIR)/
-- $(INSTALL) -m 755 contrib/scripts/autosupport $(DESTDIR)$(ASTSBINDIR)/
-+ $(BSD_INSTALL_SCRIPT) contrib/scripts/astgenkey $(DESTDIR)$(ASTSBINDIR)/
-+ $(BSD_INSTALL_SCRIPT) contrib/scripts/autosupport $(DESTDIR)$(ASTSBINDIR)/
- if [ ! -f $(DESTDIR)$(ASTSBINDIR)/safe_asterisk ]; then \
- cat contrib/scripts/safe_asterisk | sed 's|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;s|__ASTERISK_VARRUN_DIR__|$(ASTVARRUNDIR)|;' > $(DESTDIR)$(ASTSBINDIR)/safe_asterisk ;\
- chmod 755 $(DESTDIR)$(ASTSBINDIR)/safe_asterisk;\
- fi
-- $(INSTALL) -d $(DESTDIR)$(ASTHEADERDIR)
-- $(INSTALL) -m 644 include/asterisk.h $(DESTDIR)$(includedir)
-- $(INSTALL) -m 644 include/asterisk/*.h $(DESTDIR)$(ASTHEADERDIR)
-+ $(MKDIR) $(DESTDIR)$(ASTHEADERDIR)
-+ $(BSD_INSTALL_DATA) include/asterisk.h $(DESTDIR)$(includedir)
-+ $(BSD_INSTALL_DATA) include/asterisk/*.h $(DESTDIR)$(ASTHEADERDIR)
- if [ -n "$(OLDHEADERS)" ]; then \
- rm -f $(addprefix $(DESTDIR)$(ASTHEADERDIR)/,$(OLDHEADERS)) ;\
- fi
-- mkdir -p $(DESTDIR)$(ASTLOGDIR)/cdr-csv
-- mkdir -p $(DESTDIR)$(ASTLOGDIR)/cdr-custom
-- mkdir -p $(DESTDIR)$(ASTDATADIR)/keys
-- mkdir -p $(DESTDIR)$(ASTDATADIR)/firmware
-- mkdir -p $(DESTDIR)$(ASTDATADIR)/firmware/iax
-- mkdir -p $(DESTDIR)$(ASTMANDIR)/man8
-- $(INSTALL) -m 644 keys/iaxtel.pub $(DESTDIR)$(ASTDATADIR)/keys
-- $(INSTALL) -m 644 keys/freeworlddialup.pub $(DESTDIR)$(ASTDATADIR)/keys
-- $(INSTALL) -m 644 doc/asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8
-- $(INSTALL) -m 644 contrib/scripts/astgenkey.8 $(DESTDIR)$(ASTMANDIR)/man8
-- $(INSTALL) -m 644 contrib/scripts/autosupport.8 $(DESTDIR)$(ASTMANDIR)/man8
-- $(INSTALL) -m 644 contrib/scripts/safe_asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8
-+ $(MKDIR) $(DESTDIR)$(ASTLOGDIR)/cdr-csv
-+ $(MKDIR) $(DESTDIR)$(ASTLOGDIR)/cdr-custom
-+ $(MKDIR) $(DESTDIR)$(ASTDATADIR)/keys
-+ $(MKDIR) $(DESTDIR)$(ASTDATADIR)/firmware
-+ $(MKDIR) $(DESTDIR)$(ASTDATADIR)/firmware/iax
-+ $(MKDIR) $(DESTDIR)$(ASTMANDIR)/man8
-+ $(BSD_INSTALL_DATA) keys/iaxtel.pub $(DESTDIR)$(ASTDATADIR)/keys
-+ $(BSD_INSTALL_DATA) keys/freeworlddialup.pub $(DESTDIR)$(ASTDATADIR)/keys
-+ $(BSD_INSTALL_DATA) doc/asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8
-+ $(BSD_INSTALL_DATA) contrib/scripts/astgenkey.8 $(DESTDIR)$(ASTMANDIR)/man8
-+ $(BSD_INSTALL_DATA) contrib/scripts/autosupport.8 $(DESTDIR)$(ASTMANDIR)/man8
-+ $(BSD_INSTALL_DATA) contrib/scripts/safe_asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8
- if [ -f contrib/firmware/iax/iaxy.bin ] ; then \
-- $(INSTALL) -m 644 contrib/firmware/iax/iaxy.bin $(DESTDIR)$(ASTDATADIR)/firmware/iax/iaxy.bin; \
-+ $(BSD_INSTALL_DATA) contrib/firmware/iax/iaxy.bin $(DESTDIR)$(ASTDATADIR)/firmware/iax/iaxy.bin; \
- fi
-
- $(SUBDIRS_INSTALL):
-@@ -505,7 +505,7 @@
- @exit 1
- endif
-
--install: badshell datafiles bininstall $(SUBDIRS_INSTALL)
-+install: badshell datafiles bininstall $(SUBDIRS_INSTALL) samples
- @if [ -x /usr/sbin/asterisk-post-install ]; then \
- /usr/sbin/asterisk-post-install $(DESTDIR) . ; \
- fi
-@@ -543,31 +543,23 @@
- upgrade: bininstall
-
- adsi:
-- mkdir -p $(DESTDIR)$(ASTETCDIR)
-+ $(MKDIR) $(DESTDIR)$(ASTETCDIR)
- for x in configs/*.adsi; do \
- if [ ! -f $(DESTDIR)$(ASTETCDIR)/$$x ]; then \
-- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x` ; \
-+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x` ; \
- fi ; \
-+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x`-dist ; \
- done
-
- samples: adsi
-- mkdir -p $(DESTDIR)$(ASTETCDIR)
-+ $(MKDIR) $(DESTDIR)$(ASTETCDIR)
- for x in configs/*.sample; do \
-- if [ -f $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` ]; then \
-- if [ "$(OVERWRITE)" = "y" ]; then \
-- if cmp -s $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` $$x ; then \
-- echo "Config file $$x is unchanged"; \
-- continue; \
-- fi ; \
-- mv -f $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`.old ; \
-- else \
-- echo "Skipping config file $$x"; \
-- continue; \
-- fi ;\
-+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`-dist ;\
-+ if [ ! -f $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` ]; then \
-+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`;\
- fi ; \
-- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` ;\
- done
-- if [ "$(OVERWRITE)" = "y" ] || [ ! -f $(DESTDIR)$(ASTCONFPATH) ]; then \
-+ if true; then \
- ( \
- echo "[directories]" ; \
- echo "astetcdir => $(ASTETCDIR)" ; \
-@@ -653,20 +645,23 @@
- echo "; Default: strict"; \
- echo ";"; \
- echo ";translation_algorithm = strict"; \
-- ) > $(DESTDIR)$(ASTCONFPATH) ; \
-+ ) > $(DESTDIR)$(ASTCONFPATH)-dist ; \
-+ if [ ! -f $(DESTDIR)$(ASTCONFPATH) ]; then \
-+ cp $(DESTDIR)$(ASTCONFPATH)-dist $(DESTDIR)$(ASTCONFPATH); \
-+ fi; \
- else \
- echo "Skipping asterisk.conf creation"; \
- fi
-- mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/INBOX
-+ $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/INBOX
- build_tools/make_sample_voicemail $(DESTDIR)/$(ASTDATADIR) $(DESTDIR)/$(ASTSPOOLDIR)
-
- webvmail:
- @[ -d $(DESTDIR)$(HTTP_DOCSDIR)/ ] || ( printf "http docs directory not found.\nUpdate assignment of variable HTTP_DOCSDIR in Makefile!\n" && exit 1 )
- @[ -d $(DESTDIR)$(HTTP_CGIDIR) ] || ( printf "cgi-bin directory not found.\nUpdate assignment of variable HTTP_CGIDIR in Makefile!\n" && exit 1 )
- $(INSTALL) -m 4755 -o root -g root contrib/scripts/vmail.cgi $(DESTDIR)$(HTTP_CGIDIR)/vmail.cgi
-- mkdir -p $(DESTDIR)$(HTTP_DOCSDIR)/_asterisk
-+ $(MKDIR) $(DESTDIR)$(HTTP_DOCSDIR)/_asterisk
- for x in images/*.gif; do \
-- $(INSTALL) -m 644 $$x $(DESTDIR)$(HTTP_DOCSDIR)/_asterisk/; \
-+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(HTTP_DOCSDIR)/_asterisk/; \
- done
- @echo " +--------- Asterisk Web Voicemail ----------+"
- @echo " + +"
-@@ -693,10 +688,10 @@
-
- __rpm: include/asterisk/version.h include/asterisk/buildopts.h spec
- rm -rf /tmp/asterisk ; \
-- mkdir -p /tmp/asterisk/redhat/RPMS/i386 ; \
-+ $(MKDIR) /tmp/asterisk/redhat/RPMS/i386 ; \
- $(MAKE) DESTDIR=/tmp/asterisk install ; \
- $(MAKE) DESTDIR=/tmp/asterisk samples ; \
-- mkdir -p /tmp/asterisk/etc/rc.d/init.d ; \
-+ $(MKDIR) /tmp/asterisk/etc/rc.d/init.d ; \
- cp -f contrib/init.d/rc.redhat.asterisk /tmp/asterisk/etc/rc.d/init.d/asterisk ; \
- rpmbuild --rcfile /usr/lib/rpm/rpmrc:redhat/rpmrc -bb asterisk.spec
-
diff --git a/net/asterisk14/files/dtmf_debug.diff b/net/asterisk14/files/dtmf_debug.diff
deleted file mode 100644
index 81205d40dd46..000000000000
--- a/net/asterisk14/files/dtmf_debug.diff
+++ /dev/null
@@ -1,225 +0,0 @@
---- channels/chan_sip.c.orig 2008-03-18 16:42:59.000000000 +0200
-+++ channels/chan_sip.c 2008-03-18 17:08:34.000000000 +0200
-@@ -3768,6 +3768,7 @@
- ast_log(LOG_WARNING, "old channel wasn't %p but was %p\n", oldchan, p->owner);
- else {
- p->owner = newchan;
-+ ast_rtp_set_chan_name(p->rtp, newchan->name);
- ret = 0;
- }
- if (option_debug > 2)
-@@ -4032,6 +4035,7 @@
- if (i->rtp) {
- tmp->fds[0] = ast_rtp_fd(i->rtp);
- tmp->fds[1] = ast_rtcp_fd(i->rtp);
-+ ast_rtp_set_chan_id(i->rtp, i->callid);
- }
- if (needvideo && i->vrtp) {
- tmp->fds[2] = ast_rtp_fd(i->vrtp);
-@@ -4059,6 +4063,8 @@
- if (!ast_strlen_zero(i->language))
- ast_string_field_set(tmp, language, i->language);
- i->owner = tmp;
-+ ast_rtp_set_chan_name(i->rtp, tmp->name);
-+
- ast_module_ref(ast_module_info->self);
- ast_copy_string(tmp->context, i->context, sizeof(tmp->context));
- /*Since it is valid to have extensions in the dialplan that have unescaped characters in them
-@@ -4479,8 +4485,10 @@
- build_via(p);
- if (!callid)
- build_callid_pvt(p);
-- else
-+ else {
- ast_string_field_set(p, callid, callid);
-+ ast_rtp_set_chan_id(p->rtp, p->callid);
-+ }
- /* Assign default music on hold class */
- ast_string_field_set(p, mohinterpret, default_mohinterpret);
- ast_string_field_set(p, mohsuggest, default_mohsuggest);
---- include/asterisk/rtp.h.orig 2008-03-18 13:35:42.000000000 +0200
-+++ include/asterisk/rtp.h 2008-03-18 13:35:58.000000000 +0200
-@@ -251,6 +251,9 @@
-
- int ast_rtp_codec_getformat(int pt);
-
-+void ast_rtp_set_chan_name(struct ast_rtp *, const char *);
-+void ast_rtp_set_chan_id(struct ast_rtp *, const char *);
-+
- /*! \brief Set rtp timeout */
- void ast_rtp_set_rtptimeout(struct ast_rtp *rtp, int timeout);
- /*! \brief Set rtp hold timeout */
---- main/rtp.c.orig 2008-04-08 14:53:18.000000000 +0300
-+++ main/rtp.c 2008-04-08 14:54:14.000000000 +0300
-@@ -81,6 +81,7 @@
- static int rtpstart; /*!< First port for RTP sessions (set in rtp.conf) */
- static int rtpend; /*!< Last port for RTP sessions (set in rtp.conf) */
- static int rtpdebug; /*!< Are we debugging? */
-+static int rtpdebugdtmf; /*!< Are we debugging DTMFs? */
- static int rtcpdebug; /*!< Are we debugging RTCP? */
- static int rtcpstats; /*!< Are we debugging RTCP? */
- static int rtcpinterval = RTCP_DEFAULT_INTERVALMS; /*!< Time between rtcp reports in millisecs */
-@@ -168,6 +169,8 @@
- struct ast_codec_pref pref;
- struct ast_rtp *bridged; /*!< Who we are Packet bridged to */
- int set_marker_bit:1; /*!< Whether to set the marker bit or not */
-+ char chan_name[100];
-+ char chan_id[100];
- };
-
- /* Forward declarations */
-@@ -669,8 +672,8 @@
- struct ast_frame *f = NULL;
- event = ntohl(*((unsigned int *)(data)));
- event &= 0x001F;
-- if (option_debug > 2 || rtpdebug)
-- ast_log(LOG_DEBUG, "Cisco DTMF Digit: %08x (len = %d)\n", event, len);
-+ if (option_debug > 2 || rtpdebug || rtpdebugdtmf)
-+ ast_log(LOG_DEBUG, "Channel: %s %s Cisco DTMF packet: %08x (len = %d)\n", rtp->chan_name, rtp->chan_id, event, len);
- if (event < 10) {
- resp = '0' + event;
- } else if (event < 11) {
-@@ -684,12 +687,24 @@
- }
- if (rtp->resp && (rtp->resp != resp)) {
- f = send_dtmf(rtp, AST_FRAME_DTMF_END);
-+ ast_log(LOG_DEBUG, "Channel: %s %s Cisco DTMF event: %c\n", rtp->chan_name, rtp->chan_id, rtp->resp);
- }
- rtp->resp = resp;
- rtp->dtmfcount = dtmftimeout;
- return f;
- }
-
-+void ast_rtp_set_chan_id(struct ast_rtp *rtp, const char *chan_id) {
-+ if (rtp == NULL || chan_id == NULL)
-+ return;
-+ snprintf(rtp->chan_id, sizeof(rtp->chan_id), "%s", chan_id);
-+}
-+
-+void ast_rtp_set_chan_name(struct ast_rtp *rtp, const char *chan_name) {
-+ if (rtp == NULL || chan_name == NULL)
-+ return;
-+ snprintf(rtp->chan_name, sizeof(rtp->chan_name), "%s", chan_name);
-+}
- /*!
- * \brief Process RTP DTMF and events according to RFC 2833.
- *
-@@ -1051,6 +1066,10 @@
- struct rtpPayloadType rtpPT;
- int reconstruct = ntohl(rtpheader[0]);
-
-+ /* If we are listening for DTMF - then feed all packets into the core to keep the RTP stream consistent when relaying DTMFs */
-+ if (ast_test_flag(rtp, FLAG_P2P_NEED_DTMF))
-+ return -1;
-+
- /* Get fields from packet */
- payload = (reconstruct & 0x7f0000) >> 16;
- mark = (((reconstruct & 0x800000) >> 23) != 0);
-@@ -1062,10 +1081,6 @@
- if (!bridged->current_RTP_PT[payload].code)
- return -1;
-
-- /* If the payload is DTMF, and we are listening for DTMF - then feed it into the core */
-- if (ast_test_flag(rtp, FLAG_P2P_NEED_DTMF) && !rtpPT.isAstFormat && rtpPT.code == AST_RTP_DTMF)
-- return -1;
--
- /* Otherwise adjust bridged payload to match */
- bridged_payload = ast_rtp_lookup_code(bridged, rtpPT.isAstFormat, rtpPT.code);
-
-@@ -1254,11 +1269,12 @@
- /* This is special in-band data that's not one of our codecs */
- if (rtpPT.code == AST_RTP_DTMF) {
- /* It's special -- rfc2833 process it */
-- if (rtp_debug_test_addr(&sin)) {
-+ if (rtp_debug_test_addr(&sin) || rtpdebugdtmf) {
- unsigned char *data;
- unsigned int event;
- unsigned int event_end;
- unsigned int duration;
-+
- data = rtp->rawdata + AST_FRIENDLY_OFFSET + hdrlen;
- event = ntohl(*((unsigned int *)(data)));
- event >>= 24;
-@@ -1267,9 +1283,12 @@
- event_end >>= 24;
- duration = ntohl(*((unsigned int *)(data)));
- duration &= 0xFFFF;
-- ast_verbose("Got RTP RFC2833 from %s:%u (type %-2.2d, seq %-6.6u, ts %-6.6u, len %-6.6u, mark %d, event %08x, end %d, duration %-5.5d) \n", ast_inet_ntoa(sin.sin_addr), ntohs(sin.sin_port), payloadtype, seqno, timestamp, res - hdrlen, (mark?1:0), event, ((event_end & 0x80)?1:0), duration);
-+
-+ ast_verbose("Channel: %s %s Got RTP RFC2833 from %s:%u to %s:%u (type %-2.2d, seq %-6.6u, ts %-6.6u, len %-6.6u, mark %d, event %08x, end %d, duration %-5.5d)\n", rtp->chan_name, rtp->chan_id, ast_inet_ntoa(sin.sin_addr), ntohs(sin.sin_port), ast_inet_ntoa(rtp->us.sin_addr), ntohs(rtp->us.sin_port), payloadtype, seqno, timestamp, res - hdrlen, (mark?1:0), event, ((event_end & 0x80)?1:0), duration);
- }
- f = process_rfc2833(rtp, rtp->rawdata + AST_FRIENDLY_OFFSET + hdrlen, res - hdrlen, seqno, timestamp);
-+ if (rtpdebugdtmf && f)
-+ ast_verbose("Channel: %s %s Got RFC2833 DTMF event %c of type %s\n", rtp->chan_name, rtp->chan_id, f->subclass, (f->frametype == AST_FRAME_DTMF_BEGIN ? "DTMF BEGIN" : (f->frametype == AST_FRAME_DTMF_END ? "DTMF_END" : "UNKNOWN")));
- } else if (rtpPT.code == AST_RTP_CISCO_DTMF) {
- /* It's really special -- process it the Cisco way */
- if (rtp->lastevent <= seqno || (rtp->lastevent >= 65530 && seqno <= 6)) {
-@@ -2198,8 +2217,9 @@
- ast_log(LOG_ERROR, "RTP Transmission error to %s:%u: %s\n",
- ast_inet_ntoa(rtp->them.sin_addr),
- ntohs(rtp->them.sin_port), strerror(errno));
-- if (rtp_debug_test_addr(&rtp->them))
-- ast_verbose("Sent RTP DTMF packet to %s:%u (type %-2.2d, seq %-6.6u, ts %-6.6u, len %-6.6u)\n",
-+ if (rtp_debug_test_addr(&rtp->them) || rtpdebugdtmf)
-+ ast_verbose("Channel: %s %s Sent RTP DTMF packet to %s:%u (type %-2.2d, seq %-6.6u, ts %-6.6u, len %-6.6u)\n",
-+ rtp->chan_name, rtp->chan_id,
- ast_inet_ntoa(rtp->them.sin_addr),
- ntohs(rtp->them.sin_port), payload, rtp->seqno, rtp->lastdigitts, res - hdrlen);
- /* Increment sequence number */
-@@ -2242,8 +2262,9 @@
- ast_log(LOG_ERROR, "RTP Transmission error to %s:%d: %s\n",
- ast_inet_ntoa(rtp->them.sin_addr),
- ntohs(rtp->them.sin_port), strerror(errno));
-- if (rtp_debug_test_addr(&rtp->them))
-- ast_verbose("Sent RTP DTMF packet to %s:%u (type %-2.2d, seq %-6.6u, ts %-6.6u, len %-6.6u)\n",
-+ if (rtp_debug_test_addr(&rtp->them) || rtpdebugdtmf)
-+ ast_verbose("Channel: %s %s Sent RTP DTMF packet to %s:%u (type %-2.2d, seq %-6.6u, ts %-6.6u, len %-6.6u)\n",
-+ rtp->chan_name, rtp->chan_id,
- ast_inet_ntoa(rtp->them.sin_addr),
- ntohs(rtp->them.sin_port), rtp->send_payload, rtp->seqno, rtp->lastdigitts, res - hdrlen);
-
-@@ -3481,6 +3502,16 @@
- return RESULT_SUCCESS;
- }
-
-+static int rtp_do_debug_dtmf(int fd, int argc, char *argv[])
-+{
-+ if (argc != 3)
-+ return RESULT_SHOWUSAGE;
-+
-+ rtpdebugdtmf = 1;
-+ ast_cli(fd, "RTP DTMF debugging enabled\n");
-+ return RESULT_SUCCESS;
-+}
-+
- static int rtp_do_debug(int fd, int argc, char *argv[])
- {
- if (argc != 2) {
-@@ -3541,6 +3572,7 @@
- if (argc != 3)
- return RESULT_SHOWUSAGE;
- rtpdebug = 0;
-+ rtpdebugdtmf = 0;
- ast_cli(fd,"RTP Debugging Disabled\n");
- return RESULT_SUCCESS;
- }
-@@ -3601,7 +3633,7 @@
- }
-
- static char debug_usage[] =
-- "Usage: rtp debug [ip host[:port]]\n"
-+ "Usage: rtp debug [ip host[:port] | dtmf]\n"
- " Enable dumping of all RTP packets to and from host.\n";
-
- static char no_debug_usage[] =
-@@ -3676,6 +3708,10 @@
- rtp_do_debug, "Enable RTP debugging",
- debug_usage },
-
-+ { { "rtp", "debug", "dtmf", NULL },
-+ rtp_do_debug_dtmf, "Enable RTP debugging on DTMFs",
-+ debug_usage },
-+
- { { "rtp", "debug", "off", NULL },
- rtp_no_debug, "Disable RTP debugging",
- no_debug_usage, NULL, &cli_rtp_no_debug_deprecated },
diff --git a/net/asterisk14/files/feature_disconnect.diff b/net/asterisk14/files/feature_disconnect.diff
deleted file mode 100644
index 5be713b0da13..000000000000
--- a/net/asterisk14/files/feature_disconnect.diff
+++ /dev/null
@@ -1,292 +0,0 @@
---- apps/app_dial.c.orig Wed Feb 6 18:45:30 2008
-+++ apps/app_dial.c Wed Feb 6 18:51:59 2008
-@@ -297,6 +297,8 @@ AST_APP_OPTIONS(dial_exec_options, {
- OPT_CALLER_HANGUP | OPT_CALLEE_TRANSFER | OPT_CALLER_TRANSFER | \
- OPT_CALLEE_MONITOR | OPT_CALLER_MONITOR | OPT_CALLEE_PARK | OPT_CALLER_PARK))
-
-+static int detect_disconnect(struct ast_channel *chan, char code);
-+
- /* We define a custom "local user" structure because we
- use it not only for keeping track of what is in use but
- also for keeping track of who we're dialing. */
-@@ -402,6 +404,7 @@ static struct ast_channel *wait_for_answ
- struct ast_channel *peer = NULL;
- /* single is set if only one destination is enabled */
- int single = outgoing && !outgoing->next && !ast_test_flag(outgoing, OPT_MUSICBACK | OPT_RINGBACK);
-+
-
- if (single) {
- /* Turn off hold music, etc */
-@@ -716,9 +719,9 @@ static struct ast_channel *wait_for_answ
- }
-
- if (ast_test_flag(peerflags, OPT_CALLER_HANGUP) &&
-- (f->subclass == '*')) { /* hmm it it not guaranteed to be '*' anymore. */
-+ detect_disconnect(in, f->subclass)) { /* hmm it it not guaranteed to be '*' anymore. */
- if (option_verbose > 2)
-- ast_verbose(VERBOSE_PREFIX_3 "User hit %c to disconnect call.\n", f->subclass);
-+ ast_verbose(VERBOSE_PREFIX_3 "User requested call disconnect.\n");
- *to=0;
- ast_cdr_noanswer(in->cdr);
- strcpy(status, "CANCEL");
-@@ -776,6 +779,56 @@ static struct ast_channel *wait_for_answ
-
- return peer;
- }
-+
-+static char featurecode[FEATURE_MAX_LEN + 1] = "";
-+
-+static int detect_disconnect(struct ast_channel *chan, char code)
-+{
-+ struct feature_interpret_result result;
-+ int x;
-+ struct ast_flags features;
-+ int res = FEATURE_RETURN_PASSDIGITS;
-+ struct ast_call_feature *feature;
-+ char *cptr;
-+ int len;
-+
-+ len = strlen(featurecode);
-+ if (len >= FEATURE_MAX_LEN) {
-+ featurecode[0] = '\0';
-+ }
-+ cptr = &featurecode[strlen(featurecode)];
-+ cptr[0] = code;
-+ cptr[1] = '\0';
-+
-+ memset(&features, 0, sizeof(struct ast_flags));
-+ ast_set_flag(&features, AST_FEATURE_DISCONNECT);
-+
-+ ast_features_lock();
-+
-+ res = ast_feature_detect(chan, &features, featurecode, &result);
-+
-+ if (res != FEATURE_RETURN_STOREDIGITS)
-+ featurecode[0] = '\0';
-+
-+ if (result.builtin_feature && result.builtin_feature->feature_mask & AST_FEATURE_DISCONNECT) {
-+ ast_features_unlock();
-+ return 1;
-+ }
-+
-+ for (x = 0; x < result.num_dyn_features; ++x) {
-+ feature = result.dynamic_features[x];
-+ if (feature->feature_mask & AST_FEATURE_DISCONNECT) {
-+ ast_features_unlock();
-+ return 1;
-+ }
-+ }
-+
-+ ast_features_unlock();
-+
-+ return 0;
-+}
-+
-+
-
- static void replace_macro_delimiter(char *s)
- {
---- include/asterisk/features.h.orig Thu Aug 23 23:16:41 2007
-+++ include/asterisk/features.h Tue Dec 11 17:13:52 2007
-@@ -31,6 +31,20 @@
- #define FEATURE_EXTEN_LEN 32
- #define FEATURE_MOH_LEN 80 /* same as MAX_MUSICCLASS from channel.h */
-
-+#define FEATURE_RETURN_HANGUP -1
-+#define FEATURE_RETURN_SUCCESSBREAK 0
-+#define FEATURE_RETURN_PBX_KEEPALIVE AST_PBX_KEEPALIVE
-+#define FEATURE_RETURN_NO_HANGUP_PEER AST_PBX_NO_HANGUP_PEER
-+#define FEATURE_RETURN_PASSDIGITS 21
-+#define FEATURE_RETURN_STOREDIGITS 22
-+#define FEATURE_RETURN_SUCCESS 23
-+#define FEATURE_RETURN_KEEPTRYING 24
-+
-+#define FEATURE_SENSE_CHAN (1 << 0)
-+#define FEATURE_SENSE_PEER (1 << 1)
-+
-+typedef int (*feature_operation)(struct ast_channel *chan, struct ast_channel *peer, struct ast_bridge_config *config, char *code, int sense, void *data);
-+
- /*! \brief main call feature structure */
- struct ast_call_feature {
- int feature_mask;
-@@ -38,7 +52,7 @@
- char sname[FEATURE_SNAME_LEN];
- char exten[FEATURE_MAX_LEN];
- char default_exten[FEATURE_MAX_LEN];
-- int (*operation)(struct ast_channel *chan, struct ast_channel *peer, struct ast_bridge_config *config, char *code, int sense, void *data);
-+ feature_operation operation;
- unsigned int flags;
- char app[FEATURE_APP_LEN];
- char app_args[FEATURE_APP_ARGS_LEN];
-@@ -47,6 +61,12 @@
- };
-
-
-+struct feature_interpret_result {
-+ struct ast_call_feature *builtin_feature;
-+ struct ast_call_feature *dynamic_features[20];
-+ int num_dyn_features;
-+};
-+
-
- /*! \brief Park a call and read back parked location
- * \param chan the channel to actually be parked
-@@ -93,5 +113,11 @@
- /*! \brief unregister feature from feature_set
- \param feature the ast_call_feature object which was registered before*/
- void ast_unregister_feature(struct ast_call_feature *feature);
-+
-+int ast_feature_detect(struct ast_channel *chan, const struct ast_flags *features, char *code, struct feature_interpret_result *result);
-+
-+void ast_features_lock(void);
-+void ast_features_unlock(void);
-+
-
- #endif /* _AST_FEATURES_H */
---- res/res_features.c.orig 2008-04-08 14:55:25.000000000 +0300
-+++ res/res_features.c 2008-04-08 14:59:59.000000000 +0300
-@@ -485,18 +485,6 @@
- }
-
-
--#define FEATURE_RETURN_HANGUP -1
--#define FEATURE_RETURN_SUCCESSBREAK 0
--#define FEATURE_RETURN_PBX_KEEPALIVE AST_PBX_KEEPALIVE
--#define FEATURE_RETURN_NO_HANGUP_PEER AST_PBX_NO_HANGUP_PEER
--#define FEATURE_RETURN_PASSDIGITS 21
--#define FEATURE_RETURN_STOREDIGITS 22
--#define FEATURE_RETURN_SUCCESS 23
--#define FEATURE_RETURN_KEEPTRYING 24
--
--#define FEATURE_SENSE_CHAN (1 << 0)
--#define FEATURE_SENSE_PEER (1 << 1)
--
- /*! \brief
- * set caller and callee according to the direction
- */
-@@ -1061,32 +1049,35 @@
- return res;
- }
-
--static int ast_feature_interpret(struct ast_channel *chan, struct ast_channel *peer, struct ast_bridge_config *config, char *code, int sense)
-+void ast_features_lock(void)
-+{
-+ ast_rwlock_rdlock(&features_lock);
-+ AST_LIST_LOCK(&feature_list);
-+}
-+
-+void ast_features_unlock(void)
-+{
-+ AST_LIST_UNLOCK(&feature_list);
-+ ast_rwlock_unlock(&features_lock);
-+}
-+
-+int ast_feature_detect(struct ast_channel *chan, const struct ast_flags *features, char *code, struct feature_interpret_result *result)
- {
- int x;
-- struct ast_flags features;
- int res = FEATURE_RETURN_PASSDIGITS;
- struct ast_call_feature *feature;
-- const char *dynamic_features;
-+ const char *dynamic_features = pbx_builtin_getvar_helper(chan, "DYNAMIC_FEATURES");
- char *tmp, *tok;
-
-- if (sense == FEATURE_SENSE_CHAN) {
-- ast_copy_flags(&features, &(config->features_caller), AST_FLAGS_ALL);
-- dynamic_features = pbx_builtin_getvar_helper(chan, "DYNAMIC_FEATURES");
-- } else {
-- ast_copy_flags(&features, &(config->features_callee), AST_FLAGS_ALL);
-- dynamic_features = pbx_builtin_getvar_helper(peer, "DYNAMIC_FEATURES");
-- }
-- if (option_debug > 2)
-- ast_log(LOG_DEBUG, "Feature interpret: chan=%s, peer=%s, code=%s, sense=%d, features=%d dynamic=%s\n", chan->name, peer->name, code, sense, features.flags, dynamic_features);
-+ result->builtin_feature = NULL;
-+ result->num_dyn_features = 0;
-
-- ast_rwlock_rdlock(&features_lock);
- for (x = 0; x < FEATURES_COUNT; x++) {
-- if ((ast_test_flag(&features, builtin_features[x].feature_mask)) &&
-+ if ((ast_test_flag(features, builtin_features[x].feature_mask)) &&
- !ast_strlen_zero(builtin_features[x].exten)) {
- /* Feature is up for consideration */
- if (!strcmp(builtin_features[x].exten, code)) {
-- res = builtin_features[x].operation(chan, peer, config, code, sense, NULL);
-+ result->builtin_feature = &builtin_features[x];
- break;
- } else if (!strncmp(builtin_features[x].exten, code, strlen(code))) {
- if (res == FEATURE_RETURN_PASSDIGITS)
-@@ -1094,7 +1085,6 @@
- }
- }
- }
-- ast_rwlock_unlock(&features_lock);
-
- if (ast_strlen_zero(dynamic_features))
- return res;
-@@ -1102,9 +1092,7 @@
- tmp = ast_strdupa(dynamic_features);
-
- while ((tok = strsep(&tmp, "#"))) {
-- AST_LIST_LOCK(&feature_list);
- if (!(feature = find_dynamic_feature(tok))) {
-- AST_LIST_UNLOCK(&feature_list);
- continue;
- }
-
-@@ -1112,21 +1100,52 @@
- if (!strcmp(feature->exten, code)) {
- if (option_verbose > 2)
- ast_verbose(VERBOSE_PREFIX_3 " Feature Found: %s exten: %s\n",feature->sname, tok);
-- res = feature->operation(chan, peer, config, code, sense, feature);
-- if (res != FEATURE_RETURN_KEEPTRYING) {
-- AST_LIST_UNLOCK(&feature_list);
-+ result->dynamic_features[result->num_dyn_features++] = feature;
-+ if (result->num_dyn_features >= (sizeof(result->dynamic_features) / sizeof(result->dynamic_features[0]))) {
- break;
- }
- res = FEATURE_RETURN_PASSDIGITS;
- } else if (!strncmp(feature->exten, code, strlen(code)))
- res = FEATURE_RETURN_STOREDIGITS;
-
-- AST_LIST_UNLOCK(&feature_list);
- }
-
- return res;
- }
-
-+static int ast_feature_interpret(struct ast_channel *chan, struct ast_channel *peer, struct ast_bridge_config *config, char *code, int sense)
-+{
-+ struct feature_interpret_result result;
-+ int x;
-+ struct ast_flags features;
-+ int res = FEATURE_RETURN_PASSDIGITS;
-+ struct ast_call_feature *feature;
-+
-+ if (sense == FEATURE_SENSE_CHAN)
-+ ast_copy_flags(&features, &(config->features_caller), AST_FLAGS_ALL);
-+ else
-+ ast_copy_flags(&features, &(config->features_callee), AST_FLAGS_ALL);
-+ if (option_debug > 2)
-+ ast_log(LOG_DEBUG, "Feature interpret: chan=%s, peer=%s, sense=%d, features=%d\n", chan->name, peer->name, sense, features.flags);
-+
-+ ast_features_lock();
-+ res = ast_feature_detect(chan, &features, code, &result);
-+
-+ if (result.builtin_feature)
-+ res = result.builtin_feature->operation(chan, peer, config, code, sense, NULL);
-+
-+ for (x = 0; x < result.num_dyn_features; ++x) {
-+ feature = result.dynamic_features[x];
-+ res = feature->operation(chan, peer, config, code, sense, feature);
-+ if (res != FEATURE_RETURN_KEEPTRYING)
-+ break;
-+ res = FEATURE_RETURN_PASSDIGITS;
-+ }
-+
-+ ast_features_unlock();
-+ return res;
-+}
-+
- static void set_config_flags(struct ast_channel *chan, struct ast_channel *peer, struct ast_bridge_config *config)
- {
- int x;
diff --git a/net/asterisk14/files/nocodecnego-patch-Makefile b/net/asterisk14/files/nocodecnego-patch-Makefile
deleted file mode 100644
index 1d9675f1d664..000000000000
--- a/net/asterisk14/files/nocodecnego-patch-Makefile
+++ /dev/null
@@ -1,207 +0,0 @@
---- Makefile.orig 2008-03-25 16:37:35.000000000 +0200
-+++ Makefile 2008-04-08 15:02:12.000000000 +0300
-@@ -129,7 +129,7 @@
- ASTMANDIR=$(mandir)
- ifneq ($(findstring BSD,$(OSARCH)),)
- ASTVARLIBDIR=$(prefix)/share/asterisk
-- ASTVARRUNDIR=$(localstatedir)/run/asterisk
-+ ASTVARRUNDIR=$(localstatedir)/run
- else
- ASTVARLIBDIR=$(localstatedir)/lib/asterisk
- endif
-@@ -224,7 +224,7 @@
-
- ifeq ($(OSARCH),FreeBSD)
- # -V is understood by BSD Make, not by GNU make.
-- BSDVERSION=$(shell make -V OSVERSION -f /usr/share/mk/bsd.port.subdir.mk)
-+ BSDVERSION=$(OSVERSION)
- ASTCFLAGS+=$(shell if test $(BSDVERSION) -lt 500016 ; then echo "-D_THREAD_SAFE"; fi)
- AST_LIBS+=$(shell if test $(BSDVERSION) -lt 502102 ; then echo "-lc_r"; else echo "-pthread"; fi)
- endif
-@@ -404,15 +404,15 @@
- # Should static HTTP be installed during make samples or even with its own target ala
- # webvoicemail? There are portions here that *could* be customized but might also be
- # improved a lot. I'll put it here for now.
-- mkdir -p $(DESTDIR)$(ASTDATADIR)/static-http
-+ $(MKDIR) $(DESTDIR)$(ASTDATADIR)/static-http
- for x in static-http/*; do \
-- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTDATADIR)/static-http ; \
-+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTDATADIR)/static-http ; \
- done
-- mkdir -p $(DESTDIR)$(ASTDATADIR)/images
-+ $(MKDIR) $(DESTDIR)$(ASTDATADIR)/images
- for x in images/*.jpg; do \
-- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTDATADIR)/images ; \
-+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTDATADIR)/images ; \
- done
-- mkdir -p $(DESTDIR)$(AGI_DIR)
-+ $(MKDIR) $(DESTDIR)$(AGI_DIR)
- $(MAKE) -C sounds install
-
- update:
-@@ -433,45 +433,45 @@
- OLDHEADERS=$(filter-out $(NEWHEADERS),$(notdir $(wildcard $(DESTDIR)$(ASTHEADERDIR)/*.h)))
-
- bininstall: _all
-- mkdir -p $(DESTDIR)$(MODULES_DIR)
-- mkdir -p $(DESTDIR)$(ASTSBINDIR)
-- mkdir -p $(DESTDIR)$(ASTETCDIR)
-- mkdir -p $(DESTDIR)$(ASTBINDIR)
-- mkdir -p $(DESTDIR)$(ASTVARRUNDIR)
-- mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/voicemail
-- mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/dictate
-- mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/system
-- mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/tmp
-- mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/meetme
-- mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/monitor
-- $(INSTALL) -m 755 main/asterisk $(DESTDIR)$(ASTSBINDIR)/
-+ $(MKDIR) $(DESTDIR)$(MODULES_DIR)
-+ $(MKDIR) $(DESTDIR)$(ASTSBINDIR)
-+ $(MKDIR) $(DESTDIR)$(ASTETCDIR)
-+ $(MKDIR) $(DESTDIR)$(ASTBINDIR)
-+ $(MKDIR) $(DESTDIR)$(ASTVARRUNDIR)
-+ $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/voicemail
-+ $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/dictate
-+ $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/system
-+ $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/tmp
-+ $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/meetme
-+ $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/monitor
-+ $(BSD_INSTALL_PROGRAM) main/asterisk $(DESTDIR)$(ASTSBINDIR)/
- $(LN) -sf asterisk $(DESTDIR)$(ASTSBINDIR)/rasterisk
-- $(INSTALL) -m 755 contrib/scripts/astgenkey $(DESTDIR)$(ASTSBINDIR)/
-- $(INSTALL) -m 755 contrib/scripts/autosupport $(DESTDIR)$(ASTSBINDIR)/
-+ $(BSD_INSTALL_SCRIPT) contrib/scripts/astgenkey $(DESTDIR)$(ASTSBINDIR)/
-+ $(BSD_INSTALL_SCRIPT) contrib/scripts/autosupport $(DESTDIR)$(ASTSBINDIR)/
- if [ ! -f $(DESTDIR)$(ASTSBINDIR)/safe_asterisk ]; then \
- cat contrib/scripts/safe_asterisk | sed 's|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;s|__ASTERISK_VARRUN_DIR__|$(ASTVARRUNDIR)|;' > $(DESTDIR)$(ASTSBINDIR)/safe_asterisk ;\
- chmod 755 $(DESTDIR)$(ASTSBINDIR)/safe_asterisk;\
- fi
-- $(INSTALL) -d $(DESTDIR)$(ASTHEADERDIR)
-- $(INSTALL) -m 644 include/asterisk.h $(DESTDIR)$(includedir)
-- $(INSTALL) -m 644 include/asterisk/*.h $(DESTDIR)$(ASTHEADERDIR)
-+ $(MKDIR) $(DESTDIR)$(ASTHEADERDIR)
-+ $(BSD_INSTALL_DATA) include/asterisk.h $(DESTDIR)$(includedir)
-+ $(BSD_INSTALL_DATA) include/asterisk/*.h $(DESTDIR)$(ASTHEADERDIR)
- if [ -n "$(OLDHEADERS)" ]; then \
- rm -f $(addprefix $(DESTDIR)$(ASTHEADERDIR)/,$(OLDHEADERS)) ;\
- fi
-- mkdir -p $(DESTDIR)$(ASTLOGDIR)/cdr-csv
-- mkdir -p $(DESTDIR)$(ASTLOGDIR)/cdr-custom
-- mkdir -p $(DESTDIR)$(ASTDATADIR)/keys
-- mkdir -p $(DESTDIR)$(ASTDATADIR)/firmware
-- mkdir -p $(DESTDIR)$(ASTDATADIR)/firmware/iax
-- mkdir -p $(DESTDIR)$(ASTMANDIR)/man8
-- $(INSTALL) -m 644 keys/iaxtel.pub $(DESTDIR)$(ASTDATADIR)/keys
-- $(INSTALL) -m 644 keys/freeworlddialup.pub $(DESTDIR)$(ASTDATADIR)/keys
-- $(INSTALL) -m 644 doc/asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8
-- $(INSTALL) -m 644 contrib/scripts/astgenkey.8 $(DESTDIR)$(ASTMANDIR)/man8
-- $(INSTALL) -m 644 contrib/scripts/autosupport.8 $(DESTDIR)$(ASTMANDIR)/man8
-- $(INSTALL) -m 644 contrib/scripts/safe_asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8
-+ $(MKDIR) $(DESTDIR)$(ASTLOGDIR)/cdr-csv
-+ $(MKDIR) $(DESTDIR)$(ASTLOGDIR)/cdr-custom
-+ $(MKDIR) $(DESTDIR)$(ASTDATADIR)/keys
-+ $(MKDIR) $(DESTDIR)$(ASTDATADIR)/firmware
-+ $(MKDIR) $(DESTDIR)$(ASTDATADIR)/firmware/iax
-+ $(MKDIR) $(DESTDIR)$(ASTMANDIR)/man8
-+ $(BSD_INSTALL_DATA) keys/iaxtel.pub $(DESTDIR)$(ASTDATADIR)/keys
-+ $(BSD_INSTALL_DATA) keys/freeworlddialup.pub $(DESTDIR)$(ASTDATADIR)/keys
-+ $(BSD_INSTALL_DATA) doc/asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8
-+ $(BSD_INSTALL_DATA) contrib/scripts/astgenkey.8 $(DESTDIR)$(ASTMANDIR)/man8
-+ $(BSD_INSTALL_DATA) contrib/scripts/autosupport.8 $(DESTDIR)$(ASTMANDIR)/man8
-+ $(BSD_INSTALL_DATA) contrib/scripts/safe_asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8
- if [ -f contrib/firmware/iax/iaxy.bin ] ; then \
-- $(INSTALL) -m 644 contrib/firmware/iax/iaxy.bin $(DESTDIR)$(ASTDATADIR)/firmware/iax/iaxy.bin; \
-+ $(BSD_INSTALL_DATA) contrib/firmware/iax/iaxy.bin $(DESTDIR)$(ASTDATADIR)/firmware/iax/iaxy.bin; \
- fi
-
- $(SUBDIRS_INSTALL):
-@@ -505,7 +505,7 @@
- @exit 1
- endif
-
--install: badshell datafiles bininstall $(SUBDIRS_INSTALL)
-+install: badshell datafiles bininstall $(SUBDIRS_INSTALL) samples
- @if [ -x /usr/sbin/asterisk-post-install ]; then \
- /usr/sbin/asterisk-post-install $(DESTDIR) . ; \
- fi
-@@ -543,31 +543,23 @@
- upgrade: bininstall
-
- adsi:
-- mkdir -p $(DESTDIR)$(ASTETCDIR)
-+ $(MKDIR) $(DESTDIR)$(ASTETCDIR)
- for x in configs/*.adsi; do \
- if [ ! -f $(DESTDIR)$(ASTETCDIR)/$$x ]; then \
-- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x` ; \
-+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x` ; \
- fi ; \
-+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x`-dist ; \
- done
-
- samples: adsi
-- mkdir -p $(DESTDIR)$(ASTETCDIR)
-+ $(MKDIR) $(DESTDIR)$(ASTETCDIR)
- for x in configs/*.sample; do \
-- if [ -f $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` ]; then \
-- if [ "$(OVERWRITE)" = "y" ]; then \
-- if cmp -s $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` $$x ; then \
-- echo "Config file $$x is unchanged"; \
-- continue; \
-- fi ; \
-- mv -f $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`.old ; \
-- else \
-- echo "Skipping config file $$x"; \
-- continue; \
-- fi ;\
-+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`-dist ;\
-+ if [ ! -f $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` ]; then \
-+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`;\
- fi ; \
-- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` ;\
- done
-- if [ "$(OVERWRITE)" = "y" ] || [ ! -f $(DESTDIR)$(ASTCONFPATH) ]; then \
-+ if true; then \
- ( \
- echo "[directories]" ; \
- echo "astetcdir => $(ASTETCDIR)" ; \
-@@ -612,20 +604,23 @@
- echo ";astctlowner = root" ; \
- echo ";astctlgroup = apache" ; \
- echo ";astctl = asterisk.ctl" ; \
-- ) > $(DESTDIR)$(ASTCONFPATH) ; \
-+ ) > $(DESTDIR)$(ASTCONFPATH)-dist ; \
-+ if [ ! -f $(DESTDIR)$(ASTCONFPATH) ]; then \
-+ cp $(DESTDIR)$(ASTCONFPATH)-dist $(DESTDIR)$(ASTCONFPATH); \
-+ fi; \
- else \
- echo "Skipping asterisk.conf creation"; \
- fi
-- mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/INBOX
-+ $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/INBOX
- build_tools/make_sample_voicemail $(DESTDIR)/$(ASTDATADIR) $(DESTDIR)/$(ASTSPOOLDIR)
-
- webvmail:
- @[ -d $(DESTDIR)$(HTTP_DOCSDIR)/ ] || ( printf "http docs directory not found.\nUpdate assignment of variable HTTP_DOCSDIR in Makefile!\n" && exit 1 )
- @[ -d $(DESTDIR)$(HTTP_CGIDIR) ] || ( printf "cgi-bin directory not found.\nUpdate assignment of variable HTTP_CGIDIR in Makefile!\n" && exit 1 )
- $(INSTALL) -m 4755 -o root -g root contrib/scripts/vmail.cgi $(DESTDIR)$(HTTP_CGIDIR)/vmail.cgi
-- mkdir -p $(DESTDIR)$(HTTP_DOCSDIR)/_asterisk
-+ $(MKDIR) $(DESTDIR)$(HTTP_DOCSDIR)/_asterisk
- for x in images/*.gif; do \
-- $(INSTALL) -m 644 $$x $(DESTDIR)$(HTTP_DOCSDIR)/_asterisk/; \
-+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(HTTP_DOCSDIR)/_asterisk/; \
- done
- @echo " +--------- Asterisk Web Voicemail ----------+"
- @echo " + +"
-@@ -652,10 +647,10 @@
-
- __rpm: include/asterisk/version.h include/asterisk/buildopts.h spec
- rm -rf /tmp/asterisk ; \
-- mkdir -p /tmp/asterisk/redhat/RPMS/i386 ; \
-+ $(MKDIR) /tmp/asterisk/redhat/RPMS/i386 ; \
- $(MAKE) DESTDIR=/tmp/asterisk install ; \
- $(MAKE) DESTDIR=/tmp/asterisk samples ; \
-- mkdir -p /tmp/asterisk/etc/rc.d/init.d ; \
-+ $(MKDIR) /tmp/asterisk/etc/rc.d/init.d ; \
- cp -f contrib/init.d/rc.redhat.asterisk /tmp/asterisk/etc/rc.d/init.d/asterisk ; \
- rpmbuild --rcfile /usr/lib/rpm/rpmrc:redhat/rpmrc -bb asterisk.spec
-
diff --git a/net/asterisk14/files/patch-agi::Makefile b/net/asterisk14/files/patch-agi::Makefile
deleted file mode 100644
index f9910fe96dd6..000000000000
--- a/net/asterisk14/files/patch-agi::Makefile
+++ /dev/null
@@ -1,25 +0,0 @@
---- agi/Makefile.orig Sat Dec 16 23:14:34 2006
-+++ agi/Makefile Wed Mar 28 11:13:21 2007
-@@ -13,7 +13,9 @@
-
- .PHONY: clean all uninstall
-
--AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi
-+AGIS_BIN=eagi-test eagi-sphinx-test
-+AGIS_SCR=agi-test.agi jukebox.agi
-+AGIS=$(AGIS_SCR) $(AGIS_BIN)
-
- ifeq ($(OSARCH),SunOS)
- LIBS+=-lsocket -lnsl
-@@ -31,8 +33,9 @@ eagi-test: eagi-test.o strcompat.o
- eagi-sphinx-test: eagi-sphinx-test.o
-
- install: all
-- mkdir -p $(DESTDIR)$(AGI_DIR)
-- for x in $(AGIS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(AGI_DIR) ; done
-+ $(MKDIR) -p $(DESTDIR)$(AGI_DIR)
-+ for x in $(AGIS_BIN); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(AGI_DIR) ; done
-+ for x in $(AGIS_SCR); do $(BSD_INSTALL_SCRIPT) $$x $(DESTDIR)$(AGI_DIR) ; done
-
- uninstall:
- for x in $(AGIS); do rm -f $(DESTDIR)$(AGI_DIR)/$$x ; done
diff --git a/net/asterisk14/files/patch-channels::Makefile b/net/asterisk14/files/patch-channels::Makefile
deleted file mode 100644
index dbe7d0c7a0d2..000000000000
--- a/net/asterisk14/files/patch-channels::Makefile
+++ /dev/null
@@ -1,35 +0,0 @@
-
-$FreeBSD$
-
---- channels/Makefile.orig
-+++ channels/Makefile
-@@ -26,8 +26,8 @@
- endif
-
- ifeq ($(OSARCH),FreeBSD)
-- PTLIB=-lpt_FreeBSD_x86_r
-- H323LIB=-lh323_FreeBSD_x86_r
-+ PTLIB=-lpt_r
-+ H323LIB=-lh323_r
- CHANH323LIB=-pthread
- endif
-
-@@ -72,12 +72,12 @@
- h323/libchanh323.a h323/Makefile.ast:
- $(CMD_PREFIX) $(MAKE) -C h323
- $(CMD_PREFIX) rm -f ../main/asterisk
-- $(CMD_PREFIX) echo "***************************************************************"
-- $(CMD_PREFIX) echo
-- $(CMD_PREFIX) echo "********** Re-run 'make' to pick up H.323 parameters **********"
-- $(CMD_PREFIX) echo
-- $(CMD_PREFIX) echo "***************************************************************"
-- $(CMD_PREFIX) exit 1
-+# $(CMD_PREFIX) echo "***************************************************************"
-+# $(CMD_PREFIX) echo
-+# $(CMD_PREFIX) echo "********** Re-run 'make' to pick up H.323 parameters **********"
-+# $(CMD_PREFIX) echo
-+# $(CMD_PREFIX) echo "***************************************************************"
-+# $(CMD_PREFIX) exit 1
- endif
-
- gentone: gentone.c
diff --git a/net/asterisk14/files/patch-channels::chan_sip.c b/net/asterisk14/files/patch-channels::chan_sip.c
deleted file mode 100644
index e54df0eb1bf1..000000000000
--- a/net/asterisk14/files/patch-channels::chan_sip.c
+++ /dev/null
@@ -1,54 +0,0 @@
---- channels/chan_sip.c.orig 2008-03-18 16:42:59.000000000 +0200
-+++ channels/chan_sip.c 2008-03-18 17:08:34.000000000 +0200
-@@ -495,7 +495,7 @@
- #define DEFAULT_MOHINTERPRET "default"
- #define DEFAULT_MOHSUGGEST ""
- #define DEFAULT_VMEXTEN "asterisk"
--#define DEFAULT_CALLERID "asterisk"
-+#define DEFAULT_CALLERID "Unknown"
- #define DEFAULT_NOTIFYMIME "application/simple-message-summary"
- #define DEFAULT_MWITIME 10
- #define DEFAULT_ALLOWGUEST TRUE
-@@ -15873,6 +15881,9 @@
- char *ext, *host;
- char tmp[256];
- char *dest = data;
-+ char *secret = NULL;
-+ char *md5secret = NULL;
-+ char *authname = NULL;
-
- oldformat = format;
- if (!(format &= ((AST_FORMAT_MAX_AUDIO << 1) - 1))) {
-@@ -15903,6 +15914,17 @@
- if (host) {
- *host++ = '\0';
- ext = tmp;
-+ secret = strchr(ext, ':');
-+ if (secret) {
-+ *secret++ = '\0';
-+ md5secret = strchr(secret, ':');
-+ if (md5secret) {
-+ *md5secret++ = '\0';
-+ authname = strchr(md5secret, ':');
-+ if (authname)
-+ *authname++ = '\0';
-+ }
-+ }
- } else {
- ext = strchr(tmp, '/');
- if (ext)
-@@ -15933,6 +15955,14 @@
- ast_string_field_set(p, username, ext);
- ast_string_field_free(p, fullcontact);
- }
-+ if (secret && !ast_strlen_zero(secret))
-+ ast_string_field_set(p, peersecret, secret);
-+
-+ if (md5secret && !ast_strlen_zero(md5secret))
-+ ast_string_field_set(p, peermd5secret, md5secret);
-+
-+ if (authname && !ast_strlen_zero(authname))
-+ ast_string_field_set(p, authname, authname);
- #if 0
- printf("Setting up to call extension '%s' at '%s'\n", ext ? ext : "<none>", host);
- #endif
diff --git a/net/asterisk14/files/patch-channels::chan_zap.c b/net/asterisk14/files/patch-channels::chan_zap.c
deleted file mode 100644
index ab02c02af962..000000000000
--- a/net/asterisk14/files/patch-channels::chan_zap.c
+++ /dev/null
@@ -1,80 +0,0 @@
-
-$FreeBSD$
-
---- channels/chan_zap.c.orig Tue Nov 29 20:24:39 2005
-+++ channels/chan_zap.c Fri Jan 13 13:28:33 2006
-@@ -638,6 +638,7 @@ static struct zt_pvt {
- int cidlen;
- int ringt;
- int ringt_base;
-+ int waitnorings;
- int stripmsd;
- int callwaitcas;
- int callwaitrings;
-@@ -2308,6 +2309,19 @@ static int zt_hangup(struct ast_channel
- }
-
- ast_mutex_lock(&p->lock);
-+ switch (p->sig) {
-+ case SIG_FXSGS:
-+ case SIG_FXSKS:
-+ case SIG_FXSLS:
-+ if((ast->_state == AST_STATE_RING) && (p->ringt > 1))
-+ {
-+ p->waitnorings = 1;
-+ }
-+ break;
-+ default:
-+ break;
-+ };
-+
-
- index = zt_get_index(ast, p, 1);
-
-@@ -6129,7 +6143,37 @@ static void *ss_thread(void *data)
- ast_setstate(chan, AST_STATE_RING);
- chan->rings = 1;
- p->ringt = p->ringt_base;
-+ p->waitnorings = 0;
- res = ast_pbx_run(chan);
-+
-+ if(p->waitnorings)
-+ {
-+ p->ringt = p->ringt_base;
-+ for(;;)
-+ {
-+ int i,j=0;
-+ i = ZT_IOMUX_SIGEVENT | ZT_IOMUX_NOWAIT;
-+ if (ioctl(p->subs[index].zfd, ZT_IOMUX, &i) == -1)
-+ break;
-+
-+ if (ioctl(p->subs[index].zfd, ZT_GETEVENT, &j) == -1)
-+ break;
-+
-+ if(j == ZT_EVENT_RINGOFFHOOK)
-+ p->ringt = p->ringt_base;
-+
-+ usleep(20000);
-+
-+ if (p->ringt <= 0)
-+ break;
-+
-+ else if (p->ringt > 0)
-+ p->ringt--;
-+ }
-+ p->ringt = 0;
-+ p->waitnorings = 0;
-+ }
-+
- if (res) {
- ast_hangup(chan);
- ast_log(LOG_WARNING, "PBX exited non-zero\n");
-@@ -6431,7 +6475,7 @@ static void *do_monitor(void *data)
- i = iflist;
- while(i) {
- if ((i->subs[SUB_REAL].zfd > -1) && i->sig && (!i->radio)) {
-- if (!i->owner && !i->subs[SUB_REAL].owner) {
-+ if (!i->owner && !i->subs[SUB_REAL].owner && !i->waitnorings) {
- /* This needs to be watched, as it lacks an owner */
- pfds[count].fd = i->subs[SUB_REAL].zfd;
- pfds[count].events = POLLPRI;
diff --git a/net/asterisk14/files/patch-channels::h323::ast_h323.cxx b/net/asterisk14/files/patch-channels::h323::ast_h323.cxx
deleted file mode 100644
index bfc819452128..000000000000
--- a/net/asterisk14/files/patch-channels::h323::ast_h323.cxx
+++ /dev/null
@@ -1,29 +0,0 @@
---- channels/h323/ast_h323.cxx.orig 2008-04-08 15:08:37.000000000 +0300
-+++ channels/h323/ast_h323.cxx 2008-04-08 15:08:51.000000000 +0300
-@@ -81,8 +81,6 @@
- /** PWLib entry point */
- static MyProcess *localProcess = NULL;
-
--static int _timerChangePipe[2];
--
- static unsigned traceOptions = PTrace::Timestamp | PTrace::Thread | PTrace::FileAndLine;
-
- class PAsteriskLog : public PObject, public iostream {
-@@ -191,8 +189,6 @@
-
- MyProcess::~MyProcess()
- {
-- _timerChangePipe[0] = timerChangePipe[0];
-- _timerChangePipe[1] = timerChangePipe[1];
- }
-
- void MyProcess::Main()
-@@ -2460,8 +2456,6 @@
- if (localProcess) {
- delete localProcess;
- localProcess = NULL;
-- close(_timerChangePipe[0]);
-- close(_timerChangePipe[1]);
- }
- if (logstream) {
- PTrace::SetLevel(0);
diff --git a/net/asterisk14/files/patch-configure b/net/asterisk14/files/patch-configure
deleted file mode 100644
index adb7268b02b2..000000000000
--- a/net/asterisk14/files/patch-configure
+++ /dev/null
@@ -1,71 +0,0 @@
-
-$FreeBSD$
-
---- configure.orig
-+++ configure
-@@ -3926,8 +3926,6 @@
- case "${host_os}" in
- freebsd*)
- ac_default_prefix=/usr/local
-- CPPFLAGS=-I/usr/local/include
-- LDFLAGS=-L/usr/local/lib
- ;;
- *)
- ac_default_prefix=/usr
-@@ -26228,6 +26226,7 @@
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- $ac_includes_default
-+#include <ptlib.h>
- #include <${HOME}/openh323/include/h323.h>
- _ACEOF
- rm -f conftest.$ac_objext
-@@ -26268,6 +26267,7 @@
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
-+#include <ptlib.h>
- #include <${HOME}/openh323/include/h323.h>
- _ACEOF
- if { (ac_try="$ac_cpp conftest.$ac_ext"
-@@ -26365,6 +26365,7 @@
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- $ac_includes_default
-+#include <ptlib.h>
- #include </usr/local/include/openh323/h323.h>
- _ACEOF
- rm -f conftest.$ac_objext
-@@ -26405,6 +26406,7 @@
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
-+#include <ptlib.h>
- #include </usr/local/include/openh323/h323.h>
- _ACEOF
- if { (ac_try="$ac_cpp conftest.$ac_ext"
-@@ -26652,7 +26654,7 @@
-
- fi
-
-- PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
-+ PLATFORM_OPENH323="h323_${OPENH323_SUFFIX}"
-
- if test "${HAS_OPENH323:-unset}" != "unset"; then
- { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
-@@ -31800,6 +31802,7 @@
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- $ac_includes_default
-+#include <ptlib.h>
- #include <h323.h>
- _ACEOF
- rm -f conftest.$ac_objext
-@@ -31840,6 +31843,7 @@
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
-+#include <ptlib.h>
- #include <h323.h>
- _ACEOF
- if { (ac_try="$ac_cpp conftest.$ac_ext"
diff --git a/net/asterisk14/files/patch-include::asterisk::utils.h b/net/asterisk14/files/patch-include::asterisk::utils.h
deleted file mode 100644
index a06f7d065c84..000000000000
--- a/net/asterisk14/files/patch-include::asterisk::utils.h
+++ /dev/null
@@ -1,13 +0,0 @@
-
-$FreeBSD$
-
---- include/asterisk/utils.h 2004/10/10 12:55:50 1.1
-+++ include/asterisk/utils.h 2004/10/10 12:56:43
-@@ -37,7 +37,6 @@
- #ifdef inet_ntoa
- #undef inet_ntoa
- #endif
--#define inet_ntoa __dont__use__inet_ntoa__use__ast_inet_ntoa__instead__
-
- #ifdef LINUX
- #define ast_pthread_create pthread_create
diff --git a/net/asterisk14/files/patch-main::Makefile b/net/asterisk14/files/patch-main::Makefile
deleted file mode 100644
index 56624065f61f..000000000000
--- a/net/asterisk14/files/patch-main::Makefile
+++ /dev/null
@@ -1,22 +0,0 @@
---- main/Makefile.orig 2008-01-29 19:43:41.000000000 +0200
-+++ main/Makefile 2008-03-13 13:57:48.000000000 +0200
-@@ -102,8 +102,8 @@
- cd editline && test -f config.h || CFLAGS="$(PTHREAD_CFLAGS) $(subst $(ASTTOPDIR),../../,$(ASTCFLAGS:-Werror=))" LDFLAGS="$(ASTLDFLAGS)" ./configure --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) --with-ncurses=$(NCURSES_DIR) --with-curses=$(CURSES_DIR) --with-termcap=$(TERMCAP_DIR) --with-tinfo=$(TINFO_DIR)
- $(MAKE) -C editline libedit.a
-
--db1-ast/libdb1.a:
-- CFLAGS="$(subst $(ASTTOPDIR),../../,$(ASTCFLAGS))" LDFLAGS="$(ASTLDFLAGS)" $(MAKE) -C db1-ast libdb1.a
-+#db1-ast/libdb1.a:
-+# CFLAGS="$(subst $(ASTTOPDIR),../../,$(ASTCFLAGS))" LDFLAGS="$(ASTLDFLAGS)" $(MAKE) -C db1-ast libdb1.a
-
- ast_expr2.c ast_expr2.h:
- bison -o $@ -d --name-prefix=ast_yy ast_expr2.y
-@@ -133,7 +133,7 @@
- H323LDLIBS=
- endif
-
--asterisk: $(OBJS) editline/libedit.a db1-ast/libdb1.a $(AST_EMBED_LDSCRIPTS)
-+asterisk: $(OBJS) editline/libedit.a $(AST_EMBED_LDSCRIPTS)
- @$(ASTTOPDIR)/build_tools/make_build_h > $(ASTTOPDIR)/include/asterisk/build.h.tmp
- @if cmp -s $(ASTTOPDIR)/include/asterisk/build.h.tmp $(ASTTOPDIR)/include/asterisk/build.h ; then echo ; else \
- mv $(ASTTOPDIR)/include/asterisk/build.h.tmp $(ASTTOPDIR)/include/asterisk/build.h ; \
diff --git a/net/asterisk14/files/patch-main::db.c b/net/asterisk14/files/patch-main::db.c
deleted file mode 100644
index 0b26f3b2cca6..000000000000
--- a/net/asterisk14/files/patch-main::db.c
+++ /dev/null
@@ -1,21 +0,0 @@
-
-$FreeBSD$
-
---- main/db.c.orig Fri Jan 13 11:05:32 2006
-+++ main/db.c Fri Jan 13 11:06:55 2006
-@@ -35,6 +35,7 @@
- #include <errno.h>
- #include <unistd.h>
- #include <dirent.h>
-+#include <db.h>
-
- #include "asterisk.h"
-
-@@ -51,7 +52,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revisi
- #include "asterisk/utils.h"
- #include "asterisk/lock.h"
- #include "asterisk/manager.h"
--#include "db1-ast/include/db.h"
-
- #ifdef __CYGWIN__
- #define dbopen __dbopen
diff --git a/net/asterisk14/files/patch-main::frame.c b/net/asterisk14/files/patch-main::frame.c
deleted file mode 100644
index 232de08a9e21..000000000000
--- a/net/asterisk14/files/patch-main::frame.c
+++ /dev/null
@@ -1,14 +0,0 @@
-
-$FreeBSD$
-
---- main/frame.c.orig Wed Jan 25 13:22:43 2006
-+++ main/frame.c Wed Jan 25 13:21:25 2006
-@@ -1170,7 +1170,7 @@ static int g723_len(unsigned char buf)
- {
- switch(buf & TYPE_MASK) {
- case TYPE_DONTSEND:
-- return 0;
-+ return 2;
- break;
- case TYPE_SILENCE:
- return 4;
diff --git a/net/asterisk14/files/patch-main::manager.c b/net/asterisk14/files/patch-main::manager.c
deleted file mode 100644
index 686068b09e09..000000000000
--- a/net/asterisk14/files/patch-main::manager.c
+++ /dev/null
@@ -1,31 +0,0 @@
---- main/manager.c.orig 2008-04-02 15:49:38.000000000 +0300
-+++ main/manager.c 2008-04-02 15:42:18.000000000 +0300
-@@ -176,6 +176,7 @@
- struct eventqent *eventq;
- /* Timeout for ast_carefulwrite() */
- int writetimeout;
-+ int pending_event;
- AST_LIST_ENTRY(mansession) list;
- };
-
-@@ -2214,6 +2215,11 @@
- fds[0].events = POLLIN;
- do {
- ast_mutex_lock(&s->__lock);
-+ if (s->pending_event) {
-+ s->pending_event = 0;
-+ ast_mutex_unlock(&s->__lock);
-+ return 0;
-+ }
- s->waiting_thread = pthread_self();
- ast_mutex_unlock(&s->__lock);
-
-@@ -2475,6 +2481,8 @@
- ast_mutex_lock(&s->__lock);
- if (s->waiting_thread != AST_PTHREADT_NULL)
- pthread_kill(s->waiting_thread, SIGURG);
-+ else
-+ s->pending_event = 1;
- ast_mutex_unlock(&s->__lock);
- }
- AST_LIST_UNLOCK(&sessions);
diff --git a/net/asterisk14/files/rtp_force_dtmf-codecnego.diff b/net/asterisk14/files/rtp_force_dtmf-codecnego.diff
deleted file mode 100644
index 7cd43e08d238..000000000000
--- a/net/asterisk14/files/rtp_force_dtmf-codecnego.diff
+++ /dev/null
@@ -1,86 +0,0 @@
---- channels/chan_sip.c.orig 2008-03-12 17:37:00.000000000 +0200
-+++ channels/chan_sip.c 2008-03-12 18:17:33.000000000 +0200
-@@ -554,6 +554,9 @@
- static unsigned int global_tos_sip; /*!< IP type of service for SIP packets */
- static unsigned int global_tos_audio; /*!< IP type of service for audio RTP packets */
- static unsigned int global_tos_video; /*!< IP type of service for video RTP packets */
-+static int global_force_dtmf_relay = 0;
-+static int global_force_dtmf_relay_pt = 101;
-+
- static int compactheaders; /*!< send compact sip headers */
- static int recordhistory; /*!< Record SIP history. Off by default */
- static int dumphistory; /*!< Dump history to verbose before destroying SIP dialog */
-@@ -4983,6 +4986,8 @@
- int codec_index = 0;
- int codec_pt_order[256];
-
-+ int dtmf_present = 0;
-+
- if (!p->rtp) {
- ast_log(LOG_ERROR, "Got SDP but have no RTP session allocated.\n");
- return -1;
-@@ -5408,12 +5413,20 @@
- for (x = 0; x < codec_index; ++x) {
- struct rtpPayloadType pt;
- pt = ast_rtp_lookup_pt(p->rtp, codec_pt_order[x]);
-+ if (pt.code == AST_RTP_DTMF)
-+ dtmf_present = 1;
- if (!pt.isAstFormat && !pt.code && p->vrtp)
- pt = ast_rtp_lookup_pt(p->vrtp, codec_pt_order[x]);
- if (pt.isAstFormat)
- ast_codec_pref_append(&p->formats, pt.code);
- }
- ast_codec_pref_remove2(&p->formats, ~p->usercapability);
-+ if (!dtmf_present && global_force_dtmf_relay) {
-+ newnoncodeccapability |= AST_RTP_DTMF;
-+ ast_rtp_set_m_type(newaudiortp, global_force_dtmf_relay_pt);
-+ codec_pt_order[codec_index++] = global_force_dtmf_relay_pt;
-+ ast_rtp_set_rtpmap_type(newaudiortp, global_force_dtmf_relay_pt, "audio", "telephone-event", 0);
-+ }
-
- /* Now gather all of the codecs that we are asked for: */
- ast_rtp_get_current_formats(newaudiortp, &peercapability, &peernoncodeccapability);
-@@ -16845,6 +16858,9 @@
-
- global_matchexterniplocally = FALSE;
-
-+ global_force_dtmf_relay = 0;
-+ global_force_dtmf_relay_pt = 101;
-+
- /* Copy the default jb config over global_jbconf */
- memcpy(&global_jbconf, &default_jbconf, sizeof(struct ast_jb_conf));
-
-@@ -16901,6 +16917,18 @@
- }
- } else if (!strcasecmp(v->name, "vmexten")) {
- ast_copy_string(default_vmexten, v->value, sizeof(default_vmexten));
-+ } else if (!strcasecmp(v->name, "rtp_force_dtmf_relay")) {
-+ if ((global_force_dtmf_relay = ast_true(v->value)))
-+ ast_verbose("RTP DTMF relaying will be enforced\n");
-+ else
-+ ast_verbose("RTP DTMF relaying will not be enforced\n");
-+ } else if (!strcasecmp(v->name, "rtp_force_dtmf_relay_pt")) {
-+ sscanf(v->value, "%d", &global_force_dtmf_relay_pt);
-+ if (global_force_dtmf_relay_pt < 96 || global_force_dtmf_relay_pt > 255) {
-+ ast_verbose("RTP forced DTMF relay payload type is not valid: %d. Using default (101)\n", global_force_dtmf_relay_pt);
-+ global_force_dtmf_relay_pt = 101;
-+ } else
-+ ast_log(LOG_WARNING, "RTP forced DTMF relay payload type is %d\n", global_force_dtmf_relay_pt);
- } else if (!strcasecmp(v->name, "rtptimeout")) {
- if ((sscanf(v->value, "%d", &global_rtptimeout) != 1) || (global_rtptimeout < 0)) {
- ast_log(LOG_WARNING, "'%s' is not a valid RTP hold time at line %d. Using default.\n", v->value, v->lineno);
---- configs/sip.conf.sample.orig 2008-03-12 17:57:19.000000000 +0200
-+++ configs/sip.conf.sample 2008-03-12 18:13:03.000000000 +0200
-@@ -53,6 +53,12 @@
- ; and multiline formatted headers for strict
- ; SIP compatibility (defaults to "no")
-
-+;rtp_force_dtmf_relay=no ; Enable RFC2833 DTMFs to be sent even if peer
-+ ; hasn't announced support for it. Default: no
-+
-+;rtp_force_dtmf_relay_pt=101 ; RTP payload type value for enforced RFC2833
-+ ; DTMFs. Default: 101
-+
- ; See doc/README.tos for a description of these parameters.
- ;tos_sip=cs3 ; Sets TOS for SIP packets.
- ;tos_audio=ef ; Sets TOS for RTP audio packets.
diff --git a/net/asterisk14/files/rtp_force_dtmf-nocodecnego.diff b/net/asterisk14/files/rtp_force_dtmf-nocodecnego.diff
deleted file mode 100644
index 776422b34645..000000000000
--- a/net/asterisk14/files/rtp_force_dtmf-nocodecnego.diff
+++ /dev/null
@@ -1,70 +0,0 @@
---- channels/chan_sip.c.orig 2008-01-31 21:52:49.000000000 +0200
-+++ channels/chan_sip.c 2008-03-14 17:50:57.000000000 +0200
-@@ -556,6 +556,9 @@
- static unsigned int global_tos_sip; /*!< IP type of service for SIP packets */
- static unsigned int global_tos_audio; /*!< IP type of service for audio RTP packets */
- static unsigned int global_tos_video; /*!< IP type of service for video RTP packets */
-+static int global_force_dtmf_relay = 0;
-+static int global_force_dtmf_relay_pt = 101;
-+
- static int compactheaders; /*!< send compact sip headers */
- static int recordhistory; /*!< Record SIP history. Off by default */
- static int dumphistory; /*!< Dump history to verbose before destroying SIP dialog */
-@@ -5392,6 +5395,13 @@
-
- /* Now gather all of the codecs that we are asked for: */
- ast_rtp_get_current_formats(newaudiortp, &peercapability, &peernoncodeccapability);
-+ /* Add telephone-event */
-+ if (global_force_dtmf_relay && !(peernoncodeccapability & AST_RTP_DTMF)) {
-+ ast_rtp_set_m_type(newaudiortp, global_force_dtmf_relay_pt);
-+ found_rtpmap_codecs[last_rtpmap_codec++] = global_force_dtmf_relay_pt;
-+ ast_rtp_set_rtpmap_type(newaudiortp, global_force_dtmf_relay_pt, "audio", "telephone-event", 0);
-+ peernoncodeccapability |= AST_RTP_DTMF;
-+ }
- ast_rtp_get_current_formats(newvideortp, &vpeercapability, &vpeernoncodeccapability);
-
- newjointcapability = p->capability & (peercapability | vpeercapability);
-@@ -16833,6 +16843,9 @@
-
- global_matchexterniplocally = FALSE;
-
-+ global_force_dtmf_relay = 0;
-+ global_force_dtmf_relay_pt = 101;
-+
- /* Copy the default jb config over global_jbconf */
- memcpy(&global_jbconf, &default_jbconf, sizeof(struct ast_jb_conf));
-
-@@ -16889,6 +16902,18 @@
- }
- } else if (!strcasecmp(v->name, "vmexten")) {
- ast_copy_string(default_vmexten, v->value, sizeof(default_vmexten));
-+ } else if (!strcasecmp(v->name, "rtp_force_dtmf_relay")) {
-+ if ((global_force_dtmf_relay = ast_true(v->value)))
-+ ast_verbose("RTP DTMF relaying will be enforced\n");
-+ else
-+ ast_verbose("RTP DTMF relaying will not be enforced\n");
-+ } else if (!strcasecmp(v->name, "rtp_force_dtmf_relay_pt")) {
-+ sscanf(v->value, "%d", &global_force_dtmf_relay_pt);
-+ if (global_force_dtmf_relay_pt < 96 || global_force_dtmf_relay_pt > 255) {
-+ ast_verbose("RTP forced DTMF relay payload type is not valid: %d. Using default (101)\n", global_force_dtmf_relay_pt);
-+ global_force_dtmf_relay_pt = 101;
-+ } else
-+ ast_log(LOG_WARNING, "RTP forced DTMF relay payload type is %d\n", global_force_dtmf_relay_pt);
- } else if (!strcasecmp(v->name, "rtptimeout")) {
- if ((sscanf(v->value, "%d", &global_rtptimeout) != 1) || (global_rtptimeout < 0)) {
- ast_log(LOG_WARNING, "'%s' is not a valid RTP hold time at line %d. Using default.\n", v->value, v->lineno);
---- configs/sip.conf.sample.orig 2008-03-12 17:57:19.000000000 +0200
-+++ configs/sip.conf.sample 2008-03-12 18:13:03.000000000 +0200
-@@ -53,6 +53,12 @@
- ; and multiline formatted headers for strict
- ; SIP compatibility (defaults to "no")
-
-+;rtp_force_dtmf_relay=no ; Enable RFC2833 DTMFs to be sent even if peer
-+ ; hasn't announced support for it. Default: no
-+
-+;rtp_force_dtmf_relay_pt=101 ; RTP payload type value for enforced RFC2833
-+ ; DTMFs. Default: 101
-+
- ; See doc/README.tos for a description of these parameters.
- ;tos_sip=cs3 ; Sets TOS for SIP packets.
- ;tos_audio=ef ; Sets TOS for RTP audio packets.
diff --git a/net/asterisk14/files/sip_force_callid.diff b/net/asterisk14/files/sip_force_callid.diff
deleted file mode 100644
index 67a3e0192633..000000000000
--- a/net/asterisk14/files/sip_force_callid.diff
+++ /dev/null
@@ -1,12 +0,0 @@
---- channels/chan_sip.c.orig 2008-04-09 11:39:09.000000000 +0300
-+++ channels/chan_sip.c 2008-04-09 11:40:28.000000000 +0300
-@@ -2998,6 +2998,9 @@
- p->t38.state = T38_LOCAL_DIRECT;
- if (option_debug)
- ast_log(LOG_DEBUG,"T38State change to %d on channel %s\n", p->t38.state, ast->name);
-+ } else if (!strcasecmp(ast_var_name(current), "SIP_FORCE_CALLID")) {
-+
-+ ast_string_field_set(p, callid, ast_var_value(current));
- }
-
- }
diff --git a/net/asterisk14/pkg-descr b/net/asterisk14/pkg-descr
deleted file mode 100644
index 28b7a1deb011..000000000000
--- a/net/asterisk14/pkg-descr
+++ /dev/null
@@ -1,5 +0,0 @@
-Asterisk is an Open Source PBX and telephony toolkit. It is, in a
-sense, middleware between Internet and telephony channels on the bottom,
-and Internet and telephony applications at the top.
-
-WWW: http://www.asteriskpbx.com
diff --git a/net/asterisk14/pkg-plist b/net/asterisk14/pkg-plist
deleted file mode 100644
index 85ea7e48e505..000000000000
--- a/net/asterisk14/pkg-plist
+++ /dev/null
@@ -1,863 +0,0 @@
-@unexec if cmp -s %D/etc/asterisk/adsi.conf %D/etc/asterisk/adsi.conf-dist; then rm -f %D/etc/asterisk/adsi.conf; fi
-etc/asterisk/adsi.conf-dist
-@unexec if cmp -s %D/etc/asterisk/adtranvofr.conf %D/etc/asterisk/adtranvofr.conf-dist; then rm -f %D/etc/asterisk/adtranvofr.conf; fi
-etc/asterisk/adtranvofr.conf-dist
-@unexec if cmp -s %D/etc/asterisk/agents.conf %D/etc/asterisk/agents.conf-dist; then rm -f %D/etc/asterisk/agents.conf; fi
-etc/asterisk/agents.conf-dist
-@unexec if cmp -s %D/etc/asterisk/alarmreceiver.conf %D/etc/asterisk/alarmreceiver.conf-dist; then rm -f %D/etc/asterisk/alarmreceiver.conf; fi
-etc/asterisk/alarmreceiver.conf-dist
-@unexec if cmp -s %D/etc/asterisk/alsa.conf %D/etc/asterisk/alsa.conf-dist; then rm -f %D/etc/asterisk/alsa.conf; fi
-etc/asterisk/alsa.conf-dist
-@unexec if cmp -s %D/etc/asterisk/asterisk.adsi %D/etc/asterisk/asterisk.adsi-dist; then rm -f %D/etc/asterisk/asterisk.adsi; fi
-etc/asterisk/asterisk.adsi-dist
-@unexec if cmp -s %D/etc/asterisk/asterisk.conf %D/etc/asterisk/asterisk.conf-dist; then rm -f %D/etc/asterisk/asterisk.conf; fi
-etc/asterisk/asterisk.conf-dist
-@unexec if cmp -s %D/etc/asterisk/cdr.conf %D/etc/asterisk/cdr.conf-dist; then rm -f %D/etc/asterisk/cdr.conf; fi
-etc/asterisk/cdr.conf-dist
-@unexec if cmp -s %D/etc/asterisk/cdr_custom.conf %D/etc/asterisk/cdr_custom.conf-dist; then rm -f %D/etc/asterisk/cdr_custom.conf; fi
-etc/asterisk/cdr_custom.conf-dist
-@unexec if cmp -s %D/etc/asterisk/cdr_manager.conf %D/etc/asterisk/cdr_manager.conf-dist; then rm -f %D/etc/asterisk/cdr_manager.conf; fi
-etc/asterisk/cdr_manager.conf-dist
-@unexec if cmp -s %D/etc/asterisk/cdr_odbc.conf %D/etc/asterisk/cdr_odbc.conf-dist; then rm -f %D/etc/asterisk/cdr_odbc.conf; fi
-etc/asterisk/cdr_odbc.conf-dist
-@unexec if cmp -s %D/etc/asterisk/cdr_pgsql.conf %D/etc/asterisk/cdr_pgsql.conf-dist; then rm -f %D/etc/asterisk/cdr_pgsql.conf; fi
-etc/asterisk/cdr_pgsql.conf-dist
-@unexec if cmp -s %D/etc/asterisk/cdr_tds.conf %D/etc/asterisk/cdr_tds.conf-dist; then rm -f %D/etc/asterisk/cdr_tds.conf; fi
-etc/asterisk/cdr_tds.conf-dist
-@unexec if cmp -s %D/etc/asterisk/codecs.conf %D/etc/asterisk/codecs.conf-dist; then rm -f %D/etc/asterisk/codecs.conf; fi
-etc/asterisk/codecs.conf-dist
-@unexec if cmp -s %D/etc/asterisk/dnsmgr.conf %D/etc/asterisk/dnsmgr.conf-dist; then rm -f %D/etc/asterisk/dnsmgr.conf; fi
-etc/asterisk/dnsmgr.conf-dist
-@unexec if cmp -s %D/etc/asterisk/dundi.conf %D/etc/asterisk/dundi.conf-dist; then rm -f %D/etc/asterisk/dundi.conf; fi
-etc/asterisk/dundi.conf-dist
-@unexec if cmp -s %D/etc/asterisk/enum.conf %D/etc/asterisk/enum.conf-dist; then rm -f %D/etc/asterisk/enum.conf; fi
-etc/asterisk/enum.conf-dist
-@unexec if cmp -s %D/etc/asterisk/extconfig.conf %D/etc/asterisk/extconfig.conf-dist; then rm -f %D/etc/asterisk/extconfig.conf; fi
-etc/asterisk/extconfig.conf-dist
-@unexec if cmp -s %D/etc/asterisk/extensions.ael %D/etc/asterisk/extensions.ael-dist; then rm -f %D/etc/asterisk/extensions.ael; fi
-etc/asterisk/extensions.ael-dist
-@unexec if cmp -s %D/etc/asterisk/extensions.conf %D/etc/asterisk/extensions.conf-dist; then rm -f %D/etc/asterisk/extensions.conf; fi
-etc/asterisk/extensions.conf-dist
-@unexec if cmp -s %D/etc/asterisk/features.conf %D/etc/asterisk/features.conf-dist; then rm -f %D/etc/asterisk/features.conf; fi
-etc/asterisk/features.conf-dist
-@unexec if cmp -s %D/etc/asterisk/festival.conf %D/etc/asterisk/festival.conf-dist; then rm -f %D/etc/asterisk/festival.conf; fi
-etc/asterisk/festival.conf-dist
-@unexec if cmp -s %D/etc/asterisk/iax.conf %D/etc/asterisk/iax.conf-dist; then rm -f %D/etc/asterisk/iax.conf; fi
-etc/asterisk/iax.conf-dist
-@unexec if cmp -s %D/etc/asterisk/iaxprov.conf %D/etc/asterisk/iaxprov.conf-dist; then rm -f %D/etc/asterisk/iaxprov.conf; fi
-etc/asterisk/iaxprov.conf-dist
-@unexec if cmp -s %D/etc/asterisk/indications.conf %D/etc/asterisk/indications.conf-dist; then rm -f %D/etc/asterisk/indications.conf; fi
-etc/asterisk/indications.conf-dist
-@unexec if cmp -s %D/etc/asterisk/logger.conf %D/etc/asterisk/logger.conf-dist; then rm -f %D/etc/asterisk/logger.conf; fi
-etc/asterisk/logger.conf-dist
-@unexec if cmp -s %D/etc/asterisk/manager.conf %D/etc/asterisk/manager.conf-dist; then rm -f %D/etc/asterisk/manager.conf; fi
-etc/asterisk/manager.conf-dist
-@unexec if cmp -s %D/etc/asterisk/meetme.conf %D/etc/asterisk/meetme.conf-dist; then rm -f %D/etc/asterisk/meetme.conf; fi
-etc/asterisk/meetme.conf-dist
-@unexec if cmp -s %D/etc/asterisk/mgcp.conf %D/etc/asterisk/mgcp.conf-dist; then rm -f %D/etc/asterisk/mgcp.conf; fi
-etc/asterisk/mgcp.conf-dist
-@unexec if cmp -s %D/etc/asterisk/misdn.conf %D/etc/asterisk/misdn.conf-dist; then rm -f %D/etc/asterisk/misdn.conf; fi
-etc/asterisk/misdn.conf-dist
-@unexec if cmp -s %D/etc/asterisk/modules.conf %D/etc/asterisk/modules.conf-dist; then rm -f %D/etc/asterisk/modules.conf; fi
-etc/asterisk/modules.conf-dist
-@unexec if cmp -s %D/etc/asterisk/musiconhold.conf %D/etc/asterisk/musiconhold.conf-dist; then rm -f %D/etc/asterisk/musiconhold.conf; fi
-etc/asterisk/musiconhold.conf-dist
-@unexec if cmp -s %D/etc/asterisk/osp.conf %D/etc/asterisk/osp.conf-dist; then rm -f %D/etc/asterisk/osp.conf; fi
-etc/asterisk/osp.conf-dist
-@unexec if cmp -s %D/etc/asterisk/oss.conf %D/etc/asterisk/oss.conf-dist; then rm -f %D/etc/asterisk/oss.conf; fi
-etc/asterisk/oss.conf-dist
-@unexec if cmp -s %D/etc/asterisk/phone.conf %D/etc/asterisk/phone.conf-dist; then rm -f %D/etc/asterisk/phone.conf; fi
-etc/asterisk/phone.conf-dist
-@unexec if cmp -s %D/etc/asterisk/privacy.conf %D/etc/asterisk/privacy.conf-dist; then rm -f %D/etc/asterisk/privacy.conf; fi
-etc/asterisk/privacy.conf-dist
-@unexec if cmp -s %D/etc/asterisk/queues.conf %D/etc/asterisk/queues.conf-dist; then rm -f %D/etc/asterisk/queues.conf; fi
-etc/asterisk/queues.conf-dist
-@unexec if cmp -s %D/etc/asterisk/res_pgsql.conf %D/etc/asterisk/res_pgsql.conf-dist; then rm -f %D/etc/asterisk/res_pgsql.conf; fi
-etc/asterisk/res_pgsql.conf-dist
-@unexec if cmp -s %D/etc/asterisk/res_odbc.conf %D/etc/asterisk/res_odbc.conf-dist; then rm -f %D/etc/asterisk/res_odbc.conf; fi
-etc/asterisk/res_odbc.conf-dist
-@unexec if cmp -s %D/etc/asterisk/rpt.conf %D/etc/asterisk/rpt.conf-dist; then rm -f %D/etc/asterisk/rpt.conf; fi
-etc/asterisk/rpt.conf-dist
-@unexec if cmp -s %D/etc/asterisk/rtp.conf %D/etc/asterisk/rtp.conf-dist; then rm -f %D/etc/asterisk/rtp.conf; fi
-etc/asterisk/rtp.conf-dist
-@unexec if cmp -s %D/etc/asterisk/sip.conf %D/etc/asterisk/sip.conf-dist; then rm -f %D/etc/asterisk/sip.conf; fi
-etc/asterisk/sip.conf-dist
-@unexec if cmp -s %D/etc/asterisk/sip_notify.conf %D/etc/asterisk/sip_notify.conf-dist; then rm -f %D/etc/asterisk/sip_notify.conf; fi
-etc/asterisk/sip_notify.conf-dist
-@unexec if cmp -s %D/etc/asterisk/skinny.conf %D/etc/asterisk/skinny.conf-dist; then rm -f %D/etc/asterisk/skinny.conf; fi
-etc/asterisk/skinny.conf-dist
-@unexec if cmp -s %D/etc/asterisk/telcordia-1.adsi %D/etc/asterisk/telcordia-1.adsi-dist; then rm -f %D/etc/asterisk/telcordia-1.adsi; fi
-etc/asterisk/telcordia-1.adsi-dist
-@unexec if cmp -s %D/etc/asterisk/voicemail.conf %D/etc/asterisk/voicemail.conf-dist; then rm -f %D/etc/asterisk/voicemail.conf; fi
-etc/asterisk/voicemail.conf-dist
-@unexec if cmp -s %D/etc/asterisk/vpb.conf %D/etc/asterisk/vpb.conf-dist; then rm -f %D/etc/asterisk/vpb.conf; fi
-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
-etc/asterisk/zapata.conf-dist
-@unexec if cmp -s %D/etc/asterisk/udptl.conf %D/etc/asterisk/udptl.conf-dist; then rm -f %D/etc/asterisk/udptl.conf; fi
-etc/asterisk/udptl.conf-dist
-@unexec if cmp -s %D/etc/asterisk/users.conf %D/etc/asterisk/users.conf-dist; then rm -f %D/etc/asterisk/users.conf; fi
-etc/asterisk/users.conf-dist
-@unexec if cmp -s %D/etc/asterisk/smdi.conf %D/etc/asterisk/smdi.conf-dist; then rm -f %D/etc/asterisk/smdi.conf; fi
-etc/asterisk/smdi.conf-dist
-@unexec if cmp -s %D/etc/asterisk/sla.conf %D/etc/asterisk/sla.conf-dist; then rm -f %D/etc/asterisk/sla.conf; fi
-etc/asterisk/sla.conf-dist
-@unexec if cmp -s %D/etc/asterisk/say.conf %D/etc/asterisk/say.conf-dist; then rm -f %D/etc/asterisk/say.conf; fi
-etc/asterisk/say.conf-dist
-@unexec if cmp -s %D/etc/asterisk/res_snmp.conf %D/etc/asterisk/res_snmp.conf-dist; then rm -f %D/etc/asterisk/res_snmp.conf; fi
-etc/asterisk/res_snmp.conf-dist
-@unexec if cmp -s %D/etc/asterisk/muted.conf %D/etc/asterisk/muted.conf-dist; then rm -f %D/etc/asterisk/muted.conf; fi
-etc/asterisk/muted.conf-dist
-@unexec if cmp -s %D/etc/asterisk/jabber.conf %D/etc/asterisk/jabber.conf-dist; then rm -f %D/etc/asterisk/jabber.conf; fi
-etc/asterisk/jabber.conf-dist
-@unexec if cmp -s %D/etc/asterisk/http.conf %D/etc/asterisk/http.conf-dist; then rm -f %D/etc/asterisk/http.conf; fi
-etc/asterisk/http.conf-dist
-@unexec if cmp -s %D/etc/asterisk/h323.conf %D/etc/asterisk/h323.conf-dist; then rm -f %D/etc/asterisk/h323.conf; fi
-etc/asterisk/h323.conf-dist
-@unexec if cmp -s %D/etc/asterisk/gtalk.conf %D/etc/asterisk/gtalk.conf-dist; then rm -f %D/etc/asterisk/gtalk.conf; fi
-etc/asterisk/gtalk.conf-dist
-@unexec if cmp -s %D/etc/asterisk/func_odbc.conf %D/etc/asterisk/func_odbc.conf-dist; then rm -f %D/etc/asterisk/func_odbc.conf; fi
-etc/asterisk/func_odbc.conf-dist
-@unexec if cmp -s %D/etc/asterisk/followme.conf %D/etc/asterisk/followme.conf-dist; then rm -f %D/etc/asterisk/followme.conf; fi
-etc/asterisk/followme.conf-dist
-@unexec if cmp -s %D/etc/asterisk/amd.conf %D/etc/asterisk/amd.conf-dist; then rm -f %D/etc/asterisk/amd.conf; fi
-etc/asterisk/amd.conf-dist
-include/asterisk.h
-include/asterisk/abstract_jb.h
-include/asterisk/acl.h
-include/asterisk/adsi.h
-include/asterisk/ael_structs.h
-include/asterisk/aes.h
-include/asterisk/agi.h
-include/asterisk/alaw.h
-include/asterisk/app.h
-include/asterisk/ast_expr.h
-include/asterisk/astdb.h
-include/asterisk/astmm.h
-include/asterisk/astobj.h
-include/asterisk/astobj2.h
-include/asterisk/astosp.h
-include/asterisk/audiohook.h
-include/asterisk/autoconfig.h
-include/asterisk/build.h
-include/asterisk/buildopts.h
-include/asterisk/callerid.h
-include/asterisk/causes.h
-include/asterisk/cdr.h
-include/asterisk/channel.h
-include/asterisk/chanvars.h
-include/asterisk/cli.h
-include/asterisk/compat.h
-include/asterisk/compiler.h
-include/asterisk/config.h
-include/asterisk/crypto.h
-include/asterisk/devicestate.h
-include/asterisk/dial.h
-include/asterisk/dlfcn-compat.h
-include/asterisk/dns.h
-include/asterisk/dnsmgr.h
-include/asterisk/doxyref.h
-include/asterisk/dsp.h
-include/asterisk/dundi.h
-include/asterisk/endian.h
-include/asterisk/enum.h
-include/asterisk/features.h
-include/asterisk/file.h
-include/asterisk/frame.h
-include/asterisk/fskmodem.h
-include/asterisk/global_datastores.h
-include/asterisk/http.h
-include/asterisk/image.h
-include/asterisk/indications.h
-include/asterisk/inline_api.h
-include/asterisk/io.h
-include/asterisk/jabber.h
-include/asterisk/jingle.h
-include/asterisk/linkedlists.h
-include/asterisk/localtime.h
-include/asterisk/lock.h
-include/asterisk/logger.h
-include/asterisk/manager.h
-include/asterisk/md5.h
-include/asterisk/module.h
-include/asterisk/monitor.h
-include/asterisk/musiconhold.h
-include/asterisk/netsock.h
-include/asterisk/options.h
-include/asterisk/paths.h
-include/asterisk/pbx.h
-include/asterisk/plc.h
-include/asterisk/poll-compat.h
-include/asterisk/privacy.h
-include/asterisk/res_odbc.h
-include/asterisk/rtp.h
-include/asterisk/say.h
-include/asterisk/sched.h
-include/asterisk/sha1.h
-include/asterisk/slinfactory.h
-include/asterisk/smdi.h
-include/asterisk/speech.h
-include/asterisk/srv.h
-include/asterisk/stringfields.h
-include/asterisk/strings.h
-include/asterisk/tdd.h
-include/asterisk/term.h
-include/asterisk/threadstorage.h
-include/asterisk/time.h
-include/asterisk/transcap.h
-include/asterisk/translate.h
-include/asterisk/udptl.h
-include/asterisk/ulaw.h
-include/asterisk/unaligned.h
-include/asterisk/utils.h
-include/asterisk/version.h
-lib/asterisk/modules/app_adsiprog.so
-lib/asterisk/modules/app_alarmreceiver.so
-lib/asterisk/modules/app_amd.so
-lib/asterisk/modules/app_authenticate.so
-lib/asterisk/modules/app_cdr.so
-lib/asterisk/modules/app_chanisavail.so
-lib/asterisk/modules/app_channelredirect.so
-lib/asterisk/modules/app_chanspy.so
-lib/asterisk/modules/app_controlplayback.so
-lib/asterisk/modules/app_db.so
-lib/asterisk/modules/app_dial.so
-lib/asterisk/modules/app_dictate.so
-lib/asterisk/modules/app_directed_pickup.so
-lib/asterisk/modules/app_directory.so
-lib/asterisk/modules/app_disa.so
-lib/asterisk/modules/app_dumpchan.so
-lib/asterisk/modules/app_echo.so
-lib/asterisk/modules/app_exec.so
-lib/asterisk/modules/app_externalivr.so
-lib/asterisk/modules/app_festival.so
-lib/asterisk/modules/app_followme.so
-lib/asterisk/modules/app_forkcdr.so
-lib/asterisk/modules/app_getcpeid.so
-lib/asterisk/modules/app_hasnewvoicemail.so
-lib/asterisk/modules/app_ices.so
-lib/asterisk/modules/app_image.so
-lib/asterisk/modules/app_lookupblacklist.so
-lib/asterisk/modules/app_lookupcidname.so
-lib/asterisk/modules/app_macro.so
-lib/asterisk/modules/app_milliwatt.so
-lib/asterisk/modules/app_mixmonitor.so
-lib/asterisk/modules/app_morsecode.so
-lib/asterisk/modules/app_mp3.so
-lib/asterisk/modules/app_nbscat.so
-lib/asterisk/modules/app_parkandannounce.so
-lib/asterisk/modules/app_playback.so
-lib/asterisk/modules/app_privacy.so
-lib/asterisk/modules/app_queue.so
-lib/asterisk/modules/app_random.so
-lib/asterisk/modules/app_read.so
-lib/asterisk/modules/app_readfile.so
-lib/asterisk/modules/app_realtime.so
-lib/asterisk/modules/app_record.so
-lib/asterisk/modules/app_sayunixtime.so
-lib/asterisk/modules/app_senddtmf.so
-lib/asterisk/modules/app_sendtext.so
-lib/asterisk/modules/app_setcallerid.so
-lib/asterisk/modules/app_setcdruserfield.so
-lib/asterisk/modules/app_settransfercapability.so
-lib/asterisk/modules/app_sms.so
-lib/asterisk/modules/app_softhangup.so
-lib/asterisk/modules/app_speech_utils.so
-lib/asterisk/modules/app_stack.so
-lib/asterisk/modules/app_system.so
-lib/asterisk/modules/app_talkdetect.so
-lib/asterisk/modules/app_test.so
-lib/asterisk/modules/app_transfer.so
-lib/asterisk/modules/app_url.so
-lib/asterisk/modules/app_userevent.so
-lib/asterisk/modules/app_verbose.so
-lib/asterisk/modules/app_voicemail.so
-lib/asterisk/modules/app_waitforring.so
-lib/asterisk/modules/app_waitforsilence.so
-lib/asterisk/modules/app_while.so
-lib/asterisk/modules/app_zapateller.so
-lib/asterisk/modules/cdr_csv.so
-lib/asterisk/modules/cdr_custom.so
-lib/asterisk/modules/cdr_manager.so
-%%WITH_POSTGRES%%lib/asterisk/modules/cdr_pgsql.so
-%%WITH_RADIUS%%lib/asterisk/modules/cdr_radius.so
-%%WITH_SQLITE%%lib/asterisk/modules/cdr_sqlite.so
-lib/asterisk/modules/chan_agent.so
-%%WITH_JABBER%%lib/asterisk/modules/chan_gtalk.so
-lib/asterisk/modules/chan_iax2.so
-lib/asterisk/modules/chan_local.so
-lib/asterisk/modules/chan_mgcp.so
-lib/asterisk/modules/chan_oss.so
-lib/asterisk/modules/chan_sip.so
-lib/asterisk/modules/chan_skinny.so
-lib/asterisk/modules/codec_a_mu.so
-lib/asterisk/modules/codec_adpcm.so
-lib/asterisk/modules/codec_alaw.so
-lib/asterisk/modules/codec_g726.so
-lib/asterisk/modules/codec_gsm.so
-lib/asterisk/modules/codec_lpc10.so
-lib/asterisk/modules/codec_speex.so
-lib/asterisk/modules/codec_ulaw.so
-lib/asterisk/modules/format_g723.so
-lib/asterisk/modules/format_g726.so
-lib/asterisk/modules/format_g729.so
-lib/asterisk/modules/format_gsm.so
-lib/asterisk/modules/format_h263.so
-lib/asterisk/modules/format_h264.so
-lib/asterisk/modules/format_ilbc.so
-lib/asterisk/modules/format_jpeg.so
-%%WITH_OGGVORBIS%%lib/asterisk/modules/format_ogg_vorbis.so
-lib/asterisk/modules/format_pcm.so
-lib/asterisk/modules/format_sln.so
-lib/asterisk/modules/format_vox.so
-lib/asterisk/modules/format_wav.so
-lib/asterisk/modules/format_wav_gsm.so
-lib/asterisk/modules/func_base64.so
-lib/asterisk/modules/func_callerid.so
-lib/asterisk/modules/func_cdr.so
-lib/asterisk/modules/func_channel.so
-lib/asterisk/modules/func_curl.so
-lib/asterisk/modules/func_cut.so
-lib/asterisk/modules/func_db.so
-lib/asterisk/modules/func_enum.so
-lib/asterisk/modules/func_env.so
-lib/asterisk/modules/func_global.so
-lib/asterisk/modules/func_groupcount.so
-lib/asterisk/modules/func_language.so
-lib/asterisk/modules/func_logic.so
-lib/asterisk/modules/func_math.so
-lib/asterisk/modules/func_md5.so
-lib/asterisk/modules/func_moh.so
-%%WITH_ODBC%%lib/asterisk/modules/func_odbc.so
-lib/asterisk/modules/func_rand.so
-lib/asterisk/modules/func_realtime.so
-lib/asterisk/modules/func_sha1.so
-lib/asterisk/modules/func_strings.so
-lib/asterisk/modules/func_timeout.so
-lib/asterisk/modules/func_uri.so
-lib/asterisk/modules/pbx_ael.so
-lib/asterisk/modules/pbx_config.so
-lib/asterisk/modules/pbx_dundi.so
-lib/asterisk/modules/pbx_loopback.so
-lib/asterisk/modules/pbx_realtime.so
-lib/asterisk/modules/pbx_spool.so
-lib/asterisk/modules/res_adsi.so
-lib/asterisk/modules/res_agi.so
-lib/asterisk/modules/res_clioriginate.so
-%%WITH_POSTGRES%%lib/asterisk/modules/res_config_pgsql.so
-lib/asterisk/modules/res_convert.so
-lib/asterisk/modules/res_crypto.so
-lib/asterisk/modules/res_features.so
-lib/asterisk/modules/res_indications.so
-%%WITH_JABBER%%lib/asterisk/modules/res_jabber.so
-lib/asterisk/modules/res_monitor.so
-lib/asterisk/modules/res_musiconhold.so
-lib/asterisk/modules/res_smdi.so
-%%WITH_SNMP%%lib/asterisk/modules/res_snmp.so
-lib/asterisk/modules/res_speech.so
-sbin/aelparse
-sbin/asterisk
-sbin/astgenkey
-sbin/astman
-sbin/autosupport
-sbin/muted
-sbin/rasterisk
-sbin/safe_asterisk
-sbin/smsq
-sbin/stereorize
-sbin/streamplayer
-share/asterisk/agi-bin/agi-test.agi
-share/asterisk/agi-bin/eagi-sphinx-test
-share/asterisk/agi-bin/eagi-test
-share/asterisk/agi-bin/jukebox.agi
-share/asterisk/firmware/iax/iaxy.bin
-share/asterisk/images/asterisk-intro.jpg
-share/asterisk/keys/freeworlddialup.pub
-share/asterisk/keys/iaxtel.pub
-share/asterisk/moh/.asterisk-moh-freeplay-wav
-share/asterisk/moh/LICENSE-asterisk-moh-freeplay-wav
-share/asterisk/moh/fpm-calm-river.wav
-share/asterisk/moh/fpm-sunshine.wav
-share/asterisk/moh/fpm-world-mix.wav
-share/asterisk/sounds/.asterisk-core-sounds-en-gsm-1.4.9
-share/asterisk/sounds/CHANGES-asterisk-core-en-1.4.9
-share/asterisk/sounds/CREDITS-asterisk-core-en-1.4.9
-share/asterisk/sounds/agent-alreadyon.gsm
-share/asterisk/sounds/agent-incorrect.gsm
-share/asterisk/sounds/agent-loggedoff.gsm
-share/asterisk/sounds/agent-loginok.gsm
-share/asterisk/sounds/agent-newlocation.gsm
-share/asterisk/sounds/agent-pass.gsm
-share/asterisk/sounds/agent-user.gsm
-share/asterisk/sounds/auth-incorrect.gsm
-share/asterisk/sounds/auth-thankyou.gsm
-share/asterisk/sounds/beep.gsm
-share/asterisk/sounds/beeperr.gsm
-share/asterisk/sounds/conf-adminmenu.gsm
-share/asterisk/sounds/conf-enteringno.gsm
-share/asterisk/sounds/conf-errormenu.gsm
-share/asterisk/sounds/conf-getchannel.gsm
-share/asterisk/sounds/conf-getconfno.gsm
-share/asterisk/sounds/conf-getpin.gsm
-share/asterisk/sounds/conf-hasjoin.gsm
-share/asterisk/sounds/conf-hasleft.gsm
-share/asterisk/sounds/conf-invalid.gsm
-share/asterisk/sounds/conf-invalidpin.gsm
-share/asterisk/sounds/conf-kicked.gsm
-share/asterisk/sounds/conf-leaderhasleft.gsm
-share/asterisk/sounds/conf-locked.gsm
-share/asterisk/sounds/conf-lockednow.gsm
-share/asterisk/sounds/conf-muted.gsm
-share/asterisk/sounds/conf-noempty.gsm
-share/asterisk/sounds/conf-onlyone.gsm
-share/asterisk/sounds/conf-onlyperson.gsm
-share/asterisk/sounds/conf-otherinparty.gsm
-share/asterisk/sounds/conf-placeintoconf.gsm
-share/asterisk/sounds/conf-thereare.gsm
-share/asterisk/sounds/conf-unlockednow.gsm
-share/asterisk/sounds/conf-unmuted.gsm
-share/asterisk/sounds/conf-usermenu.gsm
-share/asterisk/sounds/conf-userswilljoin.gsm
-share/asterisk/sounds/conf-userwilljoin.gsm
-share/asterisk/sounds/conf-waitforleader.gsm
-share/asterisk/sounds/core-sounds-en.txt
-share/asterisk/sounds/demo-abouttotry.gsm
-share/asterisk/sounds/demo-congrats.gsm
-share/asterisk/sounds/demo-echodone.gsm
-share/asterisk/sounds/demo-echotest.gsm
-share/asterisk/sounds/demo-enterkeywords.gsm
-share/asterisk/sounds/demo-instruct.gsm
-share/asterisk/sounds/demo-moreinfo.gsm
-share/asterisk/sounds/demo-nogo.gsm
-share/asterisk/sounds/demo-nomatch.gsm
-share/asterisk/sounds/demo-thanks.gsm
-share/asterisk/sounds/dictate/both_help.gsm
-share/asterisk/sounds/dictate/enter_filename.gsm
-share/asterisk/sounds/dictate/forhelp.gsm
-share/asterisk/sounds/dictate/pause.gsm
-share/asterisk/sounds/dictate/paused.gsm
-share/asterisk/sounds/dictate/play_help.gsm
-share/asterisk/sounds/dictate/playback.gsm
-share/asterisk/sounds/dictate/playback_mode.gsm
-share/asterisk/sounds/dictate/record.gsm
-share/asterisk/sounds/dictate/record_help.gsm
-share/asterisk/sounds/dictate/record_mode.gsm
-share/asterisk/sounds/dictate/truncating_audio.gsm
-share/asterisk/sounds/digits/0.gsm
-share/asterisk/sounds/digits/1.gsm
-share/asterisk/sounds/digits/10.gsm
-share/asterisk/sounds/digits/11.gsm
-share/asterisk/sounds/digits/12.gsm
-share/asterisk/sounds/digits/13.gsm
-share/asterisk/sounds/digits/14.gsm
-share/asterisk/sounds/digits/15.gsm
-share/asterisk/sounds/digits/16.gsm
-share/asterisk/sounds/digits/17.gsm
-share/asterisk/sounds/digits/18.gsm
-share/asterisk/sounds/digits/19.gsm
-share/asterisk/sounds/digits/2.gsm
-share/asterisk/sounds/digits/20.gsm
-share/asterisk/sounds/digits/3.gsm
-share/asterisk/sounds/digits/30.gsm
-share/asterisk/sounds/digits/4.gsm
-share/asterisk/sounds/digits/40.gsm
-share/asterisk/sounds/digits/5.gsm
-share/asterisk/sounds/digits/50.gsm
-share/asterisk/sounds/digits/6.gsm
-share/asterisk/sounds/digits/60.gsm
-share/asterisk/sounds/digits/7.gsm
-share/asterisk/sounds/digits/70.gsm
-share/asterisk/sounds/digits/8.gsm
-share/asterisk/sounds/digits/80.gsm
-share/asterisk/sounds/digits/9.gsm
-share/asterisk/sounds/digits/90.gsm
-share/asterisk/sounds/digits/a-m.gsm
-share/asterisk/sounds/digits/at.gsm
-share/asterisk/sounds/digits/day-0.gsm
-share/asterisk/sounds/digits/day-1.gsm
-share/asterisk/sounds/digits/day-2.gsm
-share/asterisk/sounds/digits/day-3.gsm
-share/asterisk/sounds/digits/day-4.gsm
-share/asterisk/sounds/digits/day-5.gsm
-share/asterisk/sounds/digits/day-6.gsm
-share/asterisk/sounds/digits/dollars.gsm
-share/asterisk/sounds/digits/h-1.gsm
-share/asterisk/sounds/digits/h-10.gsm
-share/asterisk/sounds/digits/h-11.gsm
-share/asterisk/sounds/digits/h-12.gsm
-share/asterisk/sounds/digits/h-13.gsm
-share/asterisk/sounds/digits/h-14.gsm
-share/asterisk/sounds/digits/h-15.gsm
-share/asterisk/sounds/digits/h-16.gsm
-share/asterisk/sounds/digits/h-17.gsm
-share/asterisk/sounds/digits/h-18.gsm
-share/asterisk/sounds/digits/h-19.gsm
-share/asterisk/sounds/digits/h-2.gsm
-share/asterisk/sounds/digits/h-20.gsm
-share/asterisk/sounds/digits/h-3.gsm
-share/asterisk/sounds/digits/h-30.gsm
-share/asterisk/sounds/digits/h-4.gsm
-share/asterisk/sounds/digits/h-5.gsm
-share/asterisk/sounds/digits/h-6.gsm
-share/asterisk/sounds/digits/h-7.gsm
-share/asterisk/sounds/digits/h-8.gsm
-share/asterisk/sounds/digits/h-9.gsm
-share/asterisk/sounds/digits/hundred.gsm
-share/asterisk/sounds/digits/million.gsm
-share/asterisk/sounds/digits/minus.gsm
-share/asterisk/sounds/digits/mon-0.gsm
-share/asterisk/sounds/digits/mon-1.gsm
-share/asterisk/sounds/digits/mon-10.gsm
-share/asterisk/sounds/digits/mon-11.gsm
-share/asterisk/sounds/digits/mon-2.gsm
-share/asterisk/sounds/digits/mon-3.gsm
-share/asterisk/sounds/digits/mon-4.gsm
-share/asterisk/sounds/digits/mon-5.gsm
-share/asterisk/sounds/digits/mon-6.gsm
-share/asterisk/sounds/digits/mon-7.gsm
-share/asterisk/sounds/digits/mon-8.gsm
-share/asterisk/sounds/digits/mon-9.gsm
-share/asterisk/sounds/digits/oclock.gsm
-share/asterisk/sounds/digits/oh.gsm
-share/asterisk/sounds/digits/p-m.gsm
-share/asterisk/sounds/digits/pound.gsm
-share/asterisk/sounds/digits/star.gsm
-share/asterisk/sounds/digits/thousand.gsm
-share/asterisk/sounds/digits/today.gsm
-share/asterisk/sounds/digits/tomorrow.gsm
-share/asterisk/sounds/digits/yesterday.gsm
-share/asterisk/sounds/dir-first.gsm
-share/asterisk/sounds/dir-firstlast.gsm
-share/asterisk/sounds/dir-instr.gsm
-share/asterisk/sounds/dir-intro-fn.gsm
-share/asterisk/sounds/dir-intro.gsm
-share/asterisk/sounds/dir-last.gsm
-share/asterisk/sounds/dir-multi1.gsm
-share/asterisk/sounds/dir-multi2.gsm
-share/asterisk/sounds/dir-multi3.gsm
-share/asterisk/sounds/dir-multi9.gsm
-share/asterisk/sounds/dir-nomatch.gsm
-share/asterisk/sounds/dir-nomore.gsm
-share/asterisk/sounds/dir-pls-enter.gsm
-share/asterisk/sounds/followme/call-from.gsm
-share/asterisk/sounds/followme/no-recording.gsm
-share/asterisk/sounds/followme/options.gsm
-share/asterisk/sounds/followme/pls-hold-while-try.gsm
-share/asterisk/sounds/followme/sorry.gsm
-share/asterisk/sounds/followme/status.gsm
-share/asterisk/sounds/hello-world.gsm
-share/asterisk/sounds/hours.gsm
-share/asterisk/sounds/invalid.gsm
-share/asterisk/sounds/letters/a.gsm
-share/asterisk/sounds/letters/ascii123.gsm
-share/asterisk/sounds/letters/ascii124.gsm
-share/asterisk/sounds/letters/ascii125.gsm
-share/asterisk/sounds/letters/ascii126.gsm
-share/asterisk/sounds/letters/ascii34.gsm
-share/asterisk/sounds/letters/ascii36.gsm
-share/asterisk/sounds/letters/ascii37.gsm
-share/asterisk/sounds/letters/ascii38.gsm
-share/asterisk/sounds/letters/ascii39.gsm
-share/asterisk/sounds/letters/ascii40.gsm
-share/asterisk/sounds/letters/ascii41.gsm
-share/asterisk/sounds/letters/ascii42.gsm
-share/asterisk/sounds/letters/ascii44.gsm
-share/asterisk/sounds/letters/ascii58.gsm
-share/asterisk/sounds/letters/ascii59.gsm
-share/asterisk/sounds/letters/ascii60.gsm
-share/asterisk/sounds/letters/ascii62.gsm
-share/asterisk/sounds/letters/ascii63.gsm
-share/asterisk/sounds/letters/ascii91.gsm
-share/asterisk/sounds/letters/ascii92.gsm
-share/asterisk/sounds/letters/ascii93.gsm
-share/asterisk/sounds/letters/ascii94.gsm
-share/asterisk/sounds/letters/ascii95.gsm
-share/asterisk/sounds/letters/ascii96.gsm
-share/asterisk/sounds/letters/asterisk.gsm
-share/asterisk/sounds/letters/at.gsm
-share/asterisk/sounds/letters/b.gsm
-share/asterisk/sounds/letters/c.gsm
-share/asterisk/sounds/letters/d.gsm
-share/asterisk/sounds/letters/dash.gsm
-share/asterisk/sounds/letters/dollar.gsm
-share/asterisk/sounds/letters/dot.gsm
-share/asterisk/sounds/letters/e.gsm
-share/asterisk/sounds/letters/equals.gsm
-share/asterisk/sounds/letters/exclaimation-point.gsm
-share/asterisk/sounds/letters/f.gsm
-share/asterisk/sounds/letters/g.gsm
-share/asterisk/sounds/letters/h.gsm
-share/asterisk/sounds/letters/i.gsm
-share/asterisk/sounds/letters/j.gsm
-share/asterisk/sounds/letters/k.gsm
-share/asterisk/sounds/letters/l.gsm
-share/asterisk/sounds/letters/m.gsm
-share/asterisk/sounds/letters/n.gsm
-share/asterisk/sounds/letters/o.gsm
-share/asterisk/sounds/letters/p.gsm
-share/asterisk/sounds/letters/plus.gsm
-share/asterisk/sounds/letters/q.gsm
-share/asterisk/sounds/letters/r.gsm
-share/asterisk/sounds/letters/s.gsm
-share/asterisk/sounds/letters/slash.gsm
-share/asterisk/sounds/letters/space.gsm
-share/asterisk/sounds/letters/t.gsm
-share/asterisk/sounds/letters/u.gsm
-share/asterisk/sounds/letters/v.gsm
-share/asterisk/sounds/letters/w.gsm
-share/asterisk/sounds/letters/x.gsm
-share/asterisk/sounds/letters/y.gsm
-share/asterisk/sounds/letters/z.gsm
-share/asterisk/sounds/letters/zed.gsm
-share/asterisk/sounds/minutes.gsm
-share/asterisk/sounds/pbx-invalid.gsm
-share/asterisk/sounds/pbx-invalidpark.gsm
-share/asterisk/sounds/pbx-transfer.gsm
-share/asterisk/sounds/phonetic/9_p.gsm
-share/asterisk/sounds/phonetic/a_p.gsm
-share/asterisk/sounds/phonetic/b_p.gsm
-share/asterisk/sounds/phonetic/c_p.gsm
-share/asterisk/sounds/phonetic/d_p.gsm
-share/asterisk/sounds/phonetic/e_p.gsm
-share/asterisk/sounds/phonetic/f_p.gsm
-share/asterisk/sounds/phonetic/g_p.gsm
-share/asterisk/sounds/phonetic/h_p.gsm
-share/asterisk/sounds/phonetic/i_p.gsm
-share/asterisk/sounds/phonetic/j_p.gsm
-share/asterisk/sounds/phonetic/k_p.gsm
-share/asterisk/sounds/phonetic/l_p.gsm
-share/asterisk/sounds/phonetic/m_p.gsm
-share/asterisk/sounds/phonetic/n_p.gsm
-share/asterisk/sounds/phonetic/o_p.gsm
-share/asterisk/sounds/phonetic/p_p.gsm
-share/asterisk/sounds/phonetic/q_p.gsm
-share/asterisk/sounds/phonetic/r_p.gsm
-share/asterisk/sounds/phonetic/s_p.gsm
-share/asterisk/sounds/phonetic/t_p.gsm
-share/asterisk/sounds/phonetic/u_p.gsm
-share/asterisk/sounds/phonetic/v_p.gsm
-share/asterisk/sounds/phonetic/w_p.gsm
-share/asterisk/sounds/phonetic/x_p.gsm
-share/asterisk/sounds/phonetic/y_p.gsm
-share/asterisk/sounds/phonetic/z_p.gsm
-share/asterisk/sounds/priv-callee-options.gsm
-share/asterisk/sounds/priv-callpending.gsm
-share/asterisk/sounds/priv-introsaved.gsm
-share/asterisk/sounds/priv-recordintro.gsm
-share/asterisk/sounds/privacy-incorrect.gsm
-share/asterisk/sounds/privacy-prompt.gsm
-share/asterisk/sounds/privacy-thankyou.gsm
-share/asterisk/sounds/privacy-unident.gsm
-share/asterisk/sounds/queue-callswaiting.gsm
-share/asterisk/sounds/queue-holdtime.gsm
-share/asterisk/sounds/queue-less-than.gsm
-share/asterisk/sounds/queue-minutes.gsm
-share/asterisk/sounds/queue-periodic-announce.gsm
-share/asterisk/sounds/queue-quantity1.gsm
-share/asterisk/sounds/queue-quantity2.gsm
-share/asterisk/sounds/queue-reporthold.gsm
-share/asterisk/sounds/queue-seconds.gsm
-share/asterisk/sounds/queue-thankyou.gsm
-share/asterisk/sounds/queue-thereare.gsm
-share/asterisk/sounds/queue-youarenext.gsm
-share/asterisk/sounds/screen-callee-options.gsm
-share/asterisk/sounds/seconds.gsm
-share/asterisk/sounds/silence/1.gsm
-share/asterisk/sounds/silence/10.gsm
-share/asterisk/sounds/silence/2.gsm
-share/asterisk/sounds/silence/3.gsm
-share/asterisk/sounds/silence/4.gsm
-share/asterisk/sounds/silence/5.gsm
-share/asterisk/sounds/silence/6.gsm
-share/asterisk/sounds/silence/7.gsm
-share/asterisk/sounds/silence/8.gsm
-share/asterisk/sounds/silence/9.gsm
-share/asterisk/sounds/spy-agent.gsm
-share/asterisk/sounds/spy-console.gsm
-share/asterisk/sounds/spy-h323.gsm
-share/asterisk/sounds/spy-iax.gsm
-share/asterisk/sounds/spy-iax2.gsm
-share/asterisk/sounds/spy-jingle.gsm
-share/asterisk/sounds/spy-local.gsm
-share/asterisk/sounds/spy-mgcp.gsm
-share/asterisk/sounds/spy-misdn.gsm
-share/asterisk/sounds/spy-mobile.gsm
-share/asterisk/sounds/spy-nbs.gsm
-share/asterisk/sounds/spy-sip.gsm
-share/asterisk/sounds/spy-skinny.gsm
-share/asterisk/sounds/spy-unistim.gsm
-share/asterisk/sounds/spy-usbradio.gsm
-share/asterisk/sounds/spy-zap.gsm
-share/asterisk/sounds/ss-noservice.gsm
-share/asterisk/sounds/transfer.gsm
-share/asterisk/sounds/tt-allbusy.gsm
-share/asterisk/sounds/tt-monkeys.gsm
-share/asterisk/sounds/tt-monkeysintro.gsm
-share/asterisk/sounds/tt-somethingwrong.gsm
-share/asterisk/sounds/tt-weasels.gsm
-share/asterisk/sounds/vm-Cust1.gsm
-share/asterisk/sounds/vm-Cust2.gsm
-share/asterisk/sounds/vm-Cust3.gsm
-share/asterisk/sounds/vm-Cust4.gsm
-share/asterisk/sounds/vm-Cust5.gsm
-share/asterisk/sounds/vm-Family.gsm
-share/asterisk/sounds/vm-Friends.gsm
-share/asterisk/sounds/vm-INBOX.gsm
-share/asterisk/sounds/vm-Old.gsm
-share/asterisk/sounds/vm-Work.gsm
-share/asterisk/sounds/vm-advopts.gsm
-share/asterisk/sounds/vm-and.gsm
-share/asterisk/sounds/vm-calldiffnum.gsm
-share/asterisk/sounds/vm-changeto.gsm
-share/asterisk/sounds/vm-delete.gsm
-share/asterisk/sounds/vm-deleted.gsm
-share/asterisk/sounds/vm-dialout.gsm
-share/asterisk/sounds/vm-duration.gsm
-share/asterisk/sounds/vm-enter-num-to-call.gsm
-share/asterisk/sounds/vm-extension.gsm
-share/asterisk/sounds/vm-first.gsm
-share/asterisk/sounds/vm-for.gsm
-share/asterisk/sounds/vm-forward.gsm
-share/asterisk/sounds/vm-forwardoptions.gsm
-share/asterisk/sounds/vm-from-extension.gsm
-share/asterisk/sounds/vm-from-phonenumber.gsm
-share/asterisk/sounds/vm-from.gsm
-share/asterisk/sounds/vm-goodbye.gsm
-share/asterisk/sounds/vm-helpexit.gsm
-share/asterisk/sounds/vm-incorrect-mailbox.gsm
-share/asterisk/sounds/vm-incorrect.gsm
-share/asterisk/sounds/vm-instructions.gsm
-share/asterisk/sounds/vm-intro.gsm
-share/asterisk/sounds/vm-invalidpassword.gsm
-share/asterisk/sounds/vm-isonphone.gsm
-share/asterisk/sounds/vm-isunavail.gsm
-share/asterisk/sounds/vm-last.gsm
-share/asterisk/sounds/vm-leavemsg.gsm
-share/asterisk/sounds/vm-login.gsm
-share/asterisk/sounds/vm-mailboxfull.gsm
-share/asterisk/sounds/vm-message.gsm
-share/asterisk/sounds/vm-messages.gsm
-share/asterisk/sounds/vm-minutes.gsm
-share/asterisk/sounds/vm-mismatch.gsm
-share/asterisk/sounds/vm-msginstruct.gsm
-share/asterisk/sounds/vm-msgsaved.gsm
-share/asterisk/sounds/vm-newpassword.gsm
-share/asterisk/sounds/vm-newuser.gsm
-share/asterisk/sounds/vm-next.gsm
-share/asterisk/sounds/vm-no.gsm
-share/asterisk/sounds/vm-nobodyavail.gsm
-share/asterisk/sounds/vm-nobox.gsm
-share/asterisk/sounds/vm-nomore.gsm
-share/asterisk/sounds/vm-nonumber.gsm
-share/asterisk/sounds/vm-num-i-have.gsm
-share/asterisk/sounds/vm-onefor.gsm
-share/asterisk/sounds/vm-onefor-full.gsm
-share/asterisk/sounds/vm-options.gsm
-share/asterisk/sounds/vm-opts.gsm
-share/asterisk/sounds/vm-opts-full.gsm
-share/asterisk/sounds/vm-passchanged.gsm
-share/asterisk/sounds/vm-password.gsm
-share/asterisk/sounds/vm-press.gsm
-share/asterisk/sounds/vm-prev.gsm
-share/asterisk/sounds/vm-reachoper.gsm
-share/asterisk/sounds/vm-rec-busy.gsm
-share/asterisk/sounds/vm-rec-name.gsm
-share/asterisk/sounds/vm-rec-temp.gsm
-share/asterisk/sounds/vm-rec-unv.gsm
-share/asterisk/sounds/vm-received.gsm
-share/asterisk/sounds/vm-reenterpassword.gsm
-share/asterisk/sounds/vm-repeat.gsm
-share/asterisk/sounds/vm-review.gsm
-share/asterisk/sounds/vm-saved.gsm
-share/asterisk/sounds/vm-savedto.gsm
-share/asterisk/sounds/vm-savefolder.gsm
-share/asterisk/sounds/vm-savemessage.gsm
-share/asterisk/sounds/vm-saveoper.gsm
-share/asterisk/sounds/vm-sorry.gsm
-share/asterisk/sounds/vm-star-cancel.gsm
-share/asterisk/sounds/vm-starmain.gsm
-share/asterisk/sounds/vm-tempgreetactive.gsm
-share/asterisk/sounds/vm-tempgreeting.gsm
-share/asterisk/sounds/vm-tempgreeting2.gsm
-share/asterisk/sounds/vm-tempremoved.gsm
-share/asterisk/sounds/vm-then-pound.gsm
-share/asterisk/sounds/vm-theperson.gsm
-share/asterisk/sounds/vm-tmpexists.gsm
-share/asterisk/sounds/vm-tocallback.gsm
-share/asterisk/sounds/vm-tocallnum.gsm
-share/asterisk/sounds/vm-tocancel.gsm
-share/asterisk/sounds/vm-tocancelmsg.gsm
-share/asterisk/sounds/vm-toenternumber.gsm
-share/asterisk/sounds/vm-toforward.gsm
-share/asterisk/sounds/vm-tohearenv.gsm
-share/asterisk/sounds/vm-tomakecall.gsm
-share/asterisk/sounds/vm-tooshort.gsm
-share/asterisk/sounds/vm-toreply.gsm
-share/asterisk/sounds/vm-torerecord.gsm
-share/asterisk/sounds/vm-undelete.gsm
-share/asterisk/sounds/vm-undeleted.gsm
-share/asterisk/sounds/vm-unknown-caller.gsm
-share/asterisk/sounds/vm-whichbox.gsm
-share/asterisk/sounds/vm-youhave.gsm
-share/asterisk/static-http/ajamdemo.html
-share/asterisk/static-http/astman.css
-share/asterisk/static-http/astman.js
-share/asterisk/static-http/prototype.js
-%%WITH_ZAPTEL%%lib/asterisk/modules/app_flash.so
-%%WITH_ZAPTEL%%lib/asterisk/modules/app_meetme.so
-%%WITH_ZAPTEL%%lib/asterisk/modules/app_page.so
-%%WITH_ZAPTEL%%lib/asterisk/modules/app_zapbarge.so
-%%WITH_ZAPTEL%%lib/asterisk/modules/app_zapras.so
-%%WITH_ZAPTEL%%lib/asterisk/modules/app_zapscan.so
-%%WITH_ODBC%%lib/asterisk/modules/cdr_odbc.so
-%%WITH_FREETDS%%lib/asterisk/modules/cdr_tds.so
-%%WITH_H323%%lib/asterisk/modules/chan_h323.so
-%%WITH_ZAPTEL%%lib/asterisk/modules/chan_zap.so
-%%WITH_ZAPTEL%%lib/asterisk/modules/codec_zap.so
-%%WITH_ODBC%%lib/asterisk/modules/res_config_odbc.so
-%%WITH_ODBC%%lib/asterisk/modules/res_odbc.so
-@dirrm share/asterisk/static-http
-@dirrm share/asterisk/sounds/silence
-@dirrm share/asterisk/sounds/phonetic
-@dirrm share/asterisk/sounds/letters
-@dirrm share/asterisk/sounds/fr
-@dirrm share/asterisk/sounds/followme
-@dirrm share/asterisk/sounds/es
-@dirrm share/asterisk/sounds/digits
-@dirrm share/asterisk/sounds/dictate
-@dirrm share/asterisk/sounds
-@dirrm share/asterisk/moh
-@dirrm share/asterisk/keys
-@dirrm share/asterisk/images
-@dirrm share/asterisk/firmware/iax
-@dirrm share/asterisk/firmware
-@dirrm share/asterisk/agi-bin
-@dirrm share/asterisk
-@dirrm lib/asterisk/modules
-@dirrm lib/asterisk
-@dirrm include/asterisk
-@dirrmtry etc/asterisk
-@cwd /var
-spool/asterisk/voicemail/default/1234/busy.gsm
-spool/asterisk/voicemail/default/1234/unavail.gsm
-@exec mkdir -p %D/log/asterisk/cdr-csv
-@exec mkdir -p %D/log/asterisk/cdr-custom
-@exec mkdir -p %D/spool/asterisk/voicemail/default/1234/INBOX
-@exec mkdir -p %D/spool/asterisk/dictate
-@exec mkdir -p %D/spool/asterisk/meetme
-@exec mkdir -p %D/spool/asterisk/monitor
-@exec mkdir -p %D/spool/asterisk/system
-@exec mkdir -p %D/spool/asterisk/tmp
-@dirrm spool/asterisk/dictate
-@dirrm spool/asterisk/meetme
-@dirrm spool/asterisk/monitor
-@dirrm spool/asterisk/system
-@dirrm spool/asterisk/voicemail/default/1234/INBOX
-@dirrm spool/asterisk/voicemail/default/1234
-@dirrm spool/asterisk/voicemail/default
-@dirrm spool/asterisk/voicemail
-@dirrm spool/asterisk/tmp
-@dirrm spool/asterisk
-@dirrm log/asterisk/cdr-csv
-@dirrm log/asterisk/cdr-custom
-@dirrm log/asterisk