pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/comms/asterisk15



Module Name:    pkgsrc
Committed By:   joerg
Date:           Mon Jul 16 21:53:05 UTC 2018

Added Files:
        pkgsrc/comms/asterisk15: DESCR Makefile PLIST distinfo options.mk
        pkgsrc/comms/asterisk15/files: asterisk.sh
        pkgsrc/comms/asterisk15/files/smf: manifest.xml
        pkgsrc/comms/asterisk15/patches: patch-Makefile
            patch-addons_chan__ooh323.c patch-apps_app__adsiprog.c
            patch-apps_app__chanspy.c patch-apps_app__directory.c
            patch-apps_app__dumpchan.c patch-apps_app__followme.c
            patch-apps_app__minivm.c patch-apps_app__queue.c
            patch-apps_app__sms.c patch-apps_app__voicemail.c
            patch-build__tools_mkpkgconfig patch-cdr_cdr__pgsql.c
            patch-cel_cel__pgsql.c patch-channels_chan__oss.c
            patch-channels_chan__pjsip.c patch-channels_chan__sip.c
            patch-channels_pjsip_cli__commands.c
            patch-channels_pjsip_dialplan__functions.c patch-configure
            patch-configure.ac patch-contrib_scripts_vmail.cgi
            patch-funcs_func__cdr.c patch-funcs_func__channel.c
            patch-funcs_func__env.c patch-funcs_func__pjsip__aor.c
            patch-funcs_func__pjsip__contact.c
            patch-funcs_func__pjsip__endpoint.c patch-funcs_func__strings.c
            patch-include_asterisk_autoconfig.h.in
            patch-include_asterisk_endian.h patch-include_asterisk_lock.h
            patch-include_asterisk_sha1.h patch-include_asterisk_strings.h
            patch-main_Makefile patch-main_acl.c patch-main_app.c
            patch-main_ast__expr2.c patch-main_ast__expr2.y
            patch-main_asterisk.c patch-main_astmm.c patch-main_bridge__basic.c
            patch-main_callerid.c patch-main_cdr.c patch-main_cel.c
            patch-main_cli.c patch-main_conversions.c patch-main_dns__naptr.c
            patch-main_enum.c patch-main_features.c patch-main_http.c
            patch-main_indications.c patch-main_logger.c patch-main_manager.c
            patch-main_netsock.c patch-main_pbx.c patch-main_pbx__builtins.c
            patch-main_pbx__timing.c patch-main_sched.c
            patch-main_stdtime_localtime.c patch-main_tdd.c patch-main_test.c
            patch-main_utils.c patch-menuselect_menuselect.c
            patch-pbx_pbx__config.c patch-pbx_pbx__dundi.c patch-res_ael_pval.c
            patch-res_res__calendar.c patch-res_res__calendar__caldav.c
            patch-res_res__calendar__icalendar.c patch-res_res__hep__pjsip.c
            patch-res_res__limit.c patch-res_res__musiconhold.c
            patch-res_res__pjproject.c patch-res_res__pjsip.c
            patch-res_res__pjsip__acl.c
            patch-res_res__pjsip__authenticator__digest.c
            patch-res_res__pjsip__caller__id.c
            patch-res_res__pjsip__config__wizard.c
            patch-res_res__pjsip__dialog__info__body__generator.c
            patch-res_res__pjsip__diversion.c
            patch-res_res__pjsip__dlg__options.c
            patch-res_res__pjsip__dtmf__info.c
            patch-res_res__pjsip__empty__info.c
            patch-res_res__pjsip__endpoint__identifier__anonymous.c
            patch-res_res__pjsip__endpoint__identifier__ip.c
            patch-res_res__pjsip__endpoint__identifier__user.c
            patch-res_res__pjsip__exten__state.c
            patch-res_res__pjsip__header__funcs.c
            patch-res_res__pjsip__history.c patch-res_res__pjsip__logger.c
            patch-res_res__pjsip__messaging.c patch-res_res__pjsip__mwi.c
            patch-res_res__pjsip__mwi__body__generator.c
            patch-res_res__pjsip__nat.c patch-res_res__pjsip__notify.c
            patch-res_res__pjsip__one__touch__record__info.c
            patch-res_res__pjsip__outbound__authenticator__digest.c
            patch-res_res__pjsip__outbound__publish.c
            patch-res_res__pjsip__outbound__registration.c
            patch-res_res__pjsip__path.c
            patch-res_res__pjsip__phoneprov__provider.c
            patch-res_res__pjsip__pidf__body__generator.c
            patch-res_res__pjsip__pidf__digium__body__supplement.c
            patch-res_res__pjsip__pidf__eyebeam__body__supplement.c
            patch-res_res__pjsip__publish__asterisk.c
            patch-res_res__pjsip__pubsub.c patch-res_res__pjsip__refer.c
            patch-res_res__pjsip__registrar.c patch-res_res__pjsip__rfc3326.c
            patch-res_res__pjsip__sdp__rtp.c
            patch-res_res__pjsip__send__to__voicemail.c
            patch-res_res__pjsip__session.c
            patch-res_res__pjsip__sips__contact.c patch-res_res__pjsip__t38.c
            patch-res_res__pjsip__transport__websocket.c
            patch-res_res__pjsip__xpidf__body__generator.c
            patch-res_res__pjsip_config__auth.c
            patch-res_res__pjsip_config__domain__aliases.c
            patch-res_res__pjsip_config__global.c
            patch-res_res__pjsip_config__system.c
            patch-res_res__pjsip_config__transport.c
            patch-res_res__pjsip_location.c patch-res_res__pjsip_pjsip__cli.c
            patch-res_res__pjsip_pjsip__configuration.c
            patch-res_res__pjsip_pjsip__distributor.c
            patch-res_res__pjsip_pjsip__global__headers.c
            patch-res_res__pjsip_pjsip__message__filter.c
            patch-res_res__pjsip_pjsip__options.c
            patch-res_res__pjsip_pjsip__resolver.c
            patch-res_res__pjsip_pjsip__scheduler.c
            patch-res_res__pjsip_pjsip__session.c
            patch-res_res__pjsip_pjsip__transport__events.c
            patch-res_res__pjsip_pjsip__transport__management.c
            patch-res_res__pjsip_presence__xml.c
            patch-res_res__pjsip_security__events.c
            patch-res_res__rtp__asterisk.c patch-res_res__xmpp.c
            patch-sounds_Makefile patch-tests_test__locale.c
            patch-tests_test__voicemail__api.c patch-utils_Makefile
            patch-utils_db1-ast_include_db.h patch-utils_extconf.c
            patch-utils_smsq.c patch-utils_streamplayer.c

Log Message:
Add Asterisk 15.4.1:

Asterisk is a complete PBX in software.  It provides all of the
features you would expect from a PBX and more. Asterisk does voice
over IP in three protocols, and can interoperate with almost all
standards-based telephony equipment using relatively inexpensive
hardware.

Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).

This is a standard version.  It is scheduled to go to security
fixes only on October 3th, 2018, and EOL on October 3th, 2019.
See here for more information about Asterisk versions:
https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/comms/asterisk15/DESCR \
    pkgsrc/comms/asterisk15/Makefile pkgsrc/comms/asterisk15/PLIST \
    pkgsrc/comms/asterisk15/distinfo pkgsrc/comms/asterisk15/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/comms/asterisk15/files/asterisk.sh
cvs rdiff -u -r0 -r1.1 pkgsrc/comms/asterisk15/files/smf/manifest.xml
cvs rdiff -u -r0 -r1.1 pkgsrc/comms/asterisk15/patches/patch-Makefile \
    pkgsrc/comms/asterisk15/patches/patch-addons_chan__ooh323.c \
    pkgsrc/comms/asterisk15/patches/patch-apps_app__adsiprog.c \
    pkgsrc/comms/asterisk15/patches/patch-apps_app__chanspy.c \
    pkgsrc/comms/asterisk15/patches/patch-apps_app__directory.c \
    pkgsrc/comms/asterisk15/patches/patch-apps_app__dumpchan.c \
    pkgsrc/comms/asterisk15/patches/patch-apps_app__followme.c \
    pkgsrc/comms/asterisk15/patches/patch-apps_app__minivm.c \
    pkgsrc/comms/asterisk15/patches/patch-apps_app__queue.c \
    pkgsrc/comms/asterisk15/patches/patch-apps_app__sms.c \
    pkgsrc/comms/asterisk15/patches/patch-apps_app__voicemail.c \
    pkgsrc/comms/asterisk15/patches/patch-build__tools_mkpkgconfig \
    pkgsrc/comms/asterisk15/patches/patch-cdr_cdr__pgsql.c \
    pkgsrc/comms/asterisk15/patches/patch-cel_cel__pgsql.c \
    pkgsrc/comms/asterisk15/patches/patch-channels_chan__oss.c \
    pkgsrc/comms/asterisk15/patches/patch-channels_chan__pjsip.c \
    pkgsrc/comms/asterisk15/patches/patch-channels_chan__sip.c \
    pkgsrc/comms/asterisk15/patches/patch-channels_pjsip_cli__commands.c \
    pkgsrc/comms/asterisk15/patches/patch-channels_pjsip_dialplan__functions.c \
    pkgsrc/comms/asterisk15/patches/patch-configure \
    pkgsrc/comms/asterisk15/patches/patch-configure.ac \
    pkgsrc/comms/asterisk15/patches/patch-contrib_scripts_vmail.cgi \
    pkgsrc/comms/asterisk15/patches/patch-funcs_func__cdr.c \
    pkgsrc/comms/asterisk15/patches/patch-funcs_func__channel.c \
    pkgsrc/comms/asterisk15/patches/patch-funcs_func__env.c \
    pkgsrc/comms/asterisk15/patches/patch-funcs_func__pjsip__aor.c \
    pkgsrc/comms/asterisk15/patches/patch-funcs_func__pjsip__contact.c \
    pkgsrc/comms/asterisk15/patches/patch-funcs_func__pjsip__endpoint.c \
    pkgsrc/comms/asterisk15/patches/patch-funcs_func__strings.c \
    pkgsrc/comms/asterisk15/patches/patch-include_asterisk_autoconfig.h.in \
    pkgsrc/comms/asterisk15/patches/patch-include_asterisk_endian.h \
    pkgsrc/comms/asterisk15/patches/patch-include_asterisk_lock.h \
    pkgsrc/comms/asterisk15/patches/patch-include_asterisk_sha1.h \
    pkgsrc/comms/asterisk15/patches/patch-include_asterisk_strings.h \
    pkgsrc/comms/asterisk15/patches/patch-main_Makefile \
    pkgsrc/comms/asterisk15/patches/patch-main_acl.c \
    pkgsrc/comms/asterisk15/patches/patch-main_app.c \
    pkgsrc/comms/asterisk15/patches/patch-main_ast__expr2.c \
    pkgsrc/comms/asterisk15/patches/patch-main_ast__expr2.y \
    pkgsrc/comms/asterisk15/patches/patch-main_asterisk.c \
    pkgsrc/comms/asterisk15/patches/patch-main_astmm.c \
    pkgsrc/comms/asterisk15/patches/patch-main_bridge__basic.c \
    pkgsrc/comms/asterisk15/patches/patch-main_callerid.c \
    pkgsrc/comms/asterisk15/patches/patch-main_cdr.c \
    pkgsrc/comms/asterisk15/patches/patch-main_cel.c \
    pkgsrc/comms/asterisk15/patches/patch-main_cli.c \
    pkgsrc/comms/asterisk15/patches/patch-main_conversions.c \
    pkgsrc/comms/asterisk15/patches/patch-main_dns__naptr.c \
    pkgsrc/comms/asterisk15/patches/patch-main_enum.c \
    pkgsrc/comms/asterisk15/patches/patch-main_features.c \
    pkgsrc/comms/asterisk15/patches/patch-main_http.c \
    pkgsrc/comms/asterisk15/patches/patch-main_indications.c \
    pkgsrc/comms/asterisk15/patches/patch-main_logger.c \
    pkgsrc/comms/asterisk15/patches/patch-main_manager.c \
    pkgsrc/comms/asterisk15/patches/patch-main_netsock.c \
    pkgsrc/comms/asterisk15/patches/patch-main_pbx.c \
    pkgsrc/comms/asterisk15/patches/patch-main_pbx__builtins.c \
    pkgsrc/comms/asterisk15/patches/patch-main_pbx__timing.c \
    pkgsrc/comms/asterisk15/patches/patch-main_sched.c \
    pkgsrc/comms/asterisk15/patches/patch-main_stdtime_localtime.c \
    pkgsrc/comms/asterisk15/patches/patch-main_tdd.c \
    pkgsrc/comms/asterisk15/patches/patch-main_test.c \
    pkgsrc/comms/asterisk15/patches/patch-main_utils.c \
    pkgsrc/comms/asterisk15/patches/patch-menuselect_menuselect.c \
    pkgsrc/comms/asterisk15/patches/patch-pbx_pbx__config.c \
    pkgsrc/comms/asterisk15/patches/patch-pbx_pbx__dundi.c \
    pkgsrc/comms/asterisk15/patches/patch-res_ael_pval.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__calendar.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__calendar__caldav.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__calendar__icalendar.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__hep__pjsip.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__limit.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__musiconhold.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjproject.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__acl.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__authenticator__digest.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__caller__id.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__config__wizard.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__dialog__info__body__generator.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__diversion.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__dlg__options.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__dtmf__info.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__empty__info.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__endpoint__identifier__anonymous.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__endpoint__identifier__ip.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__endpoint__identifier__user.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__exten__state.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__header__funcs.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__history.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__logger.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__messaging.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__mwi.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__mwi__body__generator.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__nat.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__notify.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__one__touch__record__info.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__outbound__authenticator__digest.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__outbound__publish.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__outbound__registration.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__path.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__phoneprov__provider.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__pidf__body__generator.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__pidf__digium__body__supplement.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__pidf__eyebeam__body__supplement.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__publish__asterisk.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__pubsub.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__refer.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__registrar.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__rfc3326.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__sdp__rtp.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__send__to__voicemail.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__session.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__sips__contact.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__t38.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__transport__websocket.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__xpidf__body__generator.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__auth.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__domain__aliases.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__global.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__system.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__transport.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_location.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__cli.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__configuration.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__distributor.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__global__headers.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__message__filter.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__options.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__resolver.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__scheduler.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__session.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__transport__events.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__transport__management.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_presence__xml.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_security__events.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__rtp__asterisk.c \
    pkgsrc/comms/asterisk15/patches/patch-res_res__xmpp.c \
    pkgsrc/comms/asterisk15/patches/patch-sounds_Makefile \
    pkgsrc/comms/asterisk15/patches/patch-tests_test__locale.c \
    pkgsrc/comms/asterisk15/patches/patch-tests_test__voicemail__api.c \
    pkgsrc/comms/asterisk15/patches/patch-utils_Makefile \
    pkgsrc/comms/asterisk15/patches/patch-utils_db1-ast_include_db.h \
    pkgsrc/comms/asterisk15/patches/patch-utils_extconf.c \
    pkgsrc/comms/asterisk15/patches/patch-utils_smsq.c \
    pkgsrc/comms/asterisk15/patches/patch-utils_streamplayer.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/comms/asterisk15/DESCR
diff -u /dev/null pkgsrc/comms/asterisk15/DESCR:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/DESCR       Mon Jul 16 21:53:04 2018
@@ -0,0 +1,15 @@
+Asterisk is a complete PBX in software.  It provides all of the
+features you would expect from a PBX and more. Asterisk does voice
+over IP in three protocols, and can interoperate with almost all
+standards-based telephony equipment using relatively inexpensive
+hardware.
+
+Asterisk provides Voicemail services with Directory, Call Conferencing,
+Interactive Voice Response, Call Queuing. It has support for
+three-way calling, caller ID services, ADSI, SIP and H.323 (as both
+client and gateway).
+
+This is a standard version.  It is scheduled to go to security
+fixes only on October 3th, 2018, and EOL on October 3th, 2019.
+See here for more information about Asterisk versions:
+https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions
Index: pkgsrc/comms/asterisk15/Makefile
diff -u /dev/null pkgsrc/comms/asterisk15/Makefile:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/Makefile    Mon Jul 16 21:53:04 2018
@@ -0,0 +1,299 @@
+# $NetBSD: Makefile,v 1.1 2018/07/16 21:53:04 joerg Exp $
+#
+# NOTE: when updating this package, there are two places that sound
+#       tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
+#       to find out the current sound file versions
+
+DISTNAME=      asterisk-15.4.1
+CATEGORIES=    comms net audio
+MASTER_SITES=  http://downloads.asterisk.org/pub/telephony/asterisk/
+MASTER_SITES+= http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/
+MASTER_SITES+= http://downloads.asterisk.org/pub/telephony/sounds/releases/
+DIST_SUBDIR=   ${PKGNAME_NOREV}
+DISTFILES=     ${DEFAULT_DISTFILES}
+
+COMMENT=       The Asterisk Software PBX
+LICENSE=       gnu-gpl-v2
+
+EXTRACT_ONLY=  ${DISTNAME}.tar.gz
+OWNER=         jnemeth%NetBSD.org@localhost
+HOMEPAGE=      http://www.asterisk.org/
+
+MAKE_JOBS_SAFE=        NO
+
+# known to have issues on i386, block the package until the bug is fixed
+BROKEN_ON_PLATFORM=    NetBSD-*-i386
+
+CONFLICTS+=    asterisk-sounds-extra-[0-9]*
+
+.include "../../mk/bsd.prefs.mk"
+
+USE_TOOLS+=            bison gmake perl:run pkg-config tar bash:run
+USE_LANGUAGES=         c c++
+REPLACE_BASH+=         contrib/scripts/astversion
+REPLACE_BASH+=         contrib/scripts/ast_coredumper
+REPLACE_BASH+=         contrib/scripts/ast_logescalator
+REPLACE_BASH+=         contrib/scripts/ast_loggrabber
+REPLACE_PERL+=         agi/DialAnMp3.agi agi/agi-test.agi
+REPLACE_PERL+=         agi/fastagi-test agi/jukebox.agi agi/numeralize
+REPLACE_PERL+=         contrib/scripts/vmail.cgi
+
+CHECK_INTERPRETER_SKIP+=       libdata/asterisk/scripts/refcounter.py
+
+GNU_CONFIGURE=         yes
+CONFIGURE_ARGS+=       --datarootdir=${PREFIX}/libdata
+CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+=       --without-gtk2
+# XXX remove when lang/lua gets builtin.mk
+CONFIGURE_ARGS+=       --without-lua
+
+.if (${OPSYS} == "NetBSD" && \
+    (empty(OS_VERSION:M6.99.[4-9]?) && empty(OS_VERSION:M[7-9].*)))
+CONFIGURE_ARGS+=       --without-srtp
+.else
+CONFIGURE_ARGS+=       --with-srtp
+PLIST.srtp=            YES
+.include "../../comms/srtp/buildlink3.mk"
+.endif
+
+INSTALL_TARGET=                install samples
+INSTALLATION_DIRS+=    lib/pkgconfig share/doc/${PKGBASE}
+INSTALLATION_DIRS+=    share/examples/asterisk share/examples/rc.d
+INSTALLATION_DIRS+=    ${ASTDATADIR}/sounds/en ${ASTDATADIR}/moh
+
+BUILD_DEFS+=           VARBASE
+
+ASTERISK_USER?=                        asterisk
+ASTERISK_GROUP?=               asterisk
+PKG_GROUPS=                    ${ASTERISK_GROUP}
+PKG_USERS=                     ${ASTERISK_USER}:${ASTERISK_GROUP}
+PKG_GECOS.${ASTERISK_USER}=    Asterisk PBX
+PKG_GROUPS_VARS=               ASTERISK_GROUP
+PKG_USERS_VARS=                        ASTERISK_USER
+FILES_SUBST+=                  ASTERISK_USER=${ASTERISK_USER}
+FILES_SUBST+=                  ASTERISK_GROUP=${ASTERISK_GROUP}
+MESSAGE_SUBST+=                        ASTERISK_USER=${ASTERISK_USER}
+MESSAGE_SUBST+=                        ASTERISK_GROUP=${ASTERISK_GROUP}
+
+# Various path settings for Asterisk
+PKG_SYSCONFSUBDIR=     asterisk
+PKG_SYSCONFDIR_PERMS=  ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+ASTETCDIR=             ${PKG_SYSCONFDIR}
+ASTEXAMPLEDIR=         ${PREFIX}/share/examples/asterisk
+ASTDBDIR=              ${VARBASE}/db/asterisk
+ASTSPOOLDIR=           ${VARBASE}/spool/asterisk
+ASTLOGDIR=             ${VARBASE}/log/asterisk
+MESSAGE_SUBST+=                ASTDBDIR=${ASTDBDIR}
+MESSAGE_SUBST+=                ASTSPOOLDIR=${ASTSPOOLDIR}
+MESSAGE_SUBST+=                ASTLOGDIR=${ASTLOGDIR}
+ASTVARRUNDIR=          ${VARBASE}/run/asterisk
+FILES_SUBST+=          ASTVARRUNDIR=${ASTVARRUNDIR}
+ASTDATADIR=            ${PREFIX}/libdata/asterisk
+MAKE_FLAGS+=           ASTLIBDIR=${PREFIX}/lib/asterisk
+MAKE_FLAGS+=           ASTVARLIBDIR=${ASTDATADIR}
+MAKE_FLAGS+=           ASTKEYDIR=${ASTDATADIR}
+MAKE_FLAGS+=           ASTDATADIR=${ASTDATADIR}
+MAKE_FLAGS+=           ASTSPOOLDIR=${ASTSPOOLDIR}
+MAKE_FLAGS+=           ASTLOGDIR=${ASTLOGDIR}
+MAKE_FLAGS+=           ASTHEADERDIR=${PREFIX}/include/asterisk
+MAKE_FLAGS+=           ASTCONFPATH=${ASTETCDIR}/asterisk.conf
+MAKE_FLAGS+=           ASTBINDIR=${PREFIX}/bin
+MAKE_FLAGS+=           ASTSBINDIR=${PREFIX}/sbin
+MAKE_FLAGS+=           ASTVARRUNDIR=${ASTVARRUNDIR}
+MAKE_FLAGS+=           ASTMANDIR=${PREFIX}/${PKGMANDIR}
+MAKE_FLAGS+=           ASTETCDIR=${ASTETCDIR}
+MAKE_FLAGS+=           ASTDBDIR=${ASTDBDIR}
+MAKE_FLAGS+=           AGI_DIR=${PREFIX}/libexec/agi-bin
+MAKE_FLAGS+=           ASTEXAMPLEDIR=${ASTEXAMPLEDIR}
+MAKE_FLAGS+=           WRKSRC=${WRKSRC}
+MAKE_FLAGS+=           LDOPTS=${LDFLAGS:M*:Q}
+MAKE_FLAGS+=           HTTP_DOCSDIR=${PREFIX}/share/httpd/htdocs
+MAKE_FLAGS+=           HTTP_CGIDIR=${PREFIX}/libexec/cgi-bin
+MAKE_FLAGS+=           OPTIMIZE=-O3
+
+.if !empty(MACHINE_PLATFORM:MSunOS-*-i386)
+BUILDLINK_TRANSFORM+=  rm:-march=i386
+.endif
+
+PLIST_VARS+=   kqueue
+.if exists(/usr/include/sys/event.h)
+PLIST.kqueue=  yes
+.endif
+
+PLIST_VARS+=   mgcp
+# NOSIGPIPE is a temp variable, since PLIST.mgcp MUST remain undefined
+# if the grep fails
+.for dir in ${COMPILER_INCLUDE_DIRS}
+.  if (exists(${dir}/sys/socket.h))
+NOSIGPIPE!=    ${GREP} SO_NOSIGPIPE ${dir}/sys/socket.h || echo ""
+.    if ${NOSIGPIPE} != ""
+PLIST.mgcp=    yes
+.    endif
+.  endif
+.endfor
+
+PLIST_VARS+=   unbound
+.if exists(/usr/include/unbound.h)
+PLIST.unbound= yes
+.endif
+
+.include "options.mk"
+
+# check sounds/Makefile for current version when upgrading package
+DISTFILES+=    asterisk-extra-sounds-en-gsm-1.5.2.tar.gz
+
+# pjproject
+PJPROJ_VERSION=        2.7.2
+SITES.pjproject-${PJPROJ_VERSION}.tar.bz2=     -https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/${PJPROJ_VERSION}/pjproject-${PJPROJ_VERSION}.tar.bz2
+SITES.pjproject-${PJPROJ_VERSION}.md5= -https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/${PJPROJ_VERSION}/MD5SUM.TXT
+DISTFILES+=    pjproject-${PJPROJ_VERSION}.tar.bz2 pjproject-${PJPROJ_VERSION}.md5
+ALL_ENV+=      EXTERNALS_CACHE_DIR=${DISTDIR}/${DIST_SUBDIR}
+
+# Override default paths in config files
+SUBST_CLASSES+=                configs
+SUBST_STAGE.configs=   pre-configure
+SUBST_FILES.configs=   configs/samples/cli_aliases.conf.sample
+SUBST_FILES.configs+=  configs/samples/festival.conf.sample
+SUBST_FILES.configs+=  configs/samples/http.conf.sample
+SUBST_FILES.configs+=  configs/samples/iax.conf.sample
+SUBST_FILES.configs+=  configs/samples/musiconhold.conf.sample
+SUBST_FILES.configs+=  configs/samples/osp.conf.sample
+SUBST_FILES.configs+=  configs/samples/phoneprov.conf.sample
+SUBST_FILES.configs+=  configs/samples/res_config_sqlite.conf.sample
+SUBST_FILES.configs+=  configs/samples/sla.conf.sample
+SUBST_SED.configs+=    -e 's|doc/|${PREFIX}/share/doc/${PKGBASE}/|'
+SUBST_SED.configs+=    -e 's|/etc/asterisk|${ASTETCDIR}|'
+SUBST_SED.configs+=    -e 's|/var/lib/asterisk|${ASTVARLIBDIR}|'
+SUBST_SED.configs+=    -e "s|/usr/local/man|${ASTMANDIR}|"
+SUBST_SED.configs+=    -e "s|/usr/local|${PREFIX}|"
+SUBST_SED.configs+=    -e "s|/var|${VARBASE}|"
+
+# XXX gross hack, remove when item is fixed
+SUBST_CLASSES.NetBSD+= autoconfig
+SUBST_STAGE.autoconfig=        post-configure
+SUBST_FILES.autoconfig=        include/asterisk/autoconfig.h
+SUBST_SED.autoconfig=  -e "s|^\#define HAVE_GCC_ATOMICS 1|\#undef HAVE_GCC_ATOMICS|"
+SUBST_SED.autoconfig+= -e "s|^\#define HAVE_GETHOSTBYNAME_R_6 1|\#undef HAVE_GETHOSTBYNAME_R_6|"
+
+# XXX gross hack, IP_PKTINFO in NetBSD isn't compatible with anything else
+SUBST_CLASSES.NetBSD+= pktinfo
+SUBST_STAGE.pktinfo=   post-configure
+SUBST_FILES.pktinfo=   include/asterisk/autoconfig.h
+SUBST_SED.pktinfo=     -e "s|^\#define HAVE_PKTINFO 1|\#undef HAVE_PKTINFO|"
+
+# XXX gross hack, gethostbyname_r on NETBSD is for internal use only
+SUBST_CLASSES.NetBSD+=         gethostbyname_r
+SUBST_STAGE.gethostbyname_r=   post-configure
+SUBST_FILES.gethostbyname_r=   include/asterisk/autoconfig.h
+SUBST_SED.gethostbyname_r=     -e "s|^\#define HAVE_GETHOSTBYNAME_R_5 1|\#undef HAVE_GETHOSTBYNAME_R_5|"
+SUBST_SED.gethostbyname_r+=    -e "s|^\#define HAVE_GETHOSTBYNAME_R_6 1|\#undef HAVE_GETHOSTBYNAME_R_6|"
+
+RCD_SCRIPTS=           asterisk
+OWN_DIRS_PERMS+=       ${ASTDBDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=       ${ASTSPOOLDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=       ${ASTSPOOLDIR}/dictate ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=       ${ASTSPOOLDIR}/meetme ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=       ${ASTSPOOLDIR}/monitor ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=       ${ASTSPOOLDIR}/outgoing ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=       ${ASTSPOOLDIR}/system ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=       ${ASTSPOOLDIR}/tmp ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=       ${ASTSPOOLDIR}/voicemail ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=       ${ASTSPOOLDIR}/voicemail/default ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=       ${ASTSPOOLDIR}/voicemail/default/1234 ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=       ${ASTSPOOLDIR}/voicemail/default/1234/INBOX ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=       ${ASTSPOOLDIR}/voicemail/default/1234/en ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+SPECIAL_PERMS+=                ${ASTSPOOLDIR}/voicemail/default/1234/en/busy.gsm ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
+SPECIAL_PERMS+=                ${ASTSPOOLDIR}/voicemail/default/1234/en/unavail.gsm ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
+OWN_DIRS_PERMS+=       ${ASTSPOOLDIR}/voicemail/default/INBOX ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=       ${ASTSPOOLDIR}/voicemail/default/en ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=       ${ASTLOGDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=       ${ASTLOGDIR}/cdr-csv ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=       ${ASTLOGDIR}/cdr-custom ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+
+CONF_FILES_PERMS=      # empty
+.for f in asterisk.conf extensions.conf
+CONF_FILES_PERMS+=     ${ASTEXAMPLEDIR}/${f:Q} ${PKG_SYSCONFDIR}/${f:Q} ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
+.endfor
+
+.if !empty(PKG_OPTIONS:Masterisk-config)
+# if we put all the files in $CONF_FILES, the message is _way_ too long.
+.  for f in acl.conf adsi.conf agents.conf alarmreceiver.conf alsa.conf        \
+       amd.conf app_mysql.conf app_skel.conf ari.conf                  \
+       ast_debug_tools.conf asterisk.adsi calendar.conf ccss.conf      \
+       cdr.conf cdr_adaptive_odbc.conf cdr_custom.conf                 \
+       cdr_manager.conf cdr_mysql.conf cdr_odbc.conf cdr_pgsql.conf    \
+       cdr_sqlite3_custom.conf cdr_syslog.conf cdr_tds.conf cel.conf   \
+       cel_custom.conf cel_odbc.conf cel_pgsql.conf                    \
+       cel_sqlite3_custom.conf cel_tds.conf chan_dahdi.conf            \
+       chan_mobile.conf cli.conf cli_aliases.conf cli_permissions.conf \
+       codecs.conf confbridge.conf console.conf dbsep.conf dnsmgr.conf \
+       dsp.conf dundi.conf enum.conf extconfig.conf extensions.ael     \
+       extensions.conf extensions.lua  extensions_minivm.conf          \
+       features.conf festival.conf followme.conf func_odbc.conf        \
+       hep.conf http.conf iax.conf iaxprov.conf indications.conf       \
+       logger.conf manager.conf meetme.conf mgcp.conf minivm.conf      \
+       misdn.conf modules.conf motif.conf musiconhold.conf muted.conf  \
+       ooh323.conf osp.conf oss.conf phone.conf phoneprov.conf         \
+       pjproject.conf pjsip.conf pjsip_notify.conf pjsip_wizard.conf   \
+       queuerules.conf queues.conf res_config_mysql.conf               \
+       res_config_sqlite.conf res_config_sqlite3.conf                  \
+       res_corosync.conf res_curl.conf  res_fax.conf res_ldap.conf     \
+       res_odbc.conf res_parking.conf res_pgsql.conf res_pktccops.conf \
+       res_snmp.conf res_stun_monitor.conf resolver_unbound.conf       \
+       rtp.conf say.conf sip.conf sip_notify.conf skinny.conf sla.conf \
+       smdi.conf sorcery.conf ss7.timers stasis.conf statsd.conf       \
+       telcordia-1.adsi udptl.conf unistim.conf users.conf             \
+       voicemail.conf vpb.conf xmpp.conf
+CONF_FILES_PERMS+=             ${ASTEXAMPLEDIR}/${f:Q} ${PKG_SYSCONFDIR}/${f:Q} ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
+.  endfor
+.endif
+
+PTHREAD_OPTS+= require native
+
+.if (${OPSYS} == "Darwin" && exists(/usr/include/sys/poll.h))
+post-patch:
+       ${ECHO} "#include <sys/poll.h>" > ${WRKSRC}/include/asterisk/poll-compat.h
+.endif
+
+post-install:
+# check sounds directory for current versions when upgrading package
+       ${TAR} xzf ${WRKSRC}/sounds/asterisk-core-sounds-en-gsm-1.6.1.tar.gz -C ${DESTDIR}${ASTDATADIR}/sounds/en
+       ${TAR} xzf ${WRKSRC}/sounds/asterisk-moh-opsound-wav-2.03.tar.gz -C ${DESTDIR}${ASTDATADIR}/moh
+       ${TAR} xzf ${DISTDIR}/${DIST_SUBDIR}/asterisk-extra-sounds-en-gsm-1.5.2.tar.gz -C ${DESTDIR}${ASTDATADIR}/sounds/en
+       ${INSTALL_DATA} ${WRKSRC}/BUGS ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/CHANGES ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/CREDITS ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/README-SERIOUSLY.bestpractices.md ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.2.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.4.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.6.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.8.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE-10.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE-11.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE-12.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE-13.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE-14.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/UPGRADE.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/Zaptel-to-DAHDI.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/doc/IAX2-security.pdf ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/doc/IAX2-security.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/doc/README.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+
+.if ${OPSYS} != "Darwin" && ${PKGSRC_COMPILER} == "clang"
+.include "../../lang/libBlocksRuntime/buildlink3.mk"
+.endif
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../devel/libuuid/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../textproc/jansson/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/comms/asterisk15/PLIST
diff -u /dev/null pkgsrc/comms/asterisk15/PLIST:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/PLIST       Mon Jul 16 21:53:04 2018
@@ -0,0 +1,2657 @@
+@comment $NetBSD: PLIST,v 1.1 2018/07/16 21:53:04 joerg Exp $
+include/asterisk.h
+include/asterisk/_private.h
+include/asterisk/abstract_jb.h
+include/asterisk/acl.h
+include/asterisk/adsi.h
+include/asterisk/ael_structs.h
+include/asterisk/agi.h
+include/asterisk/alaw.h
+include/asterisk/alertpipe.h
+include/asterisk/aoc.h
+include/asterisk/app.h
+include/asterisk/ari.h
+include/asterisk/ast_expr.h
+include/asterisk/ast_version.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/autochan.h
+include/asterisk/autoconfig.h
+include/asterisk/backtrace.h
+include/asterisk/beep.h
+include/asterisk/bridge.h
+include/asterisk/bridge_after.h
+include/asterisk/bridge_basic.h
+include/asterisk/bridge_channel.h
+include/asterisk/bridge_channel_internal.h
+include/asterisk/bridge_features.h
+include/asterisk/bridge_internal.h
+include/asterisk/bridge_roles.h
+include/asterisk/bridge_technology.h
+include/asterisk/bucket.h
+include/asterisk/build.h
+include/asterisk/buildinfo.h
+include/asterisk/buildopts.h
+include/asterisk/calendar.h
+include/asterisk/callerid.h
+include/asterisk/causes.h
+include/asterisk/ccss.h
+include/asterisk/cdr.h
+include/asterisk/cel.h
+include/asterisk/celt.h
+include/asterisk/channel.h
+include/asterisk/channel_internal.h
+include/asterisk/channelstate.h
+include/asterisk/chanvars.h
+include/asterisk/cli.h
+include/asterisk/codec.h
+include/asterisk/compat.h
+include/asterisk/compiler.h
+include/asterisk/config.h
+include/asterisk/config_options.h
+include/asterisk/conversions.h
+include/asterisk/core_local.h
+include/asterisk/core_unreal.h
+include/asterisk/crypto.h
+include/asterisk/data_buffer.h
+include/asterisk/datastore.h
+include/asterisk/devicestate.h
+include/asterisk/dial.h
+include/asterisk/dlinkedlists.h
+include/asterisk/dns.h
+include/asterisk/dns_core.h
+include/asterisk/dns_internal.h
+include/asterisk/dns_naptr.h
+include/asterisk/dns_query_set.h
+include/asterisk/dns_recurring.h
+include/asterisk/dns_resolver.h
+include/asterisk/dns_srv.h
+include/asterisk/dns_test.h
+include/asterisk/dns_tlsa.h
+include/asterisk/dnsmgr.h
+include/asterisk/doxygen/architecture.h
+include/asterisk/doxygen/licensing.h
+include/asterisk/doxyref.h
+include/asterisk/dsp.h
+include/asterisk/dundi.h
+include/asterisk/endian.h
+include/asterisk/endpoints.h
+include/asterisk/enum.h
+include/asterisk/event.h
+include/asterisk/event_defs.h
+include/asterisk/extconf.h
+include/asterisk/features.h
+include/asterisk/features_config.h
+include/asterisk/file.h
+include/asterisk/format.h
+include/asterisk/format_cache.h
+include/asterisk/format_cap.h
+include/asterisk/format_compatibility.h
+include/asterisk/frame.h
+include/asterisk/framehook.h
+include/asterisk/fskmodem.h
+include/asterisk/fskmodem_float.h
+include/asterisk/fskmodem_int.h
+include/asterisk/global_datastores.h
+include/asterisk/hashtab.h
+include/asterisk/heap.h
+include/asterisk/http.h
+include/asterisk/http_websocket.h
+include/asterisk/ilbc.h
+include/asterisk/image.h
+include/asterisk/indications.h
+include/asterisk/inline_api.h
+include/asterisk/io.h
+include/asterisk/iostream.h
+include/asterisk/json.h
+include/asterisk/linkedlists.h
+include/asterisk/localtime.h
+include/asterisk/lock.h
+include/asterisk/logger.h
+include/asterisk/manager.h
+include/asterisk/max_forwards.h
+include/asterisk/md5.h
+include/asterisk/media_cache.h
+include/asterisk/media_index.h
+include/asterisk/message.h
+include/asterisk/mixmonitor.h
+include/asterisk/mod_format.h
+include/asterisk/module.h
+include/asterisk/monitor.h
+include/asterisk/multicast_rtp.h
+include/asterisk/musiconhold.h
+include/asterisk/named_locks.h
+include/asterisk/netsock.h
+include/asterisk/netsock2.h
+include/asterisk/network.h
+include/asterisk/optional_api.h
+include/asterisk/options.h
+include/asterisk/opus.h
+include/asterisk/parking.h
+include/asterisk/paths.h
+include/asterisk/pbx.h
+include/asterisk/phoneprov.h
+include/asterisk/pickup.h
+include/asterisk/pktccops.h
+include/asterisk/plc.h
+include/asterisk/poll-compat.h
+include/asterisk/presencestate.h
+include/asterisk/privacy.h
+include/asterisk/pval.h
+include/asterisk/res_fax.h
+include/asterisk/res_hep.h
+include/asterisk/res_mwi_external.h
+include/asterisk/res_odbc.h
+include/asterisk/res_odbc_transaction.h
+include/asterisk/res_pjproject.h
+include/asterisk/res_pjsip.h
+include/asterisk/res_pjsip_body_generator_types.h
+include/asterisk/res_pjsip_cli.h
+include/asterisk/res_pjsip_outbound_publish.h
+include/asterisk/res_pjsip_presence_xml.h
+include/asterisk/res_pjsip_pubsub.h
+include/asterisk/res_pjsip_session.h
+include/asterisk/res_srtp.h
+include/asterisk/rtp_engine.h
+include/asterisk/say.h
+include/asterisk/sched.h
+include/asterisk/sdp_srtp.h
+include/asterisk/security_events.h
+include/asterisk/security_events_defs.h
+include/asterisk/select.h
+include/asterisk/sem.h
+include/asterisk/sha1.h
+include/asterisk/silk.h
+include/asterisk/sip_api.h
+include/asterisk/slin.h
+include/asterisk/slinfactory.h
+include/asterisk/smdi.h
+include/asterisk/smoother.h
+include/asterisk/sorcery.h
+include/asterisk/sounds_index.h
+include/asterisk/speech.h
+include/asterisk/spinlock.h
+include/asterisk/srv.h
+include/asterisk/stasis.h
+include/asterisk/stasis_app.h
+include/asterisk/stasis_app_device_state.h
+include/asterisk/stasis_app_impl.h
+include/asterisk/stasis_app_mailbox.h
+include/asterisk/stasis_app_playback.h
+include/asterisk/stasis_app_recording.h
+include/asterisk/stasis_app_snoop.h
+include/asterisk/stasis_bridges.h
+include/asterisk/stasis_cache_pattern.h
+include/asterisk/stasis_channels.h
+include/asterisk/stasis_endpoints.h
+include/asterisk/stasis_internal.h
+include/asterisk/stasis_message_router.h
+include/asterisk/stasis_system.h
+include/asterisk/stasis_test.h
+include/asterisk/statsd.h
+include/asterisk/stream.h
+include/asterisk/stringfields.h
+include/asterisk/strings.h
+include/asterisk/stun.h
+include/asterisk/syslog.h
+include/asterisk/taskprocessor.h
+include/asterisk/tcptls.h
+include/asterisk/tdd.h
+include/asterisk/term.h
+include/asterisk/test.h
+include/asterisk/threadpool.h
+include/asterisk/threadstorage.h
+include/asterisk/time.h
+include/asterisk/timing.h
+include/asterisk/transcap.h
+include/asterisk/translate.h
+include/asterisk/udptl.h
+include/asterisk/ulaw.h
+include/asterisk/unaligned.h
+include/asterisk/uri.h
+include/asterisk/utils.h
+include/asterisk/uuid.h
+include/asterisk/vector.h
+include/asterisk/version.h
+include/asterisk/xml.h
+include/asterisk/xmldoc.h
+include/asterisk/xmpp.h
+lib/asterisk/libasteriskpj.so
+lib/asterisk/libasteriskpj.so.2
+lib/asterisk/modules/app_adsiprog.so
+lib/asterisk/modules/app_agent_pool.so
+lib/asterisk/modules/app_alarmreceiver.so
+lib/asterisk/modules/app_amd.so
+lib/asterisk/modules/app_authenticate.so
+lib/asterisk/modules/app_bridgeaddchan.so
+lib/asterisk/modules/app_bridgewait.so
+lib/asterisk/modules/app_cdr.so
+lib/asterisk/modules/app_celgenuserevent.so
+lib/asterisk/modules/app_chanisavail.so
+lib/asterisk/modules/app_channelredirect.so
+lib/asterisk/modules/app_chanspy.so
+lib/asterisk/modules/app_confbridge.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_ices.so
+lib/asterisk/modules/app_image.so
+lib/asterisk/modules/app_macro.so
+lib/asterisk/modules/app_milliwatt.so
+lib/asterisk/modules/app_minivm.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_originate.so
+lib/asterisk/modules/app_page.so
+lib/asterisk/modules/app_playback.so
+lib/asterisk/modules/app_playtones.so
+lib/asterisk/modules/app_privacy.so
+lib/asterisk/modules/app_queue.so
+lib/asterisk/modules/app_read.so
+lib/asterisk/modules/app_readexten.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_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_stasis.so
+lib/asterisk/modules/app_stream_echo.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_waituntil.so
+lib/asterisk/modules/app_while.so
+lib/asterisk/modules/app_zapateller.so
+lib/asterisk/modules/bridge_builtin_features.so
+lib/asterisk/modules/bridge_builtin_interval_features.so
+lib/asterisk/modules/bridge_holding.so
+lib/asterisk/modules/bridge_native_rtp.so
+lib/asterisk/modules/bridge_simple.so
+lib/asterisk/modules/bridge_softmix.so
+${PLIST.unixodbc}lib/asterisk/modules/cdr_adaptive_odbc.so
+lib/asterisk/modules/cdr_csv.so
+lib/asterisk/modules/cdr_custom.so
+lib/asterisk/modules/cdr_manager.so
+${PLIST.unixodbc}lib/asterisk/modules/cdr_odbc.so
+${PLIST.pgsql}lib/asterisk/modules/cdr_pgsql.so
+lib/asterisk/modules/cdr_sqlite3_custom.so
+lib/asterisk/modules/cdr_syslog.so
+lib/asterisk/modules/cel_custom.so
+lib/asterisk/modules/cel_manager.so
+${PLIST.unixodbc}lib/asterisk/modules/cel_odbc.so
+${PLIST.pgsql}lib/asterisk/modules/cel_pgsql.so
+lib/asterisk/modules/cel_sqlite3_custom.so
+lib/asterisk/modules/chan_bridge_media.so
+lib/asterisk/modules/chan_iax2.so
+${PLIST.mgcp}lib/asterisk/modules/chan_mgcp.so
+${PLIST.jabber}lib/asterisk/modules/chan_motif.so
+lib/asterisk/modules/chan_oss.so
+lib/asterisk/modules/chan_pjsip.so
+lib/asterisk/modules/chan_rtp.so
+lib/asterisk/modules/chan_sip.so
+lib/asterisk/modules/chan_skinny.so
+lib/asterisk/modules/chan_unistim.so
+lib/asterisk/modules/codec_a_mu.so
+lib/asterisk/modules/codec_adpcm.so
+lib/asterisk/modules/codec_alaw.so
+lib/asterisk/modules/codec_g722.so
+lib/asterisk/modules/codec_g726.so
+lib/asterisk/modules/codec_gsm.so
+lib/asterisk/modules/codec_ilbc.so
+lib/asterisk/modules/codec_lpc10.so
+lib/asterisk/modules/codec_resample.so
+${PLIST.speex}lib/asterisk/modules/codec_speex.so
+lib/asterisk/modules/codec_ulaw.so
+lib/asterisk/modules/format_g719.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
+lib/asterisk/modules/format_pcm.so
+lib/asterisk/modules/format_siren14.so
+lib/asterisk/modules/format_siren7.so
+lib/asterisk/modules/format_sln.so
+${PLIST.speex}lib/asterisk/modules/format_ogg_speex.so
+lib/asterisk/modules/format_vox.so
+lib/asterisk/modules/format_wav.so
+lib/asterisk/modules/format_wav_gsm.so
+lib/asterisk/modules/func_aes.so
+lib/asterisk/modules/func_base64.so
+lib/asterisk/modules/func_blacklist.so
+lib/asterisk/modules/func_callcompletion.so
+lib/asterisk/modules/func_callerid.so
+lib/asterisk/modules/func_cdr.so
+lib/asterisk/modules/func_channel.so
+lib/asterisk/modules/func_config.so
+lib/asterisk/modules/func_curl.so
+lib/asterisk/modules/func_cut.so
+lib/asterisk/modules/func_db.so
+lib/asterisk/modules/func_devstate.so
+lib/asterisk/modules/func_dialgroup.so
+lib/asterisk/modules/func_dialplan.so
+lib/asterisk/modules/func_enum.so
+lib/asterisk/modules/func_env.so
+lib/asterisk/modules/func_extstate.so
+lib/asterisk/modules/func_frame_trace.so
+lib/asterisk/modules/func_global.so
+lib/asterisk/modules/func_groupcount.so
+lib/asterisk/modules/func_hangupcause.so
+lib/asterisk/modules/func_holdintercept.so
+lib/asterisk/modules/func_iconv.so
+lib/asterisk/modules/func_jitterbuffer.so
+lib/asterisk/modules/func_lock.so
+lib/asterisk/modules/func_logic.so
+lib/asterisk/modules/func_math.so
+lib/asterisk/modules/func_md5.so
+lib/asterisk/modules/func_module.so
+${PLIST.unixodbc}lib/asterisk/modules/func_odbc.so
+lib/asterisk/modules/func_periodic_hook.so
+lib/asterisk/modules/func_pitchshift.so
+lib/asterisk/modules/func_pjsip_aor.so
+lib/asterisk/modules/func_pjsip_contact.so
+lib/asterisk/modules/func_pjsip_endpoint.so
+lib/asterisk/modules/func_presencestate.so
+lib/asterisk/modules/func_rand.so
+lib/asterisk/modules/func_realtime.so
+lib/asterisk/modules/func_sha1.so
+lib/asterisk/modules/func_shell.so
+lib/asterisk/modules/func_sorcery.so
+${PLIST.speex}lib/asterisk/modules/func_speex.so
+lib/asterisk/modules/func_sprintf.so
+lib/asterisk/modules/func_srv.so
+lib/asterisk/modules/func_strings.so
+lib/asterisk/modules/func_sysinfo.so
+lib/asterisk/modules/func_talkdetect.so
+lib/asterisk/modules/func_timeout.so
+lib/asterisk/modules/func_uri.so
+lib/asterisk/modules/func_version.so
+lib/asterisk/modules/func_vmcount.so
+lib/asterisk/modules/func_volume.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_ael_share.so
+lib/asterisk/modules/res_agi.so
+lib/asterisk/modules/res_ari.so
+lib/asterisk/modules/res_ari_applications.so
+lib/asterisk/modules/res_ari_asterisk.so
+lib/asterisk/modules/res_ari_bridges.so
+lib/asterisk/modules/res_ari_channels.so
+lib/asterisk/modules/res_ari_device_states.so
+lib/asterisk/modules/res_ari_endpoints.so
+lib/asterisk/modules/res_ari_events.so
+lib/asterisk/modules/res_ari_model.so
+lib/asterisk/modules/res_ari_playbacks.so
+lib/asterisk/modules/res_ari_recordings.so
+lib/asterisk/modules/res_ari_sounds.so
+lib/asterisk/modules/res_calendar.so
+lib/asterisk/modules/res_clialiases.so
+lib/asterisk/modules/res_clioriginate.so
+lib/asterisk/modules/res_config_curl.so
+${PLIST.ldap}lib/asterisk/modules/res_config_ldap.so
+${PLIST.unixodbc}lib/asterisk/modules/res_config_odbc.so
+${PLIST.pgsql}lib/asterisk/modules/res_config_pgsql.so
+lib/asterisk/modules/res_config_sqlite3.so
+lib/asterisk/modules/res_convert.so
+lib/asterisk/modules/res_crypto.so
+lib/asterisk/modules/res_curl.so
+lib/asterisk/modules/res_fax.so
+${PLIST.spandsp}lib/asterisk/modules/res_fax_spandsp.so
+lib/asterisk/modules/res_format_attr_celt.so
+lib/asterisk/modules/res_format_attr_g729.so
+lib/asterisk/modules/res_format_attr_h263.so
+lib/asterisk/modules/res_format_attr_h264.so
+lib/asterisk/modules/res_format_attr_ilbc.so
+lib/asterisk/modules/res_format_attr_opus.so
+lib/asterisk/modules/res_format_attr_silk.so
+lib/asterisk/modules/res_format_attr_siren14.so
+lib/asterisk/modules/res_format_attr_siren7.so
+lib/asterisk/modules/res_format_attr_vp8.so
+lib/asterisk/modules/res_hep.so
+lib/asterisk/modules/res_hep_pjsip.so
+lib/asterisk/modules/res_hep_rtcp.so
+lib/asterisk/modules/res_http_media_cache.so
+lib/asterisk/modules/res_http_websocket.so
+lib/asterisk/modules/res_limit.so
+lib/asterisk/modules/res_manager_devicestate.so
+lib/asterisk/modules/res_manager_presencestate.so
+lib/asterisk/modules/res_monitor.so
+lib/asterisk/modules/res_musiconhold.so
+lib/asterisk/modules/res_mutestream.so
+${PLIST.unixodbc}lib/asterisk/modules/res_odbc.so
+${PLIST.unixodbc}lib/asterisk/modules/res_odbc_transaction.so
+lib/asterisk/modules/res_parking.so
+lib/asterisk/modules/res_phoneprov.so
+lib/asterisk/modules/res_pjproject.so
+lib/asterisk/modules/res_pjsip.so
+lib/asterisk/modules/res_pjsip_acl.so
+lib/asterisk/modules/res_pjsip_authenticator_digest.so
+lib/asterisk/modules/res_pjsip_caller_id.so
+lib/asterisk/modules/res_pjsip_config_wizard.so
+lib/asterisk/modules/res_pjsip_dialog_info_body_generator.so
+lib/asterisk/modules/res_pjsip_diversion.so
+lib/asterisk/modules/res_pjsip_dlg_options.so
+lib/asterisk/modules/res_pjsip_dtmf_info.so
+lib/asterisk/modules/res_pjsip_empty_info.so
+lib/asterisk/modules/res_pjsip_endpoint_identifier_anonymous.so
+lib/asterisk/modules/res_pjsip_endpoint_identifier_ip.so
+lib/asterisk/modules/res_pjsip_endpoint_identifier_user.so
+lib/asterisk/modules/res_pjsip_exten_state.so
+lib/asterisk/modules/res_pjsip_header_funcs.so
+lib/asterisk/modules/res_pjsip_history.so
+lib/asterisk/modules/res_pjsip_logger.so
+lib/asterisk/modules/res_pjsip_messaging.so
+lib/asterisk/modules/res_pjsip_mwi.so
+lib/asterisk/modules/res_pjsip_mwi_body_generator.so
+lib/asterisk/modules/res_pjsip_nat.so
+lib/asterisk/modules/res_pjsip_notify.so
+lib/asterisk/modules/res_pjsip_one_touch_record_info.so
+lib/asterisk/modules/res_pjsip_outbound_authenticator_digest.so
+lib/asterisk/modules/res_pjsip_outbound_publish.so
+lib/asterisk/modules/res_pjsip_outbound_registration.so
+lib/asterisk/modules/res_pjsip_path.so
+lib/asterisk/modules/res_pjsip_phoneprov_provider.so
+lib/asterisk/modules/res_pjsip_pidf_body_generator.so
+lib/asterisk/modules/res_pjsip_pidf_digium_body_supplement.so
+lib/asterisk/modules/res_pjsip_pidf_eyebeam_body_supplement.so
+lib/asterisk/modules/res_pjsip_publish_asterisk.so
+lib/asterisk/modules/res_pjsip_pubsub.so
+lib/asterisk/modules/res_pjsip_refer.so
+lib/asterisk/modules/res_pjsip_registrar.so
+lib/asterisk/modules/res_pjsip_rfc3326.so
+lib/asterisk/modules/res_pjsip_sdp_rtp.so
+lib/asterisk/modules/res_pjsip_send_to_voicemail.so
+lib/asterisk/modules/res_pjsip_session.so
+lib/asterisk/modules/res_pjsip_sips_contact.so
+lib/asterisk/modules/res_pjsip_t38.so
+lib/asterisk/modules/res_pjsip_transport_websocket.so
+lib/asterisk/modules/res_pjsip_xpidf_body_generator.so
+${PLIST.mgcp}lib/asterisk/modules/res_pktccops.so
+lib/asterisk/modules/res_realtime.so
+${PLIST.unbound}lib/asterisk/modules/res_resolver_unbound.so
+lib/asterisk/modules/res_rtp_asterisk.so
+lib/asterisk/modules/res_rtp_multicast.so
+lib/asterisk/modules/res_security_log.so
+lib/asterisk/modules/res_smdi.so
+${PLIST.snmp}lib/asterisk/modules/res_snmp.so
+lib/asterisk/modules/res_sorcery_astdb.so
+lib/asterisk/modules/res_sorcery_config.so
+lib/asterisk/modules/res_sorcery_memory.so
+lib/asterisk/modules/res_sorcery_memory_cache.so
+lib/asterisk/modules/res_sorcery_realtime.so
+lib/asterisk/modules/res_speech.so
+${PLIST.srtp}lib/asterisk/modules/res_srtp.so
+lib/asterisk/modules/res_stasis.so
+lib/asterisk/modules/res_stasis_answer.so
+lib/asterisk/modules/res_stasis_device_state.so
+lib/asterisk/modules/res_stasis_playback.so
+lib/asterisk/modules/res_stasis_recording.so
+lib/asterisk/modules/res_stasis_snoop.so
+lib/asterisk/modules/res_statsd.so
+lib/asterisk/modules/res_stun_monitor.so
+${PLIST.kqueue}lib/asterisk/modules/res_timing_kqueue.so
+lib/asterisk/modules/res_timing_pthread.so
+${PLIST.jabber}lib/asterisk/modules/res_xmpp.so
+lib/libasteriskssl.so
+lib/libasteriskssl.so.1
+lib/pkgconfig/asterisk.pc
+libdata/asterisk/documentation/appdocsxml.dtd
+libdata/asterisk/documentation/appdocsxml.xslt
+libdata/asterisk/documentation/core-en_US.xml
+libdata/asterisk/images/asterisk-intro.jpg
+libdata/asterisk/images/kpad2.jpg
+libdata/asterisk/moh/.asterisk-moh-opsound-wav-2.03
+libdata/asterisk/moh/CHANGES-asterisk-moh-opsound-wav
+libdata/asterisk/moh/CREDITS-asterisk-moh-opsound-wav
+libdata/asterisk/moh/LICENSE-asterisk-moh-opsound-wav
+libdata/asterisk/moh/macroform-cold_day.wav
+libdata/asterisk/moh/macroform-robot_dity.wav
+libdata/asterisk/moh/macroform-the_simplicity.wav
+libdata/asterisk/moh/manolo_camp-morning_coffee.wav
+libdata/asterisk/moh/reno_project-system.wav
+libdata/asterisk/phoneprov/000000000000-directory.xml
+libdata/asterisk/phoneprov/000000000000-phone.cfg
+libdata/asterisk/phoneprov/000000000000.cfg
+libdata/asterisk/phoneprov/polycom.xml
+libdata/asterisk/phoneprov/polycom_line.xml
+libdata/asterisk/phoneprov/snom-mac.xml
+libdata/asterisk/rest-api/applications.json
+libdata/asterisk/rest-api/asterisk.json
+libdata/asterisk/rest-api/bridges.json
+libdata/asterisk/rest-api/channels.json
+libdata/asterisk/rest-api/deviceStates.json
+libdata/asterisk/rest-api/endpoints.json
+libdata/asterisk/rest-api/events.json
+libdata/asterisk/rest-api/mailboxes.json
+libdata/asterisk/rest-api/playbacks.json
+libdata/asterisk/rest-api/recordings.json
+libdata/asterisk/rest-api/resources.json
+libdata/asterisk/rest-api/sounds.json
+libdata/asterisk/scripts/ast_coredumper
+libdata/asterisk/scripts/ast_logescalator
+libdata/asterisk/scripts/ast_loggrabber
+libdata/asterisk/scripts/refcounter.py
+libdata/asterisk/sounds/en/.asterisk-core-sounds-en-gsm-1.6.1
+libdata/asterisk/sounds/en/1-for-am-2-for-pm.gsm
+libdata/asterisk/sounds/en/1-yes-2-no.gsm
+libdata/asterisk/sounds/en/CHANGES-asterisk-core-en-1.6.1
+libdata/asterisk/sounds/en/CHANGES-asterisk-extra-en-1.5.2
+libdata/asterisk/sounds/en/CREDITS-asterisk-core-en-1.6.1
+libdata/asterisk/sounds/en/CREDITS-asterisk-extra-en-1.5.2
+libdata/asterisk/sounds/en/LICENSE-asterisk-core-en-1.6.1
+libdata/asterisk/sounds/en/LICENSE-asterisk-extra-en-1.5.2
+libdata/asterisk/sounds/en/OfficeSpace.gsm
+libdata/asterisk/sounds/en/Randulo-allison.gsm
+libdata/asterisk/sounds/en/SIP_Test_Failure.gsm
+libdata/asterisk/sounds/en/SIP_Test_Success.gsm
+libdata/asterisk/sounds/en/T-changed-to.gsm
+libdata/asterisk/sounds/en/T-is-not-available.gsm
+libdata/asterisk/sounds/en/T-to-disable-ancmnt.gsm
+libdata/asterisk/sounds/en/T-to-enable-ancmnt.gsm
+libdata/asterisk/sounds/en/T-to-hear-cur-ancmnt.gsm
+libdata/asterisk/sounds/en/T-to-leave-msg.gsm
+libdata/asterisk/sounds/en/T-to-reach-main-office.gsm
+libdata/asterisk/sounds/en/T-to-rec-ancmnt.gsm
+libdata/asterisk/sounds/en/T-to-rtrn-to-main-menu.gsm
+libdata/asterisk/sounds/en/a-charge-for-this-svc.gsm
+libdata/asterisk/sounds/en/a-collect-charge-of.gsm
+libdata/asterisk/sounds/en/a-collect-charge.gsm
+libdata/asterisk/sounds/en/a-connect-charge-of.gsm
+libdata/asterisk/sounds/en/a-connect-charge.gsm
+libdata/asterisk/sounds/en/abandon-all-hope.gsm
+libdata/asterisk/sounds/en/abandons.gsm
+libdata/asterisk/sounds/en/academic-support.gsm
+libdata/asterisk/sounds/en/access-code.gsm
+libdata/asterisk/sounds/en/access-denied.gsm
+libdata/asterisk/sounds/en/access-granted.gsm
+libdata/asterisk/sounds/en/accessible-through-system.gsm
+libdata/asterisk/sounds/en/account-balance-is.gsm
+libdata/asterisk/sounds/en/account_number.gsm
+libdata/asterisk/sounds/en/accounting.gsm
+libdata/asterisk/sounds/en/accounts-payable.gsm
+libdata/asterisk/sounds/en/accounts-receivable.gsm
+libdata/asterisk/sounds/en/activated.gsm
+libdata/asterisk/sounds/en/added-to.gsm
+libdata/asterisk/sounds/en/added.gsm
+libdata/asterisk/sounds/en/address.gsm
+libdata/asterisk/sounds/en/administration.gsm
+libdata/asterisk/sounds/en/advised-to-seek-shelter.gsm
+libdata/asterisk/sounds/en/after-the-tone.gsm
+libdata/asterisk/sounds/en/after_tone.gsm
+libdata/asterisk/sounds/en/afternoon.gsm
+libdata/asterisk/sounds/en/agent-alreadyon.gsm
+libdata/asterisk/sounds/en/agent-incorrect.gsm
+libdata/asterisk/sounds/en/agent-loggedoff.gsm
+libdata/asterisk/sounds/en/agent-loginok.gsm
+libdata/asterisk/sounds/en/agent-newlocation.gsm
+libdata/asterisk/sounds/en/agent-pass.gsm
+libdata/asterisk/sounds/en/agent-user.gsm
+libdata/asterisk/sounds/en/airport.gsm
+libdata/asterisk/sounds/en/alabama.gsm
+libdata/asterisk/sounds/en/alaska.gsm
+libdata/asterisk/sounds/en/albuquerque.gsm
+libdata/asterisk/sounds/en/alert.gsm
+libdata/asterisk/sounds/en/all-circuits-busy-now.gsm
+libdata/asterisk/sounds/en/all-outgoing-lines-unavailable.gsm
+libdata/asterisk/sounds/en/all-reps-busy.gsm
+libdata/asterisk/sounds/en/all-your-base.gsm
+libdata/asterisk/sounds/en/altitude.gsm
+libdata/asterisk/sounds/en/ampersand.gsm
+libdata/asterisk/sounds/en/an-error-has-occurred.gsm
+libdata/asterisk/sounds/en/and-area-code.gsm
+libdata/asterisk/sounds/en/and-or.gsm
+libdata/asterisk/sounds/en/and-prs-pound-whn-finished.gsm
+libdata/asterisk/sounds/en/and.gsm
+libdata/asterisk/sounds/en/andnowstandby.gsm
+libdata/asterisk/sounds/en/another-time.gsm
+libdata/asterisk/sounds/en/approaching.gsm
+libdata/asterisk/sounds/en/approximately.gsm
+libdata/asterisk/sounds/en/are-you-still-there.gsm
+libdata/asterisk/sounds/en/are-you-still-there2.gsm
+libdata/asterisk/sounds/en/arizona.gsm
+libdata/asterisk/sounds/en/arkansas.gsm
+libdata/asterisk/sounds/en/arlington.gsm
+libdata/asterisk/sounds/en/ascending-2tone.gsm
+libdata/asterisk/sounds/en/astcc-account-balance-is.gsm
+libdata/asterisk/sounds/en/astcc-account-number-invalid.gsm
+libdata/asterisk/sounds/en/astcc-balance-of-account-is.gsm
+libdata/asterisk/sounds/en/astcc-card-number-invalid.gsm
+libdata/asterisk/sounds/en/astcc-digit-account-number.gsm
+libdata/asterisk/sounds/en/astcc-followed-by-the-hash-key.gsm
+libdata/asterisk/sounds/en/astcc-followed-by-the-pound-key.gsm
+libdata/asterisk/sounds/en/astcc-login12pound.gsm
+libdata/asterisk/sounds/en/astcc-please-enter-your.gsm
+libdata/asterisk/sounds/en/astcc-skipping-any-punctuation.gsm
+libdata/asterisk/sounds/en/asterisk-friend.gsm
+libdata/asterisk/sounds/en/at-any-time.gsm
+libdata/asterisk/sounds/en/at-customers-request.gsm
+libdata/asterisk/sounds/en/at-following-number.gsm
+libdata/asterisk/sounds/en/at-sign.gsm
+libdata/asterisk/sounds/en/at-tone-time-exactly.gsm
+libdata/asterisk/sounds/en/at_tone.gsm
+libdata/asterisk/sounds/en/athletics.gsm
+libdata/asterisk/sounds/en/atlanta.gsm
+libdata/asterisk/sounds/en/atlantic.gsm
+libdata/asterisk/sounds/en/attention-required.gsm
+libdata/asterisk/sounds/en/auditing.gsm
+libdata/asterisk/sounds/en/austin.gsm
+libdata/asterisk/sounds/en/auth-incorrect.gsm
+libdata/asterisk/sounds/en/auth-thankyou.gsm
+libdata/asterisk/sounds/en/available-options.gsm
+libdata/asterisk/sounds/en/available.gsm
+libdata/asterisk/sounds/en/avg-speed-answer.gsm
+libdata/asterisk/sounds/en/away-naughty-boy.gsm
+libdata/asterisk/sounds/en/away-naughty-girl.gsm
+libdata/asterisk/sounds/en/awkward.gsm
+libdata/asterisk/sounds/en/backslash.gsm
+libdata/asterisk/sounds/en/bad.gsm
+libdata/asterisk/sounds/en/baltimore.gsm
+libdata/asterisk/sounds/en/bar.gsm
+libdata/asterisk/sounds/en/barn.gsm
+libdata/asterisk/sounds/en/barns.gsm
+libdata/asterisk/sounds/en/barometric.gsm
+libdata/asterisk/sounds/en/basic-pbx-ivr-main.gsm
+libdata/asterisk/sounds/en/bearing.gsm
+libdata/asterisk/sounds/en/beaufort.gsm
+libdata/asterisk/sounds/en/because-paranoid.gsm
+libdata/asterisk/sounds/en/beep.gsm
+libdata/asterisk/sounds/en/beeperr.gsm
+libdata/asterisk/sounds/en/before-the-number.gsm
+libdata/asterisk/sounds/en/believe-its-free.gsm
+libdata/asterisk/sounds/en/billing-and-collections.gsm
+libdata/asterisk/sounds/en/billing.gsm
+libdata/asterisk/sounds/en/billionth.gsm
+libdata/asterisk/sounds/en/binary.gsm
+libdata/asterisk/sounds/en/bits.gsm
+libdata/asterisk/sounds/en/blue-eyed-polar-bear.gsm
+libdata/asterisk/sounds/en/bombsquad.gsm
+libdata/asterisk/sounds/en/bookstore.gsm
+libdata/asterisk/sounds/en/boston.gsm
+libdata/asterisk/sounds/en/box.gsm
+libdata/asterisk/sounds/en/brian.gsm
+libdata/asterisk/sounds/en/business-development.gsm
+libdata/asterisk/sounds/en/busy-hangovers.gsm
+libdata/asterisk/sounds/en/busy-pls-hold.gsm
+libdata/asterisk/sounds/en/but.gsm
+libdata/asterisk/sounds/en/by.gsm
+libdata/asterisk/sounds/en/bytes.gsm
+libdata/asterisk/sounds/en/cafeteria.gsm
+libdata/asterisk/sounds/en/california.gsm
+libdata/asterisk/sounds/en/call-forward.gsm
+libdata/asterisk/sounds/en/call-forwarding.gsm
+libdata/asterisk/sounds/en/call-fwd-cancelled.gsm
+libdata/asterisk/sounds/en/call-fwd-no-ans.gsm
+libdata/asterisk/sounds/en/call-fwd-on-busy.gsm
+libdata/asterisk/sounds/en/call-fwd-parallel.gsm
+libdata/asterisk/sounds/en/call-fwd-unconditional.gsm
+libdata/asterisk/sounds/en/call-preempted.gsm
+libdata/asterisk/sounds/en/call-quality-menu.gsm
+libdata/asterisk/sounds/en/call-requres.gsm
+libdata/asterisk/sounds/en/call-terminated.gsm
+libdata/asterisk/sounds/en/call-waiting.gsm
+libdata/asterisk/sounds/en/call.gsm
+libdata/asterisk/sounds/en/calling.gsm
+libdata/asterisk/sounds/en/calls-taken-by.gsm
+libdata/asterisk/sounds/en/calls-waiting-for-rep.gsm
+libdata/asterisk/sounds/en/calls.gsm
+libdata/asterisk/sounds/en/campground-office.gsm
+libdata/asterisk/sounds/en/cancelled.gsm
+libdata/asterisk/sounds/en/cannot-complete-as-dialed.gsm
+libdata/asterisk/sounds/en/cannot-complete-network-error.gsm
+libdata/asterisk/sounds/en/cannot-complete-otherend-error.gsm
+libdata/asterisk/sounds/en/cannot-complete-temp-error.gsm
+libdata/asterisk/sounds/en/card-balance-is.gsm
+libdata/asterisk/sounds/en/card-is-invalid.gsm
+libdata/asterisk/sounds/en/card-number.gsm
+libdata/asterisk/sounds/en/carried-away-by-monkeys.gsm
+libdata/asterisk/sounds/en/cause-code.gsm
+libdata/asterisk/sounds/en/cc-amex.gsm
+libdata/asterisk/sounds/en/cc-discover.gsm
+libdata/asterisk/sounds/en/cc-mastercard.gsm
+libdata/asterisk/sounds/en/cc-visa.gsm
+libdata/asterisk/sounds/en/celsius.gsm
+libdata/asterisk/sounds/en/cent.gsm
+libdata/asterisk/sounds/en/central.gsm
+libdata/asterisk/sounds/en/cents-per-minute.gsm
+libdata/asterisk/sounds/en/cents.gsm
+libdata/asterisk/sounds/en/ceo-office.gsm
+libdata/asterisk/sounds/en/challenge_try_again.gsm
+libdata/asterisk/sounds/en/chance-of.gsm
+libdata/asterisk/sounds/en/changing.gsm
+libdata/asterisk/sounds/en/channel-insecure-warn.gsm
+libdata/asterisk/sounds/en/channel-secure.gsm
+libdata/asterisk/sounds/en/channel.gsm
+libdata/asterisk/sounds/en/charlotte.gsm
+libdata/asterisk/sounds/en/chat-room.gsm
+libdata/asterisk/sounds/en/check-number-dial-again.gsm
+libdata/asterisk/sounds/en/chemistry.gsm
+libdata/asterisk/sounds/en/chicago.gsm
+libdata/asterisk/sounds/en/chris.gsm
+libdata/asterisk/sounds/en/claims.gsm
+libdata/asterisk/sounds/en/clear.gsm
+libdata/asterisk/sounds/en/clearing.gsm
+libdata/asterisk/sounds/en/cleveland.gsm
+libdata/asterisk/sounds/en/clli.gsm
+libdata/asterisk/sounds/en/close-parenthesis.gsm
+libdata/asterisk/sounds/en/closed.gsm
+libdata/asterisk/sounds/en/clouds.gsm
+libdata/asterisk/sounds/en/cloudy.gsm
+libdata/asterisk/sounds/en/collections.gsm
+libdata/asterisk/sounds/en/colorado-springs.gsm
+libdata/asterisk/sounds/en/colorado.gsm
+libdata/asterisk/sounds/en/columbus.gsm
+libdata/asterisk/sounds/en/comedyclub.gsm
+libdata/asterisk/sounds/en/comma.gsm
+libdata/asterisk/sounds/en/communications.gsm
+libdata/asterisk/sounds/en/company-dir-411.gsm
+libdata/asterisk/sounds/en/complaint.gsm
+libdata/asterisk/sounds/en/compliance.gsm
+libdata/asterisk/sounds/en/computer-friend1.gsm
+libdata/asterisk/sounds/en/computer-friend2.gsm
+libdata/asterisk/sounds/en/conditions.gsm
+libdata/asterisk/sounds/en/conf-1-to-list-users.gsm
+libdata/asterisk/sounds/en/conf-2-to-kick-nonadmin.gsm
+libdata/asterisk/sounds/en/conf-3-mute-or-unmute-nonadmin.gsm
+libdata/asterisk/sounds/en/conf-4-to-record-conf.gsm
+libdata/asterisk/sounds/en/conf-8-for-more-options.gsm
+libdata/asterisk/sounds/en/conf-8-to-exit-return-to-conf.gsm
+libdata/asterisk/sounds/en/conf-adminmenu-162.gsm
+libdata/asterisk/sounds/en/conf-adminmenu-18.gsm
+libdata/asterisk/sounds/en/conf-adminmenu-menu8.gsm
+libdata/asterisk/sounds/en/conf-adminmenu.gsm
+libdata/asterisk/sounds/en/conf-banned.gsm
+libdata/asterisk/sounds/en/conf-enteringno.gsm
+libdata/asterisk/sounds/en/conf-errormenu.gsm
+libdata/asterisk/sounds/en/conf-extended.gsm
+libdata/asterisk/sounds/en/conf-full.gsm
+libdata/asterisk/sounds/en/conf-getchannel.gsm
+libdata/asterisk/sounds/en/conf-getconfno.gsm
+libdata/asterisk/sounds/en/conf-getpin.gsm
+libdata/asterisk/sounds/en/conf-hasentered.gsm
+libdata/asterisk/sounds/en/conf-hasjoin.gsm
+libdata/asterisk/sounds/en/conf-hasleft.gsm
+libdata/asterisk/sounds/en/conf-invalid.gsm
+libdata/asterisk/sounds/en/conf-invalidpin.gsm
+libdata/asterisk/sounds/en/conf-kicked.gsm
+libdata/asterisk/sounds/en/conf-leaderhasleft.gsm
+libdata/asterisk/sounds/en/conf-locked.gsm
+libdata/asterisk/sounds/en/conf-lockednow.gsm
+libdata/asterisk/sounds/en/conf-muted.gsm
+libdata/asterisk/sounds/en/conf-noempty.gsm
+libdata/asterisk/sounds/en/conf-nonextended.gsm
+libdata/asterisk/sounds/en/conf-now-muted.gsm
+libdata/asterisk/sounds/en/conf-now-recording.gsm
+libdata/asterisk/sounds/en/conf-now-unmuted.gsm
+libdata/asterisk/sounds/en/conf-onlyone.gsm
+libdata/asterisk/sounds/en/conf-onlyperson.gsm
+libdata/asterisk/sounds/en/conf-onlypersonleft.gsm
+libdata/asterisk/sounds/en/conf-otherinparty.gsm
+libdata/asterisk/sounds/en/conf-peopleinconf.gsm
+libdata/asterisk/sounds/en/conf-placeintoconf.gsm
+libdata/asterisk/sounds/en/conf-roll-callcomplete.gsm
+libdata/asterisk/sounds/en/conf-sysop.gsm
+libdata/asterisk/sounds/en/conf-sysopreq.gsm
+libdata/asterisk/sounds/en/conf-sysopreqcancelled.gsm
+libdata/asterisk/sounds/en/conf-thereare.gsm
+libdata/asterisk/sounds/en/conf-unlockednow.gsm
+libdata/asterisk/sounds/en/conf-unmuted.gsm
+libdata/asterisk/sounds/en/conf-usermenu-162.gsm
+libdata/asterisk/sounds/en/conf-usermenu.gsm
+libdata/asterisk/sounds/en/conf-userswilljoin.gsm
+libdata/asterisk/sounds/en/conf-userwilljoin.gsm
+libdata/asterisk/sounds/en/conf-waitforleader.gsm
+libdata/asterisk/sounds/en/conf-youareinconfnum.gsm
+libdata/asterisk/sounds/en/confbridge-begin-glorious-a.gsm
+libdata/asterisk/sounds/en/confbridge-begin-glorious-b.gsm
+libdata/asterisk/sounds/en/confbridge-begin-glorious-c.gsm
+libdata/asterisk/sounds/en/confbridge-begin-leader.gsm
+libdata/asterisk/sounds/en/confbridge-binaural-off.gsm
+libdata/asterisk/sounds/en/confbridge-binaural-on.gsm
+libdata/asterisk/sounds/en/confbridge-conf-begin.gsm
+libdata/asterisk/sounds/en/confbridge-conf-end.gsm
+libdata/asterisk/sounds/en/confbridge-dec-list-vol-in.gsm
+libdata/asterisk/sounds/en/confbridge-dec-list-vol-out.gsm
+libdata/asterisk/sounds/en/confbridge-dec-talk-vol-in.gsm
+libdata/asterisk/sounds/en/confbridge-dec-talk-vol-out.gsm
+libdata/asterisk/sounds/en/confbridge-has-joined.gsm
+libdata/asterisk/sounds/en/confbridge-has-left.gsm
+libdata/asterisk/sounds/en/confbridge-inc-list-vol-in.gsm
+libdata/asterisk/sounds/en/confbridge-inc-list-vol-out.gsm
+libdata/asterisk/sounds/en/confbridge-inc-talk-vol-in.gsm
+libdata/asterisk/sounds/en/confbridge-inc-talk-vol-out.gsm
+libdata/asterisk/sounds/en/confbridge-invalid.gsm
+libdata/asterisk/sounds/en/confbridge-join.gsm
+libdata/asterisk/sounds/en/confbridge-leave-in.gsm
+libdata/asterisk/sounds/en/confbridge-leave-out.gsm
+libdata/asterisk/sounds/en/confbridge-leave.gsm
+libdata/asterisk/sounds/en/confbridge-lock-extended.gsm
+libdata/asterisk/sounds/en/confbridge-lock-in.gsm
+libdata/asterisk/sounds/en/confbridge-lock-no-join.gsm
+libdata/asterisk/sounds/en/confbridge-lock-out.gsm
+libdata/asterisk/sounds/en/confbridge-locked.gsm
+libdata/asterisk/sounds/en/confbridge-menu-exit-in.gsm
+libdata/asterisk/sounds/en/confbridge-menu-exit-out.gsm
+libdata/asterisk/sounds/en/confbridge-mute-extended.gsm
+libdata/asterisk/sounds/en/confbridge-mute-in.gsm
+libdata/asterisk/sounds/en/confbridge-mute-out.gsm
+libdata/asterisk/sounds/en/confbridge-muted.gsm
+libdata/asterisk/sounds/en/confbridge-only-one.gsm
+libdata/asterisk/sounds/en/confbridge-only-participant.gsm
+libdata/asterisk/sounds/en/confbridge-participants.gsm
+libdata/asterisk/sounds/en/confbridge-pin-bad.gsm
+libdata/asterisk/sounds/en/confbridge-pin.gsm
+libdata/asterisk/sounds/en/confbridge-remove-last-in.gsm
+libdata/asterisk/sounds/en/confbridge-remove-last-out.gsm
+libdata/asterisk/sounds/en/confbridge-removed.gsm
+libdata/asterisk/sounds/en/confbridge-rest-list-vol-in.gsm
+libdata/asterisk/sounds/en/confbridge-rest-list-vol-out.gsm
+libdata/asterisk/sounds/en/confbridge-rest-talk-vol-in.gsm
+libdata/asterisk/sounds/en/confbridge-rest-talk-vol-out.gsm
+libdata/asterisk/sounds/en/confbridge-there-are.gsm
+libdata/asterisk/sounds/en/confbridge-unlocked.gsm
+libdata/asterisk/sounds/en/confbridge-unmuted.gsm
+libdata/asterisk/sounds/en/conference-call.gsm
+libdata/asterisk/sounds/en/conference-reservations.gsm
+libdata/asterisk/sounds/en/conference.gsm
+libdata/asterisk/sounds/en/confirm-number-is.gsm
+libdata/asterisk/sounds/en/connected.gsm
+libdata/asterisk/sounds/en/connecticut.gsm
+libdata/asterisk/sounds/en/connecting.gsm
+libdata/asterisk/sounds/en/connection-failed.gsm
+libdata/asterisk/sounds/en/connection-timed-out.gsm
+libdata/asterisk/sounds/en/continue-english-press.gsm
+libdata/asterisk/sounds/en/continue-in-english.gsm
+libdata/asterisk/sounds/en/copy-center.gsm
+libdata/asterisk/sounds/en/core-sounds-en.txt
+libdata/asterisk/sounds/en/could-lose-a-few-pounds.gsm
+libdata/asterisk/sounds/en/counseling-services.gsm
+libdata/asterisk/sounds/en/count.gsm
+libdata/asterisk/sounds/en/countdown.gsm
+libdata/asterisk/sounds/en/crash.gsm
+libdata/asterisk/sounds/en/crashing_conf.gsm
+libdata/asterisk/sounds/en/current-time-is.gsm
+libdata/asterisk/sounds/en/current_account_balance.gsm
+libdata/asterisk/sounds/en/currently.gsm
+libdata/asterisk/sounds/en/customer-accounts.gsm
+libdata/asterisk/sounds/en/customer-relations.gsm
+libdata/asterisk/sounds/en/customer-service.gsm
+libdata/asterisk/sounds/en/cyclone.gsm
+libdata/asterisk/sounds/en/dallas.gsm
+libdata/asterisk/sounds/en/date.gsm
+libdata/asterisk/sounds/en/day.gsm
+libdata/asterisk/sounds/en/daylight.gsm
+libdata/asterisk/sounds/en/days.gsm
+libdata/asterisk/sounds/en/de-activated.gsm
+libdata/asterisk/sounds/en/deadbeat.gsm
+libdata/asterisk/sounds/en/decode.gsm
+libdata/asterisk/sounds/en/default-attendant.gsm
+libdata/asterisk/sounds/en/degrees.gsm
+libdata/asterisk/sounds/en/delaware.gsm
+libdata/asterisk/sounds/en/demo-abouttotry.gsm
+libdata/asterisk/sounds/en/demo-congrats.gsm
+libdata/asterisk/sounds/en/demo-echodone.gsm
+libdata/asterisk/sounds/en/demo-echotest.gsm
+libdata/asterisk/sounds/en/demo-enterkeywords.gsm
+libdata/asterisk/sounds/en/demo-instruct.gsm
+libdata/asterisk/sounds/en/demo-moreinfo.gsm
+libdata/asterisk/sounds/en/demo-nogo.gsm
+libdata/asterisk/sounds/en/demo-nomatch.gsm
+libdata/asterisk/sounds/en/demo-thanks.gsm
+libdata/asterisk/sounds/en/denial-of-service.gsm
+libdata/asterisk/sounds/en/denver.gsm
+libdata/asterisk/sounds/en/department-administrator.gsm
+libdata/asterisk/sounds/en/department.gsm
+libdata/asterisk/sounds/en/deposit.gsm
+libdata/asterisk/sounds/en/descending-2tone.gsm
+libdata/asterisk/sounds/en/design.gsm
+libdata/asterisk/sounds/en/detroit.gsm
+libdata/asterisk/sounds/en/development.gsm
+libdata/asterisk/sounds/en/dial-here-often.gsm
+libdata/asterisk/sounds/en/dictate/both_help.gsm
+libdata/asterisk/sounds/en/dictate/enter_filename.gsm
+libdata/asterisk/sounds/en/dictate/forhelp.gsm
+libdata/asterisk/sounds/en/dictate/pause.gsm
+libdata/asterisk/sounds/en/dictate/paused.gsm
+libdata/asterisk/sounds/en/dictate/play_help.gsm
+libdata/asterisk/sounds/en/dictate/playback.gsm
+libdata/asterisk/sounds/en/dictate/playback_mode.gsm
+libdata/asterisk/sounds/en/dictate/record.gsm
+libdata/asterisk/sounds/en/dictate/record_help.gsm
+libdata/asterisk/sounds/en/dictate/record_mode.gsm
+libdata/asterisk/sounds/en/dictate/truncating_audio.gsm
+libdata/asterisk/sounds/en/digit.gsm
+libdata/asterisk/sounds/en/digits.gsm
+libdata/asterisk/sounds/en/digits/0.gsm
+libdata/asterisk/sounds/en/digits/1.gsm
+libdata/asterisk/sounds/en/digits/10.gsm
+libdata/asterisk/sounds/en/digits/11.gsm
+libdata/asterisk/sounds/en/digits/12.gsm
+libdata/asterisk/sounds/en/digits/13.gsm
+libdata/asterisk/sounds/en/digits/14.gsm
+libdata/asterisk/sounds/en/digits/15.gsm
+libdata/asterisk/sounds/en/digits/16.gsm
+libdata/asterisk/sounds/en/digits/17.gsm
+libdata/asterisk/sounds/en/digits/18.gsm
+libdata/asterisk/sounds/en/digits/19.gsm
+libdata/asterisk/sounds/en/digits/2.gsm
+libdata/asterisk/sounds/en/digits/20.gsm
+libdata/asterisk/sounds/en/digits/3.gsm
+libdata/asterisk/sounds/en/digits/30.gsm
+libdata/asterisk/sounds/en/digits/4.gsm
+libdata/asterisk/sounds/en/digits/40.gsm
+libdata/asterisk/sounds/en/digits/5.gsm
+libdata/asterisk/sounds/en/digits/50.gsm
+libdata/asterisk/sounds/en/digits/6.gsm
+libdata/asterisk/sounds/en/digits/60.gsm
+libdata/asterisk/sounds/en/digits/7.gsm
+libdata/asterisk/sounds/en/digits/70.gsm
+libdata/asterisk/sounds/en/digits/8.gsm
+libdata/asterisk/sounds/en/digits/80.gsm
+libdata/asterisk/sounds/en/digits/9.gsm
+libdata/asterisk/sounds/en/digits/90.gsm
+libdata/asterisk/sounds/en/digits/a-m.gsm
+libdata/asterisk/sounds/en/digits/at.gsm
+libdata/asterisk/sounds/en/digits/billion.gsm
+libdata/asterisk/sounds/en/digits/day-0.gsm
+libdata/asterisk/sounds/en/digits/day-1.gsm
+libdata/asterisk/sounds/en/digits/day-2.gsm
+libdata/asterisk/sounds/en/digits/day-3.gsm
+libdata/asterisk/sounds/en/digits/day-4.gsm
+libdata/asterisk/sounds/en/digits/day-5.gsm
+libdata/asterisk/sounds/en/digits/day-6.gsm
+libdata/asterisk/sounds/en/digits/dollars.gsm
+libdata/asterisk/sounds/en/digits/h-1.gsm
+libdata/asterisk/sounds/en/digits/h-10.gsm
+libdata/asterisk/sounds/en/digits/h-11.gsm
+libdata/asterisk/sounds/en/digits/h-12.gsm
+libdata/asterisk/sounds/en/digits/h-13.gsm
+libdata/asterisk/sounds/en/digits/h-14.gsm
+libdata/asterisk/sounds/en/digits/h-15.gsm
+libdata/asterisk/sounds/en/digits/h-16.gsm
+libdata/asterisk/sounds/en/digits/h-17.gsm
+libdata/asterisk/sounds/en/digits/h-18.gsm
+libdata/asterisk/sounds/en/digits/h-19.gsm
+libdata/asterisk/sounds/en/digits/h-2.gsm
+libdata/asterisk/sounds/en/digits/h-20.gsm
+libdata/asterisk/sounds/en/digits/h-3.gsm
+libdata/asterisk/sounds/en/digits/h-30.gsm
+libdata/asterisk/sounds/en/digits/h-4.gsm
+libdata/asterisk/sounds/en/digits/h-40.gsm
+libdata/asterisk/sounds/en/digits/h-5.gsm
+libdata/asterisk/sounds/en/digits/h-50.gsm
+libdata/asterisk/sounds/en/digits/h-6.gsm
+libdata/asterisk/sounds/en/digits/h-60.gsm
+libdata/asterisk/sounds/en/digits/h-7.gsm
+libdata/asterisk/sounds/en/digits/h-70.gsm
+libdata/asterisk/sounds/en/digits/h-8.gsm
+libdata/asterisk/sounds/en/digits/h-80.gsm
+libdata/asterisk/sounds/en/digits/h-9.gsm
+libdata/asterisk/sounds/en/digits/h-90.gsm
+libdata/asterisk/sounds/en/digits/h-billion.gsm
+libdata/asterisk/sounds/en/digits/h-hundred.gsm
+libdata/asterisk/sounds/en/digits/h-million.gsm
+libdata/asterisk/sounds/en/digits/h-thousand.gsm
+libdata/asterisk/sounds/en/digits/hundred.gsm
+libdata/asterisk/sounds/en/digits/million.gsm
+libdata/asterisk/sounds/en/digits/minus.gsm
+libdata/asterisk/sounds/en/digits/mon-0.gsm
+libdata/asterisk/sounds/en/digits/mon-1.gsm
+libdata/asterisk/sounds/en/digits/mon-10.gsm
+libdata/asterisk/sounds/en/digits/mon-11.gsm
+libdata/asterisk/sounds/en/digits/mon-2.gsm
+libdata/asterisk/sounds/en/digits/mon-3.gsm
+libdata/asterisk/sounds/en/digits/mon-4.gsm
+libdata/asterisk/sounds/en/digits/mon-5.gsm
+libdata/asterisk/sounds/en/digits/mon-6.gsm
+libdata/asterisk/sounds/en/digits/mon-7.gsm
+libdata/asterisk/sounds/en/digits/mon-8.gsm
+libdata/asterisk/sounds/en/digits/mon-9.gsm
+libdata/asterisk/sounds/en/digits/oclock.gsm
+libdata/asterisk/sounds/en/digits/oh.gsm
+libdata/asterisk/sounds/en/digits/p-m.gsm
+libdata/asterisk/sounds/en/digits/pound.gsm
+libdata/asterisk/sounds/en/digits/star.gsm
+libdata/asterisk/sounds/en/digits/thousand.gsm
+libdata/asterisk/sounds/en/digits/today.gsm
+libdata/asterisk/sounds/en/digits/tomorrow.gsm
+libdata/asterisk/sounds/en/digits/yesterday.gsm
+libdata/asterisk/sounds/en/dir-first.gsm
+libdata/asterisk/sounds/en/dir-firstlast.gsm
+libdata/asterisk/sounds/en/dir-instr.gsm
+libdata/asterisk/sounds/en/dir-intro-fn.gsm
+libdata/asterisk/sounds/en/dir-intro.gsm
+libdata/asterisk/sounds/en/dir-last.gsm
+libdata/asterisk/sounds/en/dir-multi1.gsm
+libdata/asterisk/sounds/en/dir-multi2.gsm
+libdata/asterisk/sounds/en/dir-multi3.gsm
+libdata/asterisk/sounds/en/dir-multi9.gsm
+libdata/asterisk/sounds/en/dir-nomatch.gsm
+libdata/asterisk/sounds/en/dir-nomore.gsm
+libdata/asterisk/sounds/en/dir-pls-enter.gsm
+libdata/asterisk/sounds/en/dir-usingkeypad.gsm
+libdata/asterisk/sounds/en/dir-welcome.gsm
+libdata/asterisk/sounds/en/directory-assistance.gsm
+libdata/asterisk/sounds/en/directory.gsm
+libdata/asterisk/sounds/en/disabled.gsm
+libdata/asterisk/sounds/en/discon-or-out-of-service.gsm
+libdata/asterisk/sounds/en/disconnected.gsm
+libdata/asterisk/sounds/en/disk.gsm
+libdata/asterisk/sounds/en/distribution.gsm
+libdata/asterisk/sounds/en/divided-by.gsm
+libdata/asterisk/sounds/en/dns.gsm
+libdata/asterisk/sounds/en/do-not-disturb.gsm
+libdata/asterisk/sounds/en/doing-enum-lookup.gsm
+libdata/asterisk/sounds/en/donotcall1.gsm
+libdata/asterisk/sounds/en/donotcall2.gsm
+libdata/asterisk/sounds/en/dont-know-who-sent.gsm
+libdata/asterisk/sounds/en/doppler-radar.gsm
+libdata/asterisk/sounds/en/down.gsm
+libdata/asterisk/sounds/en/driving-directions.gsm
+libdata/asterisk/sounds/en/duplex.gsm
+libdata/asterisk/sounds/en/duplication.gsm
+libdata/asterisk/sounds/en/early.gsm
+libdata/asterisk/sounds/en/east.gsm
+libdata/asterisk/sounds/en/easterly.gsm
+libdata/asterisk/sounds/en/eastern.gsm
+libdata/asterisk/sounds/en/echo-test.gsm
+libdata/asterisk/sounds/en/ed.gsm
+libdata/asterisk/sounds/en/eighteenth.gsm
+libdata/asterisk/sounds/en/eighth.gsm
+libdata/asterisk/sounds/en/eightieth.gsm
+libdata/asterisk/sounds/en/el-paso.gsm
+libdata/asterisk/sounds/en/eletelephony.gsm
+libdata/asterisk/sounds/en/eleventh.gsm
+libdata/asterisk/sounds/en/email.gsm
+libdata/asterisk/sounds/en/emergency.gsm
+libdata/asterisk/sounds/en/enabled.gsm
+libdata/asterisk/sounds/en/encode.gsm
+libdata/asterisk/sounds/en/engineering.gsm
+libdata/asterisk/sounds/en/ent-target-attendant.gsm
+libdata/asterisk/sounds/en/enter-a-time.gsm
+libdata/asterisk/sounds/en/enter-conf-call-number.gsm
+libdata/asterisk/sounds/en/enter-conf-pin-number.gsm
+libdata/asterisk/sounds/en/enter-ext-of-person.gsm
+libdata/asterisk/sounds/en/enter-num-blacklist.gsm
+libdata/asterisk/sounds/en/enter-password.gsm
+libdata/asterisk/sounds/en/enter-phone-number10.gsm
+libdata/asterisk/sounds/en/enter_account.gsm
+libdata/asterisk/sounds/en/entering-conf-number.gsm
+libdata/asterisk/sounds/en/entr-num-rmv-blklist.gsm
+libdata/asterisk/sounds/en/enum-lookup-failed.gsm
+libdata/asterisk/sounds/en/enum-lookup-successful.gsm
+libdata/asterisk/sounds/en/error-number.gsm
+libdata/asterisk/sounds/en/error.gsm
+libdata/asterisk/sounds/en/est-hold-time-is.gsm
+libdata/asterisk/sounds/en/euro.gsm
+libdata/asterisk/sounds/en/european.gsm
+libdata/asterisk/sounds/en/euros.gsm
+libdata/asterisk/sounds/en/evening.gsm
+libdata/asterisk/sounds/en/explanation.gsm
+libdata/asterisk/sounds/en/ext-or-zero.gsm
+libdata/asterisk/sounds/en/extension.gsm
+libdata/asterisk/sounds/en/extensions.gsm
+libdata/asterisk/sounds/en/extra-sounds-en.txt
+libdata/asterisk/sounds/en/facilities.gsm
+libdata/asterisk/sounds/en/fahrenheit.gsm
+libdata/asterisk/sounds/en/falling.gsm
+libdata/asterisk/sounds/en/fast.gsm
+libdata/asterisk/sounds/en/feature-not-avail-line.gsm
+libdata/asterisk/sounds/en/feeling_lucky_punk.gsm
+libdata/asterisk/sounds/en/feet.gsm
+libdata/asterisk/sounds/en/female.gsm
+libdata/asterisk/sounds/en/fifteenth.gsm
+libdata/asterisk/sounds/en/fifth.gsm
+libdata/asterisk/sounds/en/fiftieth.gsm
+libdata/asterisk/sounds/en/finals.gsm
+libdata/asterisk/sounds/en/finance.gsm
+libdata/asterisk/sounds/en/first-in-line.gsm
+libdata/asterisk/sounds/en/first.gsm
+libdata/asterisk/sounds/en/flagged-for-lea.gsm
+libdata/asterisk/sounds/en/flooding.gsm
+libdata/asterisk/sounds/en/florida.gsm
+libdata/asterisk/sounds/en/fog.gsm
+libdata/asterisk/sounds/en/foggy.gsm
+libdata/asterisk/sounds/en/followed-by.gsm
+libdata/asterisk/sounds/en/followed_hash.gsm
+libdata/asterisk/sounds/en/followed_pound.gsm
+libdata/asterisk/sounds/en/followme/call-from.gsm
+libdata/asterisk/sounds/en/followme/no-recording.gsm
+libdata/asterisk/sounds/en/followme/options.gsm
+libdata/asterisk/sounds/en/followme/pls-hold-while-try.gsm
+libdata/asterisk/sounds/en/followme/sorry.gsm
+libdata/asterisk/sounds/en/followme/status.gsm
+libdata/asterisk/sounds/en/food-service.gsm
+libdata/asterisk/sounds/en/food-services.gsm
+libdata/asterisk/sounds/en/for-a-daily-wakeup-call.gsm
+libdata/asterisk/sounds/en/for-a-list-of.gsm
+libdata/asterisk/sounds/en/for-accounting.gsm
+libdata/asterisk/sounds/en/for-billing.gsm
+libdata/asterisk/sounds/en/for-english-press.gsm
+libdata/asterisk/sounds/en/for-investor-relations.gsm
+libdata/asterisk/sounds/en/for-louie-louie.gsm
+libdata/asterisk/sounds/en/for-no-press.gsm
+libdata/asterisk/sounds/en/for-qc-and-training-purposes.gsm
+libdata/asterisk/sounds/en/for-quality-purposes.gsm
+libdata/asterisk/sounds/en/for-sales.gsm
+libdata/asterisk/sounds/en/for-service.gsm
+libdata/asterisk/sounds/en/for-tech-support.gsm
+libdata/asterisk/sounds/en/for-the-first.gsm
+libdata/asterisk/sounds/en/for-the-weather.gsm
+libdata/asterisk/sounds/en/for-wakeup-call.gsm
+libdata/asterisk/sounds/en/for-yes-press.gsm
+libdata/asterisk/sounds/en/for.gsm
+libdata/asterisk/sounds/en/forget_about_it.gsm
+libdata/asterisk/sounds/en/fort-worth.gsm
+libdata/asterisk/sounds/en/fortieth.gsm
+libdata/asterisk/sounds/en/fourteenth.gsm
+libdata/asterisk/sounds/en/fourth.gsm
+libdata/asterisk/sounds/en/freeze.gsm
+libdata/asterisk/sounds/en/freezing.gsm
+libdata/asterisk/sounds/en/frequency.gsm
+libdata/asterisk/sounds/en/fresno.gsm
+libdata/asterisk/sounds/en/from-unknown-caller.gsm
+libdata/asterisk/sounds/en/from.gsm
+libdata/asterisk/sounds/en/ftp.gsm
+libdata/asterisk/sounds/en/gale.gsm
+libdata/asterisk/sounds/en/gambling-drunk.gsm
+libdata/asterisk/sounds/en/georgia.gsm
+libdata/asterisk/sounds/en/get-in-line-sales-guy.gsm
+libdata/asterisk/sounds/en/get_bleep_outta.gsm
+libdata/asterisk/sounds/en/get_information.gsm
+libdata/asterisk/sounds/en/get_information_first.gsm
+libdata/asterisk/sounds/en/gigabits.gsm
+libdata/asterisk/sounds/en/gigabytes.gsm
+libdata/asterisk/sounds/en/gigahertz.gsm
+libdata/asterisk/sounds/en/giggle1.gsm
+libdata/asterisk/sounds/en/gmt.gsm
+libdata/asterisk/sounds/en/go-away1.gsm
+libdata/asterisk/sounds/en/go-away2.gsm
+libdata/asterisk/sounds/en/good-afternoon.gsm
+libdata/asterisk/sounds/en/good-evening.gsm
+libdata/asterisk/sounds/en/good-morning.gsm
+libdata/asterisk/sounds/en/good.gsm
+libdata/asterisk/sounds/en/goodbye.gsm
+libdata/asterisk/sounds/en/goodbye_for_the_best.gsm
+libdata/asterisk/sounds/en/goodbye_love.gsm
+libdata/asterisk/sounds/en/got_kidding.gsm
+libdata/asterisk/sounds/en/grammar.gsm
+libdata/asterisk/sounds/en/greater-than.gsm
+libdata/asterisk/sounds/en/groovy.gsm
+libdata/asterisk/sounds/en/ha/ac.gsm
+libdata/asterisk/sounds/en/ha/air-conditioner.gsm
+libdata/asterisk/sounds/en/ha/alarm.gsm
+libdata/asterisk/sounds/en/ha/amp.gsm
+libdata/asterisk/sounds/en/ha/amps.gsm
+libdata/asterisk/sounds/en/ha/attic.gsm
+libdata/asterisk/sounds/en/ha/baby-sleeping-mode.gsm
+libdata/asterisk/sounds/en/ha/back.gsm
+libdata/asterisk/sounds/en/ha/basement.gsm
+libdata/asterisk/sounds/en/ha/bathroom.gsm
+libdata/asterisk/sounds/en/ha/bedroom.gsm
+libdata/asterisk/sounds/en/ha/bright.gsm
+libdata/asterisk/sounds/en/ha/callerid.gsm
+libdata/asterisk/sounds/en/ha/carport.gsm
+libdata/asterisk/sounds/en/ha/closet.gsm
+libdata/asterisk/sounds/en/ha/coffee-pot.gsm
+libdata/asterisk/sounds/en/ha/cool.gsm
+libdata/asterisk/sounds/en/ha/cooling.gsm
+libdata/asterisk/sounds/en/ha/dc.gsm
+libdata/asterisk/sounds/en/ha/decibel.gsm
+libdata/asterisk/sounds/en/ha/decibels.gsm
+libdata/asterisk/sounds/en/ha/deck.gsm
+libdata/asterisk/sounds/en/ha/degree.gsm
+libdata/asterisk/sounds/en/ha/degrees.gsm
+libdata/asterisk/sounds/en/ha/den.gsm
+libdata/asterisk/sounds/en/ha/dim.gsm
+libdata/asterisk/sounds/en/ha/dining-room.gsm
+libdata/asterisk/sounds/en/ha/door.gsm
+libdata/asterisk/sounds/en/ha/doors.gsm
+libdata/asterisk/sounds/en/ha/down.gsm
+libdata/asterisk/sounds/en/ha/driveway.gsm
+libdata/asterisk/sounds/en/ha/dryer.gsm
+libdata/asterisk/sounds/en/ha/fan.gsm
+libdata/asterisk/sounds/en/ha/farad.gsm
+libdata/asterisk/sounds/en/ha/farads.gsm
+libdata/asterisk/sounds/en/ha/first-floor.gsm
+libdata/asterisk/sounds/en/ha/floor.gsm
+libdata/asterisk/sounds/en/ha/floors.gsm
+libdata/asterisk/sounds/en/ha/for-extended-status-report.gsm
+libdata/asterisk/sounds/en/ha/for-quick-status-report.gsm
+libdata/asterisk/sounds/en/ha/for-wx-report.gsm
+libdata/asterisk/sounds/en/ha/fountain.gsm
+libdata/asterisk/sounds/en/ha/foyer.gsm
+libdata/asterisk/sounds/en/ha/front.gsm
+libdata/asterisk/sounds/en/ha/furnace.gsm
+libdata/asterisk/sounds/en/ha/game-room.gsm
+libdata/asterisk/sounds/en/ha/garage.gsm
+libdata/asterisk/sounds/en/ha/great-room.gsm
+libdata/asterisk/sounds/en/ha/guest-room.gsm
+libdata/asterisk/sounds/en/ha/hall.gsm
+libdata/asterisk/sounds/en/ha/has-been-left.gsm
+libdata/asterisk/sounds/en/ha/heat-pump.gsm
+libdata/asterisk/sounds/en/ha/heat.gsm
+libdata/asterisk/sounds/en/ha/heating.gsm
+libdata/asterisk/sounds/en/ha/hot-tub.gsm
+libdata/asterisk/sounds/en/ha/house.gsm
+libdata/asterisk/sounds/en/ha/intruder.gsm
+libdata/asterisk/sounds/en/ha/is.gsm
+libdata/asterisk/sounds/en/ha/kelvin.gsm
+libdata/asterisk/sounds/en/ha/kitchen.gsm
+libdata/asterisk/sounds/en/ha/lamp.gsm
+libdata/asterisk/sounds/en/ha/lamps.gsm
+libdata/asterisk/sounds/en/ha/landscape.gsm
+libdata/asterisk/sounds/en/ha/laundry.gsm
+libdata/asterisk/sounds/en/ha/library.gsm
+libdata/asterisk/sounds/en/ha/light.gsm
+libdata/asterisk/sounds/en/ha/lights.gsm
+libdata/asterisk/sounds/en/ha/living-room.gsm
+libdata/asterisk/sounds/en/ha/locked.gsm
+libdata/asterisk/sounds/en/ha/locking.gsm
+libdata/asterisk/sounds/en/ha/mailbox.gsm
+libdata/asterisk/sounds/en/ha/master.gsm
+libdata/asterisk/sounds/en/ha/off.gsm
+libdata/asterisk/sounds/en/ha/office.gsm
+libdata/asterisk/sounds/en/ha/ohm.gsm
+libdata/asterisk/sounds/en/ha/ohms.gsm
+libdata/asterisk/sounds/en/ha/on.gsm
+libdata/asterisk/sounds/en/ha/open.gsm
+libdata/asterisk/sounds/en/ha/patio.gsm
+libdata/asterisk/sounds/en/ha/phone.gsm
+libdata/asterisk/sounds/en/ha/play-room.gsm
+libdata/asterisk/sounds/en/ha/play.gsm
+libdata/asterisk/sounds/en/ha/pool.gsm
+libdata/asterisk/sounds/en/ha/porch.gsm
+libdata/asterisk/sounds/en/ha/power-failure.gsm
+libdata/asterisk/sounds/en/ha/pressure.gsm
+libdata/asterisk/sounds/en/ha/psi.gsm
+libdata/asterisk/sounds/en/ha/quiet-mode.gsm
+libdata/asterisk/sounds/en/ha/reset.gsm
+libdata/asterisk/sounds/en/ha/roof.gsm
+libdata/asterisk/sounds/en/ha/room.gsm
+libdata/asterisk/sounds/en/ha/rooms.gsm
+libdata/asterisk/sounds/en/ha/second-floor.gsm
+libdata/asterisk/sounds/en/ha/secure.gsm
+libdata/asterisk/sounds/en/ha/security-system.gsm
+libdata/asterisk/sounds/en/ha/set.gsm
+libdata/asterisk/sounds/en/ha/side.gsm
+libdata/asterisk/sounds/en/ha/solar.gsm
+libdata/asterisk/sounds/en/ha/sprinklers.gsm
+libdata/asterisk/sounds/en/ha/still.gsm
+libdata/asterisk/sounds/en/ha/stove.gsm
+libdata/asterisk/sounds/en/ha/sump-pump.gsm
+libdata/asterisk/sounds/en/ha/sun-room.gsm
+libdata/asterisk/sounds/en/ha/system.gsm
+libdata/asterisk/sounds/en/ha/systems.gsm
+libdata/asterisk/sounds/en/ha/thermostat.gsm
+libdata/asterisk/sounds/en/ha/to-control-environ-sys.gsm
+libdata/asterisk/sounds/en/ha/to-control-lights-appl.gsm
+libdata/asterisk/sounds/en/ha/tower.gsm
+libdata/asterisk/sounds/en/ha/unlocked.gsm
+libdata/asterisk/sounds/en/ha/unlocking.gsm
+libdata/asterisk/sounds/en/ha/up.gsm
+libdata/asterisk/sounds/en/ha/volt.gsm
+libdata/asterisk/sounds/en/ha/volts.gsm
+libdata/asterisk/sounds/en/ha/washing-machine.gsm
+libdata/asterisk/sounds/en/ha/water-heater.gsm
+libdata/asterisk/sounds/en/ha/watt.gsm
+libdata/asterisk/sounds/en/ha/watts.gsm
+libdata/asterisk/sounds/en/ha/well-pump.gsm
+libdata/asterisk/sounds/en/ha/window.gsm
+libdata/asterisk/sounds/en/ha/windows.gsm
+libdata/asterisk/sounds/en/ha/xmas-lights.gsm
+libdata/asterisk/sounds/en/ha/xmas-tree.gsm
+libdata/asterisk/sounds/en/ha/yard.gsm
+libdata/asterisk/sounds/en/hail.gsm
+libdata/asterisk/sounds/en/hal_goodbye.gsm
+libdata/asterisk/sounds/en/half.gsm
+libdata/asterisk/sounds/en/hang-on-a-second-angry.gsm
+libdata/asterisk/sounds/en/hang-on-a-second.gsm
+libdata/asterisk/sounds/en/hangup-try-again.gsm
+libdata/asterisk/sounds/en/happy_saved.gsm
+libdata/asterisk/sounds/en/has-arrived-at.gsm
+libdata/asterisk/sounds/en/has-been-changed-to.gsm
+libdata/asterisk/sounds/en/has-been-cleared.gsm
+libdata/asterisk/sounds/en/has-been-disconnected.gsm
+libdata/asterisk/sounds/en/has-been-set-to.gsm
+libdata/asterisk/sounds/en/has-been.gsm
+libdata/asterisk/sounds/en/has-expired.gsm
+libdata/asterisk/sounds/en/has-issued-a.gsm
+libdata/asterisk/sounds/en/has-not-been-seen-for.gsm
+libdata/asterisk/sounds/en/has.gsm
+libdata/asterisk/sounds/en/hash.gsm
+libdata/asterisk/sounds/en/hawaii.gsm
+libdata/asterisk/sounds/en/headed-towards.gsm
+libdata/asterisk/sounds/en/heading.gsm
+libdata/asterisk/sounds/en/health-center.gsm
+libdata/asterisk/sounds/en/hear-odd-noise.gsm
+libdata/asterisk/sounds/en/hear-toilet-flush.gsm
+libdata/asterisk/sounds/en/hectopascal.gsm
+libdata/asterisk/sounds/en/hello-world.gsm
+libdata/asterisk/sounds/en/hello.gsm
+libdata/asterisk/sounds/en/helpdesk.gsm
+libdata/asterisk/sounds/en/hertz.gsm
+libdata/asterisk/sounds/en/high.gsm
+libdata/asterisk/sounds/en/highway.gsm
+libdata/asterisk/sounds/en/hit.gsm
+libdata/asterisk/sounds/en/hold-or-dial-0.gsm
+libdata/asterisk/sounds/en/home.gsm
+libdata/asterisk/sounds/en/honolulu.gsm
+libdata/asterisk/sounds/en/hours.gsm
+libdata/asterisk/sounds/en/housekeeping.gsm
+libdata/asterisk/sounds/en/houston.gsm
+libdata/asterisk/sounds/en/http.gsm
+libdata/asterisk/sounds/en/human-resources.gsm
+libdata/asterisk/sounds/en/humidity.gsm
+libdata/asterisk/sounds/en/hundredth.gsm
+libdata/asterisk/sounds/en/hurricane.gsm
+libdata/asterisk/sounds/en/hz.gsm
+libdata/asterisk/sounds/en/i-dont-understand.gsm
+libdata/asterisk/sounds/en/i-dont-understand2.gsm
+libdata/asterisk/sounds/en/i-dont-understand3.gsm
+libdata/asterisk/sounds/en/i-dont-understand4.gsm
+libdata/asterisk/sounds/en/i-dont-understand5.gsm
+libdata/asterisk/sounds/en/i-grow-bored.gsm
+libdata/asterisk/sounds/en/ice.gsm
+libdata/asterisk/sounds/en/icmp.gsm
+libdata/asterisk/sounds/en/icy.gsm
+libdata/asterisk/sounds/en/idaho.gsm
+libdata/asterisk/sounds/en/if-correct-press.gsm
+libdata/asterisk/sounds/en/if-grtg-played-indefinately.gsm
+libdata/asterisk/sounds/en/if-grtg-should-expire-at.gsm
+libdata/asterisk/sounds/en/if-maint-contract-or-emergency.gsm
+libdata/asterisk/sounds/en/if-rotary-phone.gsm
+libdata/asterisk/sounds/en/if-this-is-correct-press.gsm
+libdata/asterisk/sounds/en/if-this-is-correct.gsm
+libdata/asterisk/sounds/en/if-this-is-not-correct.gsm
+libdata/asterisk/sounds/en/if-u-know-ext-dial.gsm
+libdata/asterisk/sounds/en/if-unsuccessful-speak-to.gsm
+libdata/asterisk/sounds/en/if-you-know-the.gsm
+libdata/asterisk/sounds/en/if-you-need-help.gsm
+libdata/asterisk/sounds/en/if-youd-like-to-make-a-call.gsm
+libdata/asterisk/sounds/en/illinois.gsm
+libdata/asterisk/sounds/en/im-sorry-unable-to-connect-to-eng.gsm
+libdata/asterisk/sounds/en/im-sorry.gsm
+libdata/asterisk/sounds/en/imap.gsm
+libdata/asterisk/sounds/en/in-service.gsm
+libdata/asterisk/sounds/en/in-the-line.gsm
+libdata/asterisk/sounds/en/in-the-queue.gsm
+libdata/asterisk/sounds/en/in-the.gsm
+libdata/asterisk/sounds/en/in-your-city.gsm
+libdata/asterisk/sounds/en/in-your-zip-code.gsm
+libdata/asterisk/sounds/en/inbound.gsm
+libdata/asterisk/sounds/en/indiana.gsm
+libdata/asterisk/sounds/en/indianapolis.gsm
+libdata/asterisk/sounds/en/indicated.gsm
+libdata/asterisk/sounds/en/info-about-last-call.gsm
+libdata/asterisk/sounds/en/information-technology.gsm
+libdata/asterisk/sounds/en/information.gsm
+libdata/asterisk/sounds/en/infuriate-tech-staff.gsm
+libdata/asterisk/sounds/en/initiated.gsm
+libdata/asterisk/sounds/en/initiating.gsm
+libdata/asterisk/sounds/en/inside-sales.gsm
+libdata/asterisk/sounds/en/internal-audit.gsm
+libdata/asterisk/sounds/en/international-call.gsm
+libdata/asterisk/sounds/en/interstate.gsm
+libdata/asterisk/sounds/en/invalid-date.gsm
+libdata/asterisk/sounds/en/invalid-featurecode.gsm
+libdata/asterisk/sounds/en/invalid.gsm
+libdata/asterisk/sounds/en/investor-relations.gsm
+libdata/asterisk/sounds/en/iowa.gsm
+libdata/asterisk/sounds/en/is-at.gsm
+libdata/asterisk/sounds/en/is-curntly-busy.gsm
+libdata/asterisk/sounds/en/is-curntly-unavail.gsm
+libdata/asterisk/sounds/en/is-currently.gsm
+libdata/asterisk/sounds/en/is-in-use.gsm
+libdata/asterisk/sounds/en/is-not-in-the.gsm
+libdata/asterisk/sounds/en/is-not-set.gsm
+libdata/asterisk/sounds/en/is-now-being-recorded.gsm
+libdata/asterisk/sounds/en/is-set-to.gsm
+libdata/asterisk/sounds/en/is.gsm
+libdata/asterisk/sounds/en/it-now.gsm
+libdata/asterisk/sounds/en/it-services.gsm
+libdata/asterisk/sounds/en/jacksonville.gsm
+libdata/asterisk/sounds/en/janitorial.gsm
+libdata/asterisk/sounds/en/jason.gsm
+libdata/asterisk/sounds/en/jedi-extension-trick.gsm
+libdata/asterisk/sounds/en/john.gsm
+libdata/asterisk/sounds/en/just-kidding-not-upset.gsm
+libdata/asterisk/sounds/en/just-kidding-not-upset2.gsm
+libdata/asterisk/sounds/en/kansas-city.gsm
+libdata/asterisk/sounds/en/kansas.gsm
+libdata/asterisk/sounds/en/kentucky.gsm
+libdata/asterisk/sounds/en/keywords_cross_fingers.gsm
+libdata/asterisk/sounds/en/kilobits.gsm
+libdata/asterisk/sounds/en/kilobytes.gsm
+libdata/asterisk/sounds/en/kilohertz.gsm
+libdata/asterisk/sounds/en/kilometer.gsm
+libdata/asterisk/sounds/en/kilometers-per-hour.gsm
+libdata/asterisk/sounds/en/knock-knock.gsm
+libdata/asterisk/sounds/en/knots.gsm
+libdata/asterisk/sounds/en/language.gsm
+libdata/asterisk/sounds/en/las-vegas.gsm
+libdata/asterisk/sounds/en/last-error-was.gsm
+libdata/asterisk/sounds/en/last-num-to-call.gsm
+libdata/asterisk/sounds/en/late.gsm
+libdata/asterisk/sounds/en/later.gsm
+libdata/asterisk/sounds/en/lea-may-request-info.gsm
+libdata/asterisk/sounds/en/left-bracket.gsm
+libdata/asterisk/sounds/en/legal.gsm
+libdata/asterisk/sounds/en/len.gsm
+libdata/asterisk/sounds/en/less-than.gsm
+libdata/asterisk/sounds/en/letters/a.gsm
+libdata/asterisk/sounds/en/letters/ascii123.gsm
+libdata/asterisk/sounds/en/letters/ascii124.gsm
+libdata/asterisk/sounds/en/letters/ascii125.gsm
+libdata/asterisk/sounds/en/letters/ascii126.gsm
+libdata/asterisk/sounds/en/letters/ascii34.gsm
+libdata/asterisk/sounds/en/letters/ascii36.gsm
+libdata/asterisk/sounds/en/letters/ascii37.gsm
+libdata/asterisk/sounds/en/letters/ascii38.gsm
+libdata/asterisk/sounds/en/letters/ascii39.gsm
+libdata/asterisk/sounds/en/letters/ascii40.gsm
+libdata/asterisk/sounds/en/letters/ascii41.gsm
+libdata/asterisk/sounds/en/letters/ascii42.gsm
+libdata/asterisk/sounds/en/letters/ascii44.gsm
+libdata/asterisk/sounds/en/letters/ascii58.gsm
+libdata/asterisk/sounds/en/letters/ascii59.gsm
+libdata/asterisk/sounds/en/letters/ascii60.gsm
+libdata/asterisk/sounds/en/letters/ascii62.gsm
+libdata/asterisk/sounds/en/letters/ascii63.gsm
+libdata/asterisk/sounds/en/letters/ascii91.gsm
+libdata/asterisk/sounds/en/letters/ascii92.gsm
+libdata/asterisk/sounds/en/letters/ascii93.gsm
+libdata/asterisk/sounds/en/letters/ascii94.gsm
+libdata/asterisk/sounds/en/letters/ascii95.gsm
+libdata/asterisk/sounds/en/letters/ascii96.gsm
+libdata/asterisk/sounds/en/letters/asterisk.gsm
+libdata/asterisk/sounds/en/letters/at.gsm
+libdata/asterisk/sounds/en/letters/b.gsm
+libdata/asterisk/sounds/en/letters/c.gsm
+libdata/asterisk/sounds/en/letters/d.gsm
+libdata/asterisk/sounds/en/letters/dash.gsm
+libdata/asterisk/sounds/en/letters/dollar.gsm
+libdata/asterisk/sounds/en/letters/dot.gsm
+libdata/asterisk/sounds/en/letters/e.gsm
+libdata/asterisk/sounds/en/letters/equals.gsm
+libdata/asterisk/sounds/en/letters/exclaimation-point.gsm
+libdata/asterisk/sounds/en/letters/f.gsm
+libdata/asterisk/sounds/en/letters/g.gsm
+libdata/asterisk/sounds/en/letters/h.gsm
+libdata/asterisk/sounds/en/letters/i.gsm
+libdata/asterisk/sounds/en/letters/j.gsm
+libdata/asterisk/sounds/en/letters/k.gsm
+libdata/asterisk/sounds/en/letters/l.gsm
+libdata/asterisk/sounds/en/letters/m.gsm
+libdata/asterisk/sounds/en/letters/n.gsm
+libdata/asterisk/sounds/en/letters/o.gsm
+libdata/asterisk/sounds/en/letters/p.gsm
+libdata/asterisk/sounds/en/letters/plus.gsm
+libdata/asterisk/sounds/en/letters/q.gsm
+libdata/asterisk/sounds/en/letters/r.gsm
+libdata/asterisk/sounds/en/letters/s.gsm
+libdata/asterisk/sounds/en/letters/slash.gsm
+libdata/asterisk/sounds/en/letters/space.gsm
+libdata/asterisk/sounds/en/letters/t.gsm
+libdata/asterisk/sounds/en/letters/u.gsm
+libdata/asterisk/sounds/en/letters/v.gsm
+libdata/asterisk/sounds/en/letters/w.gsm
+libdata/asterisk/sounds/en/letters/x.gsm
+libdata/asterisk/sounds/en/letters/y.gsm
+libdata/asterisk/sounds/en/letters/z.gsm
+libdata/asterisk/sounds/en/letters/zed.gsm
+libdata/asterisk/sounds/en/library.gsm
+libdata/asterisk/sounds/en/lightning.gsm
+libdata/asterisk/sounds/en/like_to_tell_valid_ext.gsm
+libdata/asterisk/sounds/en/limit-simul-calls.gsm
+libdata/asterisk/sounds/en/lines-complaining-customers.gsm
+libdata/asterisk/sounds/en/linux.gsm
+libdata/asterisk/sounds/en/list.gsm
+libdata/asterisk/sounds/en/load-average.gsm
+libdata/asterisk/sounds/en/local-authorities.gsm
+libdata/asterisk/sounds/en/location.gsm
+libdata/asterisk/sounds/en/login-fail.gsm
+libdata/asterisk/sounds/en/long-beach.gsm
+libdata/asterisk/sounds/en/los-angeles.gsm
+libdata/asterisk/sounds/en/loss-prevention.gsm
+libdata/asterisk/sounds/en/loss.gsm
+libdata/asterisk/sounds/en/lots-o-monkeys.gsm
+libdata/asterisk/sounds/en/louisiana.gsm
+libdata/asterisk/sounds/en/low.gsm
+libdata/asterisk/sounds/en/lowercase.gsm
+libdata/asterisk/sounds/en/lunch.gsm
+libdata/asterisk/sounds/en/lyrics-louie-louie.gsm
+libdata/asterisk/sounds/en/machine.gsm
+libdata/asterisk/sounds/en/made-it-up.gsm
+libdata/asterisk/sounds/en/mail.gsm
+libdata/asterisk/sounds/en/mailroom.gsm
+libdata/asterisk/sounds/en/main-menu.gsm
+libdata/asterisk/sounds/en/maine.gsm
+libdata/asterisk/sounds/en/maintenance.gsm
+libdata/asterisk/sounds/en/male.gsm
+libdata/asterisk/sounds/en/management.gsm
+libdata/asterisk/sounds/en/manufacturing.gsm
+libdata/asterisk/sounds/en/marketing.gsm
+libdata/asterisk/sounds/en/marryme.gsm
+libdata/asterisk/sounds/en/martini.gsm
+libdata/asterisk/sounds/en/maryland.gsm
+libdata/asterisk/sounds/en/massachusetts.gsm
+libdata/asterisk/sounds/en/mathematics.gsm
+libdata/asterisk/sounds/en/maximum.gsm
+libdata/asterisk/sounds/en/megabits.gsm
+libdata/asterisk/sounds/en/megabytes.gsm
+libdata/asterisk/sounds/en/megahertz.gsm
+libdata/asterisk/sounds/en/memory.gsm
+libdata/asterisk/sounds/en/memphis.gsm
+libdata/asterisk/sounds/en/menu.gsm
+libdata/asterisk/sounds/en/mesa.gsm
+libdata/asterisk/sounds/en/message-from.gsm
+libdata/asterisk/sounds/en/message-number.gsm
+libdata/asterisk/sounds/en/messages_curious.gsm
+libdata/asterisk/sounds/en/meter.gsm
+libdata/asterisk/sounds/en/meters.gsm
+libdata/asterisk/sounds/en/miami.gsm
+libdata/asterisk/sounds/en/michigan.gsm
+libdata/asterisk/sounds/en/midnight-tomorrow-night.gsm
+libdata/asterisk/sounds/en/midnight-tonight.gsm
+libdata/asterisk/sounds/en/midnight.gsm
+libdata/asterisk/sounds/en/mike.gsm
+libdata/asterisk/sounds/en/miles-per-hour.gsm
+libdata/asterisk/sounds/en/miles.gsm
+libdata/asterisk/sounds/en/millionth.gsm
+libdata/asterisk/sounds/en/milwaukee.gsm
+libdata/asterisk/sounds/en/mind_repeating.gsm
+libdata/asterisk/sounds/en/minimum.gsm
+libdata/asterisk/sounds/en/minions-not-answering-leave-message.gsm
+libdata/asterisk/sounds/en/minneapolis.gsm
+libdata/asterisk/sounds/en/minnesota.gsm
+libdata/asterisk/sounds/en/minute.gsm
+libdata/asterisk/sounds/en/minutes.gsm
+libdata/asterisk/sounds/en/missed.gsm
+libdata/asterisk/sounds/en/mississippi.gsm
+libdata/asterisk/sounds/en/missouri.gsm
+libdata/asterisk/sounds/en/misty.gsm
+libdata/asterisk/sounds/en/mode.gsm
+libdata/asterisk/sounds/en/monitored.gsm
+libdata/asterisk/sounds/en/montana.gsm
+libdata/asterisk/sounds/en/month.gsm
+libdata/asterisk/sounds/en/months.gsm
+libdata/asterisk/sounds/en/moo1.gsm
+libdata/asterisk/sounds/en/moo2.gsm
+libdata/asterisk/sounds/en/morning.gsm
+libdata/asterisk/sounds/en/moron.gsm
+libdata/asterisk/sounds/en/mostly.gsm
+libdata/asterisk/sounds/en/motor-pool.gsm
+libdata/asterisk/sounds/en/mountain.gsm
+libdata/asterisk/sounds/en/moving.gsm
+libdata/asterisk/sounds/en/ms.gsm
+libdata/asterisk/sounds/en/nashville.gsm
+libdata/asterisk/sounds/en/national-weather-service.gsm
+libdata/asterisk/sounds/en/nautical-miles.gsm
+libdata/asterisk/sounds/en/nbdy-avail-to-take-call.gsm
+libdata/asterisk/sounds/en/near.gsm
+libdata/asterisk/sounds/en/nebraska.gsm
+libdata/asterisk/sounds/en/negative.gsm
+libdata/asterisk/sounds/en/network-operations-center.gsm
+libdata/asterisk/sounds/en/network-operations.gsm
+libdata/asterisk/sounds/en/nevada.gsm
+libdata/asterisk/sounds/en/new-accounts.gsm
+libdata/asterisk/sounds/en/new-hampshire.gsm
+libdata/asterisk/sounds/en/new-jersey.gsm
+libdata/asterisk/sounds/en/new-mexico.gsm
+libdata/asterisk/sounds/en/new-orleans.gsm
+libdata/asterisk/sounds/en/new-york.gsm
+libdata/asterisk/sounds/en/night.gsm
+libdata/asterisk/sounds/en/nineteenth.gsm
+libdata/asterisk/sounds/en/ninetieth.gsm
+libdata/asterisk/sounds/en/ninth.gsm
+libdata/asterisk/sounds/en/no-112-1.gsm
+libdata/asterisk/sounds/en/no-112-2.gsm
+libdata/asterisk/sounds/en/no-911-1.gsm
+libdata/asterisk/sounds/en/no-911-2.gsm
+libdata/asterisk/sounds/en/no-empty-conferences.gsm
+libdata/asterisk/sounds/en/no-info-about-number.gsm
+libdata/asterisk/sounds/en/no-longer-in-service.gsm
+libdata/asterisk/sounds/en/no-reply-no-mailbox.gsm
+libdata/asterisk/sounds/en/no-route-exists-to-dest.gsm
+libdata/asterisk/sounds/en/no_invite_to_conf.gsm
+libdata/asterisk/sounds/en/no_longer_conf.gsm
+libdata/asterisk/sounds/en/no_problem_help.gsm
+libdata/asterisk/sounds/en/no_worries_try_again.gsm
+libdata/asterisk/sounds/en/nobody-but-chickens.gsm
+libdata/asterisk/sounds/en/node.gsm
+libdata/asterisk/sounds/en/none_of_my_business1.gsm
+libdata/asterisk/sounds/en/none_of_my_business2.gsm
+libdata/asterisk/sounds/en/north-carolina.gsm
+libdata/asterisk/sounds/en/north-dakota.gsm
+libdata/asterisk/sounds/en/north.gsm
+libdata/asterisk/sounds/en/northerly.gsm
+libdata/asterisk/sounds/en/not-auth-pstn.gsm
+libdata/asterisk/sounds/en/not-enough-credit.gsm
+libdata/asterisk/sounds/en/not-necessary-1.gsm
+libdata/asterisk/sounds/en/not-necessary-ac.gsm
+libdata/asterisk/sounds/en/not-necessary-dial-1-or-ac.gsm
+libdata/asterisk/sounds/en/not-rqsted-wakeup.gsm
+libdata/asterisk/sounds/en/not-taking-your-call.gsm
+libdata/asterisk/sounds/en/not-yet-assigned.gsm
+libdata/asterisk/sounds/en/not-yet-connected.gsm
+libdata/asterisk/sounds/en/not_me.gsm
+libdata/asterisk/sounds/en/not_pass.gsm
+libdata/asterisk/sounds/en/not_siri.gsm
+libdata/asterisk/sounds/en/not_you.gsm
+libdata/asterisk/sounds/en/nothing-recorded.gsm
+libdata/asterisk/sounds/en/now.gsm
+libdata/asterisk/sounds/en/num-not-in-db.gsm
+libdata/asterisk/sounds/en/num-outside-area.gsm
+libdata/asterisk/sounds/en/num-was-successfully.gsm
+libdata/asterisk/sounds/en/number-not-answering.gsm
+libdata/asterisk/sounds/en/number.gsm
+libdata/asterisk/sounds/en/oakland.gsm
+libdata/asterisk/sounds/en/octothorpe.gsm
+libdata/asterisk/sounds/en/off-duty.gsm
+libdata/asterisk/sounds/en/off.gsm
+libdata/asterisk/sounds/en/office-code.gsm
+libdata/asterisk/sounds/en/office-iguanas.gsm
+libdata/asterisk/sounds/en/office.gsm
+libdata/asterisk/sounds/en/ogm_home.gsm
+libdata/asterisk/sounds/en/ohio.gsm
+libdata/asterisk/sounds/en/oklahoma-city.gsm
+libdata/asterisk/sounds/en/oklahoma.gsm
+libdata/asterisk/sounds/en/omaha.gsm
+libdata/asterisk/sounds/en/on-busy.gsm
+libdata/asterisk/sounds/en/on-monthly-tel-stment.gsm
+libdata/asterisk/sounds/en/on-no-answer.gsm
+libdata/asterisk/sounds/en/on.gsm
+libdata/asterisk/sounds/en/one-moment-please.gsm
+libdata/asterisk/sounds/en/one-small-step.gsm
+libdata/asterisk/sounds/en/one-small-step2.gsm
+libdata/asterisk/sounds/en/oops1.gsm
+libdata/asterisk/sounds/en/oops2.gsm
+libdata/asterisk/sounds/en/oops3.gsm
+libdata/asterisk/sounds/en/open-parenthesis.gsm
+libdata/asterisk/sounds/en/open.gsm
+libdata/asterisk/sounds/en/operations.gsm
+libdata/asterisk/sounds/en/option-is-invalid.gsm
+libdata/asterisk/sounds/en/option-not-implemented.gsm
+libdata/asterisk/sounds/en/or-press.gsm
+libdata/asterisk/sounds/en/or.gsm
+libdata/asterisk/sounds/en/order-desk.gsm
+libdata/asterisk/sounds/en/orders.gsm
+libdata/asterisk/sounds/en/oregon.gsm
+libdata/asterisk/sounds/en/other-options-exercise.gsm
+libdata/asterisk/sounds/en/otherwise-press.gsm
+libdata/asterisk/sounds/en/otherwise.gsm
+libdata/asterisk/sounds/en/our-business-hours-are.gsm
+libdata/asterisk/sounds/en/outbound.gsm
+libdata/asterisk/sounds/en/outside-sales.gsm
+libdata/asterisk/sounds/en/outside-transfer.gsm
+libdata/asterisk/sounds/en/pacific.gsm
+libdata/asterisk/sounds/en/packet.gsm
+libdata/asterisk/sounds/en/panic.gsm
+libdata/asterisk/sounds/en/partially.gsm
+libdata/asterisk/sounds/en/partly.gsm
+libdata/asterisk/sounds/en/pascal.gsm
+libdata/asterisk/sounds/en/pascal2.gsm
+libdata/asterisk/sounds/en/passwords_not_match.gsm
+libdata/asterisk/sounds/en/patchy.gsm
+libdata/asterisk/sounds/en/pbx-invalid.gsm
+libdata/asterisk/sounds/en/pbx-invalidpark.gsm
+libdata/asterisk/sounds/en/pbx-parkingfailed.gsm
+libdata/asterisk/sounds/en/pbx-transfer.gsm
+libdata/asterisk/sounds/en/pence.gsm
+libdata/asterisk/sounds/en/pennies.gsm
+libdata/asterisk/sounds/en/pennsylvania.gsm
+libdata/asterisk/sounds/en/penny.gsm
+libdata/asterisk/sounds/en/percent.gsm
+libdata/asterisk/sounds/en/perhaps-we-are.gsm
+libdata/asterisk/sounds/en/perhaps-we-are2.gsm
+libdata/asterisk/sounds/en/period.gsm
+libdata/asterisk/sounds/en/personnel.gsm
+libdata/asterisk/sounds/en/persons-in-path-of.gsm
+libdata/asterisk/sounds/en/philadelphia.gsm
+libdata/asterisk/sounds/en/phoenix.gsm
+libdata/asterisk/sounds/en/phonetic/9_p.gsm
+libdata/asterisk/sounds/en/phonetic/a_p.gsm
+libdata/asterisk/sounds/en/phonetic/b_p.gsm
+libdata/asterisk/sounds/en/phonetic/c_p.gsm
+libdata/asterisk/sounds/en/phonetic/d_p.gsm
+libdata/asterisk/sounds/en/phonetic/e_p.gsm
+libdata/asterisk/sounds/en/phonetic/f_p.gsm
+libdata/asterisk/sounds/en/phonetic/g_p.gsm
+libdata/asterisk/sounds/en/phonetic/h_p.gsm
+libdata/asterisk/sounds/en/phonetic/i_p.gsm
+libdata/asterisk/sounds/en/phonetic/j_p.gsm
+libdata/asterisk/sounds/en/phonetic/k_p.gsm
+libdata/asterisk/sounds/en/phonetic/l_p.gsm
+libdata/asterisk/sounds/en/phonetic/m_p.gsm
+libdata/asterisk/sounds/en/phonetic/n_p.gsm
+libdata/asterisk/sounds/en/phonetic/o_p.gsm
+libdata/asterisk/sounds/en/phonetic/p_p.gsm
+libdata/asterisk/sounds/en/phonetic/q_p.gsm
+libdata/asterisk/sounds/en/phonetic/r_p.gsm
+libdata/asterisk/sounds/en/phonetic/s_p.gsm
+libdata/asterisk/sounds/en/phonetic/t_p.gsm
+libdata/asterisk/sounds/en/phonetic/u_p.gsm
+libdata/asterisk/sounds/en/phonetic/v_p.gsm
+libdata/asterisk/sounds/en/phonetic/w_p.gsm
+libdata/asterisk/sounds/en/phonetic/x_p.gsm
+libdata/asterisk/sounds/en/phonetic/y_p.gsm
+libdata/asterisk/sounds/en/phonetic/z_p.gsm
+libdata/asterisk/sounds/en/physics.gsm
+libdata/asterisk/sounds/en/pin-invalid.gsm
+libdata/asterisk/sounds/en/pin-number-accepted.gsm
+libdata/asterisk/sounds/en/pin_number.gsm
+libdata/asterisk/sounds/en/ping.gsm
+libdata/asterisk/sounds/en/pipe.gsm
+libdata/asterisk/sounds/en/planning.gsm
+libdata/asterisk/sounds/en/please-answer-the-following.gsm
+libdata/asterisk/sounds/en/please-contact-tech-supt.gsm
+libdata/asterisk/sounds/en/please-enter-first-three-letters.gsm
+libdata/asterisk/sounds/en/please-enter-the.gsm
+libdata/asterisk/sounds/en/please-enter-your.gsm
+libdata/asterisk/sounds/en/please-hang-up-and-dial-operator.gsm
+libdata/asterisk/sounds/en/please-hang-up-and-try-again.gsm
+libdata/asterisk/sounds/en/please-hold-minion-connect.gsm
+libdata/asterisk/sounds/en/please-hold-while-minion.gsm
+libdata/asterisk/sounds/en/please-try-again-later.gsm
+libdata/asterisk/sounds/en/please-try-again.gsm
+libdata/asterisk/sounds/en/please-try-call-later.gsm
+libdata/asterisk/sounds/en/please-try.gsm
+libdata/asterisk/sounds/en/please-wait-connect-oncall-eng.gsm
+libdata/asterisk/sounds/en/pls-ent-num-transfer.gsm
+libdata/asterisk/sounds/en/pls-enter-conf-password.gsm
+libdata/asterisk/sounds/en/pls-enter-num-message-after-tone.gsm
+libdata/asterisk/sounds/en/pls-enter-vm-password.gsm
+libdata/asterisk/sounds/en/pls-entr-num-uwish2-call.gsm
+libdata/asterisk/sounds/en/pls-hold-process-tx.gsm
+libdata/asterisk/sounds/en/pls-hold-silent30.gsm
+libdata/asterisk/sounds/en/pls-hold-while-try.gsm
+libdata/asterisk/sounds/en/pls-listen-options-changed.gsm
+libdata/asterisk/sounds/en/pls-lv-msg-will-contact.gsm
+libdata/asterisk/sounds/en/pls-rcrd-name-at-tone.gsm
+libdata/asterisk/sounds/en/pls-stay-on-line.gsm
+libdata/asterisk/sounds/en/pls-try-again.gsm
+libdata/asterisk/sounds/en/pls-try-area-code.gsm
+libdata/asterisk/sounds/en/pls-try-manually.gsm
+libdata/asterisk/sounds/en/pls-wait-connect-call.gsm
+libdata/asterisk/sounds/en/plugh.gsm
+libdata/asterisk/sounds/en/pm-announcement-number.gsm
+libdata/asterisk/sounds/en/pm-invalid-option.gsm
+libdata/asterisk/sounds/en/pm-phrase-management.gsm
+libdata/asterisk/sounds/en/pm-prompt-number.gsm
+libdata/asterisk/sounds/en/pm-to-record-phrase.gsm
+libdata/asterisk/sounds/en/pm-to-review-phrase.gsm
+libdata/asterisk/sounds/en/point.gsm
+libdata/asterisk/sounds/en/pop.gsm
+libdata/asterisk/sounds/en/port.gsm
+libdata/asterisk/sounds/en/portland.gsm
+libdata/asterisk/sounds/en/portnumber.gsm
+libdata/asterisk/sounds/en/position.gsm
+libdata/asterisk/sounds/en/post-entry-pound.gsm
+libdata/asterisk/sounds/en/pounds.gsm
+libdata/asterisk/sounds/en/presales-support.gsm
+libdata/asterisk/sounds/en/presidents-office.gsm
+libdata/asterisk/sounds/en/press-0.gsm
+libdata/asterisk/sounds/en/press-1.gsm
+libdata/asterisk/sounds/en/press-2.gsm
+libdata/asterisk/sounds/en/press-3.gsm
+libdata/asterisk/sounds/en/press-4.gsm
+libdata/asterisk/sounds/en/press-5.gsm
+libdata/asterisk/sounds/en/press-6-to-eject.gsm
+libdata/asterisk/sounds/en/press-6.gsm
+libdata/asterisk/sounds/en/press-7.gsm
+libdata/asterisk/sounds/en/press-8.gsm
+libdata/asterisk/sounds/en/press-9.gsm
+libdata/asterisk/sounds/en/press-button-again.gsm
+libdata/asterisk/sounds/en/press-enter.gsm
+libdata/asterisk/sounds/en/press-escape.gsm
+libdata/asterisk/sounds/en/press-hash.gsm
+libdata/asterisk/sounds/en/press-or-say-0.gsm
+libdata/asterisk/sounds/en/press-or-say-1.gsm
+libdata/asterisk/sounds/en/press-or-say-2.gsm
+libdata/asterisk/sounds/en/press-or-say-3.gsm
+libdata/asterisk/sounds/en/press-or-say-4.gsm
+libdata/asterisk/sounds/en/press-or-say-5.gsm
+libdata/asterisk/sounds/en/press-or-say-6.gsm
+libdata/asterisk/sounds/en/press-or-say-7.gsm
+libdata/asterisk/sounds/en/press-or-say-8.gsm
+libdata/asterisk/sounds/en/press-or-say-9.gsm
+libdata/asterisk/sounds/en/press-pound-save-changes.gsm
+libdata/asterisk/sounds/en/press-pound-to-login-star-to-hangup.gsm
+libdata/asterisk/sounds/en/press-pound.gsm
+libdata/asterisk/sounds/en/press-return.gsm
+libdata/asterisk/sounds/en/press-star-cancel.gsm
+libdata/asterisk/sounds/en/press-star.gsm
+libdata/asterisk/sounds/en/press-the-space-bar.gsm
+libdata/asterisk/sounds/en/press-tilde.gsm
+libdata/asterisk/sounds/en/press.gsm
+libdata/asterisk/sounds/en/press_pound_hash.gsm
+libdata/asterisk/sounds/en/press_pound_hash_key.gsm
+libdata/asterisk/sounds/en/pressure.gsm
+libdata/asterisk/sounds/en/prime_number.gsm
+libdata/asterisk/sounds/en/printing.gsm
+libdata/asterisk/sounds/en/priv-callee-options.gsm
+libdata/asterisk/sounds/en/priv-callpending.gsm
+libdata/asterisk/sounds/en/priv-introsaved.gsm
+libdata/asterisk/sounds/en/priv-recordintro.gsm
+libdata/asterisk/sounds/en/privacy-blacklisted.gsm
+libdata/asterisk/sounds/en/privacy-blocked.gsm
+libdata/asterisk/sounds/en/privacy-if-error-leave-message-or-hangup.gsm
+libdata/asterisk/sounds/en/privacy-if-error.gsm
+libdata/asterisk/sounds/en/privacy-if-sales-call-contact-in-writing.gsm
+libdata/asterisk/sounds/en/privacy-incorrect.gsm
+libdata/asterisk/sounds/en/privacy-last-caller-was.gsm
+libdata/asterisk/sounds/en/privacy-not.gsm
+libdata/asterisk/sounds/en/privacy-please-dial.gsm
+libdata/asterisk/sounds/en/privacy-please-stay-on-line-to-be-connected.gsm
+libdata/asterisk/sounds/en/privacy-prompt.gsm
+libdata/asterisk/sounds/en/privacy-restricted-by-req.gsm
+libdata/asterisk/sounds/en/privacy-screening-unidentified-calls.gsm
+libdata/asterisk/sounds/en/privacy-stop-calling-not-welcome.gsm
+libdata/asterisk/sounds/en/privacy-stop-calling-not-welcome2.gsm
+libdata/asterisk/sounds/en/privacy-thankyou.gsm
+libdata/asterisk/sounds/en/privacy-this-number-is.gsm
+libdata/asterisk/sounds/en/privacy-to-blacklist-last-caller.gsm
+libdata/asterisk/sounds/en/privacy-to-blacklist-this-number.gsm
+libdata/asterisk/sounds/en/privacy-to-hear-our-contact-details.gsm
+libdata/asterisk/sounds/en/privacy-to-whitelist-last-caller.gsm
+libdata/asterisk/sounds/en/privacy-to-whitelist-this-number.gsm
+libdata/asterisk/sounds/en/privacy-unident.gsm
+libdata/asterisk/sounds/en/privacy-whitelisted.gsm
+libdata/asterisk/sounds/en/privacy-you-are-blacklisted.gsm
+libdata/asterisk/sounds/en/privacy-you-are-calling-from.gsm
+libdata/asterisk/sounds/en/privacy-your-callerid-is.gsm
+libdata/asterisk/sounds/en/product.gsm
+libdata/asterisk/sounds/en/production.gsm
+libdata/asterisk/sounds/en/projects.gsm
+libdata/asterisk/sounds/en/prompt-not-found.gsm
+libdata/asterisk/sounds/en/protocol.gsm
+libdata/asterisk/sounds/en/public-relations.gsm
+libdata/asterisk/sounds/en/purchasing.gsm
+libdata/asterisk/sounds/en/purposes.gsm
+libdata/asterisk/sounds/en/q-dot-931.gsm
+libdata/asterisk/sounds/en/q-dot-9thirty1.gsm
+libdata/asterisk/sounds/en/quality-assurance.gsm
+libdata/asterisk/sounds/en/quality-control.gsm
+libdata/asterisk/sounds/en/quality_control.gsm
+libdata/asterisk/sounds/en/quarter.gsm
+libdata/asterisk/sounds/en/queue-callswaiting.gsm
+libdata/asterisk/sounds/en/queue-holdtime.gsm
+libdata/asterisk/sounds/en/queue-less-than.gsm
+libdata/asterisk/sounds/en/queue-minute.gsm
+libdata/asterisk/sounds/en/queue-minutes.gsm
+libdata/asterisk/sounds/en/queue-periodic-announce.gsm
+libdata/asterisk/sounds/en/queue-quantity1.gsm
+libdata/asterisk/sounds/en/queue-quantity2.gsm
+libdata/asterisk/sounds/en/queue-reporthold.gsm
+libdata/asterisk/sounds/en/queue-seconds.gsm
+libdata/asterisk/sounds/en/queue-thankyou.gsm
+libdata/asterisk/sounds/en/queue-thereare.gsm
+libdata/asterisk/sounds/en/queue-youarenext.gsm
+libdata/asterisk/sounds/en/quickly.gsm
+libdata/asterisk/sounds/en/quote.gsm
+libdata/asterisk/sounds/en/race.gsm
+libdata/asterisk/sounds/en/rain.gsm
+libdata/asterisk/sounds/en/rainfall.gsm
+libdata/asterisk/sounds/en/rainy.gsm
+libdata/asterisk/sounds/en/range.gsm
+libdata/asterisk/sounds/en/reassigned-new-areacode.gsm
+libdata/asterisk/sounds/en/rebates.gsm
+libdata/asterisk/sounds/en/received.gsm
+libdata/asterisk/sounds/en/receiving.gsm
+libdata/asterisk/sounds/en/reception.gsm
+libdata/asterisk/sounds/en/recorded.gsm
+libdata/asterisk/sounds/en/registrar.gsm
+libdata/asterisk/sounds/en/regret_not_saved.gsm
+libdata/asterisk/sounds/en/remote-already-in-this-mode-2.gsm
+libdata/asterisk/sounds/en/remote-already-in-this-mode.gsm
+libdata/asterisk/sounds/en/remote-base.gsm
+libdata/asterisk/sounds/en/removed.gsm
+libdata/asterisk/sounds/en/repair.gsm
+libdata/asterisk/sounds/en/repeat-only.gsm
+libdata/asterisk/sounds/en/repeat_pin.gsm
+libdata/asterisk/sounds/en/repeater.gsm
+libdata/asterisk/sounds/en/research-and-development.gsm
+libdata/asterisk/sounds/en/research.gsm
+libdata/asterisk/sounds/en/reservations.gsm
+libdata/asterisk/sounds/en/restarting.gsm
+libdata/asterisk/sounds/en/rhode-island.gsm
+libdata/asterisk/sounds/en/right-bracket.gsm
+libdata/asterisk/sounds/en/rising.gsm
+libdata/asterisk/sounds/en/risk-management.gsm
+libdata/asterisk/sounds/en/roaming.gsm
+libdata/asterisk/sounds/en/room-service.gsm
+libdata/asterisk/sounds/en/route-sip.gsm
+libdata/asterisk/sounds/en/rqsted-wakeup-for.gsm
+libdata/asterisk/sounds/en/sacramento.gsm
+libdata/asterisk/sounds/en/said_hold_on.gsm
+libdata/asterisk/sounds/en/saint-louis.gsm
+libdata/asterisk/sounds/en/sales-floor.gsm
+libdata/asterisk/sounds/en/sales.gsm
+libdata/asterisk/sounds/en/saleshell.gsm
+libdata/asterisk/sounds/en/san-antonio.gsm
+libdata/asterisk/sounds/en/san-diego.gsm
+libdata/asterisk/sounds/en/san-francisco.gsm
+libdata/asterisk/sounds/en/san-jose.gsm
+libdata/asterisk/sounds/en/save-announce-press.gsm
+libdata/asterisk/sounds/en/say-temp-msg-prs-pound.gsm
+libdata/asterisk/sounds/en/says-thats-stupid.gsm
+libdata/asterisk/sounds/en/scattered.gsm
+libdata/asterisk/sounds/en/sciences.gsm
+libdata/asterisk/sounds/en/screen-callee-options.gsm
+libdata/asterisk/sounds/en/seattle.gsm
+libdata/asterisk/sounds/en/second.gsm
+libdata/asterisk/sounds/en/seconds.gsm
+libdata/asterisk/sounds/en/secretary.gsm
+libdata/asterisk/sounds/en/security.gsm
+libdata/asterisk/sounds/en/self-destruct-in.gsm
+libdata/asterisk/sounds/en/self-destruct.gsm
+libdata/asterisk/sounds/en/sendhelp.gsm
+libdata/asterisk/sounds/en/server.gsm
+libdata/asterisk/sounds/en/service-not-implemented.gsm
+libdata/asterisk/sounds/en/service.gsm
+libdata/asterisk/sounds/en/seventeenth.gsm
+libdata/asterisk/sounds/en/seventh.gsm
+libdata/asterisk/sounds/en/seventieth.gsm
+libdata/asterisk/sounds/en/severe.gsm
+libdata/asterisk/sounds/en/shall-i-try-again.gsm
+libdata/asterisk/sounds/en/shiny-brass-lamp.gsm
+libdata/asterisk/sounds/en/shipping.gsm
+libdata/asterisk/sounds/en/shop.gsm
+libdata/asterisk/sounds/en/show-office.gsm
+libdata/asterisk/sounds/en/sighted.gsm
+libdata/asterisk/sounds/en/silence/1.gsm
+libdata/asterisk/sounds/en/silence/10.gsm
+libdata/asterisk/sounds/en/silence/2.gsm
+libdata/asterisk/sounds/en/silence/3.gsm
+libdata/asterisk/sounds/en/silence/4.gsm
+libdata/asterisk/sounds/en/silence/5.gsm
+libdata/asterisk/sounds/en/silence/6.gsm
+libdata/asterisk/sounds/en/silence/7.gsm
+libdata/asterisk/sounds/en/silence/8.gsm
+libdata/asterisk/sounds/en/silence/9.gsm
+libdata/asterisk/sounds/en/simplex.gsm
+libdata/asterisk/sounds/en/simul-call-limit-reached.gsm
+libdata/asterisk/sounds/en/sixteenth.gsm
+libdata/asterisk/sounds/en/sixth.gsm
+libdata/asterisk/sounds/en/sixtieth.gsm
+libdata/asterisk/sounds/en/sleet.gsm
+libdata/asterisk/sounds/en/sleeting.gsm
+libdata/asterisk/sounds/en/slow.gsm
+libdata/asterisk/sounds/en/slowly.gsm
+libdata/asterisk/sounds/en/snow.gsm
+libdata/asterisk/sounds/en/snowing.gsm
+libdata/asterisk/sounds/en/snowy.gsm
+libdata/asterisk/sounds/en/software.gsm
+libdata/asterisk/sounds/en/someone-you-trust1.gsm
+libdata/asterisk/sounds/en/someone-you-trust2.gsm
+libdata/asterisk/sounds/en/someone-you-trust3.gsm
+libdata/asterisk/sounds/en/something-terribly-wrong.gsm
+libdata/asterisk/sounds/en/sorry-cant-let-you-do-that.gsm
+libdata/asterisk/sounds/en/sorry-cant-let-you-do-that2.gsm
+libdata/asterisk/sounds/en/sorry-cant-let-you-do-that3.gsm
+libdata/asterisk/sounds/en/sorry-mailbox-full.gsm
+libdata/asterisk/sounds/en/sorry-youre-having-problems.gsm
+libdata/asterisk/sounds/en/sorry.gsm
+libdata/asterisk/sounds/en/sorry2.gsm
+libdata/asterisk/sounds/en/sorry_caller_number.gsm
+libdata/asterisk/sounds/en/sorry_didnt_get.gsm
+libdata/asterisk/sounds/en/sorry_didnt_quite_get.gsm
+libdata/asterisk/sounds/en/sorry_login_incorrect.gsm
+libdata/asterisk/sounds/en/sorry_missed.gsm
+libdata/asterisk/sounds/en/sorry_no_messages.gsm
+libdata/asterisk/sounds/en/sorrydave.gsm
+libdata/asterisk/sounds/en/south-carolina.gsm
+libdata/asterisk/sounds/en/south-dakota.gsm
+libdata/asterisk/sounds/en/south.gsm
+libdata/asterisk/sounds/en/southerly.gsm
+libdata/asterisk/sounds/en/spam.gsm
+libdata/asterisk/sounds/en/spam2.gsm
+libdata/asterisk/sounds/en/speak-louder-into-phone.gsm
+libdata/asterisk/sounds/en/speak-louder.gsm
+libdata/asterisk/sounds/en/speak-to-the-operator.gsm
+libdata/asterisk/sounds/en/speed-dial-empty.gsm
+libdata/asterisk/sounds/en/speed-dial.gsm
+libdata/asterisk/sounds/en/speed.gsm
+libdata/asterisk/sounds/en/splat.gsm
+libdata/asterisk/sounds/en/spy-agent.gsm
+libdata/asterisk/sounds/en/spy-console.gsm
+libdata/asterisk/sounds/en/spy-dahdi.gsm
+libdata/asterisk/sounds/en/spy-h323.gsm
+libdata/asterisk/sounds/en/spy-iax.gsm
+libdata/asterisk/sounds/en/spy-iax2.gsm
+libdata/asterisk/sounds/en/spy-jingle.gsm
+libdata/asterisk/sounds/en/spy-local.gsm
+libdata/asterisk/sounds/en/spy-mgcp.gsm
+libdata/asterisk/sounds/en/spy-misdn.gsm
+libdata/asterisk/sounds/en/spy-mobile.gsm
+libdata/asterisk/sounds/en/spy-nbs.gsm
+libdata/asterisk/sounds/en/spy-sip.gsm
+libdata/asterisk/sounds/en/spy-skinny.gsm
+libdata/asterisk/sounds/en/spy-unistim.gsm
+libdata/asterisk/sounds/en/spy-usbradio.gsm
+libdata/asterisk/sounds/en/spy-zap.gsm
+libdata/asterisk/sounds/en/ss-noservice.gsm
+libdata/asterisk/sounds/en/ssh.gsm
+libdata/asterisk/sounds/en/staff.gsm
+libdata/asterisk/sounds/en/staffing.gsm
+libdata/asterisk/sounds/en/standard.gsm
+libdata/asterisk/sounds/en/star-for-menu-again.gsm
+libdata/asterisk/sounds/en/starting-with-either.gsm
+libdata/asterisk/sounds/en/station.gsm
+libdata/asterisk/sounds/en/status.gsm
+libdata/asterisk/sounds/en/step-in-stream.gsm
+libdata/asterisk/sounds/en/sterling.gsm
+libdata/asterisk/sounds/en/still_on_phone.gsm
+libdata/asterisk/sounds/en/store-accounting.gsm
+libdata/asterisk/sounds/en/storm.gsm
+libdata/asterisk/sounds/en/sun.gsm
+libdata/asterisk/sounds/en/sunny.gsm
+libdata/asterisk/sounds/en/support.gsm
+libdata/asterisk/sounds/en/sure_help.gsm
+libdata/asterisk/sounds/en/swap.gsm
+libdata/asterisk/sounds/en/system-crashed.gsm
+libdata/asterisk/sounds/en/system-status-msg.gsm
+libdata/asterisk/sounds/en/system.gsm
+libdata/asterisk/sounds/en/systems.gsm
+libdata/asterisk/sounds/en/talkin_me.gsm
+libdata/asterisk/sounds/en/talking-to-myself.gsm
+libdata/asterisk/sounds/en/target-attendant.gsm
+libdata/asterisk/sounds/en/tcp.gsm
+libdata/asterisk/sounds/en/technical-support.gsm
+libdata/asterisk/sounds/en/telemarketercalling.gsm
+libdata/asterisk/sounds/en/telephone-in-your-pocket.gsm
+libdata/asterisk/sounds/en/telephone-in-your-pocket2.gsm
+libdata/asterisk/sounds/en/telephone-number.gsm
+libdata/asterisk/sounds/en/telesales.gsm
+libdata/asterisk/sounds/en/teletubbie-murder.gsm
+libdata/asterisk/sounds/en/telnet.gsm
+libdata/asterisk/sounds/en/temp-disconnected.gsm
+libdata/asterisk/sounds/en/temperature.gsm
+libdata/asterisk/sounds/en/tennessee.gsm
+libdata/asterisk/sounds/en/tenth.gsm
+libdata/asterisk/sounds/en/terabits.gsm
+libdata/asterisk/sounds/en/terabytes.gsm
+libdata/asterisk/sounds/en/terminated.gsm
+libdata/asterisk/sounds/en/terminating.gsm
+libdata/asterisk/sounds/en/test-tones-follow.gsm
+libdata/asterisk/sounds/en/texas.gsm
+libdata/asterisk/sounds/en/thank-you-cooperation.gsm
+libdata/asterisk/sounds/en/thank-you-for-calling.gsm
+libdata/asterisk/sounds/en/thank_you_calling.gsm
+libdata/asterisk/sounds/en/thanks-annoyance.gsm
+libdata/asterisk/sounds/en/thanks-for-calling-today.gsm
+libdata/asterisk/sounds/en/thanks-for-using.gsm
+libdata/asterisk/sounds/en/that-is-not-rec-phn-num.gsm
+libdata/asterisk/sounds/en/that-number.gsm
+libdata/asterisk/sounds/en/that-tickles.gsm
+libdata/asterisk/sounds/en/that-you-require.gsm
+libdata/asterisk/sounds/en/the-mailbox.gsm
+libdata/asterisk/sounds/en/the-monkeys-twice.gsm
+libdata/asterisk/sounds/en/the-new-number-is.gsm
+libdata/asterisk/sounds/en/the-next.gsm
+libdata/asterisk/sounds/en/the-num-i-have-is.gsm
+libdata/asterisk/sounds/en/the-number-u-dialed.gsm
+libdata/asterisk/sounds/en/the-party-you-are-calling.gsm
+libdata/asterisk/sounds/en/the-weather-at.gsm
+libdata/asterisk/sounds/en/then-press-pound.gsm
+libdata/asterisk/sounds/en/there-are.gsm
+libdata/asterisk/sounds/en/there-is-no-customer-support.gsm
+libdata/asterisk/sounds/en/these-are-currently.gsm
+libdata/asterisk/sounds/en/third.gsm
+libdata/asterisk/sounds/en/thirteenth.gsm
+libdata/asterisk/sounds/en/thirtieth.gsm
+libdata/asterisk/sounds/en/this-call-may-be-monitored-or-recorded.gsm
+libdata/asterisk/sounds/en/this-call-may-be.gsm
+libdata/asterisk/sounds/en/this-call-will-cost.gsm
+libdata/asterisk/sounds/en/this-call-will-end-in.gsm
+libdata/asterisk/sounds/en/this-is-the-voice-mail-system.gsm
+libdata/asterisk/sounds/en/this-is-yr-wakeup-call.gsm
+libdata/asterisk/sounds/en/this.gsm
+libdata/asterisk/sounds/en/thnk-u-for-patience.gsm
+libdata/asterisk/sounds/en/thousandth.gsm
+libdata/asterisk/sounds/en/through.gsm
+libdata/asterisk/sounds/en/thunderstorm.gsm
+libdata/asterisk/sounds/en/tide.gsm
+libdata/asterisk/sounds/en/time.gsm
+libdata/asterisk/sounds/en/times.gsm
+libdata/asterisk/sounds/en/timewarp.gsm
+libdata/asterisk/sounds/en/to-accept-recording.gsm
+libdata/asterisk/sounds/en/to-be-called-back.gsm
+libdata/asterisk/sounds/en/to-blklist-last-caller.gsm
+libdata/asterisk/sounds/en/to-blklist-last-num.gsm
+libdata/asterisk/sounds/en/to-call-num-press.gsm
+libdata/asterisk/sounds/en/to-call-prson-w-sent-msg.gsm
+libdata/asterisk/sounds/en/to-call-this-number.gsm
+libdata/asterisk/sounds/en/to-cancel-this-msg.gsm
+libdata/asterisk/sounds/en/to-cancel-wakeup.gsm
+libdata/asterisk/sounds/en/to-change-exp-date.gsm
+libdata/asterisk/sounds/en/to-change-your-pin-number.gsm
+libdata/asterisk/sounds/en/to-collect-voicemail.gsm
+libdata/asterisk/sounds/en/to-compose-a-message.gsm
+libdata/asterisk/sounds/en/to-confirm-wakeup.gsm
+libdata/asterisk/sounds/en/to-dial-by-name-press.gsm
+libdata/asterisk/sounds/en/to-dial-by-name.gsm
+libdata/asterisk/sounds/en/to-enter-a-diff-number.gsm
+libdata/asterisk/sounds/en/to-enter-a-number.gsm
+libdata/asterisk/sounds/en/to-erase-yr-temp-grtg.gsm
+libdata/asterisk/sounds/en/to-extension.gsm
+libdata/asterisk/sounds/en/to-hang-up-2.gsm
+libdata/asterisk/sounds/en/to-hang-up.gsm
+libdata/asterisk/sounds/en/to-hear-callerid.gsm
+libdata/asterisk/sounds/en/to-hear-menu-again.gsm
+libdata/asterisk/sounds/en/to-hear-msg-again.gsm
+libdata/asterisk/sounds/en/to-hear-msg-envelope.gsm
+libdata/asterisk/sounds/en/to-hear-net-status.gsm
+libdata/asterisk/sounds/en/to-hear-weather-status.gsm
+libdata/asterisk/sounds/en/to-hear-your-account-balance.gsm
+libdata/asterisk/sounds/en/to-join-a-meeting.gsm
+libdata/asterisk/sounds/en/to-leave-message-for.gsm
+libdata/asterisk/sounds/en/to-listen-to-it.gsm
+libdata/asterisk/sounds/en/to-log-in-to-voice-mail.gsm
+libdata/asterisk/sounds/en/to-place-outgoing-call.gsm
+libdata/asterisk/sounds/en/to-reach-first-rep.gsm
+libdata/asterisk/sounds/en/to-reach-operator.gsm
+libdata/asterisk/sounds/en/to-rec-yr-temp-grtg.gsm
+libdata/asterisk/sounds/en/to-record-call.gsm
+libdata/asterisk/sounds/en/to-redial-the-last-number-you-called.gsm
+libdata/asterisk/sounds/en/to-report-emergency.gsm
+libdata/asterisk/sounds/en/to-report-system-network-down.gsm
+libdata/asterisk/sounds/en/to-rerecord-announce.gsm
+libdata/asterisk/sounds/en/to-rerecord-it.gsm
+libdata/asterisk/sounds/en/to-rerecord-yr-message.gsm
+libdata/asterisk/sounds/en/to-rmv-num-blklist.gsm
+libdata/asterisk/sounds/en/to-rqst-wakeup-call.gsm
+libdata/asterisk/sounds/en/to-send-a-reply.gsm
+libdata/asterisk/sounds/en/to-snooze-for.gsm
+libdata/asterisk/sounds/en/to-use-def-attendant.gsm
+libdata/asterisk/sounds/en/tomorrow-night.gsm
+libdata/asterisk/sounds/en/tone_time.gsm
+libdata/asterisk/sounds/en/tones-that-follow-are-for-the-deaf.gsm
+libdata/asterisk/sounds/en/tonight.gsm
+libdata/asterisk/sounds/en/too-low.gsm
+libdata/asterisk/sounds/en/tornado.gsm
+libdata/asterisk/sounds/en/touchtone1.gsm
+libdata/asterisk/sounds/en/touchtone2.gsm
+libdata/asterisk/sounds/en/touchtone3.gsm
+libdata/asterisk/sounds/en/towards.gsm
+libdata/asterisk/sounds/en/trading-desk.gsm
+libdata/asterisk/sounds/en/traffic.gsm
+libdata/asterisk/sounds/en/training.gsm
+libdata/asterisk/sounds/en/transfer.gsm
+libdata/asterisk/sounds/en/transfer_to_agent.gsm
+libdata/asterisk/sounds/en/transportation.gsm
+libdata/asterisk/sounds/en/travel.gsm
+libdata/asterisk/sounds/en/treasury.gsm
+libdata/asterisk/sounds/en/tt-allbusy.gsm
+libdata/asterisk/sounds/en/tt-codezone.gsm
+libdata/asterisk/sounds/en/tt-codezone_MIXDOWN.gsm
+libdata/asterisk/sounds/en/tt-hangup.gsm
+libdata/asterisk/sounds/en/tt-monkeys.gsm
+libdata/asterisk/sounds/en/tt-monkeysintro.gsm
+libdata/asterisk/sounds/en/tt-monty-knights.gsm
+libdata/asterisk/sounds/en/tt-somethingwrong.gsm
+libdata/asterisk/sounds/en/tt-weasels.gsm
+libdata/asterisk/sounds/en/tucson.gsm
+libdata/asterisk/sounds/en/tulsa.gsm
+libdata/asterisk/sounds/en/turn-off-recording.gsm
+libdata/asterisk/sounds/en/turning-to.gsm
+libdata/asterisk/sounds/en/twelveth.gsm
+libdata/asterisk/sounds/en/twentieth.gsm
+libdata/asterisk/sounds/en/twisty-maze.gsm
+libdata/asterisk/sounds/en/tx-has-been-approved.gsm
+libdata/asterisk/sounds/en/typhoon.gsm
+libdata/asterisk/sounds/en/udp.gsm
+libdata/asterisk/sounds/en/uh-oh1.gsm
+libdata/asterisk/sounds/en/uh-oh2.gsm
+libdata/asterisk/sounds/en/uk.gsm
+libdata/asterisk/sounds/en/unavailable.gsm
+libdata/asterisk/sounds/en/unconditional.gsm
+libdata/asterisk/sounds/en/unicorn_blood.gsm
+libdata/asterisk/sounds/en/unicorn_blood_MIXDOWN.gsm
+libdata/asterisk/sounds/en/unidentified-no-callback.gsm
+libdata/asterisk/sounds/en/units.gsm
+libdata/asterisk/sounds/en/unix.gsm
+libdata/asterisk/sounds/en/unwelcomecall.gsm
+libdata/asterisk/sounds/en/up.gsm
+libdata/asterisk/sounds/en/uppercase.gsm
+libdata/asterisk/sounds/en/uptime.gsm
+libdata/asterisk/sounds/en/user.gsm
+libdata/asterisk/sounds/en/users.gsm
+libdata/asterisk/sounds/en/utah.gsm
+libdata/asterisk/sounds/en/variable.gsm
+libdata/asterisk/sounds/en/vermont.gsm
+libdata/asterisk/sounds/en/virginia-beach.gsm
+libdata/asterisk/sounds/en/virginia.gsm
+libdata/asterisk/sounds/en/visibility.gsm
+libdata/asterisk/sounds/en/visit-asterisk-website.gsm
+libdata/asterisk/sounds/en/vm-Cust1.gsm
+libdata/asterisk/sounds/en/vm-Cust2.gsm
+libdata/asterisk/sounds/en/vm-Cust3.gsm
+libdata/asterisk/sounds/en/vm-Cust4.gsm
+libdata/asterisk/sounds/en/vm-Cust5.gsm
+libdata/asterisk/sounds/en/vm-Family.gsm
+libdata/asterisk/sounds/en/vm-Friends.gsm
+libdata/asterisk/sounds/en/vm-INBOX.gsm
+libdata/asterisk/sounds/en/vm-Old.gsm
+libdata/asterisk/sounds/en/vm-Urgent.gsm
+libdata/asterisk/sounds/en/vm-Work.gsm
+libdata/asterisk/sounds/en/vm-advopts.gsm
+libdata/asterisk/sounds/en/vm-and.gsm
+libdata/asterisk/sounds/en/vm-calldiffnum.gsm
+libdata/asterisk/sounds/en/vm-changeto.gsm
+libdata/asterisk/sounds/en/vm-delete.gsm
+libdata/asterisk/sounds/en/vm-deleted.gsm
+libdata/asterisk/sounds/en/vm-dialout.gsm
+libdata/asterisk/sounds/en/vm-duration.gsm
+libdata/asterisk/sounds/en/vm-enter-num-to-call.gsm
+libdata/asterisk/sounds/en/vm-extension.gsm
+libdata/asterisk/sounds/en/vm-first.gsm
+libdata/asterisk/sounds/en/vm-for.gsm
+libdata/asterisk/sounds/en/vm-forward-multiple.gsm
+libdata/asterisk/sounds/en/vm-forward.gsm
+libdata/asterisk/sounds/en/vm-forwardoptions.gsm
+libdata/asterisk/sounds/en/vm-from-extension.gsm
+libdata/asterisk/sounds/en/vm-from-phonenumber.gsm
+libdata/asterisk/sounds/en/vm-from.gsm
+libdata/asterisk/sounds/en/vm-goodbye.gsm
+libdata/asterisk/sounds/en/vm-helpexit.gsm
+libdata/asterisk/sounds/en/vm-incorrect-mailbox.gsm
+libdata/asterisk/sounds/en/vm-incorrect.gsm
+libdata/asterisk/sounds/en/vm-instructions.gsm
+libdata/asterisk/sounds/en/vm-intro.gsm
+libdata/asterisk/sounds/en/vm-invalid-password.gsm
+libdata/asterisk/sounds/en/vm-invalidpassword.gsm
+libdata/asterisk/sounds/en/vm-isonphone.gsm
+libdata/asterisk/sounds/en/vm-isunavail.gsm
+libdata/asterisk/sounds/en/vm-last.gsm
+libdata/asterisk/sounds/en/vm-leavemsg.gsm
+libdata/asterisk/sounds/en/vm-login.gsm
+libdata/asterisk/sounds/en/vm-mailboxfull.gsm
+libdata/asterisk/sounds/en/vm-marked-nonurgent.gsm
+libdata/asterisk/sounds/en/vm-marked-urgent.gsm
+libdata/asterisk/sounds/en/vm-message.gsm
+libdata/asterisk/sounds/en/vm-messages.gsm
+libdata/asterisk/sounds/en/vm-minutes.gsm
+libdata/asterisk/sounds/en/vm-mismatch.gsm
+libdata/asterisk/sounds/en/vm-msgforwarded.gsm
+libdata/asterisk/sounds/en/vm-msginstruct.gsm
+libdata/asterisk/sounds/en/vm-msgsaved.gsm
+libdata/asterisk/sounds/en/vm-newpassword.gsm
+libdata/asterisk/sounds/en/vm-newuser.gsm
+libdata/asterisk/sounds/en/vm-next.gsm
+libdata/asterisk/sounds/en/vm-no.gsm
+libdata/asterisk/sounds/en/vm-nobodyavail.gsm
+libdata/asterisk/sounds/en/vm-nobox.gsm
+libdata/asterisk/sounds/en/vm-nomore.gsm
+libdata/asterisk/sounds/en/vm-nonumber.gsm
+libdata/asterisk/sounds/en/vm-num-i-have.gsm
+libdata/asterisk/sounds/en/vm-onefor-full.gsm
+libdata/asterisk/sounds/en/vm-onefor.gsm
+libdata/asterisk/sounds/en/vm-options.gsm
+libdata/asterisk/sounds/en/vm-opts-full.gsm
+libdata/asterisk/sounds/en/vm-opts.gsm
+libdata/asterisk/sounds/en/vm-passchanged.gsm
+libdata/asterisk/sounds/en/vm-password.gsm
+libdata/asterisk/sounds/en/vm-pls-try-again.gsm
+libdata/asterisk/sounds/en/vm-press.gsm
+libdata/asterisk/sounds/en/vm-prev.gsm
+libdata/asterisk/sounds/en/vm-reachoper.gsm
+libdata/asterisk/sounds/en/vm-rec-busy.gsm
+libdata/asterisk/sounds/en/vm-rec-name.gsm
+libdata/asterisk/sounds/en/vm-rec-temp.gsm
+libdata/asterisk/sounds/en/vm-rec-unv.gsm
+libdata/asterisk/sounds/en/vm-received.gsm
+libdata/asterisk/sounds/en/vm-record-prepend.gsm
+libdata/asterisk/sounds/en/vm-reenterpassword.gsm
+libdata/asterisk/sounds/en/vm-repeat.gsm
+libdata/asterisk/sounds/en/vm-review-nonurgent.gsm
+libdata/asterisk/sounds/en/vm-review-urgent.gsm
+libdata/asterisk/sounds/en/vm-review.gsm
+libdata/asterisk/sounds/en/vm-saved.gsm
+libdata/asterisk/sounds/en/vm-savedto.gsm
+libdata/asterisk/sounds/en/vm-savefolder.gsm
+libdata/asterisk/sounds/en/vm-savemessage.gsm
+libdata/asterisk/sounds/en/vm-saveoper.gsm
+libdata/asterisk/sounds/en/vm-sorry.gsm
+libdata/asterisk/sounds/en/vm-star-cancel.gsm
+libdata/asterisk/sounds/en/vm-starmain.gsm
+libdata/asterisk/sounds/en/vm-tempgreetactive.gsm
+libdata/asterisk/sounds/en/vm-tempgreeting.gsm
+libdata/asterisk/sounds/en/vm-tempgreeting2.gsm
+libdata/asterisk/sounds/en/vm-tempremoved.gsm
+libdata/asterisk/sounds/en/vm-then-pound.gsm
+libdata/asterisk/sounds/en/vm-theperson.gsm
+libdata/asterisk/sounds/en/vm-tmpexists.gsm
+libdata/asterisk/sounds/en/vm-tocallback.gsm
+libdata/asterisk/sounds/en/vm-tocallnum.gsm
+libdata/asterisk/sounds/en/vm-tocancel.gsm
+libdata/asterisk/sounds/en/vm-tocancelmsg.gsm
+libdata/asterisk/sounds/en/vm-toenternumber.gsm
+libdata/asterisk/sounds/en/vm-toforward.gsm
+libdata/asterisk/sounds/en/vm-tohearenv.gsm
+libdata/asterisk/sounds/en/vm-tomakecall.gsm
+libdata/asterisk/sounds/en/vm-tooshort.gsm
+libdata/asterisk/sounds/en/vm-toreply.gsm
+libdata/asterisk/sounds/en/vm-torerecord.gsm
+libdata/asterisk/sounds/en/vm-undelete.gsm
+libdata/asterisk/sounds/en/vm-undeleted.gsm
+libdata/asterisk/sounds/en/vm-unknown-caller.gsm
+libdata/asterisk/sounds/en/vm-whichbox.gsm
+libdata/asterisk/sounds/en/vm-youhave.gsm
+libdata/asterisk/sounds/en/voice-mail-system.gsm
+libdata/asterisk/sounds/en/wait-moment.gsm
+libdata/asterisk/sounds/en/wait-offensive-sounds.gsm
+libdata/asterisk/sounds/en/wakeup-call-cancelled.gsm
+libdata/asterisk/sounds/en/wakeup-call.gsm
+libdata/asterisk/sounds/en/wakeup-daily.gsm
+libdata/asterisk/sounds/en/wakeup-for-daily.gsm
+libdata/asterisk/sounds/en/wakeup-for-one-time.gsm
+libdata/asterisk/sounds/en/wakeup-onetime.gsm
+libdata/asterisk/sounds/en/walks-into-bar-mail.gsm
+libdata/asterisk/sounds/en/warning.gsm
+libdata/asterisk/sounds/en/was-last-seen.gsm
+libdata/asterisk/sounds/en/was.gsm
+libdata/asterisk/sounds/en/washington-dc.gsm
+libdata/asterisk/sounds/en/washington.gsm
+libdata/asterisk/sounds/en/watch.gsm
+libdata/asterisk/sounds/en/watson.gsm
+libdata/asterisk/sounds/en/we-apologize.gsm
+libdata/asterisk/sounds/en/we-dont-have-tech-support.gsm
+libdata/asterisk/sounds/en/weasels-eaten-phonesys.gsm
+libdata/asterisk/sounds/en/weather-station.gsm
+libdata/asterisk/sounds/en/weather.gsm
+libdata/asterisk/sounds/en/web.gsm
+libdata/asterisk/sounds/en/weeks.gsm
+libdata/asterisk/sounds/en/welcome.gsm
+libdata/asterisk/sounds/en/were-sorry.gsm
+libdata/asterisk/sounds/en/west-virginia.gsm
+libdata/asterisk/sounds/en/west.gsm
+libdata/asterisk/sounds/en/westerly.gsm
+libdata/asterisk/sounds/en/what-are-you-wearing.gsm
+libdata/asterisk/sounds/en/what-time-it-is.gsm
+libdata/asterisk/sounds/en/what-time-it-is2.gsm
+libdata/asterisk/sounds/en/when-dialing-this-number.gsm
+libdata/asterisk/sounds/en/who-would-you-like-to-call.gsm
+libdata/asterisk/sounds/en/whoareyou.gsm
+libdata/asterisk/sounds/en/why-no-answer-mystery.gsm
+libdata/asterisk/sounds/en/wichita.gsm
+libdata/asterisk/sounds/en/will-apply.gsm
+libdata/asterisk/sounds/en/will-expire.gsm
+libdata/asterisk/sounds/en/will-not-expire.gsm
+libdata/asterisk/sounds/en/will-reflect-charge-of.gsm
+libdata/asterisk/sounds/en/wind.gsm
+libdata/asterisk/sounds/en/windows.gsm
+libdata/asterisk/sounds/en/windy.gsm
+libdata/asterisk/sounds/en/wisconsin.gsm
+libdata/asterisk/sounds/en/wish-to-continue.gsm
+libdata/asterisk/sounds/en/wish_command_totally.gsm
+libdata/asterisk/sounds/en/with.gsm
+libdata/asterisk/sounds/en/within.gsm
+libdata/asterisk/sounds/en/woo_hoo_call_first.gsm
+libdata/asterisk/sounds/en/work.gsm
+libdata/asterisk/sounds/en/wrong-try-again-smarty.gsm
+libdata/asterisk/sounds/en/wtng-to-spk-w-rep.gsm
+libdata/asterisk/sounds/en/www-switchboard-com.gsm
+libdata/asterisk/sounds/en/wx/around.gsm
+libdata/asterisk/sounds/en/wx/barometer.gsm
+libdata/asterisk/sounds/en/wx/ceiling.gsm
+libdata/asterisk/sounds/en/wx/dew-point.gsm
+libdata/asterisk/sounds/en/wx/falling.gsm
+libdata/asterisk/sounds/en/wx/feet.gsm
+libdata/asterisk/sounds/en/wx/foot.gsm
+libdata/asterisk/sounds/en/wx/gust.gsm
+libdata/asterisk/sounds/en/wx/gusting-to.gsm
+libdata/asterisk/sounds/en/wx/gusts.gsm
+libdata/asterisk/sounds/en/wx/gusty.gsm
+libdata/asterisk/sounds/en/wx/heat-index.gsm
+libdata/asterisk/sounds/en/wx/humidity.gsm
+libdata/asterisk/sounds/en/wx/inch.gsm
+libdata/asterisk/sounds/en/wx/inches.gsm
+libdata/asterisk/sounds/en/wx/kilometer.gsm
+libdata/asterisk/sounds/en/wx/large.gsm
+libdata/asterisk/sounds/en/wx/meter.gsm
+libdata/asterisk/sounds/en/wx/mist.gsm
+libdata/asterisk/sounds/en/wx/northeast.gsm
+libdata/asterisk/sounds/en/wx/northwest.gsm
+libdata/asterisk/sounds/en/wx/percent.gsm
+libdata/asterisk/sounds/en/wx/point.gsm
+libdata/asterisk/sounds/en/wx/rising.gsm
+libdata/asterisk/sounds/en/wx/southeast.gsm
+libdata/asterisk/sounds/en/wx/southwest.gsm
+libdata/asterisk/sounds/en/wx/steady.gsm
+libdata/asterisk/sounds/en/wx/temperature.gsm
+libdata/asterisk/sounds/en/wx/wind-chill.gsm
+libdata/asterisk/sounds/en/wx/winds.gsm
+libdata/asterisk/sounds/en/wyoming.gsm
+libdata/asterisk/sounds/en/yeah.gsm
+libdata/asterisk/sounds/en/year.gsm
+libdata/asterisk/sounds/en/years.gsm
+libdata/asterisk/sounds/en/yes-dear.gsm
+libdata/asterisk/sounds/en/yes-dear2.gsm
+libdata/asterisk/sounds/en/you-are-caller-num.gsm
+libdata/asterisk/sounds/en/you-are-curr-call-num.gsm
+libdata/asterisk/sounds/en/you-can-press.gsm
+libdata/asterisk/sounds/en/you-dialed-wrong-number.gsm
+libdata/asterisk/sounds/en/you-entered.gsm
+libdata/asterisk/sounds/en/you-have-dialed.gsm
+libdata/asterisk/sounds/en/you-have-reached-a-test-number.gsm
+libdata/asterisk/sounds/en/you-have-these-options.gsm
+libdata/asterisk/sounds/en/you-must-first-dial.gsm
+libdata/asterisk/sounds/en/you-seem-impatient.gsm
+libdata/asterisk/sounds/en/you-sound-cute.gsm
+libdata/asterisk/sounds/en/you-wish-to-join.gsm
+libdata/asterisk/sounds/en/you_say_yes.gsm
+libdata/asterisk/sounds/en/your-account.gsm
+libdata/asterisk/sounds/en/your-msg-has-been-saved.gsm
+libdata/asterisk/sounds/en/your-msg-is-too-short.gsm
+libdata/asterisk/sounds/en/your-notifications.gsm
+libdata/asterisk/sounds/en/your-req-notification.gsm
+libdata/asterisk/sounds/en/your-temp-greeting.gsm
+libdata/asterisk/sounds/en/your.gsm
+libdata/asterisk/sounds/en/yourcallisimportant.gsm
+libdata/asterisk/sounds/en/yourcallisimpotent.gsm
+libdata/asterisk/sounds/en/zip-code.gsm
+libdata/asterisk/sounds/en/zombies.gsm
+libdata/asterisk/static-http/ajamdemo.html
+libdata/asterisk/static-http/appdocsxml.xslt
+libdata/asterisk/static-http/astman.css
+libdata/asterisk/static-http/astman.js
+libdata/asterisk/static-http/core-en_US.xml
+libdata/asterisk/static-http/mantest.html
+libdata/asterisk/static-http/prototype.js
+libexec/agi-bin/agi-test.agi
+libexec/agi-bin/eagi-sphinx-test
+libexec/agi-bin/eagi-test
+libexec/agi-bin/jukebox.agi
+${PLIST.webvmail}libexec/cgi-bin/vmail
+man/man8/astdb2bdb.8
+man/man8/astdb2sqlite3.8
+man/man8/asterisk.8
+man/man8/astgenkey.8
+man/man8/autosupport.8
+man/man8/safe_asterisk.8
+sbin/astcanary
+sbin/astdb2bdb
+sbin/astdb2sqlite3
+sbin/asterisk
+sbin/astgenkey
+sbin/astversion
+sbin/autosupport
+sbin/rasterisk
+sbin/safe_asterisk
+share/doc/asterisk/BUGS
+share/doc/asterisk/CHANGES
+share/doc/asterisk/COPYING
+share/doc/asterisk/CREDITS
+share/doc/asterisk/ChangeLog
+share/doc/asterisk/IAX2-security.pdf
+share/doc/asterisk/IAX2-security.txt
+share/doc/asterisk/LICENSE
+share/doc/asterisk/README-SERIOUSLY.bestpractices.md
+share/doc/asterisk/README.md
+share/doc/asterisk/README.txt
+share/doc/asterisk/UPGRADE-1.2.txt
+share/doc/asterisk/UPGRADE-1.4.txt
+share/doc/asterisk/UPGRADE-1.6.txt
+share/doc/asterisk/UPGRADE-1.8.txt
+share/doc/asterisk/UPGRADE-10.txt
+share/doc/asterisk/UPGRADE-11.txt
+share/doc/asterisk/UPGRADE-12.txt
+share/doc/asterisk/UPGRADE-13.txt
+share/doc/asterisk/UPGRADE-14.txt
+share/doc/asterisk/UPGRADE.txt
+share/doc/asterisk/Zaptel-to-DAHDI.txt
+share/examples/asterisk/acl.conf
+share/examples/asterisk/adsi.conf
+share/examples/asterisk/agents.conf
+share/examples/asterisk/alarmreceiver.conf
+share/examples/asterisk/alsa.conf
+share/examples/asterisk/amd.conf
+share/examples/asterisk/app_mysql.conf
+share/examples/asterisk/app_skel.conf
+share/examples/asterisk/ari.conf
+share/examples/asterisk/ast_debug_tools.conf
+share/examples/asterisk/asterisk.adsi
+share/examples/asterisk/asterisk.conf
+share/examples/asterisk/calendar.conf
+share/examples/asterisk/ccss.conf
+share/examples/asterisk/cdr.conf
+share/examples/asterisk/cdr_adaptive_odbc.conf
+share/examples/asterisk/cdr_custom.conf
+share/examples/asterisk/cdr_manager.conf
+share/examples/asterisk/cdr_mysql.conf
+share/examples/asterisk/cdr_odbc.conf
+share/examples/asterisk/cdr_pgsql.conf
+share/examples/asterisk/cdr_sqlite3_custom.conf
+share/examples/asterisk/cdr_syslog.conf
+share/examples/asterisk/cdr_tds.conf
+share/examples/asterisk/cel.conf
+share/examples/asterisk/cel_custom.conf
+share/examples/asterisk/cel_odbc.conf
+share/examples/asterisk/cel_pgsql.conf
+share/examples/asterisk/cel_sqlite3_custom.conf
+share/examples/asterisk/cel_tds.conf
+share/examples/asterisk/chan_dahdi.conf
+share/examples/asterisk/chan_mobile.conf
+share/examples/asterisk/cli.conf
+share/examples/asterisk/cli_aliases.conf
+share/examples/asterisk/cli_permissions.conf
+share/examples/asterisk/codecs.conf
+share/examples/asterisk/confbridge.conf
+share/examples/asterisk/config_test.conf
+share/examples/asterisk/console.conf
+share/examples/asterisk/dbsep.conf
+share/examples/asterisk/dnsmgr.conf
+share/examples/asterisk/dsp.conf
+share/examples/asterisk/dundi.conf
+share/examples/asterisk/enum.conf
+share/examples/asterisk/extconfig.conf
+share/examples/asterisk/extensions.ael
+share/examples/asterisk/extensions.conf
+share/examples/asterisk/extensions.lua
+share/examples/asterisk/extensions_minivm.conf
+share/examples/asterisk/features.conf
+share/examples/asterisk/festival.conf
+share/examples/asterisk/followme.conf
+share/examples/asterisk/func_odbc.conf
+share/examples/asterisk/hep.conf
+share/examples/asterisk/http.conf
+share/examples/asterisk/iax.conf
+share/examples/asterisk/iaxprov.conf
+share/examples/asterisk/indications.conf
+share/examples/asterisk/logger.conf
+share/examples/asterisk/manager.conf
+share/examples/asterisk/meetme.conf
+share/examples/asterisk/mgcp.conf
+share/examples/asterisk/minivm.conf
+share/examples/asterisk/misdn.conf
+share/examples/asterisk/modules.conf
+share/examples/asterisk/motif.conf
+share/examples/asterisk/musiconhold.conf
+share/examples/asterisk/muted.conf
+share/examples/asterisk/ooh323.conf
+share/examples/asterisk/osp.conf
+share/examples/asterisk/oss.conf
+share/examples/asterisk/phone.conf
+share/examples/asterisk/phoneprov.conf
+share/examples/asterisk/pjproject.conf
+share/examples/asterisk/pjsip.conf
+share/examples/asterisk/pjsip_notify.conf
+share/examples/asterisk/pjsip_wizard.conf
+share/examples/asterisk/queuerules.conf
+share/examples/asterisk/queues.conf
+share/examples/asterisk/res_config_mysql.conf
+share/examples/asterisk/res_config_sqlite.conf
+share/examples/asterisk/res_config_sqlite3.conf
+share/examples/asterisk/res_corosync.conf
+share/examples/asterisk/res_curl.conf
+share/examples/asterisk/res_fax.conf
+share/examples/asterisk/res_ldap.conf
+share/examples/asterisk/res_odbc.conf
+share/examples/asterisk/res_parking.conf
+share/examples/asterisk/res_pgsql.conf
+share/examples/asterisk/res_pktccops.conf
+share/examples/asterisk/res_snmp.conf
+share/examples/asterisk/res_stun_monitor.conf
+share/examples/asterisk/resolver_unbound.conf
+share/examples/asterisk/rtp.conf
+share/examples/asterisk/say.conf
+share/examples/asterisk/sip.conf
+share/examples/asterisk/sip_notify.conf
+share/examples/asterisk/skinny.conf
+share/examples/asterisk/sla.conf
+share/examples/asterisk/smdi.conf
+share/examples/asterisk/sorcery.conf
+share/examples/asterisk/ss7.timers
+share/examples/asterisk/stasis.conf
+share/examples/asterisk/statsd.conf
+share/examples/asterisk/telcordia-1.adsi
+share/examples/asterisk/test_sorcery.conf
+share/examples/asterisk/udptl.conf
+share/examples/asterisk/unistim.conf
+share/examples/asterisk/users.conf
+share/examples/asterisk/voicemail.conf
+share/examples/asterisk/vpb.conf
+share/examples/asterisk/xmpp.conf
+${PLIST.webvmail}share/httpd/htdocs/_asterisk/animlogo.gif
+${PLIST.webvmail}share/httpd/htdocs/_asterisk/play.gif
+@pkgdir libdata/asterisk/third-party/pjproject
+@pkgdir libdata/asterisk/keys
+@pkgdir libdata/asterisk/firmware/iax
+@pkgdir libdata/asterisk/documentation/thirdparty
Index: pkgsrc/comms/asterisk15/distinfo
diff -u /dev/null pkgsrc/comms/asterisk15/distinfo:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/distinfo    Mon Jul 16 21:53:04 2018
@@ -0,0 +1,164 @@
+$NetBSD: distinfo,v 1.1 2018/07/16 21:53:04 joerg Exp $
+
+SHA1 (asterisk-15.4.1/asterisk-15.4.1.tar.gz) = 54fbda90840e5a25228fafae67872bdd642c084d
+RMD160 (asterisk-15.4.1/asterisk-15.4.1.tar.gz) = cbf26cf02e670ed49416eabf2acd168980fb1804
+SHA512 (asterisk-15.4.1/asterisk-15.4.1.tar.gz) = e4bad97c1804e65a5940a399fe9aaa8fa1c3327be0f5043272c28cb04a9bbd8382b1a4ed8c28a66b1fcb57a756ac4bc97ed3454f1ecc2437f8292e90f3376dc0
+Size (asterisk-15.4.1/asterisk-15.4.1.tar.gz) = 27587819 bytes
+SHA1 (asterisk-15.4.1/asterisk-extra-sounds-en-gsm-1.5.2.tar.gz) = 0207e289404704c42941759db9660269599044f9
+RMD160 (asterisk-15.4.1/asterisk-extra-sounds-en-gsm-1.5.2.tar.gz) = 5d660e7664a56086bd60ad49196e1b622a60f106
+SHA512 (asterisk-15.4.1/asterisk-extra-sounds-en-gsm-1.5.2.tar.gz) = 3f2f7bf3d5bce3544bc013f913c352f0204a3ce96239987403eb9dce8bc87e64a61d437762323a422a87b2fad1f3bf3e7a5f3d0d340f912a1b1dbfea9479d41d
+Size (asterisk-15.4.1/asterisk-extra-sounds-en-gsm-1.5.2.tar.gz) = 4253587 bytes
+SHA1 (asterisk-15.4.1/pjproject-2.7.2.md5) = c0d375b5372cfbd9d3ef2819c57f2999cd44fb22
+RMD160 (asterisk-15.4.1/pjproject-2.7.2.md5) = f0d33ce6457026506a6d12d90fb753542f9c27c9
+SHA512 (asterisk-15.4.1/pjproject-2.7.2.md5) = 7546b2f76ab27e1465b09b34da71a0c585a08aaf6dc27905b23ec5237763e13d45a5ea21176d4c275bd5de21c36e05dbf6204b0435f8a4d29235027dd7ed5173
+Size (asterisk-15.4.1/pjproject-2.7.2.md5) = 112 bytes
+SHA1 (asterisk-15.4.1/pjproject-2.7.2.tar.bz2) = b45a4764a46c4f19ca28110a9db033691d9a5309
+RMD160 (asterisk-15.4.1/pjproject-2.7.2.tar.bz2) = 02eab8b6b688f91f049469e42e5de81b886294ea
+SHA512 (asterisk-15.4.1/pjproject-2.7.2.tar.bz2) = 3d355ffcbbeed62cfc711e574a987dc06043ccf4f2625820adffa89167022b8306fcee3fada71d3d45e7b902fc9c65ac8221de101cbafed25362a3921f702afd
+Size (asterisk-15.4.1/pjproject-2.7.2.tar.bz2) = 4994233 bytes
+SHA1 (patch-Makefile) = 74e65482ee36afedd4b7723be8fbe2c82bc0e797
+SHA1 (patch-addons_chan__ooh323.c) = 1775da7ca2129a962ed460bd1e78ba3ce6afa62c
+SHA1 (patch-apps_app__adsiprog.c) = 031139e5cd1ef6bb2afb0a74fee3d752eded0a2c
+SHA1 (patch-apps_app__chanspy.c) = 29a807909645c1ad0c8f81b6513a284b978e7c47
+SHA1 (patch-apps_app__directory.c) = 889a78123033709d28b0b805f2a379242ccd7dcc
+SHA1 (patch-apps_app__dumpchan.c) = 127ac02bdc180ad2334cd095aa6e646feb6fba10
+SHA1 (patch-apps_app__followme.c) = c6a5790b5e9b34d07dbfdd66a58e2854c8c72695
+SHA1 (patch-apps_app__minivm.c) = 22ee6ebfbe205baf0acf46ab16c94fea1750f2fb
+SHA1 (patch-apps_app__queue.c) = 89a14825792f8ee6bc4c235fc9732ecb342449c9
+SHA1 (patch-apps_app__sms.c) = ad65b3cb2a30489551101f7534c691cd1155d18f
+SHA1 (patch-apps_app__voicemail.c) = bee10453a86039a99db9df644585800f347aaace
+SHA1 (patch-build__tools_mkpkgconfig) = 7fab8fcf46d9f8a3b98455674fec6307ec472b23
+SHA1 (patch-cdr_cdr__pgsql.c) = 82b002a1f5ed3b7361a98e2bffb5cea8833949b8
+SHA1 (patch-cel_cel__pgsql.c) = b280efab2b035ce60be268bac9bc8824910b2b8f
+SHA1 (patch-channels_chan__oss.c) = 64e45a57e99046597cdadd31c30db45032657df1
+SHA1 (patch-channels_chan__pjsip.c) = 8450fe50b7b7ea2c41737930fef4c4480c8efb66
+SHA1 (patch-channels_chan__sip.c) = ed285612eae6cbfde19ded87db9360c0bca153c7
+SHA1 (patch-channels_pjsip_cli__commands.c) = 01baa9d242e3af02a1f3540cfb3064ad68c71d67
+SHA1 (patch-channels_pjsip_dialplan__functions.c) = 2cf8199c4ec9d4894eb922c2703d49ecc06188ef
+SHA1 (patch-configure) = ea2daa50074d12bf0a0edef07a61e1ac7c85efde
+SHA1 (patch-configure.ac) = 411ba9ca8242e28ef5d35ad77a0f5fa9d6dba564
+SHA1 (patch-contrib_scripts_vmail.cgi) = 7935ce96ea319eb19cc2ce999813eb837d5357c0
+SHA1 (patch-funcs_func__cdr.c) = 79c743df264948e5ea9e1c292012a1f6362d0c1e
+SHA1 (patch-funcs_func__channel.c) = 9d6ed8a2431fbde6879782d8228030467aabe7eb
+SHA1 (patch-funcs_func__env.c) = d9cf08d606c7d5b748f6ae12fd66455a3d30cbf8
+SHA1 (patch-funcs_func__pjsip__aor.c) = 9874f8d66a8afd26ae1669aa727cb5fa2a788334
+SHA1 (patch-funcs_func__pjsip__contact.c) = 9b1fa54ee31a549be40d487c650cc79d625c8092
+SHA1 (patch-funcs_func__pjsip__endpoint.c) = 263a4bdb6365bcc9f6392d25a5aef5c607e59d04
+SHA1 (patch-funcs_func__strings.c) = 08d313add57c5be822a19311fc70a7555bd63877
+SHA1 (patch-include_asterisk_autoconfig.h.in) = 23807b08b94f5cf9c2de76c2928f7ae38997d006
+SHA1 (patch-include_asterisk_endian.h) = 1fc20d750da7d0a0407c1e1694b8bb21753acdcd
+SHA1 (patch-include_asterisk_lock.h) = ce636ef6102a2a95600cfc8215305507e08fe8f9
+SHA1 (patch-include_asterisk_sha1.h) = 9b233ef82b50b8d94177616e1382991656ce1ebf
+SHA1 (patch-include_asterisk_strings.h) = 9ace78a13131bcb411eda79a98264b5cfcc7789c
+SHA1 (patch-main_Makefile) = 41360ca6fe5791f1a38d77406729e4730b691752
+SHA1 (patch-main_acl.c) = 06a9d247b19d648e9ff54ac2a234dc8ac8c023bb
+SHA1 (patch-main_app.c) = 1c12bb207dcb0060017d63ba4f11fcf63d60a45e
+SHA1 (patch-main_ast__expr2.c) = bad644eb956645e889344810ec315afd430853be
+SHA1 (patch-main_ast__expr2.y) = 56ac74b5a3ae47bd5bec798e549ec43bd085e0e8
+SHA1 (patch-main_asterisk.c) = e0b89d10d0a4815ad9d608fd785b62acf189be42
+SHA1 (patch-main_astmm.c) = 26a98d6fbb567ae619041ebd01a31349a847deab
+SHA1 (patch-main_bridge__basic.c) = b48627e563e20544017fdfcfb4559e868badf41d
+SHA1 (patch-main_callerid.c) = 0ea1b3df8aaf3969fcd9e06055c8e6184d50d3d3
+SHA1 (patch-main_cdr.c) = 540fbdb354aba100fa37392b879b92a85d1d8620
+SHA1 (patch-main_cel.c) = 22fa21db8e0afa0958d34014f52e2c4fe9c73ba2
+SHA1 (patch-main_cli.c) = ee72bcaac7dce397354cbc09af4ed7441dbb4650
+SHA1 (patch-main_conversions.c) = 9e7304fad72de95ec6fb7dd6a801c730b4928e42
+SHA1 (patch-main_dns__naptr.c) = 4fa3fe5d2acf7bcd84ca2044280c644e4bd15d7f
+SHA1 (patch-main_enum.c) = 1bcd8d4faffa879ed3547c141307fcd1f2c53108
+SHA1 (patch-main_features.c) = 6e50ea4c6ee26f56edca22611aeed44787459968
+SHA1 (patch-main_http.c) = b36f1f3f0da25456a17888d34ea2bf7b61c1acf4
+SHA1 (patch-main_indications.c) = d28d78ee9b493303e5569c9b8335cf3d5158790b
+SHA1 (patch-main_logger.c) = 321a52b3015af85ea13055953cec5a5d9da05ec8
+SHA1 (patch-main_manager.c) = cb87e72e630a5f192b614d203a8cd81190ba1424
+SHA1 (patch-main_netsock.c) = c2cb47fd2ddc628aae0a7ff1c625d6cb7329b45b
+SHA1 (patch-main_pbx.c) = 8e7ced268edb29238f96418e8b21456364c4ae1f
+SHA1 (patch-main_pbx__builtins.c) = f53aadc04fd489f6725911537007af4f4076ee56
+SHA1 (patch-main_pbx__timing.c) = a4657330086c5b0e8fd271d5676fb897badea452
+SHA1 (patch-main_sched.c) = 4219ac1561e8c4fbc5b1facdf38b3e8b764d5def
+SHA1 (patch-main_stdtime_localtime.c) = 1e3c62d70eab62c46ac29e03e842229cf7587d2b
+SHA1 (patch-main_tdd.c) = 9f525971938dd4f222622cb3e78a35822bd08389
+SHA1 (patch-main_test.c) = f38b370cdb5788304e02c71ef05d2130ead9de98
+SHA1 (patch-main_utils.c) = 2762f982f7a66979e363e984b0948364e1b03b7e
+SHA1 (patch-menuselect_menuselect.c) = 8bae3a2c6b8c6e7927b35bd83147a55e380efd7f
+SHA1 (patch-pbx_pbx__config.c) = cc5e6d2b383f86abfb354c9bf14fc93374fba0a3
+SHA1 (patch-pbx_pbx__dundi.c) = 1bc28ff2412da569f139f245c5223845a2f6cebe
+SHA1 (patch-res_ael_pval.c) = 8a238c78403d3098bf8be8ae266162bc05e586f3
+SHA1 (patch-res_res__calendar.c) = 45211a3baf8fbd8b201ba0167f8c56fb35728c4a
+SHA1 (patch-res_res__calendar__caldav.c) = afe2f4806dd57148dde11baeefaa7897fce4d485
+SHA1 (patch-res_res__calendar__icalendar.c) = ed34b7147d8834ebadac9b1b8488a4c645f90a5b
+SHA1 (patch-res_res__hep__pjsip.c) = b0c8fed52451ec31a2c77d4abd28640631bb708c
+SHA1 (patch-res_res__limit.c) = e80f370fe5b84dcdc2f38e2137d5ed6f75ba35a4
+SHA1 (patch-res_res__musiconhold.c) = 2396c344aa0383e694631eedcca7655147bca8ab
+SHA1 (patch-res_res__pjproject.c) = d72c6fd3696872e5cae55b9b32dc2d813079a620
+SHA1 (patch-res_res__pjsip.c) = d287cdb4823e81d41ea3fb28eea433db76e66bec
+SHA1 (patch-res_res__pjsip__acl.c) = 8a83ce62fa07f48d2437c27fed41eb57aa827809
+SHA1 (patch-res_res__pjsip__authenticator__digest.c) = e8591364ef3489f6200e66091be7d45c5aa228d5
+SHA1 (patch-res_res__pjsip__caller__id.c) = 37e8e540d41679d5c02a328c26b98ad5df7c830f
+SHA1 (patch-res_res__pjsip__config__wizard.c) = 23f7df16177b80f11fbce13c32deb163bd169ea1
+SHA1 (patch-res_res__pjsip__dialog__info__body__generator.c) = 29ff600d169910c2eacc49c1e9df79fcb2469869
+SHA1 (patch-res_res__pjsip__diversion.c) = 4ef93a2138c10e84c7f58467216620af1b9765bd
+SHA1 (patch-res_res__pjsip__dlg__options.c) = f9a68ad4af360d55d76bc989148320e614b4ca74
+SHA1 (patch-res_res__pjsip__dtmf__info.c) = 2993ce118d81388f2383295834e31d2cd71029ba
+SHA1 (patch-res_res__pjsip__empty__info.c) = b8a5e5b285f9a2a198ca2e4da7096d16c66e439f
+SHA1 (patch-res_res__pjsip__endpoint__identifier__anonymous.c) = c3771b1d420026916e232e18282708f6b729c8a7
+SHA1 (patch-res_res__pjsip__endpoint__identifier__ip.c) = 0afe3372ab2721b81bb543c2c9ef7661656671e1
+SHA1 (patch-res_res__pjsip__endpoint__identifier__user.c) = f4b47f404627633f824bb4b50e92a285d79c03a5
+SHA1 (patch-res_res__pjsip__exten__state.c) = 01cc18f9a95fa903d684ccd1032de0e8b4463430
+SHA1 (patch-res_res__pjsip__header__funcs.c) = 8125f46dd7b8af537ff732542ef36518a48684ab
+SHA1 (patch-res_res__pjsip__history.c) = c8c901bc059b27028c02f8c3df0de5e0e944c3f2
+SHA1 (patch-res_res__pjsip__logger.c) = f25a1e7a47a697620b00ada4556e39dfe54f298c
+SHA1 (patch-res_res__pjsip__messaging.c) = 084aaaac58afbe9a76511e847760ea203c311256
+SHA1 (patch-res_res__pjsip__mwi.c) = 446043b276cb3f14a751bb48ff17cbc34ac2eb9f
+SHA1 (patch-res_res__pjsip__mwi__body__generator.c) = 80a913e23ebf797a5f232de2be067b4358a3d21a
+SHA1 (patch-res_res__pjsip__nat.c) = bf2e251d6e146fc60b70fafa96392b05ad693520
+SHA1 (patch-res_res__pjsip__notify.c) = 936fe989780bfebf82d111c90992e9684e7f50ba
+SHA1 (patch-res_res__pjsip__one__touch__record__info.c) = 71b2b3f8fcb56858ae36eeb7c0871988605f936d
+SHA1 (patch-res_res__pjsip__outbound__authenticator__digest.c) = ae264eb365fa1c547b03dfe33cd47ec4a4ba2b8c
+SHA1 (patch-res_res__pjsip__outbound__publish.c) = 463b23a7a17d13f55c2d78bbb25dc1c71071bf08
+SHA1 (patch-res_res__pjsip__outbound__registration.c) = cf701495e7120ee2c3445c292d9c3bdb5216f5b3
+SHA1 (patch-res_res__pjsip__path.c) = 0bce833c6eb7a7668d3da0eb1a138cc78f4be77c
+SHA1 (patch-res_res__pjsip__phoneprov__provider.c) = 9f4e0e5cc6fa82eb981e7c18d2d3f5c5db56c86a
+SHA1 (patch-res_res__pjsip__pidf__body__generator.c) = 86fa07e3750bd2f3acb74e3d2fca7d4e01ecad28
+SHA1 (patch-res_res__pjsip__pidf__digium__body__supplement.c) = aa71dd3ac1203040c3af314688320daeced3266b
+SHA1 (patch-res_res__pjsip__pidf__eyebeam__body__supplement.c) = 081009ebeeefc73aaeee462b9a4e0b71a0c88f14
+SHA1 (patch-res_res__pjsip__publish__asterisk.c) = 02a6015e99fdd17ea10d442b728d9ed532b9cd70
+SHA1 (patch-res_res__pjsip__pubsub.c) = f0c4a3a66b6e7247caf33dbdead9d1c08370287b
+SHA1 (patch-res_res__pjsip__refer.c) = a912a58630144cfbffbdfb9ff07fd7e95415ee70
+SHA1 (patch-res_res__pjsip__registrar.c) = 9ae7ab0f1032375b5435a3cc2d269aeb15b1180d
+SHA1 (patch-res_res__pjsip__rfc3326.c) = 859eb71622cc3d66ecb3003fd07be7455ec57674
+SHA1 (patch-res_res__pjsip__sdp__rtp.c) = 8dd97457792eefc6ef2ea9d39985d976e6074a77
+SHA1 (patch-res_res__pjsip__send__to__voicemail.c) = 30efb4d7985ed780db42d3a1f6ab93754e62813f
+SHA1 (patch-res_res__pjsip__session.c) = b98cfbb0ba14683dc2efc7106e67363708dbaf3d
+SHA1 (patch-res_res__pjsip__sips__contact.c) = 69a197754f55fee89b370fc3d4c18a4fe4783c18
+SHA1 (patch-res_res__pjsip__t38.c) = e30159250ac299190e6ec36e723a1d217f94b721
+SHA1 (patch-res_res__pjsip__transport__websocket.c) = f74adcd9c193acfe9744d49ae4248b806499c07e
+SHA1 (patch-res_res__pjsip__xpidf__body__generator.c) = 27eb80e19aafefd2966baff800a21ffaca0e250d
+SHA1 (patch-res_res__pjsip_config__auth.c) = bf56ad74af5525544a3f77268c9e0884f8e8a574
+SHA1 (patch-res_res__pjsip_config__domain__aliases.c) = 45ddbb599e4e0afd45eb3994e6b623f64da60399
+SHA1 (patch-res_res__pjsip_config__global.c) = aca854cc1a84be76308885e47e11f2e8dcde3e5d
+SHA1 (patch-res_res__pjsip_config__system.c) = b7e57c35ec71931c75cbf3300e4bbc18f1a8e32e
+SHA1 (patch-res_res__pjsip_config__transport.c) = c269cda08565abd0df0df43400b5bc293cb53514
+SHA1 (patch-res_res__pjsip_location.c) = 4d34085251f168147709994acd625da90d5e1fc4
+SHA1 (patch-res_res__pjsip_pjsip__cli.c) = 306815aff92220fad2625a1160059946e61eef96
+SHA1 (patch-res_res__pjsip_pjsip__configuration.c) = 6ecc82e9c83982b0ad30a51578f14ff1d58caced
+SHA1 (patch-res_res__pjsip_pjsip__distributor.c) = ee53596e5b83432900bca92eade9c4b46c4ea4e9
+SHA1 (patch-res_res__pjsip_pjsip__global__headers.c) = 2d6ce3c4fdec88c6408e46fd117069dba2b2e209
+SHA1 (patch-res_res__pjsip_pjsip__message__filter.c) = cb3942bf6cd642b1ac491eefc356ad912719290c
+SHA1 (patch-res_res__pjsip_pjsip__options.c) = a585f4ad6ad8b547239c5a3666b9fb9643c5e02f
+SHA1 (patch-res_res__pjsip_pjsip__resolver.c) = a237411f2cdfe264b25e99db72182c80f741fb09
+SHA1 (patch-res_res__pjsip_pjsip__scheduler.c) = 1993e266411217b702da4365d50c2cb80bfd6045
+SHA1 (patch-res_res__pjsip_pjsip__session.c) = 58092107a59b3c7a9078759e468a9d548005fe4a
+SHA1 (patch-res_res__pjsip_pjsip__transport__events.c) = daf80357c42d03d1aae4637d2e3c7793fae1a330
+SHA1 (patch-res_res__pjsip_pjsip__transport__management.c) = 43949821170fd2c10826a4121e98b96fedb9eb85
+SHA1 (patch-res_res__pjsip_presence__xml.c) = bf1870287d0940d77a94c06ca8ef5f499453439c
+SHA1 (patch-res_res__pjsip_security__events.c) = 423c2820dc190b2f7476433cd6abc9daf0980dac
+SHA1 (patch-res_res__rtp__asterisk.c) = 10cd3c4c8d82d51c074d4d1433d3d0d8ff9ddd9f
+SHA1 (patch-res_res__xmpp.c) = eca0915ac537e4a5a0bdded8e2c10cf23538ff71
+SHA1 (patch-sounds_Makefile) = acc15088ae2545f2822246466bfe783b5215fc54
+SHA1 (patch-tests_test__locale.c) = f3f1edc86356f2a7b4d3493433c772e164c77f66
+SHA1 (patch-tests_test__voicemail__api.c) = c600f726136581e47cf34da2c0bb485b8a5912eb
+SHA1 (patch-utils_Makefile) = 4b4be483c20768d640efae5c18fc6f6770eb8c0c
+SHA1 (patch-utils_db1-ast_include_db.h) = 03b43353b7967f999ace3eb160828c530e2e8fae
+SHA1 (patch-utils_extconf.c) = f35d079c4801fe20132ff52d63d951d9e1658902
+SHA1 (patch-utils_smsq.c) = 5c4cd729f1c9cb68291c514a2e54418e9b5a47cb
+SHA1 (patch-utils_streamplayer.c) = a5bbff91d87f017143c57ae39d4fac5cda20f584
Index: pkgsrc/comms/asterisk15/options.mk
diff -u /dev/null pkgsrc/comms/asterisk15/options.mk:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/options.mk  Mon Jul 16 21:53:04 2018
@@ -0,0 +1,123 @@
+# $NetBSD: options.mk,v 1.1 2018/07/16 21:53:04 joerg Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.asterisk
+PKG_SUPPORTED_OPTIONS=         x11 unixodbc ilbc webvmail ldap spandsp
+PKG_SUPPORTED_OPTIONS+=                jabber speex snmp pgsql asterisk-config
+PKG_OPTIONS_LEGACY_OPTS+=      gtk:x11
+PKG_SUGGESTED_OPTIONS=         ldap jabber speex asterisk-config unixodbc ilbc webvmail spandsp  snmp pgsql
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=           zaptel x11 unixodbc webvmail ldap spandsp jabber
+PLIST_VARS+=           speex snmp pgsql srtp
+
+# Asterisk now uses DAHDI, not zaptel; not implemented yet...
+#.if !empty(PKG_OPTIONS:Mzaptel)
+## zaptel only supported under NetBSD at the moment
+#.  include "../../comms/zaptel-netbsd/buildlink3.mk"
+#PLIST.zaptel=         yes
+#.else
+#MAKE_FLAGS+=          WITHOUT_ZAPTEL=1
+#.endif
+
+# gtkconsole depends on GTK 2.x
+.if !empty(PKG_OPTIONS:Mx11)
+.  include "../../x11/gtk2/buildlink3.mk"
+.  include "../../devel/SDL/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-sdl
+CONFIGURE_ARGS+=       --with-gtk2
+PLIST.x11=             yes
+.else
+CONFIGURE_ARGS+=       --without-sdl
+CONFIGURE_ARGS+=       --without-gtk2
+.endif
+
+.if !empty(PKG_OPTIONS:Munixodbc)
+.  include "../../databases/unixodbc/buildlink3.mk"
+.  include "../../devel/libltdl/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-ltdl
+CONFIGURE_ARGS+=       --with-unixodbc
+PLIST.unixodbc=                yes
+.else
+CONFIGURE_ARGS+=       --without-ltdl
+CONFIGURE_ARGS+=       --without-unixodbc
+.endif
+
+.if !empty(PKG_OPTIONS:Mspandsp)
+.  include "../../comms/spandsp/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-spandsp
+PLIST.spandsp=         yes
+.else
+CONFIGURE_ARGS+=       --without-spandsp
+.endif
+
+.if !empty(PKG_OPTIONS:Mjabber)
+.  include "../../textproc/iksemel/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-iksemel=${PREFIX}
+PLIST.jabber=          yes
+.else
+CONFIGURE_ARGS+=       --without-iksemel
+.endif
+
+MAKE_FLAGS+=   GLOBAL_MAKEOPTS=${WRKSRC}/pkgsrc.makeopts
+post-configure:
+.if !empty(PKG_OPTIONS:Mx11)
+       ${ECHO} "MENUSELECT_PBX=-pbx_gtkconsole" >> ${WRKSRC}/pkgsrc.makeopts
+.endif
+.if !empty(PKG_OPTIONS:Munixodbc)
+       ${ECHO} "MENUSELECT_OPTS_app_voicemail=ODBC_STORAGE" >> ${WRKSRC}/pkgsrc.makeopts
+.endif
+.if defined(PLIST.mgcp)
+       ${ECHO} "MENUSELECT_RES=-res_pktccops" >> ${WRKSRC}/pkgsrc.makeopts
+       ${ECHO} "MENUSELECT_CHANNELS=-chan_mgcp" >> ${WRKSRC}/pkgsrc.makeopts
+.endif
+       ${ECHO} "MENUSELECT_AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi" >> ${WRKSRC}/pkgsrc.makeopts
+       # this is a hack to work around a bug in menuselect
+       cd ${WRKSRC} && make menuselect.makeopts
+
+.if !empty(PKG_OPTIONS:Mwebvmail)
+DEPENDS+=              p5-DBI-[0-9]*:../../databases/p5-DBI
+SUBST_CLASSES+=                webvmail
+SUBST_STAGE.webvmail=  post-patch
+SUBST_FILES.webvmail=  contrib/scripts/vmail.cgi
+SUBST_SED.webvmail+=   -e 's|@ASTETCDIR@|${ASTETCDIR}|'
+SUBST_SED.webvmail+=   -e "s|@ASTSPOOLDIR@|${ASTSPOOLDIR}|"
+INSTALLATION_DIRS+=    ${PREFIX}/libexec/cgi-bin ${PREFIX}/share/httpd/htdocs
+SPECIAL_PERMS+=                ${PREFIX}/libexec/cgi-bin/vmail ${ASTERISK_USER} ${ASTERISK_GROUP} 04555
+INSTALL_TARGET+=       webvmail
+PLIST.webvmail=                yes
+.endif
+
+.if !empty(PKG_OPTIONS:Mldap)
+.include "../../databases/openldap-client/buildlink3.mk"
+PLIST.ldap=            yes
+.else
+CONFIGURE_ARGS+=       --without-ldap
+.endif
+
+.if !empty(PKG_OPTIONS:Mspeex)
+.include "../../audio/speex/buildlink3.mk"
+.include "../../audio/speexdsp/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-speex
+CONFIGURE_ARGS+=       --with-speexdsp
+PLIST.speex=           yes
+.else
+CONFIGURE_ARGS+=       --without-speex
+CONFIGURE_ARGS+=       --without-speexdsp
+.endif
+
+.if !empty(PKG_OPTIONS:Msnmp)
+.include "../../net/net-snmp/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-netsnmp
+PLIST.snmp=            yes
+.else
+CONFIGURE_ARGS+=       --without-netsnmp
+.endif
+
+.if !empty(PKG_OPTIONS:Mpgsql)
+.include "../../mk/pgsql.buildlink3.mk"
+CONFIGURE_ARGS+=       --with-postgres
+PLIST.pgsql=           yes
+.else
+CONFIGURE_ARGS+=       --without-postgres
+.endif

Index: pkgsrc/comms/asterisk15/files/asterisk.sh
diff -u /dev/null pkgsrc/comms/asterisk15/files/asterisk.sh:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/files/asterisk.sh   Mon Jul 16 21:53:04 2018
@@ -0,0 +1,43 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: asterisk.sh,v 1.1 2018/07/16 21:53:04 joerg Exp $
+#
+# PROVIDE: asterisk
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# You will need to set some variables in /etc/rc.conf to start Asterisk:
+#
+# asterisk=YES
+
+if [ -f /etc/rc.subr ]
+then
+       . /etc/rc.subr
+fi
+
+name="asterisk"
+rcvar=$name
+command="@PREFIX@/sbin/asterisk"
+pidfile=@ASTVARRUNDIR@/${name}.pid
+required_files="@PKG_SYSCONFDIR@/asterisk.conf"
+extra_commands="reload"
+start_precmd=asterisk_prestart
+
+auser="@ASTERISK_USER@"
+agroup="@ASTERISK_GROUP@"
+command_args="-U $auser -G $agroup -n"
+
+asterisk_prestart() {
+       if test ! -d @ASTVARRUNDIR@; then
+               mkdir @ASTVARRUNDIR@
+       fi
+       chown $auser:$agroup @ASTVARRUNDIR@
+       chmod 0755 @ASTVARRUNDIR@
+}
+
+stop_cmd="$command -nr -x 'core stop gracefully' >/dev/null"
+reload_cmd="$command -nr -x 'core reload' >/dev/null"
+asterisk_nice="-20"
+
+load_rc_config $name
+run_rc_command "$1"

Index: pkgsrc/comms/asterisk15/files/smf/manifest.xml
diff -u /dev/null pkgsrc/comms/asterisk15/files/smf/manifest.xml:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/files/smf/manifest.xml      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
+<service_bundle type="manifest" name="export">
+  <service name="@SMF_PREFIX@/@SMF_NAME@" type="service" version="1">
+    <create_default_instance enabled="false" />
+    <single_instance />
+    <dependency name='network' grouping='require_all' restart_on='error' type='service'>
+      <service_fmri value='svc:/milestone/network:default' />
+    </dependency>
+    <dependency name='filesystem-local' grouping='require_all' restart_on='none' type='service'>
+      <service_fmri value='svc:/system/filesystem/local:default' />
+    </dependency>
+    <method_context>
+      <method_environment>
+        <envvar name="LD_PRELOAD_32" value="/usr/lib/extendedFILE.so.1" />
+      </method_environment>
+    </method_context>
+    <exec_method type="method" name="start" exec="@PREFIX@/sbin/asterisk" timeout_seconds="60" />
+    <exec_method type="method" name="stop" exec="@PREFIX@/sbin/asterisk -nr -x 'core stop gracefully' >/dev/null" timeout_seconds="60" />
+    <exec_method type="method" name="refresh" exec="@PREFIX@/sbin/asterisk -nr -x 'core reload' >/dev/null" timeout_seconds="60" />
+    <property_group name="startd" type="framework">
+      <propval name="duration" type="astring" value="contract" />
+      <propval name="ignore_error" type="astring" value="core,signal" />
+    </property_group>
+    <property_group name="application" type="application">
+      <propval name="config_file" type="astring" value="@PKG_SYSCONFDIR@/asterisk.conf" />
+    </property_group>
+    <template>
+      <common_name>
+        <loctext xml:lang="C">Asterisk PBX</loctext>
+      </common_name>
+    </template>
+  </service>
+</service_bundle>

Index: pkgsrc/comms/asterisk15/patches/patch-Makefile
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-Makefile:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-Makefile      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,124 @@
+$NetBSD: patch-Makefile,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- Makefile.orig      2018-05-01 20:12:26.000000000 +0000
++++ Makefile
+@@ -145,7 +145,7 @@ DEBUG=-g3
+ 
+ # Asterisk.conf is located in ASTETCDIR or by using the -C flag
+ # when starting Asterisk
+-ASTCONFPATH=$(ASTETCDIR)/asterisk.conf
++ASTCONFPATH=$(ASTEXAMPLEDIR)/asterisk.conf
+ AGI_DIR=$(ASTDATADIR)/agi-bin
+ 
+ # If you use Apache, you may determine by a grep 'DocumentRoot' of your httpd.conf file
+@@ -217,12 +217,6 @@ ifeq ($(AST_DEVMODE),yes)
+   endif
+ endif
+ 
+-ifeq ($(OSARCH),NetBSD)
+-  _ASTCFLAGS+=-isystem /usr/pkg/include
+-else ifneq ($(findstring BSD,$(OSARCH)),)
+-  _ASTCFLAGS+=-isystem /usr/local/include
+-endif
+-
+ 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)
+@@ -433,7 +427,6 @@ dist-clean: distclean
+ 
+ distclean: $(SUBDIRS_DIST_CLEAN) _clean
+       @$(MAKE) -C menuselect dist-clean
+-      @$(MAKE) -C sounds dist-clean
+       rm -f menuselect.makeopts makeopts menuselect-tree menuselect.makedeps
+       rm -f config.log config.status config.cache
+       rm -rf autom4te.cache
+@@ -554,7 +547,7 @@ update:
+ 
+ NEWHEADERS=$(notdir $(wildcard include/asterisk/*.h))
+ OLDHEADERS=$(filter-out $(NEWHEADERS) $(notdir $(DESTDIR)$(ASTHEADERDIR)),$(notdir $(wildcard $(DESTDIR)$(ASTHEADERDIR)/*.h)))
+-INSTALLDIRS="$(ASTLIBDIR)" "$(ASTMODDIR)" "$(ASTSBINDIR)" "$(ASTETCDIR)" "$(ASTVARRUNDIR)" \
++INSTALLDIRS="$(ASTLIBDIR)" "$(ASTMODDIR)" "$(ASTSBINDIR)" "$(ASTEXAMPLEDIR)" "$(ASTVARRUNDIR)" \
+       "$(ASTSPOOLDIR)" "$(ASTSPOOLDIR)/dictate" "$(ASTSPOOLDIR)/meetme" \
+       "$(ASTSPOOLDIR)/monitor" "$(ASTSPOOLDIR)/system" "$(ASTSPOOLDIR)/tmp" \
+       "$(ASTSPOOLDIR)/voicemail" "$(ASTSPOOLDIR)/recording" \
+@@ -767,7 +760,7 @@ upgrade: bininstall
+ #  (2) the extension to strip off
+ define INSTALL_CONFIGS
+       @for x in configs/$(1)/*$(2); do \
+-              dst="$(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x $(2)`"; \
++              dst="$(DESTDIR)$(ASTEXAMPLEDIR)/`$(BASENAME) $$x $(2)`"; \
+               if [ -f "$${dst}" ]; then \
+                       if [ "$(OVERWRITE)" = "y" ]; then \
+                               if cmp -s "$${dst}" "$$x" ; then \
+@@ -796,24 +789,24 @@ define INSTALL_CONFIGS
+                       -e 's|^astrundir.*$$|astrundir => $(ASTVARRUNDIR)|' \
+                       -e 's|^astlogdir.*$$|astlogdir => $(ASTLOGDIR)|' \
+                       -e 's|^astsbindir.*$$|astsbindir => $(ASTSBINDIR)|' \
+-                      "$(DESTDIR)$(ASTCONFPATH)" > "$(DESTDIR)$(ASTCONFPATH).tmp" ; \
+-              $(INSTALL) -m 644 "$(DESTDIR)$(ASTCONFPATH).tmp" "$(DESTDIR)$(ASTCONFPATH)" ; \
+-              rm -f "$(DESTDIR)$(ASTCONFPATH).tmp" ; \
++                      "$(DESTDIR)$(ASTEXAMPLEDIR)/asterisk.conf" > "$(DESTDIR)$(ASTEXAMPLEDIR)/asterisk.conf.tmp" ; \
++              $(INSTALL) -m 644 "$(DESTDIR)$(ASTEXAMPLEDIR)/asterisk.conf.tmp" "$(DESTDIR)$(ASTEXAMPLEDIR)/asterisk.conf" ; \
++              rm -f "$(DESTDIR)$(ASTEXAMPLEDIR)/asterisk.conf.tmp" ; \
+       fi
+ endef
+ 
+ # XXX why *.adsi is installed first ?
+ adsi:
+       @echo Installing adsi config files...
+-      $(INSTALL) -d "$(DESTDIR)$(ASTETCDIR)"
++      $(INSTALL) -d "$(DESTDIR)$(ASTEXAMPLEDIR)"
+       @for x in configs/samples/*.adsi; do \
+-              dst="$(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x`" ; \
++              dst="$(DESTDIR)$(ASTEXAMPLEDIR)/`$(BASENAME) $$x`" ; \
+               if [ -f "$${dst}" ] ; then \
+                       echo "Overwriting $$x" ; \
+               else \
+                       echo "Installing $$x" ; \
+               fi ; \
+-              $(INSTALL) -m 644 "$$x" "$(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x`" ; \
++              $(INSTALL) -m 644 "$$x" "$(DESTDIR)$(ASTEXAMPLEDIR)/`$(BASENAME) $$x`" ; \
+       done
+ 
+ samples: adsi
+@@ -846,7 +839,7 @@ basic-pbx:
+ 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 contrib/scripts/vmail.cgi "$(DESTDIR)$(HTTP_CGIDIR)/vmail.cgi"
++      $(INSTALL) contrib/scripts/vmail.cgi "$(DESTDIR)$(HTTP_CGIDIR)/vmail"
+       $(INSTALL) -d "$(DESTDIR)$(HTTP_DOCSDIR)/_asterisk"
+       for x in images/*.gif; do \
+               $(INSTALL) -m 644 $$x "$(DESTDIR)$(HTTP_DOCSDIR)/_asterisk/"; \
+@@ -896,11 +889,11 @@ endif
+ endif
+ 
+ install-logrotate:
+-      if [ ! -d "$(DESTDIR)$(ASTETCDIR)/../logrotate.d" ]; then \
+-              $(INSTALL) -d "$(DESTDIR)$(ASTETCDIR)/../logrotate.d" ; \
++      if [ ! -d "$(DESTDIR)$(ASTEXAMPLEDIR)/../logrotate.d" ]; then \
++              $(INSTALL) -d "$(DESTDIR)$(ASTEXAMPLEDIR)/../logrotate.d" ; \
+       fi
+       sed 's#__LOGDIR__#$(ASTLOGDIR)#g' < contrib/scripts/asterisk.logrotate | sed 's#__SBINDIR__#$(ASTSBINDIR)#g' > contrib/scripts/asterisk.logrotate.tmp
+-      $(INSTALL) -m 0644 contrib/scripts/asterisk.logrotate.tmp "$(DESTDIR)$(ASTETCDIR)/../logrotate.d/asterisk"
++      $(INSTALL) -m 0644 contrib/scripts/asterisk.logrotate.tmp "$(DESTDIR)$(ASTEXAMPLEDIR)/../logrotate.d/asterisk"
+       rm -f contrib/scripts/asterisk.logrotate.tmp
+ 
+ config:
+@@ -1024,7 +1017,7 @@ uninstall-all: _uninstall
+       rm -rf "$(DESTDIR)$(ASTVARLIBDIR)"
+       rm -rf "$(DESTDIR)$(ASTDATADIR)"
+       rm -rf "$(DESTDIR)$(ASTSPOOLDIR)"
+-      rm -rf "$(DESTDIR)$(ASTETCDIR)"
++      rm -rf "$(DESTDIR)$(ASTEXAMPLEDIR)"
+       rm -rf "$(DESTDIR)$(ASTLOGDIR)"
+ 
+ menuconfig: menuselect
+@@ -1112,6 +1105,7 @@ check-alembic: makeopts
+       @ALEMBIC=$(ALEMBIC) build_tools/make_check_alembic config cdr voicemail >&2
+ 
+ .PHONY: menuselect
++.PHONY: menuselect.makeopts
+ .PHONY: main
+ .PHONY: sounds
+ .PHONY: clean
Index: pkgsrc/comms/asterisk15/patches/patch-addons_chan__ooh323.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-addons_chan__ooh323.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-addons_chan__ooh323.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-addons_chan__ooh323.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- addons/chan_ooh323.c.orig  2018-05-01 20:12:26.000000000 +0000
++++ addons/chan_ooh323.c
+@@ -4035,7 +4035,7 @@ static void *do_monitor(void *data)
+                               h323->lastrtprx + h323->rtptimeout < t) {
+                               if (!ast_channel_trylock(h323->owner)) {
+                                       ast_softhangup_nolock(h323->owner, AST_SOFTHANGUP_DEV);
+-                                      ast_log(LOG_NOTICE, "Disconnecting call '%s' for lack of RTP activity in %ld seconds\n", ast_channel_name(h323->owner), (long) (t - h323->lastrtprx));
++                                      ast_log(LOG_NOTICE, "Disconnecting call '%s' for lack of RTP activity in %jd seconds\n", ast_channel_name(h323->owner), (intmax_t) (t - h323->lastrtprx));
+                                       ast_channel_unlock(h323->owner);
+                               }
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-apps_app__adsiprog.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-apps_app__adsiprog.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-apps_app__adsiprog.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,22 @@
+$NetBSD: patch-apps_app__adsiprog.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- apps/app_adsiprog.c.orig   2018-05-07 17:17:45.731153122 +0000
++++ apps/app_adsiprog.c
+@@ -215,7 +215,7 @@ static int process_token(void *out, char
+                       /* Convert */
+                       *((unsigned int *)out) = htonl(*((unsigned int *)out));
+               }
+-      } else if ((strlen(src) > 2) && (src[0] == '0') && (tolower(src[1]) == 'x')) {
++      } else if ((strlen(src) > 2) && (src[0] == '0') && (tolower((unsigned char)src[1]) == 'x')) {
+               if (!(argtype & ARG_NUMBER))
+                       return -1;
+               /* Hex value */
+@@ -225,7 +225,7 @@ static int process_token(void *out, char
+                       /* Convert */
+                       *((unsigned int *)out) = htonl(*((unsigned int *)out));
+               }
+-      } else if ((!ast_strlen_zero(src) && isdigit(src[0]))) {
++      } else if ((!ast_strlen_zero(src) && isdigit((unsigned char)src[0]))) {
+               if (!(argtype & ARG_NUMBER))
+                       return -1;
+               /* Hex value */
Index: pkgsrc/comms/asterisk15/patches/patch-apps_app__chanspy.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-apps_app__chanspy.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-apps_app__chanspy.c   Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-apps_app__chanspy.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- apps/app_chanspy.c.orig    2018-05-07 17:20:13.916423247 +0000
++++ apps/app_chanspy.c
+@@ -1105,7 +1105,7 @@ static int common_exec(struct ast_channe
+                               if ((ptr = strchr(peer_name, '/'))) {
+                                       *ptr++ = '\0';
+                                       for (s = peer_name; s < ptr; s++) {
+-                                              *s = tolower(*s);
++                                              *s = tolower((unsigned char)*s);
+                                       }
+                                       if ((s = strchr(ptr, '-'))) {
+                                               *s = '\0';
Index: pkgsrc/comms/asterisk15/patches/patch-apps_app__directory.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-apps_app__directory.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-apps_app__directory.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-apps_app__directory.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- apps/app_directory.c.orig  2018-05-07 17:19:54.317128994 +0000
++++ apps/app_directory.c
+@@ -194,7 +194,7 @@ static int compare(const char *text, con
+       }
+ 
+       while (*template) {
+-              digit = toupper(*text++);
++              digit = toupper((unsigned char)*text++);
+               switch (digit) {
+               case 0:
+                       return -1;
Index: pkgsrc/comms/asterisk15/patches/patch-apps_app__dumpchan.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-apps_app__dumpchan.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-apps_app__dumpchan.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,22 @@
+$NetBSD: patch-apps_app__dumpchan.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- apps/app_dumpchan.c.orig   2015-10-09 21:48:48.000000000 +0000
++++ apps/app_dumpchan.c
+@@ -117,7 +117,7 @@ static int serialize_showchan(struct ast
+               "1stFileDescriptor=  %d\n"
+               "Framesin=           %u %s\n"
+               "Framesout=          %u %s\n"
+-              "TimetoHangup=       %ld\n"
++              "TimetoHangup=       %jd\n"
+               "ElapsedTime=        %dh%dm%ds\n"
+               "BridgeID=           %s\n"
+               "Context=            %s\n"
+@@ -155,7 +155,7 @@ static int serialize_showchan(struct ast
+               ast_channel_fd(c, 0),
+               ast_channel_fin(c) & ~DEBUGCHAN_FLAG, (ast_channel_fin(c) & DEBUGCHAN_FLAG) ? " (DEBUGGED)" : "",
+               ast_channel_fout(c) & ~DEBUGCHAN_FLAG, (ast_channel_fout(c) & DEBUGCHAN_FLAG) ? " (DEBUGGED)" : "",
+-              (long)ast_channel_whentohangup(c)->tv_sec,
++              (intmax_t)ast_channel_whentohangup(c)->tv_sec,
+               hour,
+               min,
+               sec,
Index: pkgsrc/comms/asterisk15/patches/patch-apps_app__followme.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-apps_app__followme.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-apps_app__followme.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,22 @@
+$NetBSD: patch-apps_app__followme.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- apps/app_followme.c.orig   2015-10-09 21:48:48.000000000 +0000
++++ apps/app_followme.c
+@@ -380,7 +380,7 @@ static struct number *create_followme_nu
+               *tmp = '\0';
+       ast_copy_string(cur->number, buf, sizeof(cur->number));
+       cur->order = numorder;
+-      ast_debug(1, "Created a number, %s, order of , %d, with a timeout of %ld.\n", cur->number, cur->order, cur->timeout);
++      ast_debug(1, "Created a number, %s, order of , %d, with a timeout of %jd.\n", cur->number, cur->order, (intmax_t)cur->timeout);
+ 
+       return cur;
+ }
+@@ -1010,7 +1010,7 @@ static struct ast_channel *findmeexec(st
+                       break;
+               }
+ 
+-              ast_debug(2, "Number(s) %s timeout %ld\n", nm->number, nm->timeout);
++              ast_debug(2, "Number(s) %s timeout %jd\n", nm->number, (intmax_t)nm->timeout);
+ 
+               /*
+                * Put all active outgoing channels into autoservice.
Index: pkgsrc/comms/asterisk15/patches/patch-apps_app__minivm.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-apps_app__minivm.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-apps_app__minivm.c    Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-apps_app__minivm.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- apps/app_minivm.c.orig     2018-05-07 17:45:03.072823223 +0000
++++ apps/app_minivm.c
+@@ -1593,7 +1593,7 @@ static int invent_message(struct ast_cha
+ 
+               while (*i)  {
+                       ast_debug(2, "Numeric? Checking %c\n", *i);
+-                      if (!isdigit(*i)) {
++                      if (!isdigit((unsigned char)*i)) {
+                               numericusername = FALSE;
+                               break;
+                       }
Index: pkgsrc/comms/asterisk15/patches/patch-apps_app__queue.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-apps_app__queue.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-apps_app__queue.c     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,163 @@
+$NetBSD: patch-apps_app__queue.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- apps/app_queue.c.orig      2018-05-01 20:12:26.000000000 +0000
++++ apps/app_queue.c
+@@ -2307,7 +2307,7 @@ static int get_member_status(struct call
+                               ast_debug(4, "%s is unavailable because he is paused'\n", member->membername);
+                               break;
+                       } else if ((conditions & QUEUE_EMPTY_WRAPUP) && member->lastcall && q->wrapuptime && (time(NULL) - q->wrapuptime < member->lastcall)) {
+-                              ast_debug(4, "%s is unavailable because it has only been %d seconds since his last call (wrapup time is %d)\n", member->membername, (int) (time(NULL) - 
member->lastcall), q->wrapuptime);
++                              ast_debug(4, "%s is unavailable because it has only been %jd seconds since his last call (wrapup time is %jd)\n", member->membername, (intmax_t) (time(NULL) - 
member->lastcall), (intmax_t)q->wrapuptime);
+                               break;
+                       } else {
+                               ao2_ref(member, -1);
+@@ -5549,7 +5549,7 @@ static int wait_our_turn(struct queue_en
+ 
+                       if ((status = get_member_status(qe->parent, qe->max_penalty, qe->min_penalty, qe->raise_penalty, qe->parent->leavewhenempty, 0))) {
+                               *reason = QUEUE_LEAVEEMPTY;
+-                              ast_queue_log(qe->parent->name, ast_channel_uniqueid(qe->chan), "NONE", "EXITEMPTY", "%d|%d|%ld", qe->pos, qe->opos, (long) (time(NULL) - qe->start));
++                              ast_queue_log(qe->parent->name, ast_channel_uniqueid(qe->chan), "NONE", "EXITEMPTY", "%d|%d|%jd", qe->pos, qe->opos, (intmax_t) (time(NULL) - qe->start));
+                               res = -1;
+                               qe->handled = -1;
+                               break;
+@@ -6934,8 +6934,8 @@ static int try_calling(struct queue_ent 
+               /* if setinterfacevar is defined, make member variables available to the channel */
+               /* use  pbx_builtin_setvar to set a load of variables with one call */
+               if (qe->parent->setinterfacevar && interfacevar) {
+-                      ast_str_set(&interfacevar, 0, "MEMBERINTERFACE=%s,MEMBERNAME=%s,MEMBERCALLS=%d,MEMBERLASTCALL=%ld,MEMBERPENALTY=%d,MEMBERDYNAMIC=%d,MEMBERREALTIME=%d",
+-                              member->interface, member->membername, member->calls, (long)member->lastcall, member->penalty, member->dynamic, member->realtime);
++                      ast_str_set(&interfacevar, 0, "MEMBERINTERFACE=%s,MEMBERNAME=%s,MEMBERCALLS=%d,MEMBERLASTCALL=%jd,MEMBERPENALTY=%d,MEMBERDYNAMIC=%d,MEMBERREALTIME=%d",
++                              member->interface, member->membername, member->calls, (intmax_t)member->lastcall, member->penalty, member->dynamic, member->realtime);
+                       pbx_builtin_setvar_multiple(qe->chan, ast_str_buffer(interfacevar));
+                       pbx_builtin_setvar_multiple(peer, ast_str_buffer(interfacevar));
+               }
+@@ -6943,8 +6943,8 @@ static int try_calling(struct queue_ent 
+               /* if setqueueentryvar is defined, make queue entry (i.e. the caller) variables available to the channel */
+               /* use  pbx_builtin_setvar to set a load of variables with one call */
+               if (qe->parent->setqueueentryvar && interfacevar) {
+-                      ast_str_set(&interfacevar, 0, "QEHOLDTIME=%ld,QEORIGINALPOS=%d",
+-                              (long) (time(NULL) - qe->start), qe->opos);
++                      ast_str_set(&interfacevar, 0, "QEHOLDTIME=%jd,QEORIGINALPOS=%d",
++                              (intmax_t) (time(NULL) - qe->start), qe->opos);
+                       pbx_builtin_setvar_multiple(qe->chan, ast_str_buffer(interfacevar));
+                       pbx_builtin_setvar_multiple(peer, ast_str_buffer(interfacevar));
+               }
+@@ -8205,8 +8205,8 @@ static int queue_exec(struct ast_channel
+               }
+       }
+ 
+-      ast_debug(1, "queue: %s, expires: %ld, priority: %d\n",
+-              args.queuename, (long)qe.expire, prio);
++      ast_debug(1, "queue: %s, expires: %jd, priority: %d\n",
++              args.queuename, (intmax_t)qe.expire, prio);
+ 
+       qe.chan = chan;
+       qe.prio = prio;
+@@ -8257,8 +8257,8 @@ check_turns:
+                       record_abandoned(&qe);
+                       reason = QUEUE_TIMEOUT;
+                       res = 0;
+-                      ast_queue_log(args.queuename, ast_channel_uniqueid(chan),"NONE", "EXITWITHTIMEOUT", "%d|%d|%ld",
+-                              qe.pos, qe.opos, (long) (time(NULL) - qe.start));
++                      ast_queue_log(args.queuename, ast_channel_uniqueid(chan),"NONE", "EXITWITHTIMEOUT", "%d|%d|%jd",
++                              qe.pos, qe.opos, (intmax_t) (time(NULL) - qe.start));
+                       break;
+               }
+ 
+@@ -8328,7 +8328,7 @@ check_turns:
+                       record_abandoned(&qe);
+                       reason = QUEUE_TIMEOUT;
+                       res = 0;
+-                      ast_queue_log(qe.parent->name, ast_channel_uniqueid(qe.chan),"NONE", "EXITWITHTIMEOUT", "%d|%d|%ld", qe.pos, qe.opos, (long) (time(NULL) - qe.start));
++                      ast_queue_log(qe.parent->name, ast_channel_uniqueid(qe.chan),"NONE", "EXITWITHTIMEOUT", "%d|%d|%jd", qe.pos, qe.opos, (intmax_t) (time(NULL) - qe.start));
+                       break;
+               }
+ 
+@@ -8356,8 +8356,8 @@ stop:
+                       if (!qe.handled) {
+                               record_abandoned(&qe);
+                               ast_queue_log(args.queuename, ast_channel_uniqueid(chan), "NONE", "ABANDON",
+-                                      "%d|%d|%ld", qe.pos, qe.opos,
+-                                      (long) (time(NULL) - qe.start));
++                                      "%d|%d|%jd", qe.pos, qe.opos,
++                                      (intmax_t) (time(NULL) - qe.start));
+                               res = -1;
+                       } else if (qcontinue) {
+                               reason = QUEUE_CONTINUE;
+@@ -8368,7 +8368,7 @@ stop:
+                       }
+               } else if (qe.valid_digits) {
+                       ast_queue_log(args.queuename, ast_channel_uniqueid(chan), "NONE", "EXITWITHKEY",
+-                              "%s|%d|%d|%ld", qe.digits, qe.pos, qe.opos, (long) (time(NULL) - qe.start));
++                              "%s|%d|%d|%jd", qe.digits, qe.pos, qe.opos, (intmax_t) (time(NULL) - qe.start));
+               }
+       }
+ 
+@@ -9631,9 +9631,9 @@ static char *__queues_show(struct manses
+ 
+                       do_print(s, fd, "   Callers: ");
+                       for (qe = q->head; qe; qe = qe->next) {
+-                              ast_str_set(&out, 0, "      %d. %s (wait: %ld:%2.2ld, prio: %d)",
+-                                      pos++, ast_channel_name(qe->chan), (long) (now - qe->start) / 60,
+-                                      (long) (now - qe->start) % 60, qe->prio);
++                              ast_str_set(&out, 0, "      %d. %s (wait: %jd:%2.2jd, prio: %d)",
++                                      pos++, ast_channel_name(qe->chan), (intmax_t) (now - qe->start) / 60,
++                                      (intmax_t) (now - qe->start) % 60, qe->prio);
+                               do_print(s, fd, ast_str_buffer(out));
+                       }
+               }
+@@ -9672,7 +9672,7 @@ static int word_in_list(const char *list
+       const char *find, *end_find, *end_list;
+ 
+       /* strip whitespace from front */
+-      while(isspace(*list)) {
++      while(isspace((unsigned char)*list)) {
+               list++;
+       }
+ 
+@@ -9681,11 +9681,11 @@ static int word_in_list(const char *list
+               if (find != list && *(find - 1) != ' ') {
+                       list = find;
+                       /* strip word from front */
+-                      while(!isspace(*list) && *list != '\0') {
++                      while(!isspace((unsigned char)*list) && *list != '\0') {
+                               list++;
+                       }
+                       /* strip whitespace from front */
+-                      while(isspace(*list)) {
++                      while(isspace((unsigned char)*list)) {
+                               list++;
+                       }
+                       continue;
+@@ -9698,11 +9698,11 @@ static int word_in_list(const char *list
+               if (end_find == end_list || *end_find != ' ') {
+                       list = find;
+                       /* strip word from front */
+-                      while(!isspace(*list) && *list != '\0') {
++                      while(!isspace((unsigned char)*list) && *list != '\0') {
+                               list++;
+                       }
+                       /* strip whitespace from front */
+-                      while(isspace(*list)) {
++                      while(isspace((unsigned char)*list)) {
+                               list++;
+                       }
+                       continue;
+@@ -9994,7 +9994,7 @@ static int manager_queues_status(struct 
+                                       "CallerIDName: %s\r\n"
+                                       "ConnectedLineNum: %s\r\n"
+                                       "ConnectedLineName: %s\r\n"
+-                                      "Wait: %ld\r\n"
++                                      "Wait: %jd\r\n"
+                                       "Priority: %d\r\n"
+                                       "%s"
+                                       "\r\n",
+@@ -10003,7 +10003,7 @@ static int manager_queues_status(struct 
+                                       S_COR(ast_channel_caller(qe->chan)->id.name.valid, ast_channel_caller(qe->chan)->id.name.str, "unknown"),
+                                       S_COR(ast_channel_connected(qe->chan)->id.number.valid, ast_channel_connected(qe->chan)->id.number.str, "unknown"),
+                                       S_COR(ast_channel_connected(qe->chan)->id.name.valid, ast_channel_connected(qe->chan)->id.name.str, "unknown"),
+-                                      (long) (now - qe->start), qe->prio, idText);
++                                      (intmax_t) (now - qe->start), qe->prio, idText);
+                               ++q_items;
+                       }
+               }
Index: pkgsrc/comms/asterisk15/patches/patch-apps_app__sms.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-apps_app__sms.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-apps_app__sms.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,102 @@
+$NetBSD: patch-apps_app__sms.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- apps/app_sms.c.orig        2018-05-01 20:12:26.000000000 +0000
++++ apps/app_sms.c
+@@ -291,7 +291,7 @@ static void numcpy(char *d, char *s)
+               *d++ = *s++;
+       }
+       while (*s) {
+-              if (isdigit(*s)) {
++              if (isdigit((unsigned char)*s)) {
+                       *d++ = *s;
+               }
+               s++;
+@@ -557,7 +557,7 @@ static void packdate(unsigned char *o, t
+       int z;
+ 
+       ast_localtime(&topack, &t, NULL);
+-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__ ) || defined(__APPLE__) || defined(__CYGWIN__)
++#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__ ) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__DragonFly__)
+       z = -t.tm_gmtoff / 60 / 15;
+ #else
+       z = timezone / 60 / 15;
+@@ -754,7 +754,7 @@ static unsigned char packaddress(unsigne
+               o[1] = 0x81;
+       }
+       for ( ; *i ; i++) {
+-              if (!isdigit(*i)) {                 /* ignore non-digits */
++              if (!isdigit((unsigned char)*i)) {                 /* ignore non-digits */
+                       continue;
+               }
+               if (o[0] & 1) {
+@@ -849,11 +849,11 @@ static void sms_readfile(sms_t * h, char
+                       if (!*p || *p == ';') {
+                               continue;                   /* blank line or comment, ignore */
+                       }
+-                      while (isalnum(*p)) {
+-                              *p = tolower (*p);
++                      while (isalnum((unsigned char)*p)) {
++                              *p = tolower ((unsigned char)*p);
+                               p++;
+                       }
+-                      while (isspace (*p)) {
++                      while (isspace ((unsigned char)*p)) {
+                               *p++ = 0;
+                       }
+                       if (*p == '=') {
+@@ -869,7 +869,7 @@ static void sms_readfile(sms_t * h, char
+                                               ast_log(LOG_WARNING, "UD too long in %s\n", fn);
+                                       }
+                               } else {
+-                                      while (isspace (*p)) {
++                                      while (isspace ((unsigned char)*p)) {
+                                               p++;
+                                       }
+                                       if (!strcmp(line, "oa") && strlen(p) < sizeof(h->oa)) {
+@@ -917,11 +917,11 @@ static void sms_readfile(sms_t * h, char
+                                       if (!strcmp(line, "ud")) {        /* user data */
+                                               int o = 0;
+                                               while (*p && o < SMSLEN) {
+-                                                      if (isxdigit(*p) && isxdigit(p[1]) && isxdigit(p[2]) && isxdigit(p[3])) {
++                                                      if (isxdigit((unsigned char)*p) && isxdigit((unsigned char)p[1]) && isxdigit((unsigned char)p[2]) && isxdigit((unsigned char)p[3])) {
+                                                               h->ud[o++] =
+-                                                                      (((isalpha(*p) ? 9 : 0) + (*p & 0xF)) << 12) +
+-                                                                      (((isalpha(p[1]) ? 9 : 0) + (p[1] & 0xF)) << 8) +
+-                                                                      (((isalpha(p[2]) ? 9 : 0) + (p[2] & 0xF)) << 4) + ((isalpha(p[3]) ? 9 : 0) + (p[3] & 0xF));
++                                                                      (((isalpha((unsigned char)*p) ? 9 : 0) + (*p & 0xF)) << 12) +
++                                                                      (((isalpha((unsigned char)p[1]) ? 9 : 0) + (p[1] & 0xF)) << 8) +
++                                                                      (((isalpha((unsigned char)p[2]) ? 9 : 0) + (p[2] & 0xF)) << 4) + ((isalpha((unsigned char)p[3]) ? 9 : 0) + (p[3] & 0xF));
+                                                               p += 4;
+                                                       } else
+                                                               break;
+@@ -934,8 +934,8 @@ static void sms_readfile(sms_t * h, char
+                               } else if (!strcmp(line, "ud")) {       /* user data */
+                                       int o = 0;
+                                       while (*p && o < SMSLEN) {
+-                                              if (isxdigit(*p) && isxdigit(p[1])) {
+-                                                      h->ud[o++] = (((isalpha(*p) ? 9 : 0) + (*p & 0xF)) << 4) + ((isalpha(p[1]) ? 9 : 0) + (p[1] & 0xF));
++                                              if (isxdigit((unsigned char)*p) && isxdigit((unsigned char)p[1])) {
++                                                      h->ud[o++] = (((isalpha((unsigned char)*p) ? 9 : 0) + (*p & 0xF)) << 4) + ((isalpha((unsigned char)p[1]) ? 9 : 0) + (p[1] & 0xF));
+                                                       p += 2;
+                                               } else {
+                                                       break;
+@@ -949,8 +949,8 @@ static void sms_readfile(sms_t * h, char
+                                       unsigned char o = 0;
+                                       h->udhi = 1;
+                                       while (*p && o < SMSLEN) {
+-                                              if (isxdigit(*p) && isxdigit(p[1])) {
+-                                                      h->udh[o] = (((isalpha(*p) ? 9 : 0) + (*p & 0xF)) << 4) + ((isalpha(p[1]) ? 9 : 0) + (p[1] & 0xF));
++                                              if (isxdigit((unsigned char)*p) && isxdigit((unsigned char)p[1])) {
++                                                      h->udh[o] = (((isalpha((unsigned char)*p) ? 9 : 0) + (*p & 0xF)) << 4) + ((isalpha((unsigned char)p[1]) ? 9 : 0) + (p[1] & 0xF));
+                                                       o++;
+                                                       p += 2;
+                                               } else {
+@@ -1928,7 +1928,7 @@ static int sms_exec(struct ast_channel *
+       ast_copy_string(h.queue, sms_args.queue, sizeof(h.queue));
+ 
+       for (p = h.queue; *p; p++) {
+-              if (!isalnum(*p)) {
++              if (!isalnum((unsigned char)*p)) {
+                       *p = '-';                       /* make very safe for filenames */
+               }
+       }
Index: pkgsrc/comms/asterisk15/patches/patch-apps_app__voicemail.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-apps_app__voicemail.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-apps_app__voicemail.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,76 @@
+$NetBSD: patch-apps_app__voicemail.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- apps/app_voicemail.c.orig  2018-05-01 20:12:26.000000000 +0000
++++ apps/app_voicemail.c
+@@ -5251,7 +5251,7 @@ static void make_email_file(FILE *p,
+               }
+               fprintf(p, "X-Asterisk-VM-Message-Type: %s" ENDL, msgnum > -1 ? "Message" : greeting_attachment);
+               fprintf(p, "X-Asterisk-VM-Orig-date: %s" ENDL, date);
+-              fprintf(p, "X-Asterisk-VM-Orig-time: %ld" ENDL, (long) time(NULL));
++              fprintf(p, "X-Asterisk-VM-Orig-time: %jd" ENDL, (intmax_t) time(NULL));
+               fprintf(p, "X-Asterisk-VM-Message-ID: %s" ENDL, msg_id);
+       }
+       if (!ast_strlen_zero(cidnum)) {
+@@ -6202,7 +6202,7 @@ static void generate_msg_id(char *dst)
+        * but only in single system solutions.
+        */
+       unsigned int unique_counter = ast_atomic_fetchadd_int(&msg_id_incrementor, +1);
+-      snprintf(dst, MSG_ID_LEN, "%ld-%08x", (long) time(NULL), unique_counter);
++      snprintf(dst, MSG_ID_LEN, "%jd-%08x", (intmax_t) time(NULL), unique_counter);
+ }
+ 
+ /*!
+@@ -6324,7 +6324,7 @@ static int msg_create_from_file(struct a
+                       "callerchan=%s\n"
+                       "callerid=%s\n"
+                       "origdate=%s\n"
+-                      "origtime=%ld\n"
++                      "origtime=%jd\n"
+                       "category=%s\n"
+                       "msg_id=%s\n"
+                       "flag=\n" /* flags not supported in copy from file yet */
+@@ -6337,7 +6337,7 @@ static int msg_create_from_file(struct a
+                       recdata->call_priority,
+                       S_OR(recdata->call_callerchan, "Unknown"),
+                       S_OR(recdata->call_callerid, "Unknown"),
+-                      date, (long) time(NULL),
++                      date, (intmax_t) time(NULL),
+                       S_OR(category, ""),
+                       msg_id,
+                       duration);
+@@ -6859,7 +6859,7 @@ static int leave_voicemail(struct ast_ch
+               /* Store information in real-time storage */
+               if (ast_check_realtime("voicemail_data")) {
+                       snprintf(priority, sizeof(priority), "%d", ast_channel_priority(chan));
+-                      snprintf(origtime, sizeof(origtime), "%ld", (long) time(NULL));
++                      snprintf(origtime, sizeof(origtime), "%jd", (intmax_t) time(NULL));
+                       get_date(date, sizeof(date));
+                       ast_callerid_merge(callerid, sizeof(callerid),
+                               S_COR(ast_channel_caller(chan)->id.name.valid, ast_channel_caller(chan)->id.name.str, NULL),
+@@ -6903,7 +6903,7 @@ static int leave_voicemail(struct ast_ch
+                               "callerchan=%s\n"
+                               "callerid=%s\n"
+                               "origdate=%s\n"
+-                              "origtime=%ld\n"
++                              "origtime=%jd\n"
+                               "category=%s\n"
+                               "msg_id=%s\n",
+                               ext,
+@@ -6915,7 +6915,7 @@ static int leave_voicemail(struct ast_ch
+                               ast_channel_priority(chan),
+                               ast_channel_name(chan),
+                               callerid,
+-                              date, (long) time(NULL),
++                              date, (intmax_t) time(NULL),
+                               category ? category : "",
+                               msg_id);
+               } else {
+@@ -11456,7 +11456,7 @@ static int vm_execmain(struct ast_channe
+                               play_auto = 1;
+                               if (!ast_strlen_zero(opts[OPT_ARG_PLAYFOLDER])) {
+                                       /* See if it is a folder name first */
+-                                      if (isdigit(opts[OPT_ARG_PLAYFOLDER][0])) {
++                                      if (isdigit((unsigned char)opts[OPT_ARG_PLAYFOLDER][0])) {
+                                               if (sscanf(opts[OPT_ARG_PLAYFOLDER], "%30d", &play_folder) != 1) {
+                                                       play_folder = -1;
+                                               }
Index: pkgsrc/comms/asterisk15/patches/patch-build__tools_mkpkgconfig
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-build__tools_mkpkgconfig:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-build__tools_mkpkgconfig      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,19 @@
+$NetBSD: patch-build__tools_mkpkgconfig,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- build_tools/mkpkgconfig.orig       2015-10-09 21:48:48.000000000 +0000
++++ build_tools/mkpkgconfig
+@@ -22,11 +22,14 @@ else
+ fi
+ 
+ ## Clean out CFLAGS for the spec file.
++## pkgsrc -- the regex below isn't sed compatible, so always use perl
++EXTREGEX="perl -pe"
+ LOCAL_CFLAGS=`echo $CFLAGS | ${EXTREGEX} 's/-pipe\s*//g' | ${EXTREGEX} 's/-[Wmp]\S*\s*//g' | \
+   ${EXTREGEX} 's/\s+-I(include|\.\.\/include)\s+/ /g' | \
+   ${EXTREGEX} 's/-DINSTALL_PREFIX=\S* //g' | \
+   ${EXTREGEX} 's/-DASTERISK_VERSION=\S* //g' | \
+   ${EXTREGEX} 's/-DAST(ETCDIR|LIBDIR|VARLIBDIR|VARRUNDIR|SPOOLDIR|LOGDIR|CONFPATH|MODDIR|AGIDIR)=\S* //g' | \
++  ${EXTREGEX} "s;${WRKSRC};${PREFIX};g" | \
+   ${EXTREGEX} 's/^\s|\s$//g'`
+ 
+ cat <<EOF > "$PPATH/asterisk.pc"
Index: pkgsrc/comms/asterisk15/patches/patch-cdr_cdr__pgsql.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-cdr_cdr__pgsql.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-cdr_cdr__pgsql.c      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,31 @@
+$NetBSD: patch-cdr_cdr__pgsql.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- cdr/cdr_pgsql.c.orig       2016-09-30 20:36:17.000000000 +0000
++++ cdr/cdr_pgsql.c
+@@ -270,7 +270,7 @@ static int pgsql_log(struct ast_cdr *cdr
+                       if (strcmp(cur->name, "start") == 0 || strcmp(cur->name, "calldate") == 0) {
+                               if (strncmp(cur->type, "int", 3) == 0) {
+                                       LENGTHEN_BUF2(13);
+-                                      ast_str_append(&sql2, 0, "%s%ld", separator, (long) cdr->start.tv_sec);
++                                      ast_str_append(&sql2, 0, "%s%jd", separator, (intmax_t) cdr->start.tv_sec);
+                               } else if (strncmp(cur->type, "float", 5) == 0) {
+                                       LENGTHEN_BUF2(31);
+                                       ast_str_append(&sql2, 0, "%s%f", separator, (double)cdr->start.tv_sec + (double)cdr->start.tv_usec / 1000000.0);
+@@ -284,7 +284,7 @@ static int pgsql_log(struct ast_cdr *cdr
+                       } else if (strcmp(cur->name, "answer") == 0) {
+                               if (strncmp(cur->type, "int", 3) == 0) {
+                                       LENGTHEN_BUF2(13);
+-                                      ast_str_append(&sql2, 0, "%s%ld", separator, (long) cdr->answer.tv_sec);
++                                      ast_str_append(&sql2, 0, "%s%jd", separator, (intmax_t) cdr->answer.tv_sec);
+                               } else if (strncmp(cur->type, "float", 5) == 0) {
+                                       LENGTHEN_BUF2(31);
+                                       ast_str_append(&sql2, 0, "%s%f", separator, (double)cdr->answer.tv_sec + (double)cdr->answer.tv_usec / 1000000.0);
+@@ -298,7 +298,7 @@ static int pgsql_log(struct ast_cdr *cdr
+                       } else if (strcmp(cur->name, "end") == 0) {
+                               if (strncmp(cur->type, "int", 3) == 0) {
+                                       LENGTHEN_BUF2(13);
+-                                      ast_str_append(&sql2, 0, "%s%ld", separator, (long) cdr->end.tv_sec);
++                                      ast_str_append(&sql2, 0, "%s%jd", separator, (intmax_t) cdr->end.tv_sec);
+                               } else if (strncmp(cur->type, "float", 5) == 0) {
+                                       LENGTHEN_BUF2(31);
+                                       ast_str_append(&sql2, 0, "%s%f", separator, (double)cdr->end.tv_sec + (double)cdr->end.tv_usec / 1000000.0);
Index: pkgsrc/comms/asterisk15/patches/patch-cel_cel__pgsql.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-cel_cel__pgsql.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-cel_cel__pgsql.c      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-cel_cel__pgsql.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- cel/cel_pgsql.c.orig       2015-10-09 21:48:48.000000000 +0000
++++ cel/cel_pgsql.c
+@@ -205,7 +205,7 @@ static void pgsql_log(struct ast_event *
+                       if (strcmp(cur->name, "eventtime") == 0) {
+                               if (strncmp(cur->type, "int", 3) == 0) {
+                                       LENGTHEN_BUF2(13);
+-                                      ast_str_append(&sql2, 0, "%s%ld", SEP, (long) record.event_time.tv_sec);
++                                      ast_str_append(&sql2, 0, "%s%jd", SEP, (intmax_t) record.event_time.tv_sec);
+                               } else if (strncmp(cur->type, "float", 5) == 0) {
+                                       LENGTHEN_BUF2(31);
+                                       ast_str_append(&sql2, 0, "%s%f",
Index: pkgsrc/comms/asterisk15/patches/patch-channels_chan__oss.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-channels_chan__oss.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-channels_chan__oss.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,40 @@
+$NetBSD: patch-channels_chan__oss.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- channels/chan_oss.c.orig   2018-05-01 20:12:26.000000000 +0000
++++ channels/chan_oss.c
+@@ -51,7 +51,7 @@
+ 
+ #ifdef __linux
+ #include <linux/soundcard.h>
+-#elif defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__GLIBC__) || defined(__sun)
++#elif defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__GLIBC__) || defined(__sun) || defined(__DragonFly__)
+ #include <sys/soundcard.h>
+ #else
+ #include <soundcard.h>
+@@ -255,7 +255,7 @@ struct chan_oss_pvt {
+       char *name;
+       int total_blocks;                       /*!< total blocks in the output device */
+       int sounddev;
+-      enum { M_UNSET, M_FULL, M_READ, M_WRITE } duplex;
++      enum { M_UNSET, M_FULL, M_READ_foo, M_WRITE } duplex;
+       int autoanswer;             /*!< Boolean: whether to answer the immediately upon calling */
+       int autohangup;             /*!< Boolean: whether to hangup the call when the remote end hangs up */
+       int hookstate;              /*!< Boolean: 1 if offhook; 0 if onhook */
+@@ -522,7 +522,7 @@ static int setformat(struct chan_oss_pvt
+               break;
+ 
+       case O_RDONLY:
+-              o->duplex = M_READ;
++              o->duplex = M_READ_foo;
+               break;
+       }
+ 
+@@ -1310,7 +1310,7 @@ static void store_mixer(struct chan_oss_
+       int i;
+ 
+       for (i = 0; i < strlen(s); i++) {
+-              if (!isalnum(s[i]) && strchr(" \t-/", s[i]) == NULL) {
++              if (!isalnum((unsigned char)s[i]) && strchr(" \t-/", s[i]) == NULL) {
+                       ast_log(LOG_WARNING, "Suspect char %c in mixer cmd, ignoring:\n\t%s\n", s[i], s);
+                       return;
+               }
Index: pkgsrc/comms/asterisk15/patches/patch-channels_chan__pjsip.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-channels_chan__pjsip.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-channels_chan__pjsip.c        Mon Jul 16 21:53:05 2018
@@ -0,0 +1,32 @@
+$NetBSD: patch-channels_chan__pjsip.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- channels/chan_pjsip.c.orig 2018-06-20 14:36:49.919764716 +0000
++++ channels/chan_pjsip.c
+@@ -34,10 +34,6 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjsip_ua.h>
+-#include <pjlib.h>
+-
+ #include "asterisk/lock.h"
+ #include "asterisk/channel.h"
+ #include "asterisk/module.h"
+@@ -62,10 +58,14 @@
+ #include "asterisk/pickup.h"
+ #include "asterisk/test.h"
+ 
+-#include "asterisk/res_pjsip.h"
+-#include "asterisk/res_pjsip_session.h"
+ #include "asterisk/stream.h"
+ 
++#include <pjsip.h>
++#include <pjsip_ua.h>
++#include <pjlib.h>
++
++#include "asterisk/res_pjsip.h"
++#include "asterisk/res_pjsip_session.h"
+ #include "pjsip/include/chan_pjsip.h"
+ #include "pjsip/include/dialplan_functions.h"
+ #include "pjsip/include/cli_functions.h"
Index: pkgsrc/comms/asterisk15/patches/patch-channels_chan__sip.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-channels_chan__sip.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-channels_chan__sip.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,40 @@
+$NetBSD: patch-channels_chan__sip.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- channels/chan_sip.c.orig   2018-05-01 20:12:26.000000000 +0000
++++ channels/chan_sip.c
+@@ -2411,7 +2411,7 @@ static int sip_is_token(const char *str)
+ 
+       is_token = 1;
+       do {
+-              if (!isalnum(*str)
++              if (!isalnum((unsigned char)*str)
+                       && !strchr("-.!%*_+`'~", *str)) {
+                       /* The character is not allowed in a token. */
+                       is_token = 0;
+@@ -11624,7 +11624,7 @@ static int process_sdp_a_image(const cha
+        * code reviews).
+        */
+       for (pos = attrib; *pos; ++pos) {
+-              *pos = tolower(*pos);
++              *pos = tolower((unsigned char)*pos);
+       }
+ 
+       if ((sscanf(attrib, "t38faxmaxbuffer:%30u", &x) == 1)) {
+@@ -20014,7 +20014,7 @@ static int manager_show_registry(struct 
+                       "DomainPort: %d\r\n"
+                       "Refresh: %d\r\n"
+                       "State: %s\r\n"
+-                      "RegistrationTime: %ld\r\n"
++                      "RegistrationTime: %jd\r\n"
+                       "\r\n",
+                       idtext,
+                       iterator->hostname,
+@@ -20024,7 +20024,7 @@ static int manager_show_registry(struct 
+                       iterator->regdomainport ? iterator->regdomainport : STANDARD_SIP_PORT,
+                       iterator->refresh,
+                       regstate2str(iterator->regstate),
+-                      (long) iterator->regtime.tv_sec);
++                      (intmax_t) iterator->regtime.tv_sec);
+ 
+               ao2_unlock(iterator);
+               ao2_t_ref(iterator, -1, "manager_show_registry iter");
Index: pkgsrc/comms/asterisk15/patches/patch-channels_pjsip_cli__commands.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-channels_pjsip_cli__commands.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-channels_pjsip_cli__commands.c        Mon Jul 16 21:53:05 2018
@@ -0,0 +1,33 @@
+$NetBSD: patch-channels_pjsip_cli__commands.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- channels/pjsip/cli_commands.c.orig 2018-06-20 14:37:54.485779459 +0000
++++ channels/pjsip/cli_commands.c
+@@ -26,20 +26,21 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/astobj2.h"
++#include "asterisk/channel.h"
++#include "asterisk/format.h"
++#include "asterisk/stasis.h"
++#include "asterisk/time.h"
++#include "include/cli_functions.h"
++
+ #include <pjsip.h>
+ #include <pjlib.h>
+ #include <pjsip_ua.h>
+ 
+-#include "asterisk/astobj2.h"
+-#include "asterisk/channel.h"
+-#include "asterisk/format.h"
++#include "include/chan_pjsip.h"
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+ #include "asterisk/res_pjsip_cli.h"
+-#include "asterisk/stasis.h"
+-#include "asterisk/time.h"
+-#include "include/chan_pjsip.h"
+-#include "include/cli_functions.h"
+ 
+ 
+ static int cli_channel_iterate(void *endpoint, ao2_callback_fn callback, void *arg)
Index: pkgsrc/comms/asterisk15/patches/patch-channels_pjsip_dialplan__functions.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-channels_pjsip_dialplan__functions.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-channels_pjsip_dialplan__functions.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,32 @@
+$NetBSD: patch-channels_pjsip_dialplan__functions.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- channels/pjsip/dialplan_functions.c.orig   2018-06-20 14:39:31.934736437 +0000
++++ channels/pjsip/dialplan_functions.c
+@@ -450,10 +450,6 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjlib.h>
+-#include <pjsip_ua.h>
+-
+ #include "asterisk/astobj2.h"
+ #include "asterisk/module.h"
+ #include "asterisk/acl.h"
+@@ -463,10 +459,15 @@
+ #include "asterisk/format.h"
+ #include "asterisk/dsp.h"
+ #include "asterisk/pbx.h"
++#include "include/dialplan_functions.h"
++
++#include <pjsip.h>
++#include <pjlib.h>
++#include <pjsip_ua.h>
++
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+ #include "include/chan_pjsip.h"
+-#include "include/dialplan_functions.h"
+ 
+ /*!
+  * \brief String representations of the T.38 state enum
Index: pkgsrc/comms/asterisk15/patches/patch-configure
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-configure:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-configure     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,217 @@
+$NetBSD: patch-configure,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- configure.orig     2018-05-01 20:12:26.000000000 +0000
++++ configure
+@@ -9089,12 +9089,12 @@ else
+ 
+                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang -fblocks" >&5
+ $as_echo_n "checking for clang -fblocks... " >&6; }
+-                      if test "`echo "int main(){return ^{return 42;}();}" | ${CC} -o /dev/null -fblocks -x c - 2>&1`" = ""; then
++                      if test "`echo "int main(){return ^{return 42;}();}" | ${CC} ${LDFLAGS} -o /dev/null -fblocks -x c - 2>&1`" = ""; then
+                               AST_CLANG_BLOCKS_LIBS=""
+                               AST_CLANG_BLOCKS="-Wno-unknown-warning-option -fblocks"
+                               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+ $as_echo "yes" >&6; }
+-                      elif test "`echo "int main(){return ^{return 42;}();}" | ${CC} -o /dev/null -fblocks -x c -lBlocksRuntime - 2>&1`" = ""; then
++                      elif test "`echo "int main(){return ^{return 42;}();}" | ${CC} ${LDFLAGS} -o /dev/null -fblocks -x c -lBlocksRuntime - 2>&1`" = ""; then
+                               AST_CLANG_BLOCKS_LIBS="-lBlocksRuntime"
+                               AST_CLANG_BLOCKS="-fblocks"
+                               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+@@ -9230,10 +9230,10 @@ $as_echo "configuring" >&6; }
+ 
+       this_host=$(./config.sub $(./config.guess))
+       if test "$build" != "$this_host" ; then
+-              PJPROJECT_CONFIGURE_OPTS+=" --build=$build"
++              PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --build=$build"
+       fi
+       if test "$host" != "$this_host" ; then
+-              PJPROJECT_CONFIGURE_OPTS+=" --host=$host"
++              PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --host=$host"
+       fi
+ 
+       export TAR PATCH SED NM EXTERNALS_CACHE_DIR AST_DOWNLOAD_CACHE DOWNLOAD_TO_STDOUT DOWNLOAD_TIMEOUT DOWNLOAD MD5 CAT CUT GREP
+@@ -15006,7 +15006,7 @@ fi
+ done
+ 
+ 
+-ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
++ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
+ if test "x$ac_cv_header_sys_poll_h" = xyes; then :
+ 
+ else
+@@ -17021,7 +17021,7 @@ fi
+ done
+ 
+ 
+-for ac_func in asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob ioperm inet_ntoa isascii memchr memmove 
memset mkdir mkdtemp munmap newlocale ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep 
strspn strstr strtod strtol strtold strtoq unsetenv uselocale utime vasprintf getpeereid sysctl swapctl
++for ac_func in asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob ioperm inet_ntoa isascii memchr memmove 
memset mkdir mkdtemp munmap newlocale ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strftime_l strlcat strlcpy strncasecmp strndup strnlen 
strptime_l strrchr strsep strspn strstr strtod strtol strtold strtoq unsetenv uselocale utime vasprintf getpeereid sysctl swapctl
+ do :
+   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+@@ -17256,7 +17256,7 @@ rm -f core conftest.err conftest.$ac_obj
+ LDFLAGS=${old_LDFLAGS}
+ rm -f conftest.dynamics
+ 
+-ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
++ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
+ if test "x$ac_cv_header_sys_poll_h" = xyes; then :
+   HAS_POLL=1
+ 
+@@ -19454,6 +19454,148 @@ fi
+ 
+ 
+ 
++if test "${ac_cv_header_sys_atomic_h+set}" = set; then
++  { $as_echo "$as_me:$LINENO: checking for sys/atomic.h" >&5
++$as_echo_n "checking for sys/atomic.h... " >&6; }
++if test "${ac_cv_header_sys_atomic_h+set}" = set; then
++  $as_echo_n "(cached) " >&6
++fi
++{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_atomic_h" >&5
++$as_echo "$ac_cv_header_sys_atomic_h" >&6; }
++else
++  # Is the header compilable?
++{ $as_echo "$as_me:$LINENO: checking sys/atomic.h usability" >&5
++$as_echo_n "checking sys/atomic.h usability... " >&6; }
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <sys/atomic.h>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (ac_try="$ac_compile"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
++$as_echo "$ac_try_echo") >&5
++  (eval "$ac_compile") 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && {
++       test -z "$ac_c_werror_flag" ||
++       test ! -s conftest.err
++       } && test -s conftest.$ac_objext; then
++  ac_header_compiler=yes
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++      ac_header_compiler=no
++fi
++
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++$as_echo "$ac_header_compiler" >&6; }
++
++# Is the header present?
++{ $as_echo "$as_me:$LINENO: checking sys/atomic.h presence" >&5
++$as_echo_n "checking sys/atomic.h presence... " >&6; }
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <sys/atomic.h>
++_ACEOF
++if { (ac_try="$ac_cpp conftest.$ac_ext"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
++$as_echo "$ac_try_echo") >&5
++  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null && {
++       test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
++       test ! -s conftest.err
++       }; then
++  ac_header_preproc=yes
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++
++rm -f conftest.err conftest.$ac_ext
++{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++$as_echo "$ac_header_preproc" >&6; }
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { $as_echo "$as_me:$LINENO: WARNING: sys/atomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
++$as_echo "$as_me: WARNING: sys/atomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { $as_echo "$as_me:$LINENO: WARNING: sys/atomic.h: proceeding with the compiler's result" >&5
++$as_echo "$as_me: WARNING: sys/atomic.h: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { $as_echo "$as_me:$LINENO: WARNING: sys/atomic.h: present but cannot be compiled" >&5
++$as_echo "$as_me: WARNING: sys/atomic.h: present but cannot be compiled" >&2;}
++    { $as_echo "$as_me:$LINENO: WARNING: sys/atomic.h:     check for missing prerequisite headers?" >&5
++$as_echo "$as_me: WARNING: sys/atomic.h:     check for missing prerequisite headers?" >&2;}
++    { $as_echo "$as_me:$LINENO: WARNING: sys/atomic.h: see the Autoconf documentation" >&5
++$as_echo "$as_me: WARNING: sys/atomic.h: see the Autoconf documentation" >&2;}
++    { $as_echo "$as_me:$LINENO: WARNING: sys/atomic.h:     section \"Present But Cannot Be Compiled\"" >&5
++$as_echo "$as_me: WARNING: sys/atomic.h:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { $as_echo "$as_me:$LINENO: WARNING: sys/atomic.h: proceeding with the preprocessor's result" >&5
++$as_echo "$as_me: WARNING: sys/atomic.h: proceeding with the preprocessor's result" >&2;}
++    { $as_echo "$as_me:$LINENO: WARNING: sys/atomic.h: in the future, the compiler will take precedence" >&5
++$as_echo "$as_me: WARNING: sys/atomic.h: in the future, the compiler will take precedence" >&2;}
++    ( cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to https://issues.asterisk.org ##
++## ------------------------------------------ ##
++_ASBOX
++     ) | sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++{ $as_echo "$as_me:$LINENO: checking for sys/atomic.h" >&5
++$as_echo_n "checking for sys/atomic.h... " >&6; }
++if test "${ac_cv_header_sys_atomic_h+set}" = set; then
++  $as_echo_n "(cached) " >&6
++else
++  ac_cv_header_sys_atomic_h=$ac_header_preproc
++fi
++{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_atomic_h" >&5
++$as_echo "$ac_cv_header_sys_atomic_h" >&6; }
++
++fi
++if test "x$ac_cv_header_sys_atomic_h" = x""yes; then
++
++cat >>confdefs.h <<_ACEOF
++#define HAVE_SYS_ATOMIC_H 1
++_ACEOF
++
++fi
++
++
++
+ # The cast to long int works around a bug in the HP C Compiler
+ # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+ # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+@@ -20680,6 +20822,8 @@ $as_echo_n "checking for getifaddrs() su
+ 
+       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
++ #include <sys/types.h>
++ #include <sys/socket.h>
+  #include <ifaddrs.h>
+ int
+ main ()
Index: pkgsrc/comms/asterisk15/patches/patch-configure.ac
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-configure.ac:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-configure.ac  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,44 @@
+$NetBSD: patch-configure.ac,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- configure.ac.orig  2018-05-01 20:12:26.000000000 +0000
++++ configure.ac
+@@ -745,7 +745,7 @@ AC_CHECK_HEADERS([xlocale.h])
+ 
+ AC_CHECK_HEADERS([winsock.h winsock2.h])
+ 
+-AC_CHECK_HEADER([sys/poll.h],
++AC_CHECK_HEADER([poll.h],
+        [],
+      AC_DEFINE([AST_POLL_COMPAT], 1, [Define to 1 if internal poll should be used.]))
+ 
+@@ -797,7 +797,7 @@ AC_FUNC_STRNLEN
+ AC_FUNC_STRTOD
+ AC_FUNC_UTIME_NULL
+ AC_FUNC_VPRINTF
+-AC_CHECK_FUNCS([asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob ioperm inet_ntoa isascii memchr memmove 
memset mkdir mkdtemp munmap newlocale ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep 
strspn strstr strtod strtol strtold strtoq unsetenv uselocale utime vasprintf getpeereid sysctl swapctl])
++AC_CHECK_FUNCS([asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob ioperm inet_ntoa isascii memchr memmove 
memset mkdir mkdtemp munmap newlocale ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strftime_l strlcat strlcpy strptime_l strncasecmp strndup 
strnlen strrchr strsep strspn strstr strtod strtol strtold strtoq unsetenv uselocale utime vasprintf getpeereid sysctl swapctl])
+ 
+ AC_MSG_CHECKING(for htonll)
+ AC_LINK_IFELSE(
+@@ -866,9 +866,9 @@ AC_SUBST(PBX_DYNAMIC_LIST)
+ LDFLAGS=${old_LDFLAGS}
+ rm -f conftest.dynamics
+ 
+-AC_CHECK_HEADER([sys/poll.h],
++AC_CHECK_HEADER([poll.h],
+    [HAS_POLL=1]
+-   AC_DEFINE([HAVE_SYS_POLL_H], 1, [Define to 1 if your system has working sys/poll.h]),
++   AC_DEFINE([HAVE_SYS_POLL_H], 1, [Define to 1 if your system has working poll.h]),
+    )
+ 
+ AC_ARG_ENABLE([internal-poll],
+@@ -1444,6 +1444,9 @@ AST_C_DEFINE_CHECK([IP_MTU_DISCOVER], [I
+ AC_CHECK_HEADER([libkern/OSAtomic.h],
+                 [AC_DEFINE_UNQUOTED([HAVE_OSX_ATOMICS], 1, [Define to 1 if OSX atomic operations are supported.])])
+ 
++AC_CHECK_HEADER([sys/atomic.h],
++                [AC_DEFINE_UNQUOTED([HAVE_SYS_ATOMIC_H], 1, [Define to 1 if sys/atomic.h atomic operations are supported.])])
++
+ AC_CHECK_SIZEOF([int])
+ AC_CHECK_SIZEOF([long])
+ AC_CHECK_SIZEOF([long long])
Index: pkgsrc/comms/asterisk15/patches/patch-contrib_scripts_vmail.cgi
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-contrib_scripts_vmail.cgi:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-contrib_scripts_vmail.cgi     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,181 @@
+$NetBSD: patch-contrib_scripts_vmail.cgi,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- contrib/scripts/vmail.cgi.orig     2015-10-09 21:48:48.000000000 +0000
++++ contrib/scripts/vmail.cgi
+@@ -145,7 +145,7 @@ sub check_login($$)
+               $context = "default";
+       }
+       if (!$filename) {
+-              $filename = "/etc/asterisk/voicemail.conf";
++              $filename = "@ASTETCDIR@/voicemail.conf";
+       }
+ #     print header;
+ #     print "Including <h2>$filename</h2> while in <h2>$category</h2>...\n";
+@@ -153,7 +153,7 @@ sub check_login($$)
+       while(<VMAIL>) {
+               chomp;
+               if (/include\s\"([^\"]+)\"$/) {
+-                      ($tmp, $category) = &check_login("/etc/asterisk/$1", $category);
++                      ($tmp, $category) = &check_login("@ASTETCDIR@/$1", $category);
+                       if (length($tmp)) {
+ #                             print "Got '$tmp'\n";
+                               return ($tmp, $category);
+@@ -200,7 +200,7 @@ sub check_login_users {
+       my ($mbox, $context) = split(/\@/, param('mailbox'));
+       my $pass = param('password');
+       my ($found, $fullname) = (0, "");
+-      open VMAIL, "</etc/asterisk/users.conf";
++      open VMAIL, "<@ASTETCDIR@/users.conf";
+       while (<VMAIL>) {
+               chomp;
+               if (m/\[(.*)\]/) {
+@@ -242,7 +242,7 @@ sub validmailbox($$$$)
+               $context = "default";
+       }
+       if (!$filename) {
+-              $filename = "/etc/asterisk/voicemail.conf";
++              $filename = "@ASTETCDIR@/voicemail.conf";
+       }
+       if (!$category) {
+               $category = "general";
+@@ -251,7 +251,7 @@ sub validmailbox($$$$)
+       while (<VMAIL>) {
+               chomp;
+               if (/include\s\"([^\"]+)\"$/) {
+-                      ($tmp, $category) = &validmailbox($mbox, $context, "/etc/asterisk/$1");
++                      ($tmp, $category) = &validmailbox($mbox, $context, "@ASTETCDIR@/$1");
+                       if ($tmp) {
+                               return ($tmp, $category);
+                       }
+@@ -298,7 +298,7 @@ sub mailbox_options()
+       local $tmp2;
+       local $tmp;
+       if (!$filename) {
+-              $filename = "/etc/asterisk/voicemail.conf";
++              $filename = "@ASTETCDIR@/voicemail.conf";
+       }
+       if (!$category) {
+               $category = "general";
+@@ -386,7 +386,7 @@ sub mailbox_list()
+ sub msgcount() 
+ {
+       my ($context, $mailbox, $folder) = @_;
+-      my $path = "/var/spool/asterisk/voicemail/$context/$mailbox/$folder";
++      my $path = "@ASTSPOOLDIR@/voicemail/$context/$mailbox/$folder";
+       if (opendir(DIR, $path)) {
+               my @msgs = grep(/^msg....\.txt$/, readdir(DIR));
+               closedir(DIR);
+@@ -410,7 +410,7 @@ sub msgcountstr()
+ sub messages()
+ {
+       my ($context, $mailbox, $folder) = @_;
+-      my $path = "/var/spool/asterisk/voicemail/$context/$mailbox/$folder";
++      my $path = "@ASTSPOOLDIR@/voicemail/$context/$mailbox/$folder";
+       if (opendir(DIR, $path)) {
+               my @msgs = sort grep(/^msg....\.txt$/, readdir(DIR));
+               closedir(DIR);
+@@ -435,7 +435,7 @@ sub getfields()
+ {
+       my ($context, $mailbox, $folder, $msg) = @_;
+       my $fields;
+-      if (open(MSG, "</var/spool/asterisk/voicemail/$context/$mailbox/$folder/msg${msg}.txt")) {
++      if (open(MSG, "<@ASTSPOOLDIR@/voicemail/$context/$mailbox/$folder/msg${msg}.txt")) {
+               while(<MSG>) {
+                       s/\#.*$//g;
+                       if (/^(\w+)\s*\=\s*(.*)$/) {
+@@ -560,7 +560,7 @@ _EOH
+       <input name="action" type=submit value="download">
+ </td></tr>
+ <tr><td colspan=2 align=center>
+-<embed width=400 height=40 src="vmail.cgi?action=audio&folder=$folder&mailbox=$mbox&context=$context&password=$passwd&msgid=$msgid&format=$format&dontcasheme=$$.$format" autostart=yes 
loop=false></embed>
++<embed width=400 height=40 src="vmail?action=audio&folder=$folder&mailbox=$mbox&context=$context&password=$passwd&msgid=$msgid&format=$format&dontcasheme=$$.$format" autostart=yes 
loop=false></embed>
+ </td></tr></table>
+ </td></tr>
+ </table>
+@@ -588,7 +588,7 @@ sub message_audio()
+       }
+       &untaint($format);
+ 
+-      my $path = "/var/spool/asterisk/voicemail/$context/$mailbox/$folder/msg${msgid}.$format";
++      my $path = "@ASTSPOOLDIR@/voicemail/$context/$mailbox/$folder/msg${msgid}.$format";
+ 
+       $msgid =~ /^\d\d\d\d$/ || die("Msgid Liar ($msgid)!");
+       grep(/^${format}$/, keys %formats) || die("Format Liar ($format)!");
+@@ -809,11 +809,11 @@ sub message_rename()
+               die("Invalid old Message<BR>\n");
+       }
+       
+-      my $path = "/var/spool/asterisk/voicemail/$context/$mbox/$newfolder";
++      my $path = "@ASTSPOOLDIR@/voicemail/$context/$mbox/$newfolder";
+       $path =~ /^(.*)$/;
+       $path = $1;
+       mkdir $path, 0770;
+-      $path = "/var/spool/asterisk/voicemail/$context/$mbox/$oldfolder";
++      $path = "@ASTSPOOLDIR@/voicemail/$context/$mbox/$oldfolder";
+       opendir(DIR, $path) || die("Unable to open directory\n");
+       my @files = grep /^msg${old}\.\w+$/, readdir(DIR);
+       closedir(DIR);
+@@ -823,7 +823,7 @@ sub message_rename()
+                       $tmp = $1;
+                       $oldfile = $path . "/$tmp";
+                       $tmp =~ s/msg${old}/msg${new}/;
+-                      $newfile = "/var/spool/asterisk/voicemail/$context/$mbox/$newfolder/$tmp";
++                      $newfile = "@ASTSPOOLDIR@/voicemail/$context/$mbox/$newfolder/$tmp";
+ #                     print "Renaming $oldfile to $newfile<BR>\n";
+                       rename($oldfile, $newfile);
+               }
+@@ -884,15 +884,15 @@ sub message_copy()
+               die("Invalid old Message<BR>\n");
+       }
+       
+-      my $path = "/var/spool/asterisk/voicemail/$context/$newmbox";
++      my $path = "@ASTSPOOLDIR@/voicemail/$context/$newmbox";
+       $path =~ /^(.*)$/;
+       $path = $1;
+       mkdir $path, 0770;
+-      $path = "/var/spool/asterisk/voicemail/$context/$newmbox/INBOX";
++      $path = "@ASTSPOOLDIR@/voicemail/$context/$newmbox/INBOX";
+       $path =~ /^(.*)$/;
+       $path = $1;
+       mkdir $path, 0770;
+-      $path = "/var/spool/asterisk/voicemail/$context/$mbox/$oldfolder";
++      $path = "@ASTSPOOLDIR@/voicemail/$context/$mbox/$oldfolder";
+       opendir(DIR, $path) || die("Unable to open directory\n");
+       my @files = grep /^msg${old}\.\w+$/, readdir(DIR);
+       closedir(DIR);
+@@ -902,7 +902,7 @@ sub message_copy()
+                       $tmp = $1;
+                       $oldfile = $path . "/$tmp";
+                       $tmp =~ s/msg${old}/msg${new}/;
+-                      $newfile = "/var/spool/asterisk/voicemail/$context/$newmbox/INBOX/$tmp";
++                      $newfile = "@ASTSPOOLDIR@/voicemail/$context/$newmbox/INBOX/$tmp";
+ #                     print "Copying $oldfile to $newfile<BR>\n";
+                       &file_copy($oldfile, $newfile);
+               }
+@@ -932,7 +932,7 @@ sub message_delete()
+       } else {
+               die("Invalid Message<BR>\n");
+       }
+-      my $path = "/var/spool/asterisk/voicemail/$context/$mbox/$folder";
++      my $path = "@ASTSPOOLDIR@/voicemail/$context/$mbox/$folder";
+       opendir(DIR, $path) || die("Unable to open directory\n");
+       my @files = grep /^msg${msg}\.\w+$/, readdir(DIR);
+       closedir(DIR);
+@@ -968,7 +968,7 @@ sub message_forward()
+       my $txt;
+       $context = &untaint($context);
+       $newmbox = &untaint($newmbox);
+-      my $path = "/var/spool/asterisk/voicemail/$context/$newmbox/INBOX";
++      my $path = "@ASTSPOOLDIR@/voicemail/$context/$newmbox/INBOX";
+       if ($msgs[0]) {
+               if (&lock_path($path) == 0) {
+                       $msgcount = &msgcount($context, $newmbox, "INBOX");
+@@ -1018,7 +1018,7 @@ sub message_delete_or_move()
+       $context = &untaint($context);
+       $mbox = &untaint($mbox);
+       $folder = &untaint($folder);
+-      $path = "/var/spool/asterisk/voicemail/$context/$mbox/$folder";
++      $path = "@ASTSPOOLDIR@/voicemail/$context/$mbox/$folder";
+       if ($msgs[0]) {
+               if (&lock_path($path) == 0) {
+                       my $msgcount = &msgcount($context, $mbox, $folder);
Index: pkgsrc/comms/asterisk15/patches/patch-funcs_func__cdr.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-funcs_func__cdr.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-funcs_func__cdr.c     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-funcs_func__cdr.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- funcs/func_cdr.c.orig      2018-05-07 17:23:06.705808560 +0000
++++ funcs/func_cdr.c
+@@ -547,7 +547,7 @@ static int cdr_write(struct ast_channel 
+ 
+               ast_log(LOG_WARNING, "Using the %s function to set 'amaflags' is deprecated. Please use the CHANNEL function instead.\n",
+                       cmd);
+-              if (isdigit(*value)) {
++              if (isdigit((unsigned char)*value)) {
+                       if (sscanf(value, "%30d", &amaflags) != 1) {
+                               amaflags = AST_AMA_NONE;
+                       }
Index: pkgsrc/comms/asterisk15/patches/patch-funcs_func__channel.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-funcs_func__channel.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-funcs_func__channel.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-funcs_func__channel.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- funcs/func_channel.c.orig  2018-05-07 17:22:10.785599288 +0000
++++ funcs/func_channel.c
+@@ -492,7 +492,7 @@ static int func_channel_write_real(struc
+       } else if (!strcasecmp(data, "amaflags")) {
+               int amaflags;
+ 
+-              if (isdigit(*value)) {
++              if (isdigit((unsigned char)*value)) {
+                       if (sscanf(value, "%30d", &amaflags) != 1) {
+                               amaflags = AST_AMA_NONE;
+                       }
Index: pkgsrc/comms/asterisk15/patches/patch-funcs_func__env.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-funcs_func__env.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-funcs_func__env.c     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,58 @@
+$NetBSD: patch-funcs_func__env.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- funcs/func_env.c.orig      2018-05-01 20:12:26.000000000 +0000
++++ funcs/func_env.c
+@@ -307,7 +307,7 @@ static int stat_read(struct ast_channel 
+                       snprintf(buf, len, "%d", (int) s.st_ctime);
+                       break;
+               case 'm':
+-                      snprintf(buf, len, "%o", s.st_mode);
++                      snprintf(buf, len, "%o", (unsigned int) s.st_mode);
+                       break;
+               }
+       }
+@@ -408,11 +408,11 @@ static int file_count_line(struct ast_ch
+ 
+       AST_STANDARD_APP_ARGS(args, data);
+       if (args.argc > 1) {
+-              if (tolower(args.format[0]) == 'd') {
++              if (tolower((unsigned char)args.format[0]) == 'd') {
+                       newline_format = FF_DOS;
+-              } else if (tolower(args.format[0]) == 'm') {
++              } else if (tolower((unsigned char)args.format[0]) == 'm') {
+                       newline_format = FF_MAC;
+-              } else if (tolower(args.format[0]) == 'u') {
++              } else if (tolower((unsigned char)args.format[0]) == 'u') {
+                       newline_format = FF_UNIX;
+               }
+       }
+@@ -570,11 +570,11 @@ static int file_read(struct ast_channel 
+ 
+       /* Line-based read */
+       if (args.argc == 5) {
+-              if (tolower(args.fileformat[0]) == 'd') {
++              if (tolower((unsigned char)args.fileformat[0]) == 'd') {
+                       format = FF_DOS;
+-              } else if (tolower(args.fileformat[0]) == 'm') {
++              } else if (tolower((unsigned char)args.fileformat[0]) == 'm') {
+                       format = FF_MAC;
+-              } else if (tolower(args.fileformat[0]) == 'u') {
++              } else if (tolower((unsigned char)args.fileformat[0]) == 'u') {
+                       format = FF_UNIX;
+               }
+       }
+@@ -935,11 +935,11 @@ static int file_write(struct ast_channel
+ 
+               /* Line mode */
+               if (args.argc == 5) {
+-                      if (tolower(args.format[0]) == 'u') {
++                      if (tolower((unsigned char)args.format[0]) == 'u') {
+                               newline_format = FF_UNIX;
+-                      } else if (tolower(args.format[0]) == 'm') {
++                      } else if (tolower((unsigned char)args.format[0]) == 'm') {
+                               newline_format = FF_MAC;
+-                      } else if (tolower(args.format[0]) == 'd') {
++                      } else if (tolower((unsigned char)args.format[0]) == 'd') {
+                               newline_format = FF_DOS;
+                       }
+               }
Index: pkgsrc/comms/asterisk15/patches/patch-funcs_func__pjsip__aor.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-funcs_func__pjsip__aor.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-funcs_func__pjsip__aor.c      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,22 @@
+$NetBSD: patch-funcs_func__pjsip__aor.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- funcs/func_pjsip_aor.c.orig        2018-06-20 14:41:48.304859278 +0000
++++ funcs/func_pjsip_aor.c
+@@ -34,13 +34,14 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjlib.h>
+-
+ #include "asterisk/app.h"
+ #include "asterisk/pbx.h"
+ #include "asterisk/module.h"
+ #include "asterisk/sorcery.h"
++
++#include <pjsip.h>
++#include <pjlib.h>
++
+ #include "asterisk/res_pjsip.h"
+ 
+ /*** DOCUMENTATION
Index: pkgsrc/comms/asterisk15/patches/patch-funcs_func__pjsip__contact.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-funcs_func__pjsip__contact.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-funcs_func__pjsip__contact.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,22 @@
+$NetBSD: patch-funcs_func__pjsip__contact.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- funcs/func_pjsip_contact.c.orig    2018-06-20 14:41:26.963425573 +0000
++++ funcs/func_pjsip_contact.c
+@@ -34,13 +34,14 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjlib.h>
+-
+ #include "asterisk/app.h"
+ #include "asterisk/pbx.h"
+ #include "asterisk/module.h"
+ #include "asterisk/sorcery.h"
++
++#include <pjsip.h>
++#include <pjlib.h>
++
+ #include "asterisk/res_pjsip.h"
+ 
+ /*** DOCUMENTATION
Index: pkgsrc/comms/asterisk15/patches/patch-funcs_func__pjsip__endpoint.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-funcs_func__pjsip__endpoint.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-funcs_func__pjsip__endpoint.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,23 @@
+$NetBSD: patch-funcs_func__pjsip__endpoint.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- funcs/func_pjsip_endpoint.c.orig   2018-06-20 14:41:38.307201390 +0000
++++ funcs/func_pjsip_endpoint.c
+@@ -34,14 +34,15 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjlib.h>
+-
+ #include "asterisk/app.h"
+ #include "asterisk/pbx.h"
+ #include "asterisk/module.h"
+ #include "asterisk/channel.h"
+ #include "asterisk/sorcery.h"
++
++#include <pjsip.h>
++#include <pjlib.h>
++
+ #include "asterisk/res_pjsip.h"
+ 
+ /*** DOCUMENTATION
Index: pkgsrc/comms/asterisk15/patches/patch-funcs_func__strings.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-funcs_func__strings.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-funcs_func__strings.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,40 @@
+$NetBSD: patch-funcs_func__strings.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- funcs/func_strings.c.orig  2018-05-07 17:21:13.413282206 +0000
++++ funcs/func_strings.c
+@@ -1483,7 +1483,7 @@ static int string_toupper(struct ast_cha
+ {
+       char *bufptr = buf, *dataptr = data;
+ 
+-      while ((bufptr < buf + buflen - 1) && (*bufptr++ = toupper(*dataptr++)));
++      while ((bufptr < buf + buflen - 1) && (*bufptr++ = toupper((unsigned char)*dataptr++)));
+ 
+       return 0;
+ }
+@@ -1496,7 +1496,7 @@ static int string_toupper2(struct ast_ch
+               ast_str_make_space(buf, buflen > 0 ? buflen : strlen(data) + 1);
+       }
+       bufptr = ast_str_buffer(*buf);
+-      while ((bufptr < ast_str_buffer(*buf) + ast_str_size(*buf) - 1) && (*bufptr++ = toupper(*dataptr++)));
++      while ((bufptr < ast_str_buffer(*buf) + ast_str_size(*buf) - 1) && (*bufptr++ = toupper((unsigned char)*dataptr++)));
+       ast_str_update(*buf);
+ 
+       return 0;
+@@ -1512,7 +1512,7 @@ static int string_tolower(struct ast_cha
+ {
+       char *bufptr = buf, *dataptr = data;
+ 
+-      while ((bufptr < buf + buflen - 1) && (*bufptr++ = tolower(*dataptr++)));
++      while ((bufptr < buf + buflen - 1) && (*bufptr++ = tolower((unsigned char)*dataptr++)));
+ 
+       return 0;
+ }
+@@ -1525,7 +1525,7 @@ static int string_tolower2(struct ast_ch
+               ast_str_make_space(buf, buflen > 0 ? buflen : strlen(data) + 1);
+       }
+       bufptr = ast_str_buffer(*buf);
+-      while ((bufptr < ast_str_buffer(*buf) + ast_str_size(*buf) - 1) && (*bufptr++ = tolower(*dataptr++)));
++      while ((bufptr < ast_str_buffer(*buf) + ast_str_size(*buf) - 1) && (*bufptr++ = tolower((unsigned char)*dataptr++)));
+       ast_str_update(*buf);
+ 
+       return 0;
Index: pkgsrc/comms/asterisk15/patches/patch-include_asterisk_autoconfig.h.in
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-include_asterisk_autoconfig.h.in:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-include_asterisk_autoconfig.h.in      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,27 @@
+$NetBSD: patch-include_asterisk_autoconfig.h.in,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- include/asterisk/autoconfig.h.in.orig      2016-10-25 19:27:49.000000000 +0000
++++ include/asterisk/autoconfig.h.in
+@@ -945,6 +945,12 @@
+ /* Define to 1 if you have the `strstr' function. */
+ #undef HAVE_STRSTR
+ 
++/* Define to 1 if you have the `strftime_l' function. */
++#undef HAVE_STRFTIME_L
++
++/* Define to 1 if you have the `strptime_l' function. */
++#undef HAVE_STRPTIME_L
++
+ /* Define to 1 if you have the `strtod' function. */
+ #undef HAVE_STRTOD
+ 
+@@ -1032,6 +1038,9 @@
+ /* Define if your system has the SYSTEMD libraries. */
+ #undef HAVE_SYSTEMD
+ 
++/* Define to 1 if sys/atomic.h atomic operations are supported. */
++#undef HAVE_SYS_ATOMIC_H
++
+ /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
+    */
+ #undef HAVE_SYS_DIR_H
Index: pkgsrc/comms/asterisk15/patches/patch-include_asterisk_endian.h
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-include_asterisk_endian.h:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-include_asterisk_endian.h     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,16 @@
+$NetBSD: patch-include_asterisk_endian.h,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- include/asterisk/endian.h.orig     2015-10-09 21:48:48.000000000 +0000
++++ include/asterisk/endian.h
+@@ -31,6 +31,11 @@
+ #ifndef __BYTE_ORDER
+ #ifdef __linux__
+ #include <endian.h>
++#elif defined(__DragonFly__)
++#include <sys/endian.h>
++#define __BYTE_ORDER BYTE_ORDER
++#define __LITTLE_ENDIAN LITTLE_ENDIAN
++#define __BIG_ENDIAN BIG_ENDIAN
+ #elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
+ #if defined(__OpenBSD__)
+ #include "asterisk/compat.h"
Index: pkgsrc/comms/asterisk15/patches/patch-include_asterisk_lock.h
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-include_asterisk_lock.h:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-include_asterisk_lock.h       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,76 @@
+$NetBSD: patch-include_asterisk_lock.h,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- include/asterisk/lock.h.orig       2015-10-09 21:48:48.000000000 +0000
++++ include/asterisk/lock.h
+@@ -634,6 +634,17 @@ static void  __attribute__((destructor))
+  */
+ #define SCOPED_CHANNELLOCK(varname, chan) SCOPED_LOCK(varname, (chan), ast_channel_lock, ast_channel_unlock)
+ 
++#undef pthread_mutex_lock
++#undef pthread_mutex_unlock
++#undef pthread_mutex_trylock
++#undef pthread_mutex_init
++#undef pthread_mutex_destroy
++#undef pthread_cond_init
++#undef pthread_cond_destroy
++#undef pthread_cond_signal
++#undef pthread_cond_broadcast
++#undef pthread_cond_wait
++#undef pthread_cond_timedwait
+ #ifndef __CYGWIN__    /* temporary disabled for cygwin */
+ #define pthread_mutex_t               use_ast_mutex_t_instead_of_pthread_mutex_t
+ #define pthread_cond_t                use_ast_cond_t_instead_of_pthread_cond_t
+@@ -654,7 +665,7 @@ static void  __attribute__((destructor))
+ 
+ #define gethostbyname __gethostbyname__is__not__reentrant__use__ast_gethostbyname__instead__
+ 
+-#ifndef __linux__
++#if !defined(__linux__) && !defined(__DragonFly__)
+ #define pthread_create __use_ast_pthread_create_instead__
+ #endif
+ 
+@@ -676,6 +687,10 @@ int ast_atomic_fetchadd_int_slow(volatil
+ #include "libkern/OSAtomic.h"
+ #endif
+ 
++#if defined(HAVE_SYS_ATOMIC_H)
++#include <sys/atomic.h>
++#endif
++
+ /*! \brief Atomically add v to *p and return * the previous value of *p.
+  * This can be used to handle reference counts, and the return value
+  * can be used to generate unique identifiers.
+@@ -696,6 +711,16 @@ AST_INLINE_API(int ast_atomic_fetchadd_i
+ {
+       return OSAtomicAdd64(v, (int64_t *) p) - v;
+ })
++#elif defined(HAVE_SYS_ATOMIC_H) && (SIZEOF_INT == 4)
++AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
++{
++      return atomic_add_32_nv((uint32_t *)p, v) - v;
++})
++#elif defined(HAVE_SYS_ATOMIC_H) && (SIZEOF_INT == 8)
++AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
++{
++      return atomic_add_64_nv((uint64_t *)p, v) - v;
++})
+ #elif defined (__i386__) || defined(__x86_64__)
+ #ifdef sun
+ AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
+@@ -743,6 +768,16 @@ AST_INLINE_API(int ast_atomic_dec_and_te
+ {
+       return OSAtomicAdd64( -1, (int64_t *) p) == 0;
+ })
++#elif defined(HAVE_SYS_ATOMIC_H) && (SIZEOF_INT == 4)
++AST_INLINE_API(int ast_atomic_dec_and_test(volatile int *p),
++{
++      return atomic_dec_32_nv((uint32_t *)p) == 0;
++})
++#elif defined(HAVE_SYS_ATOMIC_H) && (SIZEOF_INT == 8)
++AST_INLINE_API(int ast_atomic_dec_and_test(volatile int *p),
++{
++      return atomic_dec_64_nv((uint64_t *)p) == 0;
++})
+ #else
+ AST_INLINE_API(int ast_atomic_dec_and_test(volatile int *p),
+ {
Index: pkgsrc/comms/asterisk15/patches/patch-include_asterisk_sha1.h
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-include_asterisk_sha1.h:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-include_asterisk_sha1.h       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,131 @@
+$NetBSD: patch-include_asterisk_sha1.h,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- include/asterisk/sha1.h.orig       2016-09-09 16:14:37.000000000 +0000
++++ include/asterisk/sha1.h
+@@ -191,49 +191,6 @@ typedef struct SHA256Context SHA224Conte
+ typedef struct SHA512Context SHA384Context;
+ 
+ /*
+- *  This structure holds context information for all SHA
+- *  hashing operations.
+- */
+-typedef struct USHAContext {
+-      int whichSha;               /* which SHA is being used */
+-      union {
+-              SHA1Context sha1Context;
+-              SHA224Context sha224Context; SHA256Context sha256Context;
+-              SHA384Context sha384Context; SHA512Context sha512Context;
+-      } ctx;
+-} USHAContext;
+-
+-/*
+- *  This structure will hold context information for the HMAC
+- *  keyed-hashing operation.
+- */
+-typedef struct HMACContext {
+-      int whichSha;               /* which SHA is being used */
+-      int hashSize;               /* hash size of SHA being used */
+-      int blockSize;              /* block size of SHA being used */
+-      USHAContext shaContext;     /* SHA context */
+-      unsigned char k_opad[USHA_Max_Message_Block_Size];
+-      /* outer padding - key XORd with opad */
+-      int Computed;               /* Is the MAC computed? */
+-      int Corrupted;              /* Cumulative corruption code */
+-
+-} HMACContext;
+-
+-/*
+- *  This structure will hold context information for the HKDF
+- *  extract-and-expand Key Derivation Functions.
+- */
+-typedef struct HKDFContext {
+-      int whichSha;               /* which SHA is being used */
+-      HMACContext hmacContext;
+-      int hashSize;               /* hash size of SHA being used */
+-      unsigned char prk[USHAMaxHashSize];
+-      /* pseudo-random key - output of hkdfInput */
+-      int Computed;               /* Is the key material computed? */
+-      int Corrupted;              /* Cumulative corruption code */
+-} HKDFContext;
+-
+-/*
+  *  Function Prototypes
+  */
+ 
+@@ -281,76 +238,6 @@ extern int SHA512FinalBits(SHA512Context
+ extern int SHA512Result(SHA512Context *,
+                         uint8_t Message_Digest[SHA512HashSize]);
+ 
+-/* Unified SHA functions, chosen by whichSha */
+-extern int USHAReset(USHAContext *context, SHAversion whichSha);
+-extern int USHAInput(USHAContext *context,
+-                     const uint8_t *bytes, unsigned int bytecount);
+-extern int USHAFinalBits(USHAContext *context,
+-                         uint8_t bits, unsigned int bit_count);
+-extern int USHAResult(USHAContext *context,
+-                      uint8_t Message_Digest[USHAMaxHashSize]);
+-extern int USHABlockSize(enum SHAversion whichSha);
+-extern int USHAHashSize(enum SHAversion whichSha);
+-extern int USHAHashSizeBits(enum SHAversion whichSha);
+-extern const char *USHAHashName(enum SHAversion whichSha);
+-
+-/*
+- * HMAC Keyed-Hashing for Message Authentication, RFC 2104,
+- * for all SHAs.
+- * This interface allows a fixed-length text input to be used.
+- */
+-extern int hmac(SHAversion whichSha, /* which SHA algorithm to use */
+-    const unsigned char *text,     /* pointer to data stream */
+-    int text_len,                  /* length of data stream */
+-    const unsigned char *key,      /* pointer to authentication key */
+-    int key_len,                   /* length of authentication key */
+-    uint8_t digest[USHAMaxHashSize]); /* caller digest to fill in */
+-
+-/*
+- * HMAC Keyed-Hashing for Message Authentication, RFC 2104,
+- * for all SHAs.
+- * This interface allows any length of text input to be used.
+- */
+-extern int hmacReset(HMACContext *context, enum SHAversion whichSha,
+-                     const unsigned char *key, int key_len);
+-extern int hmacInput(HMACContext *context, const unsigned char *text,
+-                     int text_len);
+-extern int hmacFinalBits(HMACContext *context, uint8_t bits,
+-                         unsigned int bit_count);
+-extern int hmacResult(HMACContext *context,
+-                      uint8_t digest[USHAMaxHashSize]);
+-
+-/*
+- * HKDF HMAC-based Extract-and-Expand Key Derivation Function,
+- * RFC 5869, for all SHAs.
+- */
+-extern int hkdf(SHAversion whichSha, const unsigned char *salt,
+-                int salt_len, const unsigned char *ikm, int ikm_len,
+-                const unsigned char *info, int info_len,
+-                uint8_t okm[ ], int okm_len);
+-extern int hkdfExtract(SHAversion whichSha, const unsigned char *salt,
+-                       int salt_len, const unsigned char *ikm,
+-                       int ikm_len, uint8_t prk[USHAMaxHashSize]);
+-extern int hkdfExpand(SHAversion whichSha, const uint8_t prk[ ],
+-                      int prk_len, const unsigned char *info,
+-                      int info_len, uint8_t okm[ ], int okm_len);
+-
+-/*
+- * HKDF HMAC-based Extract-and-Expand Key Derivation Function,
+- * RFC 5869, for all SHAs.
+- * This interface allows any length of text input to be used.
+- */
+-extern int hkdfReset(HKDFContext *context, enum SHAversion whichSha,
+-                     const unsigned char *salt, int salt_len);
+-extern int hkdfInput(HKDFContext *context, const unsigned char *ikm,
+-                     int ikm_len);
+-extern int hkdfFinalBits(HKDFContext *context, uint8_t ikm_bits,
+-                         unsigned int ikm_bit_count);
+-extern int hkdfResult(HKDFContext *context,
+-                      uint8_t prk[USHAMaxHashSize],
+-                      const unsigned char *info, int info_len,
+-                      uint8_t okm[USHAMaxHashSize], int okm_len);
+-
+ /************************ sha-private.h ************************/
+ /***************** See RFC 6234 for details. *******************/
+ /*
Index: pkgsrc/comms/asterisk15/patches/patch-include_asterisk_strings.h
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-include_asterisk_strings.h:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-include_asterisk_strings.h    Mon Jul 16 21:53:05 2018
@@ -0,0 +1,40 @@
+$NetBSD: patch-include_asterisk_strings.h,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- include/asterisk/strings.h.orig    2018-05-01 20:12:26.000000000 +0000
++++ include/asterisk/strings.h
+@@ -1168,7 +1168,7 @@ char *ast_tech_to_upper(char *dev_str),
+       }
+ 
+       for (pos = dev_str; *pos && *pos != '/'; pos++) {
+-              *pos = toupper(*pos);
++              *pos = toupper((unsigned char)*pos);
+       }
+       return dev_str;
+ }
+@@ -1244,7 +1244,7 @@ static force_inline int attribute_pure a
+       unsigned int hash = 5381;
+ 
+       while (*str) {
+-              hash = hash * 33 ^ (unsigned char) tolower(*str++);
++              hash = hash * 33 ^ tolower((unsigned char)*str++);
+       }
+ 
+       return ast_str_hash_restrict(hash);
+@@ -1265,7 +1265,7 @@ static force_inline char *attribute_pure
+       }
+ 
+       for (; *str; ++str) {
+-              *str = tolower(*str);
++              *str = tolower((unsigned char)*str);
+       }
+ 
+       return str_orig;
+@@ -1286,7 +1286,7 @@ static force_inline char *attribute_pure
+       }
+ 
+       for (; *str; ++str) {
+-              *str = toupper(*str);
++              *str = toupper((unsigned char)*str);
+       }
+ 
+       return str_orig;
Index: pkgsrc/comms/asterisk15/patches/patch-main_Makefile
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_Makefile:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_Makefile Mon Jul 16 21:53:05 2018
@@ -0,0 +1,38 @@
+$NetBSD: patch-main_Makefile,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/Makefile.orig 2018-06-11 21:21:37.000000000 +0000
++++ main/Makefile
+@@ -92,6 +92,10 @@ ifeq ($(OSARCH),OpenBSD)
+   AST_LIBS+=-lcrypto -lpthread -lm $(EDITLINE_LIB)
+ endif
+ 
++ifeq ($(OSARCH),dragonfly)
++  AST_LIBS+=-lpthread
++endif
++
+ ifeq ($(OSARCH),SunOS)
+   AST_LIBS+=-lpthread -ldl -lrt -lnsl -lsocket -lresolv
+   ASTSSL_LIBS+=-L/opt/ssl/lib -L/usr/local/ssl/lib
+@@ -236,7 +240,7 @@ libasteriskpj.o: _ASTCFLAGS+=$(PJPROJECT
+ ifeq ($(PJPROJECT_BUNDLED),yes)
+ 
+ ASTPJ_SO_VERSION=2
+-ASTPJ_LDLIBS=-L. -lasteriskpj
++ASTPJ_LDLIBS=${COMPILER_RPATH_FLAG}${PREFIX}/lib/asterisk -L. -lasteriskpj
+ 
+ PJDIR=$(ASTTOPDIR)/$(PJPROJECT_DIR)/source
+ -include $(ASTTOPDIR)/$(PJPROJECT_DIR)/build.mak
+@@ -325,10 +329,10 @@ bininstall:
+       $(INSTALL) -m 755 $(MAIN_TGT) "$(DESTDIR)$(ASTSBINDIR)/"
+ ifeq ($(AST_ASTERISKSSL),yes)
+ ifeq ($(findstring darwin,$(OSARCH)),) # not Darwin
+-      $(INSTALL) -m 755 $(ASTSSL_LIB).$(ASTSSL_SO_VERSION) "$(DESTDIR)$(ASTLIBDIR)/"
+-      $(LN) -sf $(ASTSSL_LIB).$(ASTSSL_SO_VERSION) "$(DESTDIR)$(ASTLIBDIR)/$(ASTSSL_LIB)"
++      $(INSTALL) -m 755 $(ASTSSL_LIB).$(ASTSSL_SO_VERSION) "$(DESTDIR)$(PREFIX)/lib/"
++      $(LN) -sf $(ASTSSL_LIB).$(ASTSSL_SO_VERSION) "$(DESTDIR)$(PREFIX)/lib/$(ASTSSL_LIB)"
+ else # Darwin
+-      $(INSTALL) -m 755 $(ASTSSL_LIB) "$(DESTDIR)$(ASTLIBDIR)/"
++      $(INSTALL) -m 755 $(ASTSSL_LIB) "$(DESTDIR)$(PREFIX)/lib/"
+ endif
+ endif
+ ifeq ($(PJPROJECT_BUNDLED),yes)
Index: pkgsrc/comms/asterisk15/patches/patch-main_acl.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_acl.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_acl.c    Mon Jul 16 21:53:05 2018
@@ -0,0 +1,40 @@
+$NetBSD: patch-main_acl.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/acl.c.orig    2015-10-09 21:48:48.000000000 +0000
++++ main/acl.c
+@@ -127,7 +127,7 @@ static int get_local_address(struct ast_
+       char *buf = NULL;
+       int bufsz, x;
+ #endif /* SOLARIS */
+-#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__linux__) || defined(__Darwin__) || defined(__GLIBC__)
++#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__linux__) || defined(__Darwin__) || defined(__DragonFly__) || defined(__GLIBC__)
+       struct ifaddrs *ifap, *ifaphead;
+       int rtnerr;
+       const struct sockaddr_in *sin;
+@@ -136,7 +136,7 @@ static int get_local_address(struct ast_
+       int best_score = -100;
+       memset(&best_addr, 0, sizeof(best_addr));
+ 
+-#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__linux__) || defined(__Darwin__) || defined(__GLIBC__)
++#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__linux__) || defined(__Darwin__) || defined(__DragonFly__) || defined(__GLIBC__)
+       rtnerr = getifaddrs(&ifaphead);
+       if (rtnerr) {
+               perror(NULL);
+@@ -147,7 +147,7 @@ static int get_local_address(struct ast_
+       s = socket(AF_INET, SOCK_STREAM, 0);
+ 
+       if (s > 0) {
+-#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__linux__) || defined(__Darwin__) || defined(__GLIBC__)
++#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__linux__) || defined(__Darwin__) || defined(__DragonFly__) || defined(__GLIBC__)
+               for (ifap = ifaphead; ifap; ifap = ifap->ifa_next) {
+ 
+                       if (ifap->ifa_addr && ifap->ifa_addr->sa_family == AF_INET) {
+@@ -206,7 +206,7 @@ static int get_local_address(struct ast_
+ 
+               close(s);
+       }
+-#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__linux__) || defined(__Darwin__)
++#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__linux__) || defined(__Darwin__) || defined(__DragonFly__)
+       freeifaddrs(ifaphead);
+ #endif /* BSD_OR_LINUX */
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-main_app.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_app.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_app.c    Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-main_app.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/app.c.orig    2018-05-07 17:23:29.870389813 +0000
++++ main/app.c
+@@ -3085,7 +3085,7 @@ int ast_app_parse_timelen(const char *ti
+                       break;
+               case 'm':
+               case 'M':
+-                      if (toupper(u[1]) == 'S') {
++                      if (toupper((unsigned char)u[1]) == 'S') {
+                               unit = TIMELEN_MILLISECONDS;
+                               if (u[2] != '\0') {
+                                       return -1;
Index: pkgsrc/comms/asterisk15/patches/patch-main_ast__expr2.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_ast__expr2.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_ast__expr2.c     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,16 @@
+$NetBSD: patch-main_ast__expr2.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/ast_expr2.c.orig      2018-05-07 17:49:06.171631311 +0000
++++ main/ast_expr2.c
+@@ -2545,9 +2545,9 @@ make_str (const char *s)
+               return(NULL);
+       }
+ 
+-      for (i = 0, isint = (isdigit(s[0]) || s[0] == '-' || s[0]=='.'); isint && i < strlen(s); i++)
++      for (i = 0, isint = (isdigit((unsigned char)s[0]) || s[0] == '-' || s[0]=='.'); isint && i < strlen(s); i++)
+       {
+-              if (!isdigit(s[i]) && s[i] != '.') {
++              if (!isdigit((unsigned char)s[i]) && s[i] != '.') {
+                       isint = 0;
+                       break;
+               }
Index: pkgsrc/comms/asterisk15/patches/patch-main_ast__expr2.y
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_ast__expr2.y:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_ast__expr2.y     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,16 @@
+$NetBSD: patch-main_ast__expr2.y,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/ast_expr2.y.orig      2018-05-07 17:23:43.934750158 +0000
++++ main/ast_expr2.y
+@@ -538,9 +538,9 @@ make_str (const char *s)
+               return(NULL);
+       }
+ 
+-      for (i = 0, isint = (isdigit(s[0]) || s[0] == '-' || s[0]=='.'); isint && i < strlen(s); i++)
++      for (i = 0, isint = (isdigit((unsigned char)s[0]) || s[0] == '-' || s[0]=='.'); isint && i < strlen(s); i++)
+       {
+-              if (!isdigit(s[i]) && s[i] != '.') {
++              if (!isdigit((unsigned char)s[i]) && s[i] != '.') {
+                       isint = 0;
+                       break;
+               }
Index: pkgsrc/comms/asterisk15/patches/patch-main_asterisk.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_asterisk.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_asterisk.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,49 @@
+$NetBSD: patch-main_asterisk.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/asterisk.c.orig       2018-05-01 20:12:26.000000000 +0000
++++ main/asterisk.c
+@@ -170,7 +170,7 @@
+ #include <sys/param.h>
+ #include <sys/sysctl.h>
+ #include <sys/vmmeter.h>
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) || defined(__DragonFly__)
+ #include <vm/vm_param.h>
+ #endif
+ #if defined(HAVE_SWAPCTL)
+@@ -852,7 +852,7 @@ int64_t ast_mark(int i, int startstop)
+ #define DEFINE_PROFILE_MIN_MAX_VALUES min = 0; \
+       max = prof_data->entries;\
+       if  (a->argc > 3) { /* specific entries */ \
+-              if (isdigit(a->argv[3][0])) { \
++              if (isdigit((unsigned char)a->argv[3][0])) { \
+                       min = atoi(a->argv[3]); \
+                       if (a->argc == 5 && strcmp(a->argv[4], "-")) \
+                               max = atoi(a->argv[4]); \
+@@ -2274,7 +2274,7 @@ static int remoteconsolehandler(const ch
+       if (!ast_all_zeros(s))
+               ast_el_add_history(s);
+ 
+-      while (isspace(*s)) {
++      while (isspace((unsigned char)*s)) {
+               s++;
+       }
+ 
+@@ -2286,7 +2286,7 @@ static int remoteconsolehandler(const ch
+                       ast_safe_system(getenv("SHELL") ? getenv("SHELL") : "/bin/sh");
+               ret = 1;
+       } else if ((strncasecmp(s, "quit", 4) == 0 || strncasecmp(s, "exit", 4) == 0) &&
+-          (s[4] == '\0' || isspace(s[4]))) {
++          (s[4] == '\0' || isspace((unsigned char)s[4]))) {
+               quit_handler(0, SHUTDOWN_FAST, 0);
+               ret = 1;
+       }
+@@ -2949,7 +2949,7 @@ static char *cli_complete(EditLine *edit
+       ptr = (char *)lf->cursor;
+       if (ptr) {
+               while (ptr > lf->buffer) {
+-                      if (isspace(*ptr)) {
++                      if (isspace((unsigned char)*ptr)) {
+                               ptr++;
+                               break;
+                       }
Index: pkgsrc/comms/asterisk15/patches/patch-main_astmm.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_astmm.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_astmm.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-main_astmm.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/astmm.c.orig  2015-10-09 21:48:48.000000000 +0000
++++ main/astmm.c
+@@ -1487,7 +1487,7 @@ void __ast_mm_init_phase_2(void)
+ 
+       mmlog = fopen(filename, "a+");
+       if (mmlog) {
+-              fprintf(mmlog, "%ld - New session\n", (long) time(NULL));
++              fprintf(mmlog, "%jd - New session\n", (intmax_t) time(NULL));
+               fflush(mmlog);
+       } else {
+               ast_log(LOG_ERROR, "Could not open malloc debug log file: %s\n", filename);
Index: pkgsrc/comms/asterisk15/patches/patch-main_bridge__basic.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_bridge__basic.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_bridge__basic.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-main_bridge__basic.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/bridge_basic.c.orig   2018-05-07 17:25:08.340535041 +0000
++++ main/bridge_basic.c
+@@ -167,7 +167,7 @@ static int build_dtmf_features(struct as
+       size_t number_of_missing_features = 0;
+ 
+       for (feature = features; *feature; feature++) {
+-              if (!isupper(*feature)) {
++              if (!isupper((unsigned char)*feature)) {
+                       ast_log(LOG_ERROR, "Features string '%s' rejected because it contains non-uppercase feature.\n", features);
+                       return -1;
+               }
Index: pkgsrc/comms/asterisk15/patches/patch-main_callerid.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_callerid.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_callerid.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,28 @@
+$NetBSD: patch-main_callerid.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/callerid.c.orig       2018-05-07 17:25:23.439816235 +0000
++++ main/callerid.c
+@@ -233,20 +233,20 @@ void callerid_get_dtmf(char *cidstring, 
+               for (i = 1; i < strlen(cidstring); i++) {
+                       if (cidstring[i] == 'C' || cidstring[i] == '#')
+                               break;
+-                      if (isdigit(cidstring[i]))
++                      if (isdigit((unsigned char)cidstring[i]))
+                               number[i-1] = cidstring[i];
+                       else
+                               ast_debug(1, "Unknown CID digit '%c'\n",
+                                       cidstring[i]);
+               }
+               number[i-1] = 0;
+-      } else if (isdigit(cidstring[0])) {
++      } else if (isdigit((unsigned char)cidstring[0])) {
+               /* It begins with a digit, so we parse it as a number and hope
+                * for the best */
+               ast_log(LOG_WARNING, "Couldn't detect start-character. CID "
+                       "parsing might be unreliable\n");
+               for (i = 0; i < strlen(cidstring); i++) {
+-                      if (isdigit(cidstring[i]))
++                      if (isdigit((unsigned char)cidstring[i]))
+                               number[i] = cidstring[i];
+                       else
+                               break;
Index: pkgsrc/comms/asterisk15/patches/patch-main_cdr.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_cdr.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_cdr.c    Mon Jul 16 21:53:05 2018
@@ -0,0 +1,25 @@
+$NetBSD: patch-main_cdr.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/cdr.c.orig    2015-10-09 21:48:48.000000000 +0000
++++ main/cdr.c
+@@ -2787,7 +2787,7 @@ static const char *cdr_format_var_intern
+ static void cdr_get_tv(struct timeval when, const char *fmt, char *buf, int bufsize)
+ {
+       if (fmt == NULL) {      /* raw mode */
+-              snprintf(buf, bufsize, "%ld.%06ld", (long)when.tv_sec, (long)when.tv_usec);
++              snprintf(buf, bufsize, "%jd.%06ld", (intmax_t)when.tv_sec, (long)when.tv_usec);
+       } else {
+               buf[0] = '\0';/* Ensure the buffer is initialized. */
+               if (when.tv_sec) {
+@@ -2833,9 +2833,9 @@ void ast_cdr_format_var(struct ast_cdr *
+       } else if (!strcasecmp(name, "end")) {
+               cdr_get_tv(cdr->end, raw ? NULL : fmt, workspace, workspacelen);
+       } else if (!strcasecmp(name, "duration")) {
+-              snprintf(workspace, workspacelen, "%ld", cdr->end.tv_sec != 0 ? cdr->duration : (long)ast_tvdiff_ms(ast_tvnow(), cdr->start) / 1000);
++              snprintf(workspace, workspacelen, "%jd", cdr->end.tv_sec != 0 ? cdr->duration : (intmax_t)ast_tvdiff_ms(ast_tvnow(), cdr->start) / 1000);
+       } else if (!strcasecmp(name, "billsec")) {
+-              snprintf(workspace, workspacelen, "%ld", (cdr->billsec || !ast_tvzero(cdr->end) || ast_tvzero(cdr->answer)) ? cdr->billsec : (long)ast_tvdiff_ms(ast_tvnow(), cdr->answer) / 1000);
++              snprintf(workspace, workspacelen, "%jd", (cdr->billsec || !ast_tvzero(cdr->end) || ast_tvzero(cdr->answer)) ? cdr->billsec : (intmax_t)ast_tvdiff_ms(ast_tvnow(), cdr->answer) / 1000);
+       } else if (!strcasecmp(name, "disposition")) {
+               if (raw) {
+                       snprintf(workspace, workspacelen, "%ld", cdr->disposition);
Index: pkgsrc/comms/asterisk15/patches/patch-main_cel.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_cel.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_cel.c    Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-main_cel.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/cel.c.orig    2015-10-09 21:48:48.000000000 +0000
++++ main/cel.c
+@@ -790,7 +790,7 @@ struct ast_channel *ast_cel_fabricate_ch
+       }
+ 
+       if (ast_strlen_zero(cfg->general->date_format)) {
+-              snprintf(timebuf, sizeof(timebuf), "%ld.%06ld", (long) record.event_time.tv_sec,
++              snprintf(timebuf, sizeof(timebuf), "%jd.%06ld", (intmax_t) record.event_time.tv_sec,
+                               (long) record.event_time.tv_usec);
+       } else {
+               struct ast_tm tm;
Index: pkgsrc/comms/asterisk15/patches/patch-main_cli.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_cli.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_cli.c    Mon Jul 16 21:53:05 2018
@@ -0,0 +1,22 @@
+$NetBSD: patch-main_cli.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/cli.c.orig    2018-05-07 17:26:06.732494913 +0000
++++ main/cli.c
+@@ -2440,7 +2440,7 @@ static char *parse_args(const char *s, i
+       cur = duplicate;
+ 
+       /* Remove leading spaces from the command */
+-      while (isspace(*s)) {
++      while (isspace((unsigned char)*s)) {
+               cur++;
+               s++;
+       }
+@@ -2627,7 +2627,7 @@ struct ast_vector_string *ast_cli_comple
+                       continue;
+               }
+ 
+-              while (i < max_equal && toupper(prevstr[i]) == toupper(retstr[i])) {
++              while (i < max_equal && toupper((unsigned char)prevstr[i]) == toupper((unsigned char)retstr[i])) {
+                       i++;
+               }
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-main_conversions.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_conversions.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_conversions.c    Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-main_conversions.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/conversions.c.orig    2018-05-07 17:26:43.897798394 +0000
++++ main/conversions.c
+@@ -33,7 +33,7 @@
+ static int str_is_negative(const char *str)
+ {
+       /* Ignore any preceding white space */
+-      while (isspace(*str) && *++str);
++      while (isspace((unsigned char)*str) && *++str);
+       return *str == '-';
+ }
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-main_dns__naptr.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_dns__naptr.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_dns__naptr.c     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,40 @@
+$NetBSD: patch-main_dns__naptr.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/dns_naptr.c.orig      2018-05-07 17:26:59.602834230 +0000
++++ main/dns_naptr.c
+@@ -78,7 +78,7 @@ static enum flags_result interpret_flags
+                               *flags == 'a' || *flags == 'A' ||
+                               *flags == 'u' || *flags == 'U') {
+                       return FLAGS_TERMINAL;
+-              } else if (!isalnum(*flags)) {
++              } else if (!isalnum((unsigned char)*flags)) {
+                       return FLAGS_INVALID;
+               } else {
+                       return FLAGS_UNKNOWN;
+@@ -90,7 +90,7 @@ static enum flags_result interpret_flags
+        * S, A, U, and P flags together.
+        */
+       for (i = 0; i < flags_size; ++i) {
+-              if (!isalnum(flags[i])) {
++              if (!isalnum((unsigned char)flags[i])) {
+                       return FLAGS_INVALID;
+               } else if (flags[i] == 's' || flags[i] == 'S') {
+                       if (known_flag_found && known_flag_found != 's') {
+@@ -146,7 +146,7 @@ static int services_invalid(const char *
+               uint8_t current_size = plus_pos ? plus_pos - current_pos : end_of_services - current_pos;
+               int i;
+ 
+-              if (!isalpha(current_pos[0])) {
++              if (!isalpha((unsigned char)current_pos[0])) {
+                       return -1;
+               }
+ 
+@@ -155,7 +155,7 @@ static int services_invalid(const char *
+               }
+ 
+               for (i = 1; i < current_size; ++i) {
+-                      if (!isalnum(current_pos[i])) {
++                      if (!isalnum((unsigned char)current_pos[i])) {
+                               return -1;
+                       }
+               }
Index: pkgsrc/comms/asterisk15/patches/patch-main_enum.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_enum.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_enum.c   Mon Jul 16 21:53:05 2018
@@ -0,0 +1,76 @@
+$NetBSD: patch-main_enum.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/enum.c.orig   2018-05-07 17:27:38.736672469 +0000
++++ main/enum.c
+@@ -218,7 +218,7 @@ static int blr_txt(const char *cc, const
+       ast_mutex_unlock(&enumlock);
+ 
+       for (p2 = (char *) cc + strlen(cc) - 1; p2 >= cc; p2--) {
+-              if (isdigit(*p2)) {
++              if (isdigit((unsigned char)*p2)) {
+                       *p1++ = *p2;
+                       *p1++ = '.';
+               }
+@@ -347,7 +347,7 @@ static int blr_ebl(const char *cc, const
+       ast_mutex_unlock(&enumlock);
+ 
+       for (p2 = (char *) cc + strlen(cc) - 1; p2 >= cc; p2--) {
+-              if (isdigit(*p2)) {
++              if (isdigit((unsigned char)*p2)) {
+                       *p1++ = *p2;
+                       *p1++ = '.';
+               }
+@@ -456,7 +456,7 @@ static int parse_naptr(unsigned char *ds
+               naptrinput, flags, services, regexp, repl);
+ 
+ 
+-      if (tolower(flags[0]) != 'u') {
++      if (tolower((unsigned char)flags[0]) != 'u') {
+               ast_log(LOG_WARNING, "NAPTR Flag must be 'U' or 'u'.\n");
+               return -1;
+       }
+@@ -539,7 +539,7 @@ static int parse_naptr(unsigned char *ds
+        * beginning and ending indexes of the substring to insert as the backreference.
+        * if no backreference is found, continue copying the subst into tempdst */
+       while (*subst && (d_len > 0)) {
+-              if ((subst[0] == '\\') && isdigit(subst[1])) { /* is this character the beginning of a backreference */
++              if ((subst[0] == '\\') && isdigit((unsigned char)subst[1])) { /* is this character the beginning of a backreference */
+                       matchindex = (int) (subst[1] - '0');
+                       if (matchindex >= ARRAY_LEN(pmatch)) {
+                               ast_log(LOG_WARNING, "Error during regex substitution. Invalid pmatch index.\n");
+@@ -561,7 +561,7 @@ static int parse_naptr(unsigned char *ds
+                               ast_log(LOG_WARNING, "Error during regex substitution. Invalid backreference index.\n");
+                               return -1;
+                       }
+-              } else if (isprint(*subst)) {
++              } else if (isprint((unsigned char)*subst)) {
+                       *d++ = *subst++;
+                       d_len--;
+               } else {
+@@ -818,7 +818,7 @@ int ast_get_enum(struct ast_channel *cha
+ 
+               p1 = middle + strlen(middle);
+               for (p2 = (char *) number + sdl - 1; p2 >= number; p2--) {
+-                      if (isdigit(*p2)) {
++                      if (isdigit((unsigned char)*p2)) {
+                               *p1++ = *p2;
+                               *p1++ = '.';
+                       }
+@@ -837,7 +837,7 @@ int ast_get_enum(struct ast_channel *cha
+       /* flip left into domain */
+       p1 = domain;
+       for (p2 = left + strlen(left); p2 >= left; p2--) {
+-              if (isdigit(*p2)) {
++              if (isdigit((unsigned char)*p2)) {
+                       *p1++ = *p2;
+                       *p1++ = '.';
+               }
+@@ -949,7 +949,7 @@ int ast_get_txt(struct ast_channel *chan
+       }
+ 
+       while (pos >= 0) {
+-              if (isdigit(number[pos])) {
++              if (isdigit((unsigned char)number[pos])) {
+                       tmp[newpos++] = number[pos];
+                       tmp[newpos++] = '.';
+               }
Index: pkgsrc/comms/asterisk15/patches/patch-main_features.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_features.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_features.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,20 @@
+$NetBSD: patch-main_features.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/features.c.orig       2018-05-07 17:28:38.342590540 +0000
++++ main/features.c
+@@ -387,13 +387,13 @@ static void set_bridge_features_on_confi
+       for (feature = features; *feature; feature++) {
+               struct ast_flags *party;
+ 
+-              if (isupper(*feature)) {
++              if (isupper((unsigned char)*feature)) {
+                       party = &config->features_caller;
+               } else {
+                       party = &config->features_callee;
+               }
+ 
+-              switch (tolower(*feature)) {
++              switch (tolower((unsigned char)*feature)) {
+               case 't' :
+                       ast_set_flag(party, AST_FEATURE_REDIRECT);
+                       break;
Index: pkgsrc/comms/asterisk15/patches/patch-main_http.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_http.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_http.c   Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-main_http.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/http.c.orig   2015-10-09 21:48:48.000000000 +0000
++++ main/http.c
+@@ -304,7 +304,7 @@ static int static_callback(struct ast_tc
+       }
+ 
+       /* make "Etag:" http header value */
+-      snprintf(etag, sizeof(etag), "\"%ld\"", (long)st.st_mtime);
++      snprintf(etag, sizeof(etag), "\"%jd\"", (intmax_t)st.st_mtime);
+ 
+       /* make "Last-Modified:" http header value */
+       tv.tv_sec = st.st_mtime;
Index: pkgsrc/comms/asterisk15/patches/patch-main_indications.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_indications.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_indications.c    Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-main_indications.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/indications.c.orig    2018-05-07 17:29:02.579091198 +0000
++++ main/indications.c
+@@ -904,7 +904,7 @@ static void store_tone_zone_ring_cadence
+ 
+               ring = ast_strip(ring);
+ 
+-              if (!isdigit(ring[0]) || (val = atoi(ring)) == -1) {
++              if (!isdigit((unsigned char)ring[0]) || (val = atoi(ring)) == -1) {
+                       ast_log(LOG_WARNING, "Invalid ringcadence given '%s'.\n", ring);
+                       continue;
+               }
Index: pkgsrc/comms/asterisk15/patches/patch-main_logger.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_logger.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_logger.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,22 @@
+$NetBSD: patch-main_logger.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/logger.c.orig 2015-10-09 21:48:48.000000000 +0000
++++ main/logger.c
+@@ -674,7 +674,7 @@ void ast_queue_log(const char *queuename
+ 
+       if (qlog) {
+               va_start(ap, fmt);
+-              qlog_len = snprintf(qlog_msg, sizeof(qlog_msg), "%ld|%s|%s|%s|%s|", (long)time(NULL), callid, queuename, agent, event);
++              qlog_len = snprintf(qlog_msg, sizeof(qlog_msg), "%jd|%s|%s|%s|%s|", (intmax_t)time(NULL), callid, queuename, agent, event);
+               vsnprintf(qlog_msg + qlog_len, sizeof(qlog_msg) - qlog_len, fmt, ap);
+               va_end(ap);
+               AST_RWLIST_RDLOCK(&logchannels);
+@@ -714,7 +714,7 @@ static int rotate_file(const char *filen
+               }
+               break;
+       case TIMESTAMP:
+-              snprintf(new, sizeof(new), "%s.%ld", filename, (long)time(NULL));
++              snprintf(new, sizeof(new), "%s.%jd", filename, (intmax_t)time(NULL));
+               if (rename(filename, new)) {
+                       fprintf(stderr, "Unable to rename file '%s' to '%s'\n", filename, new);
+                       res = -1;
Index: pkgsrc/comms/asterisk15/patches/patch-main_manager.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_manager.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_manager.c        Mon Jul 16 21:53:05 2018
@@ -0,0 +1,83 @@
+$NetBSD: patch-main_manager.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/manager.c.orig        2018-05-01 20:12:26.000000000 +0000
++++ main/manager.c
+@@ -2639,7 +2639,7 @@ static char *handle_showmanconn(struct a
+       struct mansession_session *session;
+       time_t now = time(NULL);
+ #define HSMCONN_FORMAT1 "  %-15.15s  %-55.55s  %-10.10s  %-10.10s  %-8.8s  %-8.8s  %-5.5s  %-5.5s\n"
+-#define HSMCONN_FORMAT2 "  %-15.15s  %-55.55s  %-10d  %-10d  %-8d  %-8d  %-5.5d  %-5.5d\n"
++#define HSMCONN_FORMAT2 "  %-15.15s  %-55.55s  %-10jd  %-10jd  %-8d  %-8d  %-5.5d  %-5.5d\n"
+       int count = 0;
+       struct ao2_iterator i;
+ 
+@@ -2665,8 +2665,8 @@ static char *handle_showmanconn(struct a
+                       ao2_lock(session);
+                       ast_cli(a->fd, HSMCONN_FORMAT2, session->username,
+                               ast_sockaddr_stringify_addr(&session->addr),
+-                              (int) (session->sessionstart),
+-                              (int) (now - session->sessionstart),
++                              (intmax_t) (session->sessionstart),
++                              (intmax_t) (now - session->sessionstart),
+                               session->stream ? ast_iostream_get_fd(session->stream) : -1,
+                               session->inuse,
+                               session->readperm,
+@@ -3510,9 +3510,9 @@ static int action_ping(struct mansession
+       astman_append(
+               s,
+               "Ping: Pong\r\n"
+-              "Timestamp: %ld.%06lu\r\n"
++              "Timestamp: %jd.%06lu\r\n"
+               "\r\n",
+-              (long) now.tv_sec, (unsigned long) now.tv_usec);
++              (intmax_t) now.tv_sec, (unsigned long) now.tv_usec);
+       return 0;
+ }
+ 
+@@ -4621,7 +4621,7 @@ static void generate_status(struct manse
+               "DNID: %s\r\n"
+               "EffectiveConnectedLineNum: %s\r\n"
+               "EffectiveConnectedLineName: %s\r\n"
+-              "TimeToHangup: %ld\r\n"
++              "TimeToHangup: %jd\r\n"
+               "BridgeID: %s\r\n"
+               "Application: %s\r\n"
+               "Data: %s\r\n"
+@@ -4641,7 +4641,7 @@ static void generate_status(struct manse
+               S_OR(ast_channel_dialed(chan)->number.str, ""),
+               S_COR(effective_id.number.valid, effective_id.number.str, "<unknown>"),
+               S_COR(effective_id.name.valid, effective_id.name.str, "<unknown>"),
+-              (long)ast_channel_whentohangup(chan)->tv_sec,
++              (intmax_t)ast_channel_whentohangup(chan)->tv_sec,
+               bridge ? bridge->uniqueid : "",
+               ast_channel_appl(chan),
+               ast_channel_data(chan),
+@@ -6920,8 +6920,8 @@ static int __attribute__((format(printf,
+       if (timestampevents) {
+               now = ast_tvnow();
+               ast_str_append(&buf, 0,
+-                      "Timestamp: %ld.%06lu\r\n",
+-                      (long)now.tv_sec, (unsigned long) now.tv_usec);
++                      "Timestamp: %jd.%06lu\r\n",
++                      (intmax_t)now.tv_sec, (unsigned long) now.tv_usec);
+       }
+       if (manager_debug) {
+               static int seq;
+@@ -7433,7 +7433,7 @@ static void xml_copy_escape(struct ast_s
+                       }
+               }
+ 
+-              if ( (mode & 2) && !isalnum(*src)) {
++              if ( (mode & 2) && !isalnum((unsigned char)*src)) {
+                       *dst++ = '_';
+                       space--;
+                       continue;
+@@ -7466,7 +7466,7 @@ static void xml_copy_escape(struct ast_s
+                       break;
+ 
+               default:
+-                      *dst++ = mode ? tolower(*src) : *src;
++                      *dst++ = mode ? tolower((unsigned char)*src) : *src;
+                       space--;
+               }
+       }
Index: pkgsrc/comms/asterisk15/patches/patch-main_netsock.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_netsock.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_netsock.c        Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-main_netsock.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/netsock.c.orig        2018-05-01 20:12:26.000000000 +0000
++++ main/netsock.c
+@@ -32,7 +32,7 @@
+ #include "asterisk.h"
+ 
+ #if !defined (__linux__) && !defined (__GNU__)
+-#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__Darwin__) || defined(__GLIBC__)
++#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__Darwin__) || defined(__DragonFly__) || defined(__GLIBC__)
+ #include <net/if_dl.h>
+ #endif
+ #endif
Index: pkgsrc/comms/asterisk15/patches/patch-main_pbx.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_pbx.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_pbx.c    Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-main_pbx.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/pbx.c.orig    2016-04-20 10:46:18.000000000 +0000
++++ main/pbx.c
+@@ -7973,7 +7973,7 @@ static int testtime_write(struct ast_cha
+       sscanf(remainder, "%79s", timezone);
+       tv = ast_mktime(&tm, S_OR(timezone, NULL));
+ 
+-      snprintf(result, sizeof(result), "%ld", (long) tv.tv_sec);
++      snprintf(result, sizeof(result), "%jd", (intmax_t) tv.tv_sec);
+       pbx_builtin_setvar_helper(chan, "__TESTTIME", result);
+       return 0;
+ }
Index: pkgsrc/comms/asterisk15/patches/patch-main_pbx__builtins.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_pbx__builtins.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_pbx__builtins.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,33 @@
+$NetBSD: patch-main_pbx__builtins.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/pbx_builtins.c.orig   2018-05-01 20:12:26.000000000 +0000
++++ main/pbx_builtins.c
+@@ -807,7 +807,7 @@ static int pbx_builtin_setamaflags(struc
+       }
+       /* Copy the AMA Flags as specified */
+       ast_channel_lock(chan);
+-      if (isdigit(data[0])) {
++      if (isdigit((unsigned char)data[0])) {
+               int amaflags;
+               if (sscanf(data, "%30d", &amaflags) != 1) {
+                       ast_log(AST_LOG_WARNING, "Unable to set AMA flags on channel %s\n", ast_channel_name(chan));
+@@ -877,7 +877,7 @@ static int pbx_builtin_gotoiftime(struct
+       struct ast_timing timing;
+       const char *ctime;
+       struct timeval tv = ast_tvnow();
+-      long timesecs;
++      int64_t timesecs;
+ 
+       if (!chan) {
+               ast_log(LOG_WARNING, "GotoIfTime requires a channel on which to operate\n");
+@@ -892,8 +892,8 @@ static int pbx_builtin_gotoiftime(struct
+       ts = s = ast_strdupa(data);
+ 
+       ast_channel_lock(chan);
+-      if ((ctime = pbx_builtin_getvar_helper(chan, "TESTTIME")) && sscanf(ctime, "%ld", &timesecs) == 1) {
+-              tv.tv_sec = timesecs;
++      if ((ctime = pbx_builtin_getvar_helper(chan, "TESTTIME")) && sscanf(ctime, "%" SCNd64, &timesecs) == 1) {
++              tv.tv_sec = (time_t)timesecs;
+       } else if (ctime) {
+               ast_log(LOG_WARNING, "Using current time to evaluate\n");
+               /* Reset when unparseable */
Index: pkgsrc/comms/asterisk15/patches/patch-main_pbx__timing.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_pbx__timing.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_pbx__timing.c    Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-main_pbx__timing.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/pbx_timing.c.orig     2018-05-07 17:30:09.949079213 +0000
++++ main/pbx_timing.c
+@@ -137,7 +137,7 @@ static void get_timerange(struct ast_tim
+               }
+               *endpart++ = '\0';
+               /* why skip non digits? Mostly to skip spaces */
+-              while (*endpart && !isdigit(*endpart)) {
++              while (*endpart && !isdigit((unsigned char)*endpart)) {
+                       endpart++;
+               }
+               if (!*endpart) {
Index: pkgsrc/comms/asterisk15/patches/patch-main_sched.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_sched.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_sched.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,27 @@
+$NetBSD: patch-main_sched.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/sched.c.orig  2018-05-01 20:12:26.000000000 +0000
++++ main/sched.c
+@@ -498,7 +498,7 @@ static int sched_settime(struct timeval 
+               ast_assert(0);
+       }
+ 
+-      /*ast_debug(1, "TV -> %lu,%lu\n", tv->tv_sec, tv->tv_usec);*/
++      /*ast_debug(1, "TV -> %jd,%lu\n", (intmax_t)tv->tv_sec, tv->tv_usec);*/
+       if (ast_tvzero(*t))     /* not supplied, default to now */
+               *t = now;
+       *t = ast_tvadd(*t, ast_samp2tv(when, 1000));
+@@ -732,11 +732,11 @@ void ast_sched_dump(struct ast_sched_con
+               struct timeval delta;
+               q = ast_heap_peek(con->sched_heap, x);
+               delta = ast_tvsub(q->when, when);
+-              ast_log(LOG_DEBUG, "|%.4d | %-15p | %-15p | %.6ld : %.6ld |\n",
++              ast_log(LOG_DEBUG, "|%.4d | %-15p | %-15p | %.6jd : %.6ld |\n",
+                       q->sched_id->id,
+                       q->callback,
+                       q->data,
+-                      (long)delta.tv_sec,
++                      (intmax_t)delta.tv_sec,
+                       (long int)delta.tv_usec);
+       }
+       ast_mutex_unlock(&con->lock);
Index: pkgsrc/comms/asterisk15/patches/patch-main_stdtime_localtime.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_stdtime_localtime.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_stdtime_localtime.c      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,147 @@
+$NetBSD: patch-main_stdtime_localtime.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/stdtime/localtime.c.orig      2018-05-01 20:12:26.000000000 +0000
++++ main/stdtime/localtime.c
+@@ -65,6 +65,10 @@
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #endif
++#ifdef __sun
++#include <time.h>
++#include <xlocale.h>
++#endif
+ 
+ #include "private.h"
+ #include "tzfile.h"
+@@ -74,6 +78,7 @@
+ #include "asterisk/localtime.h"
+ #include "asterisk/strings.h"
+ #include "asterisk/linkedlists.h"
++#include "asterisk/autoconfig.h"
+ #include "asterisk/utils.h"
+ #include "asterisk/test.h"
+ 
+@@ -310,7 +315,7 @@ static struct state *      sstate_alloc(void)
+ static void           sstate_free(struct state *p);
+ 
+ static AST_LIST_HEAD_STATIC(zonelist, state);
+-#if defined(HAVE_NEWLOCALE) && defined(HAVE_USELOCALE)
++#if defined(HAVE_NEWLOCALE) && (defined(HAVE_USELOCALE) || HAVE_STRFTIME_L || HAVE_STRPTIME_L)
+ static AST_LIST_HEAD_STATIC(localelist, locale_entry);
+ #endif
+ 
+@@ -731,7 +736,7 @@ static void *notify_daemon(void *data)
+                       if (st.st_mtime > cur->mtime[0] || lst.st_mtime > cur->mtime[1]) {
+ #ifdef TEST_FRAMEWORK
+                               if (test) {
+-                                      ast_test_status_update(test, "Removing cached TZ entry '%s' because underlying file changed. (%ld != %ld) or (%ld != %ld)\n", name, st.st_mtime, cur->mtime[0], 
lst.st_mtime, cur->mtime[1]);
++                                      ast_test_status_update(test, "Removing cached TZ entry '%s' because underlying file changed. (%jd != %jd) or (%jd != %jd)\n", name, (intmax_t)st.st_mtime, 
(intmax_t)cur->mtime[0], (intmax_t)lst.st_mtime, (intmax_t)cur->mtime[1]);
+                               } else
+ #endif
+                               {
+@@ -2362,7 +2367,8 @@ struct timeval ast_mktime(struct ast_tm 
+       return time1(tmp, localsub, 0L, sp);
+ }
+ 
+-#if defined(HAVE_NEWLOCALE) && defined(HAVE_USELOCALE)
++#if defined(HAVE_NEWLOCALE) && (defined(HAVE_USELOCALE) || HAVE_STRFTIME_L || HAVE_STRPTIME_L)
++#if defined HAVE_USELOCALE
+ static struct locale_entry *find_by_locale(locale_t locale)
+ {
+       struct locale_entry *cur;
+@@ -2373,6 +2379,7 @@ static struct locale_entry *find_by_loca
+       }
+       return NULL;
+ }
++#endif
+ 
+ static struct locale_entry *find_by_name(const char *name)
+ {
+@@ -2385,6 +2392,23 @@ static struct locale_entry *find_by_name
+       return NULL;
+ }
+ 
++#if HAVE_STRFTIME_L || HAVE_STRPTIME_L
++static locale_t ast_getlocale(const char *locale)
++{
++      struct locale_entry *cur;
++
++      AST_LIST_LOCK(&localelist);
++      if ((cur = find_by_name(locale)) == NULL) {
++              cur->locale = newlocale(LC_ALL_MASK, locale, NULL);
++              strcpy(cur->name, locale); /* SAFE */
++              AST_LIST_INSERT_TAIL(&localelist, cur, list);
++      }
++      AST_LIST_UNLOCK(&localelist);
++      return cur->locale;
++}
++#endif
++
++#if !HAVE_STRFTIME_L || !HAVE_STRPTIME_L
+ static const char *store_by_locale(locale_t prevlocale)
+ {
+       struct locale_entry *cur;
+@@ -2442,6 +2466,7 @@ const char *ast_setlocale(const char *lo
+       AST_LIST_UNLOCK(&localelist);
+       return store_by_locale(prevlocale);
+ }
++#endif
+ #else
+ const char *ast_setlocale(const char *unused)
+ {
+@@ -2455,7 +2480,9 @@ int ast_strftime_locale(char *buf, size_
+       char *format = ast_calloc(1, fmtlen), *fptr = format, *newfmt;
+       int decimals = -1, i, res;
+       long fraction;
++#if !HAVE_STRFTIME_L
+       const char *prevlocale;
++#endif
+ 
+       buf[0] = '\0';/* Ensure the buffer is initialized. */
+       if (!format) {
+@@ -2510,6 +2537,14 @@ defcase:        *fptr++ = *tmp;
+       }
+       *fptr = '\0';
+ #undef strftime
++#if HAVE_STRFTIME_L
++      if (locale) {
++              locale_t l = ast_getlocale(locale);
++              res = (int)strftime_l(buf, len, format, (struct tm *)tm, l);
++      } else {
++              res = (int)strftime(buf, len, format, (struct tm *)tm);
++      }
++#else
+       if (locale) {
+               prevlocale = ast_setlocale(locale);
+       }
+@@ -2517,6 +2552,7 @@ defcase: *fptr++ = *tmp;
+       if (locale) {
+               ast_setlocale(prevlocale);
+       }
++#endif
+       ast_free(format);
+       return res;
+ }
+@@ -2530,11 +2566,22 @@ char *ast_strptime_locale(const char *s,
+ {
+       struct tm tm2 = { 0, };
+       char *res;
++#if !HAVE_STRPTIME_L
+       const char *prevlocale;
++#endif
+ 
++#if HAVE_STRPTIME_L
++      if (locale) {
++              locale_t l = ast_getlocale(locale);
++              res = strptime_l(s, format, &tm2, l);
++      } else {
++              res = strptime(s, format, &tm2);
++      }
++#else
+       prevlocale = ast_setlocale(locale);
+       res = strptime(s, format, &tm2);
+       ast_setlocale(prevlocale);
++#endif
+       /* ast_time and tm are not the same size - tm is a subset of
+        * ast_time.  Hence, the size of tm needs to be used for the
+        * memcpy
Index: pkgsrc/comms/asterisk15/patches/patch-main_tdd.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_tdd.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_tdd.c    Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-main_tdd.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/tdd.c.orig    2018-05-07 17:30:59.571540797 +0000
++++ main/tdd.c
+@@ -313,7 +313,7 @@ int tdd_generate(struct tdd_state *tdd, 
+               if ( (tdd->charnum++) % 72 == 0)
+                       PUT_TDD(tdd->mode ? 27 /* FIGS */ : 31 /* LTRS */);
+ 
+-              c = toupper(str[x]);
++              c = toupper((unsigned char)str[x]);
+ #if   0
+               printf("%c",c); fflush(stdout);
+ #endif
Index: pkgsrc/comms/asterisk15/patches/patch-main_test.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_test.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_test.c   Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-main_test.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/test.c.orig   2015-10-09 21:48:48.000000000 +0000
++++ main/test.c
+@@ -975,7 +975,7 @@ static char *test_cli_generate_results(s
+                       if (!(buf = ast_str_create(256))) {
+                               return NULL;
+                       }
+-                      ast_str_set(&buf, 0, "%s/asterisk_test_results-%ld.%s", ast_config_AST_LOG_DIR, (long) time.tv_sec, type);
++                      ast_str_set(&buf, 0, "%s/asterisk_test_results-%jd.%s", ast_config_AST_LOG_DIR, (intmax_t) time.tv_sec, type);
+ 
+                       file = ast_str_buffer(buf);
+               }
Index: pkgsrc/comms/asterisk15/patches/patch-main_utils.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-main_utils.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-main_utils.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,60 @@
+$NetBSD: patch-main_utils.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- main/utils.c.orig  2018-05-01 20:12:26.000000000 +0000
++++ main/utils.c
+@@ -39,6 +39,10 @@
+ #elif defined(HAVE_SYS_THR_H)
+ #include <sys/thr.h>
+ #endif
++#if defined(HAVE_GETIFADDRS)
++#include <ifaddrs.h>
++#include <net/if_dl.h>
++#endif
+ 
+ #include "asterisk/network.h"
+ #include "asterisk/ast_version.h"
+@@ -204,7 +208,7 @@ struct hostent *ast_gethostbyname(const 
+       while (s && *s) {
+               if (*s == '.')
+                       dots++;
+-              else if (!isdigit(*s))
++              else if (!isdigit((unsigned char)*s))
+                       break;
+               s++;
+       }
+@@ -612,7 +616,7 @@ const char *ast_inet_ntoa(struct in_addr
+ 
+ static int dev_urandom_fd = -1;
+ 
+-#ifndef __linux__
++#if !defined(__linux__) && !defined(__DragonFly__)
+ #undef pthread_create /* For ast_pthread_create function only */
+ #endif /* !__linux__ */
+ 
+@@ -1820,13 +1824,13 @@ int ast_false(const char *s)
+ static struct timeval tvfix(struct timeval a)
+ {
+       if (a.tv_usec >= ONE_MILLION) {
+-              ast_log(LOG_WARNING, "warning too large timestamp %ld.%ld\n",
+-                      (long)a.tv_sec, (long int) a.tv_usec);
++              ast_log(LOG_WARNING, "warning too large timestamp %jd.%ld\n",
++                      (intmax_t)a.tv_sec, (long int) a.tv_usec);
+               a.tv_sec += a.tv_usec / ONE_MILLION;
+               a.tv_usec %= ONE_MILLION;
+       } else if (a.tv_usec < 0) {
+-              ast_log(LOG_WARNING, "warning negative timestamp %ld.%ld\n",
+-                      (long)a.tv_sec, (long int) a.tv_usec);
++              ast_log(LOG_WARNING, "warning negative timestamp %jd.%ld\n",
++                      (intmax_t)a.tv_sec, (long int) a.tv_usec);
+               a.tv_usec = 0;
+       }
+       return a;
+@@ -1986,7 +1990,7 @@ char *ast_to_camel_case_delim(const char
+ 
+       while (front) {
+               size = strlen(front);
+-              *front = toupper(*front);
++              *front = toupper((unsigned char)*front);
+               ast_copy_string(buf, front, size + 1);
+               buf += size;
+               front = strtok_r(NULL, delim, &back);
Index: pkgsrc/comms/asterisk15/patches/patch-menuselect_menuselect.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-menuselect_menuselect.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-menuselect_menuselect.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,22 @@
+$NetBSD: patch-menuselect_menuselect.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- menuselect/menuselect.c.orig       2018-05-07 17:13:49.312815875 +0000
++++ menuselect/menuselect.c
+@@ -1461,7 +1461,7 @@ static int generate_makedeps_file(void)
+                               }
+ 
+                               for (c = dep->name; *c; c++)
+-                                      fputc(toupper(*c), f);
++                                      fputc(toupper((unsigned char)*c), f);
+                               fputc(' ', f);
+                       }
+                       AST_LIST_TRAVERSE(&mem->uses, use, list) {
+@@ -1477,7 +1477,7 @@ static int generate_makedeps_file(void)
+                               }
+ 
+                               for (c = use->name; *c; c++)
+-                                      fputc(toupper(*c), f);
++                                      fputc(toupper((unsigned char)*c), f);
+                               fputc(' ', f);
+                       }
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-pbx_pbx__config.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-pbx_pbx__config.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-pbx_pbx__config.c     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,22 @@
+$NetBSD: patch-pbx_pbx__config.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- pbx/pbx_config.c.orig      2018-05-07 17:17:05.322793470 +0000
++++ pbx/pbx_config.c
+@@ -237,7 +237,7 @@ static const char *skip_words(const char
+ {
+       int in_blank = 0;
+       for (;n && *p; p++) {
+-              if (isblank(*p) /* XXX order is important */ && !in_blank) {
++              if (isblank((unsigned char)*p) /* XXX order is important */ && !in_blank) {
+                       n--;    /* one word is gone */
+                       in_blank = 1;
+               } else if (/* !is_blank(*p), we know already, && */ in_blank) {
+@@ -447,7 +447,7 @@ static char *handle_cli_dialplan_remove_
+               if (!strcmp("hint", c))
+                       removing_priority = PRIORITY_HINT;
+               else {
+-                      while (*c && isdigit(*c))
++                      while (*c && isdigit((unsigned char)*c))
+                               c++;
+                       if (*c) { /* non-digit in string */
+                               ast_cli(a->fd, "Invalid priority '%s'\n", a->argv[4]);
Index: pkgsrc/comms/asterisk15/patches/patch-pbx_pbx__dundi.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-pbx_pbx__dundi.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-pbx_pbx__dundi.c      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,40 @@
+$NetBSD: patch-pbx_pbx__dundi.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- pbx/pbx_dundi.c.orig       2015-10-09 21:48:48.000000000 +0000
++++ pbx/pbx_dundi.c
+@@ -47,7 +47,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revisi
+ #include <pthread.h>
+ #include <net/if.h>
+ 
+-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__Darwin__)
++#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__Darwin__) || defined(__DragonFly__)
+ #include <net/if_dl.h>
+ #include <ifaddrs.h>
+ #include <signal.h>
+@@ -885,7 +885,7 @@ static int cache_save_hint(dundi_eid *ei
+ 
+       time(&timeout);
+       timeout += expiration;
+-      snprintf(data, sizeof(data), "%ld|", (long)(timeout));
++      snprintf(data, sizeof(data), "%jd|", (intmax_t)(timeout));
+ 
+       ast_db_put("dundi/cache", key1, data);
+       ast_debug(1, "Caching hint at '%s'\n", key1);
+@@ -921,7 +921,7 @@ static int cache_save(dundi_eid *eidpeer
+       /* Build request string */
+       time(&timeout);
+       timeout += expiration;
+-      snprintf(data, sizeof(data), "%ld|", (long)(timeout));
++      snprintf(data, sizeof(data), "%jd|", (intmax_t)(timeout));
+       for (x=start;x<req->respcount;x++) {
+               /* Skip anything with an illegal pipe in it */
+               if (strchr(req->dr[x].dest, '|'))
+@@ -2166,7 +2166,7 @@ static void check_password(void)
+ 
+       time(&now);
+ #if 0
+-      printf("%ld/%ld\n", now, rotatetime);
++      printf("%jd/%jd\n", now, rotatetime);
+ #endif
+       if ((now - rotatetime) >= 0) {
+               /* Time to rotate keys */
Index: pkgsrc/comms/asterisk15/patches/patch-res_ael_pval.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_ael_pval.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_ael_pval.c        Mon Jul 16 21:53:05 2018
@@ -0,0 +1,41 @@
+$NetBSD: patch-res_ael_pval.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/ael/pval.c.orig        2018-05-07 17:37:44.116772314 +0000
++++ res/ael/pval.c
+@@ -855,7 +855,7 @@ static void check_timerange(pval *p)
+       }
+       *e = '\0';
+       e++;
+-      while (*e && !isdigit(*e))
++      while (*e && !isdigit((unsigned char)*e))
+               e++;
+       if (!*e) {
+               ast_log(LOG_WARNING, "Warning: file %s, line %d-%d: The time range format (%s) is missing the end time!\n",
+@@ -3531,11 +3531,11 @@ static int gen_prios(struct ael_extensio
+                               for_init->appargs = strdup(buf2);
+                       } else {
+                               strp2 = p->u1.for_init;
+-                              while (*strp2 && isspace(*strp2))
++                              while (*strp2 && isspace((unsigned char)*strp2))
+                                       strp2++;
+                               if (*strp2 == '&') { /* itsa macro call */
+                                       char *strp3 = strp2+1;
+-                                      while (*strp3 && isspace(*strp3))
++                                      while (*strp3 && isspace((unsigned char)*strp3))
+                                               strp3++;
+                                       strcpy(buf2, strp3);
+                                       strp3 = strchr(buf2,'(');
+@@ -3581,11 +3581,11 @@ static int gen_prios(struct ael_extensio
+                               for_inc->app = strdup("MSet");
+                       } else {
+                               strp2 = p->u3.for_inc;
+-                              while (*strp2 && isspace(*strp2))
++                              while (*strp2 && isspace((unsigned char)*strp2))
+                                       strp2++;
+                               if (*strp2 == '&') { /* itsa macro call  */
+                                       char *strp3 = strp2+1;
+-                                      while (*strp3 && isspace(*strp3))
++                                      while (*strp3 && isspace((unsigned char)*strp3))
+                                               strp3++;
+                                       strcpy(buf2, strp3);
+                                       strp3 = strchr(buf2,'(');
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__calendar.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__calendar.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__calendar.c   Mon Jul 16 21:53:05 2018
@@ -0,0 +1,37 @@
+$NetBSD: patch-res_res__calendar.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_calendar.c.orig    2015-10-09 21:48:48.000000000 +0000
++++ res/res_calendar.c
+@@ -1245,7 +1245,7 @@ static int calendar_query_exec(struct as
+       i = ao2_iterator_init(cal->events, 0);
+       while ((event = ao2_iterator_next(&i))) {
+               if (!(start > event->end || end < event->start)) {
+-                      ast_debug(10, "%s (%ld - %ld) overlapped with (%ld - %ld)\n", event->summary, (long) event->start, (long) event->end, (long) start, (long) end);
++                      ast_debug(10, "%s (%jd - %jd) overlapped with (%jd - %jd)\n", event->summary, (intmax_t) event->start, (intmax_t) event->end, (intmax_t) start, (intmax_t) end);
+                       if (add_event_to_list(events, event, start, end) < 0) {
+                               event = ast_calendar_unref_event(event);
+                               cal = unref_calendar(cal);
+@@ -1378,9 +1378,9 @@ static int calendar_query_result_exec(st
+               } else if (!strcasecmp(args.field, "uid")) {
+                       ast_copy_string(buf, entry->event->uid, len);
+               } else if (!strcasecmp(args.field, "start")) {
+-                      snprintf(buf, len, "%ld", (long) entry->event->start);
++                      snprintf(buf, len, "%jd", (intmax_t) entry->event->start);
+               } else if (!strcasecmp(args.field, "end")) {
+-                      snprintf(buf, len, "%ld", (long) entry->event->end);
++                      snprintf(buf, len, "%jd", (intmax_t) entry->event->end);
+               } else if (!strcasecmp(args.field, "busystate")) {
+                       snprintf(buf, len, "%u", entry->event->busy_state);
+               } else if (!strcasecmp(args.field, "attendees")) {
+@@ -1739,9 +1739,9 @@ static int calendar_event_read(struct as
+       } else if (!strcasecmp(data, "uid")) {
+               ast_copy_string(buf, event->uid, len);
+       } else if (!strcasecmp(data, "start")) {
+-              snprintf(buf, len, "%ld", (long)event->start);
++              snprintf(buf, len, "%jd", (intmax_t)event->start);
+       } else if (!strcasecmp(data, "end")) {
+-              snprintf(buf, len, "%ld", (long)event->end);
++              snprintf(buf, len, "%jd", (intmax_t)event->end);
+       } else if (!strcasecmp(data, "busystate")) {
+               snprintf(buf, len, "%u", event->busy_state);
+       } else if (!strcasecmp(data, "attendees")) {
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__calendar__caldav.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__calendar__caldav.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__calendar__caldav.c   Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-res_res__calendar__caldav.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_calendar_caldav.c.orig     2015-10-09 21:48:48.000000000 +0000
++++ res/res_calendar_caldav.c
+@@ -404,7 +404,7 @@ static void caldav_add_event(icalcompone
+                       ast_string_field_set(event, uid, event->summary);
+               } else {
+                       char tmp[100];
+-                      snprintf(tmp, sizeof(tmp), "%ld", event->start);
++                      snprintf(tmp, sizeof(tmp), "%jd", (intmax_t)event->start);
+                       ast_string_field_set(event, uid, tmp);
+               }
+       }
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__calendar__icalendar.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__calendar__icalendar.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__calendar__icalendar.c        Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-res_res__calendar__icalendar.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_calendar_icalendar.c.orig  2015-10-09 21:48:48.000000000 +0000
++++ res/res_calendar_icalendar.c
+@@ -246,7 +246,7 @@ static void icalendar_add_event(icalcomp
+                       ast_string_field_set(event, uid, event->summary);
+               } else {
+                       char tmp[100];
+-                      snprintf(tmp, sizeof(tmp), "%ld", event->start);
++                      snprintf(tmp, sizeof(tmp), "%jd", (intmax_t)event->start);
+                       ast_string_field_set(event, uid, tmp);
+               }
+       }
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__hep__pjsip.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__hep__pjsip.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__hep__pjsip.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,23 @@
+$NetBSD: patch-res_res__hep__pjsip.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_hep_pjsip.c.orig   2018-06-20 15:24:25.999288749 +0000
++++ res/res_hep_pjsip.c
+@@ -34,6 +34,9 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++#include "asterisk/netsock2.h"
++
+ #include <pjsip.h>
+ #include <pjsip_ua.h>
+ #include <pjlib.h>
+@@ -41,8 +44,6 @@
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+ #include "asterisk/res_hep.h"
+-#include "asterisk/module.h"
+-#include "asterisk/netsock2.h"
+ 
+ static char *assign_uuid(const pj_str_t *call_id, const pj_str_t *local_tag, const pj_str_t *remote_tag)
+ {
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__limit.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__limit.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__limit.c      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-res_res__limit.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_limit.c.orig       2018-05-07 17:38:31.944908572 +0000
++++ res/res_limit.c
+@@ -191,7 +191,7 @@ static char *handle_cli_ulimit(struct as
+                               else
+                                       snprintf(printlimit, sizeof(printlimit), "limited to %d", (int) rlimit.rlim_cur);
+                               desc = str2desc(a->argv[1]);
+-                              ast_cli(a->fd, "%c%s (%s) is %s.\n", toupper(desc[0]), desc + 1, a->argv[1], printlimit);
++                              ast_cli(a->fd, "%c%s (%s) is %s.\n", toupper((unsigned char)desc[0]), desc + 1, a->argv[1], printlimit);
+                       } else
+                               ast_cli(a->fd, "Could not retrieve resource limits for %s: %s\n", str2desc(a->argv[1]), strerror(errno));
+                       return CLI_SUCCESS;
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__musiconhold.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__musiconhold.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__musiconhold.c        Mon Jul 16 21:53:05 2018
@@ -0,0 +1,22 @@
+$NetBSD: patch-res_res__musiconhold.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_musiconhold.c.orig 2018-05-07 17:40:09.242361670 +0000
++++ res/res_musiconhold.c
+@@ -1071,7 +1071,7 @@ static void moh_parse_options(struct ast
+                       ast_copy_string(mohclass->dir, var->value, sizeof(mohclass->dir));
+               } else if (!strcasecmp(var->name, "application")) {
+                       ast_copy_string(mohclass->args, var->value, sizeof(mohclass->args));
+-              } else if (!strcasecmp(var->name, "digit") && (isdigit(*var->value) || strchr("*#", *var->value))) {
++              } else if (!strcasecmp(var->name, "digit") && (isdigit((unsigned char)*var->value) || strchr("*#", *var->value))) {
+                       mohclass->digit = *var->value;
+               } else if (!strcasecmp(var->name, "random")) {
+                       static int deprecation_warning = 0;
+@@ -1771,7 +1771,7 @@ static int load_moh_classes(int reload)
+                       } else if (!strcasecmp(var->name, "announcement")) {
+                               ast_copy_string(class->announcement, var->value, sizeof(class->announcement));
+                               ast_set_flag(class, MOH_ANNOUNCEMENT);
+-                      } else if (!strcasecmp(var->name, "digit") && (isdigit(*var->value) || strchr("*#", *var->value))) {
++                      } else if (!strcasecmp(var->name, "digit") && (isdigit((unsigned char)*var->value) || strchr("*#", *var->value))) {
+                               class->digit = *var->value;
+                       } else if (!strcasecmp(var->name, "random")) {
+                               ast_set2_flag(class, ast_true(var->value), MOH_RANDOMIZE);
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjproject.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjproject.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjproject.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,29 @@
+$NetBSD: patch-res_res__pjproject.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjproject.c.orig   2018-06-20 14:49:55.032949063 +0000
++++ res/res_pjproject.c
+@@ -99,18 +99,19 @@
+ #include "asterisk.h"
+ 
+ #include <stdarg.h>
+-#include <pjlib.h>
+-#include <pjsip.h>
+-#include <pj/log.h>
+-
+ #include "asterisk/options.h"
+ #include "asterisk/logger.h"
+ #include "asterisk/module.h"
+ #include "asterisk/cli.h"
+-#include "asterisk/res_pjproject.h"
+ #include "asterisk/vector.h"
+ #include "asterisk/sorcery.h"
+ 
++#include <pjlib.h>
++#include <pjsip.h>
++#include <pj/log.h>
++
++#include "asterisk/res_pjproject.h"
++
+ static struct ast_sorcery *pjproject_sorcery;
+ static pj_log_func *log_cb_orig;
+ static unsigned decor_orig;
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip.c      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,42 @@
+$NetBSD: patch-res_res__pjsip.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip.c.orig       2018-06-20 15:00:27.990234837 +0000
++++ res/res_pjsip.c
+@@ -18,16 +18,6 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-/* Needed for SUBSCRIBE, NOTIFY, and PUBLISH method definitions */
+-#include <pjsip_simple.h>
+-#include <pjsip/sip_transaction.h>
+-#include <pj/timer.h>
+-#include <pjlib.h>
+-#include <pjmedia/errno.h>
+-
+-#include "asterisk/res_pjsip.h"
+-#include "res_pjsip/include/res_pjsip_private.h"
+ #include "asterisk/linkedlists.h"
+ #include "asterisk/logger.h"
+ #include "asterisk/lock.h"
+@@ -40,8 +30,19 @@
+ #include "asterisk/sorcery.h"
+ #include "asterisk/file.h"
+ #include "asterisk/cli.h"
+-#include "asterisk/res_pjsip_cli.h"
+ #include "asterisk/test.h"
++
++#include <pjsip.h>
++/* Needed for SUBSCRIBE, NOTIFY, and PUBLISH method definitions */
++#include <pjsip_simple.h>
++#include <pjsip/sip_transaction.h>
++#include <pj/timer.h>
++#include <pjlib.h>
++#include <pjmedia/errno.h>
++
++#include "asterisk/res_pjsip.h"
++#include "res_pjsip/include/res_pjsip_private.h"
++#include "asterisk/res_pjsip_cli.h"
+ #include "asterisk/res_pjsip_presence_xml.h"
+ #include "asterisk/res_pjproject.h"
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__acl.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__acl.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__acl.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,23 @@
+$NetBSD: patch-res_res__pjsip__acl.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_acl.c.orig   2018-06-20 14:56:24.968342681 +0000
++++ res/res_pjsip_acl.c
+@@ -24,14 +24,15 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-
+-#include "asterisk/res_pjsip.h"
+ #include "asterisk/module.h"
+ #include "asterisk/logger.h"
+ #include "asterisk/sorcery.h"
+ #include "asterisk/acl.h"
+ 
++#include <pjsip.h>
++
++#include "asterisk/res_pjsip.h"
++
+ /*** DOCUMENTATION
+       <configInfo name="res_pjsip_acl" language="en_US">
+               <synopsis>SIP ACL module</synopsis>
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__authenticator__digest.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__authenticator__digest.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__authenticator__digest.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,22 @@
+$NetBSD: patch-res_res__pjsip__authenticator__digest.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_authenticator_digest.c.orig  2018-06-20 15:24:04.208176916 +0000
++++ res/res_pjsip_authenticator_digest.c
+@@ -18,13 +18,14 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-
+-#include "asterisk/res_pjsip.h"
+ #include "asterisk/logger.h"
+ #include "asterisk/module.h"
+ #include "asterisk/strings.h"
+ 
++#include <pjsip.h>
++
++#include "asterisk/res_pjsip.h"
++
+ /*** MODULEINFO
+       <depend>pjproject</depend>
+       <depend>res_pjsip</depend>
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__caller__id.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__caller__id.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__caller__id.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,23 @@
+$NetBSD: patch-res_res__pjsip__caller__id.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_caller_id.c.orig     2018-06-20 14:54:36.848214785 +0000
++++ res/res_pjsip_caller_id.c
+@@ -25,14 +25,15 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/channel.h"
++#include "asterisk/module.h"
++#include "asterisk/callerid.h"
++
+ #include <pjsip.h>
+ #include <pjsip_ua.h>
+ 
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+-#include "asterisk/channel.h"
+-#include "asterisk/module.h"
+-#include "asterisk/callerid.h"
+ 
+ /*!
+  * \internal
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__config__wizard.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__config__wizard.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__config__wizard.c      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,25 @@
+$NetBSD: patch-res_res__pjsip__config__wizard.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_config_wizard.c.orig 2018-06-20 15:24:53.691223999 +0000
++++ res/res_pjsip_config_wizard.c
+@@ -40,16 +40,18 @@
+ #include "asterisk.h"
+ 
+ #include <regex.h>
+-#include <pjsip.h>
+ 
+ #include "asterisk/astobj2.h"
+ #include "asterisk/cli.h"
+-#include "asterisk/res_pjsip.h"
+ #include "asterisk/module.h"
+ #include "asterisk/pbx.h"
+ #include "asterisk/sorcery.h"
+ #include "asterisk/vector.h"
+ 
++#include <pjsip.h>
++
++#include "asterisk/res_pjsip.h"
++
+ /*** DOCUMENTATION
+       <configInfo name="res_pjsip_config_wizard" language="en_US">
+               <synopsis>Module that privides simple configuration wizard capabilities.</synopsis>
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__dialog__info__body__generator.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__dialog__info__body__generator.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__dialog__info__body__generator.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,18 @@
+$NetBSD: patch-res_res__pjsip__dialog__info__body__generator.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_dialog_info_body_generator.c.orig    2018-06-20 15:26:57.623918703 +0000
++++ res/res_pjsip_dialog_info_body_generator.c
+@@ -26,11 +26,12 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++
+ #include <pjsip.h>
+ #include <pjsip_simple.h>
+ #include <pjlib.h>
+ 
+-#include "asterisk/module.h"
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_pubsub.h"
+ #include "asterisk/res_pjsip_presence_xml.h"
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__diversion.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__diversion.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__diversion.c   Mon Jul 16 21:53:05 2018
@@ -0,0 +1,34 @@
+$NetBSD: patch-res_res__pjsip__diversion.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_diversion.c.orig     2018-06-11 21:21:37.000000000 +0000
++++ res/res_pjsip_diversion.c
+@@ -25,15 +25,16 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/callerid.h"
++#include "asterisk/channel.h"
++#include "asterisk/module.h"
++#include "asterisk/strings.h"
++
+ #include <pjsip.h>
+ #include <pjsip_ua.h>
+ 
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+-#include "asterisk/callerid.h"
+-#include "asterisk/channel.h"
+-#include "asterisk/module.h"
+-#include "asterisk/strings.h"
+ 
+ static const pj_str_t diversion_name = { "Diversion", 9 };
+ 
+@@ -59,7 +60,7 @@ static int sip_is_token(const char *str)
+ 
+       is_token = 1;
+       do {
+-              if (!isalnum(*str)
++              if (!isalnum((unsigned char)*str)
+                       && !strchr("-.!%*_+`'~", *str)) {
+                       /* The character is not allowed in a token. */
+                       is_token = 0;
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__dlg__options.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__dlg__options.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__dlg__options.c        Mon Jul 16 21:53:05 2018
@@ -0,0 +1,18 @@
+$NetBSD: patch-res_res__pjsip__dlg__options.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_dlg_options.c.orig   2018-06-20 14:45:17.495724166 +0000
++++ res/res_pjsip_dlg_options.c
+@@ -25,11 +25,12 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++
+ #include <pjsip.h>
+ #include <pjsip_ua.h>
+ #include <pjlib.h>
+ 
+-#include "asterisk/module.h"
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__dtmf__info.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__dtmf__info.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__dtmf__info.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,19 @@
+$NetBSD: patch-res_res__pjsip__dtmf__info.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_dtmf_info.c.orig     2018-06-20 15:18:23.473675677 +0000
++++ res/res_pjsip_dtmf_info.c
+@@ -25,12 +25,13 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++
+ #include <pjsip.h>
+ #include <pjsip_ua.h>
+ 
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+-#include "asterisk/module.h"
+ 
+ static int is_media_type(pjsip_rx_data *rdata, char *subtype)
+ {
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__empty__info.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__empty__info.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__empty__info.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,19 @@
+$NetBSD: patch-res_res__pjsip__empty__info.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_empty_info.c.orig    2018-06-20 15:17:23.874357861 +0000
++++ res/res_pjsip_empty_info.c
+@@ -25,12 +25,13 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++
+ #include <pjsip.h>
+ #include <pjsip_ua.h>
+ 
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+-#include "asterisk/module.h"
+ 
+ static void send_response(struct ast_sip_session *session,
+               struct pjsip_rx_data *rdata, int code)
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__endpoint__identifier__anonymous.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__endpoint__identifier__anonymous.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__endpoint__identifier__anonymous.c     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,17 @@
+$NetBSD: patch-res_res__pjsip__endpoint__identifier__anonymous.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_endpoint_identifier_anonymous.c.orig 2018-06-20 14:51:13.694673514 +0000
++++ res/res_pjsip_endpoint_identifier_anonymous.c
+@@ -24,11 +24,11 @@
+  ***/
+ 
+ #include "asterisk.h"
++#include "asterisk/module.h"
+ 
+ #include <pjsip.h>
+ 
+ #include "asterisk/res_pjsip.h"
+-#include "asterisk/module.h"
+ 
+ static int get_endpoint_details(pjsip_rx_data *rdata, char *domain, size_t domain_size)
+ {
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__endpoint__identifier__ip.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__endpoint__identifier__ip.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__endpoint__identifier__ip.c    Mon Jul 16 21:53:05 2018
@@ -0,0 +1,22 @@
+$NetBSD: patch-res_res__pjsip__endpoint__identifier__ip.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_endpoint_identifier_ip.c.orig        2018-06-20 14:53:35.046125088 +0000
++++ res/res_pjsip_endpoint_identifier_ip.c
+@@ -24,13 +24,14 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++#include "asterisk/acl.h"
++#include "asterisk/manager.h"
++
+ #include <pjsip.h>
+ 
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_cli.h"
+-#include "asterisk/module.h"
+-#include "asterisk/acl.h"
+-#include "asterisk/manager.h"
+ #include "res_pjsip/include/res_pjsip_private.h"
+ 
+ /*** DOCUMENTATION
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__endpoint__identifier__user.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__endpoint__identifier__user.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__endpoint__identifier__user.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,17 @@
+$NetBSD: patch-res_res__pjsip__endpoint__identifier__user.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_endpoint_identifier_user.c.orig      2018-06-20 15:14:17.549119230 +0000
++++ res/res_pjsip_endpoint_identifier_user.c
+@@ -24,10 +24,11 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++
+ #include <pjsip.h>
+ 
+ #include "asterisk/res_pjsip.h"
+-#include "asterisk/module.h"
+ 
+ static int get_from_header(pjsip_rx_data *rdata, char *username, size_t username_size, char *domain, size_t domain_size)
+ {
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__exten__state.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__exten__state.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__exten__state.c        Mon Jul 16 21:53:05 2018
@@ -0,0 +1,31 @@
+$NetBSD: patch-res_res__pjsip__exten__state.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_exten_state.c.orig   2018-06-20 15:27:23.695134703 +0000
++++ res/res_pjsip_exten_state.c
+@@ -28,6 +28,13 @@
+ 
+ #include <regex.h>
+ 
++#include "asterisk/module.h"
++#include "asterisk/logger.h"
++#include "asterisk/astobj2.h"
++#include "asterisk/sorcery.h"
++#include "asterisk/app.h"
++#include "asterisk/taskprocessor.h"
++
+ #include <pjsip.h>
+ #include <pjsip_simple.h>
+ #include <pjlib.h>
+@@ -36,12 +43,6 @@
+ #include "asterisk/res_pjsip_outbound_publish.h"
+ #include "asterisk/res_pjsip_pubsub.h"
+ #include "asterisk/res_pjsip_body_generator_types.h"
+-#include "asterisk/module.h"
+-#include "asterisk/logger.h"
+-#include "asterisk/astobj2.h"
+-#include "asterisk/sorcery.h"
+-#include "asterisk/app.h"
+-#include "asterisk/taskprocessor.h"
+ 
+ #define BODY_SIZE 1024
+ #define EVENT_TYPE_SIZE 50
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__header__funcs.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__header__funcs.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__header__funcs.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,28 @@
+$NetBSD: patch-res_res__pjsip__header__funcs.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_header_funcs.c.orig  2018-06-20 14:59:36.015809914 +0000
++++ res/res_pjsip_header_funcs.c
+@@ -25,17 +25,18 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjsip_ua.h>
+-
+-#include "asterisk/res_pjsip.h"
+-#include "asterisk/res_pjsip_session.h"
+ #include "asterisk/channel.h"
+ #include "asterisk/pbx.h"
+ #include "asterisk/app.h"
+ #include "asterisk/module.h"
+ #include "asterisk/utils.h"
+ 
++#include <pjsip.h>
++#include <pjsip_ua.h>
++
++#include "asterisk/res_pjsip.h"
++#include "asterisk/res_pjsip_session.h"
++
+ /*** DOCUMENTATION
+       <function name="PJSIP_HEADER" language="en_US">
+               <synopsis>
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__history.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__history.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__history.c     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,26 @@
+$NetBSD: patch-res_res__pjsip__history.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_history.c.orig       2018-06-20 14:51:30.138834951 +0000
++++ res/res_pjsip_history.c
+@@ -31,17 +31,18 @@
+  ***/
+ 
+ #include "asterisk.h"
+-
+-#include <pjsip.h>
+ #include <regex.h>
+ 
+-#include "asterisk/res_pjsip.h"
+ #include "asterisk/module.h"
+ #include "asterisk/logger.h"
+ #include "asterisk/cli.h"
+ #include "asterisk/netsock2.h"
+ #include "asterisk/vector.h"
+ #include "asterisk/lock.h"
++
++#include <pjsip.h>
++
++#include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjproject.h"
+ 
+ #define HISTORY_INITIAL_SIZE 256
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__logger.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__logger.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__logger.c      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,23 @@
+$NetBSD: patch-res_res__pjsip__logger.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_logger.c.orig        2018-06-20 14:45:55.987678816 +0000
++++ res/res_pjsip_logger.c
+@@ -25,14 +25,15 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-
+-#include "asterisk/res_pjsip.h"
+ #include "asterisk/module.h"
+ #include "asterisk/logger.h"
+ #include "asterisk/cli.h"
+ #include "asterisk/netsock2.h"
+ 
++#include <pjsip.h>
++
++#include "asterisk/res_pjsip.h"
++
+ enum pjsip_logging_mode {
+       LOGGING_MODE_DISABLED,    /* No logging is enabled */
+       LOGGING_MODE_ENABLED,     /* Logging is enabled */
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__messaging.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__messaging.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__messaging.c   Mon Jul 16 21:53:05 2018
@@ -0,0 +1,22 @@
+$NetBSD: patch-res_res__pjsip__messaging.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_messaging.c.orig     2018-06-20 14:44:43.652384305 +0000
++++ res/res_pjsip_messaging.c
+@@ -35,14 +35,14 @@
+  ***/
+ #include "asterisk.h"
+ 
+-#include "pjsua-lib/pjsua.h"
+-
+ #include "asterisk/message.h"
+ #include "asterisk/module.h"
+ #include "asterisk/pbx.h"
++#include "asterisk/taskprocessor.h"
++
++#include "pjsua-lib/pjsua.h"
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+-#include "asterisk/taskprocessor.h"
+ 
+ const pjsip_method pjsip_message_method = {PJSIP_OTHER_METHOD, {"MESSAGE", 7} };
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__mwi.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__mwi.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__mwi.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,33 @@
+$NetBSD: patch-res_res__pjsip__mwi.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_mwi.c.orig   2018-06-20 15:14:36.457639759 +0000
++++ res/res_pjsip_mwi.c
+@@ -25,13 +25,6 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjsip_simple.h>
+-#include <pjlib.h>
+-
+-#include "asterisk/res_pjsip.h"
+-#include "asterisk/res_pjsip_pubsub.h"
+-#include "asterisk/res_pjsip_body_generator_types.h"
+ #include "asterisk/module.h"
+ #include "asterisk/logger.h"
+ #include "asterisk/astobj2.h"
+@@ -40,6 +33,14 @@
+ #include "asterisk/stasis.h"
+ #include "asterisk/app.h"
+ 
++#include <pjsip.h>
++#include <pjsip_simple.h>
++#include <pjlib.h>
++
++#include "asterisk/res_pjsip.h"
++#include "asterisk/res_pjsip_pubsub.h"
++#include "asterisk/res_pjsip_body_generator_types.h"
++
+ struct mwi_subscription;
+ static struct ao2_container *unsolicited_mwi;
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__mwi__body__generator.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__mwi__body__generator.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__mwi__body__generator.c        Mon Jul 16 21:53:05 2018
@@ -0,0 +1,23 @@
+$NetBSD: patch-res_res__pjsip__mwi__body__generator.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_mwi_body_generator.c.orig    2018-06-20 15:23:44.066022439 +0000
++++ res/res_pjsip_mwi_body_generator.c
+@@ -25,6 +25,9 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++#include "asterisk/strings.h"
++
+ #include <pjsip.h>
+ #include <pjsip_simple.h>
+ #include <pjlib.h>
+@@ -32,8 +35,6 @@
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_pubsub.h"
+ #include "asterisk/res_pjsip_body_generator_types.h"
+-#include "asterisk/module.h"
+-#include "asterisk/strings.h"
+ 
+ #define MWI_TYPE "application"
+ #define MWI_SUBTYPE "simple-message-summary"
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__nat.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__nat.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__nat.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,21 @@
+$NetBSD: patch-res_res__pjsip__nat.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_nat.c.orig   2018-06-20 15:19:15.829960259 +0000
++++ res/res_pjsip_nat.c
+@@ -24,13 +24,14 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++#include "asterisk/acl.h"
++
+ #include <pjsip.h>
+ #include <pjsip_ua.h>
+ 
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+-#include "asterisk/module.h"
+-#include "asterisk/acl.h"
+ 
+ static void rewrite_uri(pjsip_rx_data *rdata, pjsip_sip_uri *uri)
+ {
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__notify.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__notify.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__notify.c      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,27 @@
+$NetBSD: patch-res_res__pjsip__notify.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_notify.c.orig        2018-06-20 15:18:42.604587100 +0000
++++ res/res_pjsip_notify.c
+@@ -24,17 +24,18 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjsip_ua.h>
+-
+ #include "asterisk/cli.h"
+ #include "asterisk/config.h"
+ #include "asterisk/manager.h"
+ #include "asterisk/module.h"
+ #include "asterisk/pbx.h"
++#include "asterisk/sorcery.h"
++
++#include <pjsip.h>
++#include <pjsip_ua.h>
++
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+-#include "asterisk/sorcery.h"
+ 
+ /*** DOCUMENTATION
+       <manager name="PJSIPNotify" language="en_US">
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__one__touch__record__info.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__one__touch__record__info.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__one__touch__record__info.c    Mon Jul 16 21:53:05 2018
@@ -0,0 +1,23 @@
+$NetBSD: patch-res_res__pjsip__one__touch__record__info.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_one_touch_record_info.c.orig 2018-06-20 15:23:15.924284229 +0000
++++ res/res_pjsip_one_touch_record_info.c
+@@ -25,14 +25,15 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/features.h"
++#include "asterisk/module.h"
++#include "asterisk/features_config.h"
++
+ #include <pjsip.h>
+ #include <pjsip_ua.h>
+ 
+-#include "asterisk/features.h"
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+-#include "asterisk/module.h"
+-#include "asterisk/features_config.h"
+ 
+ static void send_response(struct ast_sip_session *session, int code, struct pjsip_rx_data *rdata)
+ {
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__outbound__authenticator__digest.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__outbound__authenticator__digest.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__outbound__authenticator__digest.c     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,22 @@
+$NetBSD: patch-res_res__pjsip__outbound__authenticator__digest.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_outbound_authenticator_digest.c.orig 2018-06-20 15:22:43.400330893 +0000
++++ res/res_pjsip_outbound_authenticator_digest.c
+@@ -24,13 +24,14 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-
+-#include "asterisk/res_pjsip.h"
+ #include "asterisk/logger.h"
+ #include "asterisk/module.h"
+ #include "asterisk/strings.h"
+ 
++#include <pjsip.h>
++
++#include "asterisk/res_pjsip.h"
++
+ static pjsip_www_authenticate_hdr *get_auth_header(pjsip_rx_data *challenge,
+       const void *start)
+ {
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__outbound__publish.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__outbound__publish.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__outbound__publish.c   Mon Jul 16 21:53:05 2018
@@ -0,0 +1,26 @@
+$NetBSD: patch-res_res__pjsip__outbound__publish.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_outbound_publish.c.orig      2018-06-20 15:25:56.444583849 +0000
++++ res/res_pjsip_outbound_publish.c
+@@ -25,16 +25,17 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++#include "asterisk/taskprocessor.h"
++#include "asterisk/threadpool.h"
++#include "asterisk/datastore.h"
++
+ #include <pjsip.h>
+ #include <pjsip_simple.h>
+ 
+ #include "asterisk/res_pjproject.h"
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_outbound_publish.h"
+-#include "asterisk/module.h"
+-#include "asterisk/taskprocessor.h"
+-#include "asterisk/threadpool.h"
+-#include "asterisk/datastore.h"
+ #include "res_pjsip/include/res_pjsip_private.h"
+ 
+ /*** DOCUMENTATION
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__outbound__registration.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__outbound__registration.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__outbound__registration.c      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,29 @@
+$NetBSD: patch-res_res__pjsip__outbound__registration.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_outbound_registration.c.orig 2018-06-20 14:52:22.011336029 +0000
++++ res/res_pjsip_outbound_registration.c
+@@ -25,11 +25,6 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjsip_ua.h>
+-
+-#include "asterisk/res_pjsip.h"
+-#include "asterisk/res_pjsip_cli.h"
+ #include "asterisk/module.h"
+ #include "asterisk/taskprocessor.h"
+ #include "asterisk/cli.h"
+@@ -37,6 +32,12 @@
+ #include "asterisk/threadstorage.h"
+ #include "asterisk/threadpool.h"
+ #include "asterisk/statsd.h"
++
++#include <pjsip.h>
++#include <pjsip_ua.h>
++
++#include "asterisk/res_pjsip.h"
++#include "asterisk/res_pjsip_cli.h"
+ #include "res_pjsip/include/res_pjsip_private.h"
+ 
+ /*** DOCUMENTATION
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__path.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__path.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__path.c        Mon Jul 16 21:53:05 2018
@@ -0,0 +1,21 @@
+$NetBSD: patch-res_res__pjsip__path.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_path.c.orig  2018-06-20 14:52:49.712903058 +0000
++++ res/res_pjsip_path.c
+@@ -23,14 +23,14 @@
+  ***/
+ 
+ #include "asterisk.h"
++#include "asterisk/module.h"
++#include "asterisk/strings.h"
+ 
+ #include <pjsip.h>
+ #include <pjsip_ua.h>
+ 
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+-#include "asterisk/module.h"
+-#include "asterisk/strings.h"
+ 
+ static const pj_str_t PATH_NAME = { "Path", 4 };
+ static pj_str_t PATH_SUPPORTED_NAME = { "path", 4 };
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__phoneprov__provider.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__phoneprov__provider.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__phoneprov__provider.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,21 @@
+$NetBSD: patch-res_res__pjsip__phoneprov__provider.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_phoneprov_provider.c.orig    2018-06-20 15:28:01.690262506 +0000
++++ res/res_pjsip_phoneprov_provider.c
+@@ -41,12 +41,13 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-
+-#include "asterisk/res_pjsip.h"
+ #include "asterisk/module.h"
+ #include "asterisk/sorcery.h"
+ #include "asterisk/phoneprov.h"
++
++#include <pjsip.h>
++
++#include "asterisk/res_pjsip.h"
+ #include "res_pjsip/include/res_pjsip_private.h"
+ 
+ /*** DOCUMENTATION
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__pidf__body__generator.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__pidf__body__generator.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__pidf__body__generator.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,18 @@
+$NetBSD: patch-res_res__pjsip__pidf__body__generator.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_pidf_body_generator.c.orig   2018-06-20 15:17:01.479385106 +0000
++++ res/res_pjsip_pidf_body_generator.c
+@@ -25,11 +25,12 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++
+ #include <pjsip.h>
+ #include <pjsip_simple.h>
+ #include <pjlib.h>
+ 
+-#include "asterisk/module.h"
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_pubsub.h"
+ #include "asterisk/res_pjsip_presence_xml.h"
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__pidf__digium__body__supplement.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__pidf__digium__body__supplement.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__pidf__digium__body__supplement.c      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,20 @@
+$NetBSD: patch-res_res__pjsip__pidf__digium__body__supplement.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_pidf_digium_body_supplement.c.orig   2018-06-20 15:16:30.009948356 +0000
++++ res/res_pjsip_pidf_digium_body_supplement.c
+@@ -25,12 +25,13 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++#include "asterisk/presencestate.h"
++
+ #include <pjsip.h>
+ #include <pjsip_simple.h>
+ #include <pjlib.h>
+ 
+-#include "asterisk/module.h"
+-#include "asterisk/presencestate.h"
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_pubsub.h"
+ #include "asterisk/res_pjsip_presence_xml.h"
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__pidf__eyebeam__body__supplement.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__pidf__eyebeam__body__supplement.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__pidf__eyebeam__body__supplement.c     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,18 @@
+$NetBSD: patch-res_res__pjsip__pidf__eyebeam__body__supplement.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_pidf_eyebeam_body_supplement.c.orig  2018-06-20 15:13:48.837303343 +0000
++++ res/res_pjsip_pidf_eyebeam_body_supplement.c
+@@ -25,11 +25,12 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++
+ #include <pjsip.h>
+ #include <pjsip_simple.h>
+ #include <pjlib.h>
+ 
+-#include "asterisk/module.h"
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_pubsub.h"
+ #include "asterisk/res_pjsip_presence_xml.h"
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__publish__asterisk.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__publish__asterisk.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__publish__asterisk.c   Mon Jul 16 21:53:05 2018
@@ -0,0 +1,24 @@
+$NetBSD: patch-res_res__pjsip__publish__asterisk.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_publish_asterisk.c.orig      2018-06-20 15:15:27.126012722 +0000
++++ res/res_pjsip_publish_asterisk.c
+@@ -28,15 +28,16 @@
+ 
+ #include <regex.h>
+ 
++#include "asterisk/module.h"
++#include "asterisk/logger.h"
++#include "asterisk/app.h"
++
+ #include <pjsip.h>
+ #include <pjsip_simple.h>
+ 
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_outbound_publish.h"
+ #include "asterisk/res_pjsip_pubsub.h"
+-#include "asterisk/module.h"
+-#include "asterisk/logger.h"
+-#include "asterisk/app.h"
+ 
+ /*** DOCUMENTATION
+       <configInfo name="res_pjsip_publish_asterisk" language="en_US">
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__pubsub.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__pubsub.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__pubsub.c      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,36 @@
+$NetBSD: patch-res_res__pjsip__pubsub.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_pubsub.c.orig        2018-06-20 14:55:07.570481514 +0000
++++ res/res_pjsip_pubsub.c
+@@ -27,12 +27,7 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjsip_simple.h>
+-#include <pjlib.h>
+-
+ #include "asterisk/app.h"
+-#include "asterisk/res_pjsip_pubsub.h"
+ #include "asterisk/module.h"
+ #include "asterisk/linkedlists.h"
+ #include "asterisk/astobj2.h"
+@@ -40,11 +35,17 @@
+ #include "asterisk/uuid.h"
+ #include "asterisk/taskprocessor.h"
+ #include "asterisk/sched.h"
+-#include "asterisk/res_pjsip.h"
+ #include "asterisk/callerid.h"
+ #include "asterisk/manager.h"
+ #include "asterisk/cli.h"
+ #include "asterisk/test.h"
++
++#include <pjsip.h>
++#include <pjsip_simple.h>
++#include <pjlib.h>
++
++#include "asterisk/res_pjsip_pubsub.h"
++#include "asterisk/res_pjsip.h"
+ #include "res_pjsip/include/res_pjsip_private.h"
+ #include "asterisk/res_pjsip_presence_xml.h"
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__refer.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__refer.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__refer.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,29 @@
+$NetBSD: patch-res_res__pjsip__refer.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_refer.c.orig 2018-06-20 14:53:06.998187075 +0000
++++ res/res_pjsip_refer.c
+@@ -25,11 +25,6 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjsip_ua.h>
+-
+-#include "asterisk/res_pjsip.h"
+-#include "asterisk/res_pjsip_session.h"
+ #include "asterisk/module.h"
+ #include "asterisk/pbx.h"
+ #include "asterisk/taskprocessor.h"
+@@ -39,6 +34,12 @@
+ #include "asterisk/stasis_channels.h"
+ #include "asterisk/causes.h"
+ 
++#include <pjsip.h>
++#include <pjsip_ua.h>
++
++#include "asterisk/res_pjsip.h"
++#include "asterisk/res_pjsip_session.h"
++
+ /*! \brief REFER Progress structure */
+ struct refer_progress {
+       /*! \brief Subscription to provide updates on */
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__registrar.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__registrar.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__registrar.c   Mon Jul 16 21:53:05 2018
@@ -0,0 +1,26 @@
+$NetBSD: patch-res_res__pjsip__registrar.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_registrar.c.orig     2018-06-20 15:15:55.779062250 +0000
++++ res/res_pjsip_registrar.c
+@@ -26,16 +26,18 @@
+ #include "asterisk.h"
+ 
+ #include <signal.h>
+-#include <pjsip.h>
+-#include <pjsip_ua.h>
+ 
+-#include "asterisk/res_pjsip.h"
+ #include "asterisk/module.h"
+ #include "asterisk/paths.h"
+ #include "asterisk/test.h"
+ #include "asterisk/taskprocessor.h"
+ #include "asterisk/manager.h"
+ #include "asterisk/named_locks.h"
++
++#include <pjsip.h>
++#include <pjsip_ua.h>
++
++#include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjproject.h"
+ #include "res_pjsip/include/res_pjsip_private.h"
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__rfc3326.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__rfc3326.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__rfc3326.c     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,23 @@
+$NetBSD: patch-res_res__pjsip__rfc3326.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_rfc3326.c.orig       2018-06-20 14:50:37.040036015 +0000
++++ res/res_pjsip_rfc3326.c
+@@ -25,14 +25,15 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++#include "asterisk/causes.h"
++#include "asterisk/threadpool.h"
++
+ #include <pjsip.h>
+ #include <pjsip_ua.h>
+ 
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+-#include "asterisk/module.h"
+-#include "asterisk/causes.h"
+-#include "asterisk/threadpool.h"
+ 
+ static void rfc3326_use_reason_header(struct ast_sip_session *session, struct pjsip_rx_data *rdata)
+ {
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__sdp__rtp.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__sdp__rtp.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__sdp__rtp.c    Mon Jul 16 21:53:05 2018
@@ -0,0 +1,28 @@
+$NetBSD: patch-res_res__pjsip__sdp__rtp.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_sdp_rtp.c.orig       2018-06-20 14:44:19.523907244 +0000
++++ res/res_pjsip_sdp_rtp.c
+@@ -33,11 +33,6 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjsip_ua.h>
+-#include <pjmedia.h>
+-#include <pjlib.h>
+-
+ #include "asterisk/utils.h"
+ #include "asterisk/module.h"
+ #include "asterisk/format.h"
+@@ -54,6 +49,11 @@
+ #include "asterisk/stream.h"
+ #include "asterisk/format_cache.h"
+ 
++#include <pjsip.h>
++#include <pjsip_ua.h>
++#include <pjmedia.h>
++#include <pjlib.h>
++
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__send__to__voicemail.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__send__to__voicemail.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__send__to__voicemail.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,21 @@
+$NetBSD: patch-res_res__pjsip__send__to__voicemail.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_send_to_voicemail.c.orig     2018-06-20 14:58:59.976213530 +0000
++++ res/res_pjsip_send_to_voicemail.c
+@@ -33,13 +33,14 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/pbx.h"
++#include "asterisk/module.h"
++
+ #include <pjsip.h>
+ #include <pjsip_ua.h>
+ 
+-#include "asterisk/pbx.h"
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+-#include "asterisk/module.h"
+ 
+ #define DATASTORE_NAME "call_feature_send_to_vm_datastore"
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__session.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__session.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__session.c     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,37 @@
+$NetBSD: patch-res_res__pjsip__session.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_session.c.orig       2018-06-20 15:26:23.023816148 +0000
++++ res/res_pjsip_session.c
+@@ -24,17 +24,10 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjsip_ua.h>
+-#include <pjlib.h>
+-
+-#include "asterisk/res_pjsip.h"
+-#include "asterisk/res_pjsip_session.h"
+ #include "asterisk/callerid.h"
+ #include "asterisk/datastore.h"
+ #include "asterisk/module.h"
+ #include "asterisk/logger.h"
+-#include "asterisk/res_pjsip.h"
+ #include "asterisk/astobj2.h"
+ #include "asterisk/lock.h"
+ #include "asterisk/uuid.h"
+@@ -49,6 +42,14 @@
+ #include "asterisk/test.h"
+ #include "asterisk/stream.h"
+ 
++#include <pjsip.h>
++#include <pjsip_ua.h>
++#include <pjlib.h>
++
++#include "asterisk/res_pjsip.h"
++#include "asterisk/res_pjsip_session.h"
++#include "asterisk/res_pjsip.h"
++
+ #define SDP_HANDLER_BUCKETS 11
+ 
+ #define MOD_DATA_ON_RESPONSE "on_response"
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__sips__contact.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__sips__contact.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__sips__contact.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,17 @@
+$NetBSD: patch-res_res__pjsip__sips__contact.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_sips_contact.c.orig  2018-06-20 15:18:05.179232502 +0000
++++ res/res_pjsip_sips_contact.c
+@@ -24,10 +24,11 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++
+ #include <pjsip.h>
+ 
+ #include "asterisk/res_pjsip.h"
+-#include "asterisk/module.h"
+ 
+ /*!
+  * \brief Upgrade Contact URIs on outgoing SIP requests to SIPS if required.
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__t38.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__t38.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__t38.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,28 @@
+$NetBSD: patch-res_res__pjsip__t38.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_t38.c.orig   2018-06-20 15:15:02.160803849 +0000
++++ res/res_pjsip_t38.c
+@@ -32,11 +32,6 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjsip_ua.h>
+-#include <pjmedia.h>
+-#include <pjlib.h>
+-
+ #include "asterisk/utils.h"
+ #include "asterisk/module.h"
+ #include "asterisk/udptl.h"
+@@ -46,6 +41,11 @@
+ #include "asterisk/stream.h"
+ #include "asterisk/format_cache.h"
+ 
++#include <pjsip.h>
++#include <pjsip_ua.h>
++#include <pjmedia.h>
++#include <pjlib.h>
++
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__transport__websocket.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__transport__websocket.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__transport__websocket.c        Mon Jul 16 21:53:05 2018
@@ -0,0 +1,23 @@
+$NetBSD: patch-res_res__pjsip__transport__websocket.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_transport_websocket.c.orig   2018-06-20 14:55:54.355115874 +0000
++++ res/res_pjsip_transport_websocket.c
+@@ -29,14 +29,15 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++#include "asterisk/http_websocket.h"
++#include "asterisk/taskprocessor.h"
++
+ #include <pjsip.h>
+ #include <pjsip_ua.h>
+ 
+-#include "asterisk/module.h"
+-#include "asterisk/http_websocket.h"
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+-#include "asterisk/taskprocessor.h"
+ 
+ static int transport_type_wss;
+ static int transport_type_wss_ipv6;
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__xpidf__body__generator.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__xpidf__body__generator.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip__xpidf__body__generator.c      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,18 @@
+$NetBSD: patch-res_res__pjsip__xpidf__body__generator.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip_xpidf_body_generator.c.orig  2018-06-20 14:57:12.605637881 +0000
++++ res/res_pjsip_xpidf_body_generator.c
+@@ -26,11 +26,12 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++
+ #include <pjsip.h>
+ #include <pjsip_simple.h>
+ #include <pjlib.h>
+ 
+-#include "asterisk/module.h"
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_pubsub.h"
+ #include "asterisk/res_pjsip_presence_xml.h"
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__auth.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__auth.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__auth.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,22 @@
+$NetBSD: patch-res_res__pjsip_config__auth.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/config_auth.c.orig   2018-06-20 15:02:20.856250840 +0000
++++ res/res_pjsip/config_auth.c
+@@ -18,12 +18,14 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjlib.h>
+-#include "asterisk/res_pjsip.h"
+ #include "asterisk/logger.h"
+ #include "asterisk/sorcery.h"
+ #include "asterisk/cli.h"
++
++#include <pjsip.h>
++#include <pjlib.h>
++
++#include "asterisk/res_pjsip.h"
+ #include "include/res_pjsip_private.h"
+ #include "asterisk/res_pjsip_cli.h"
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__domain__aliases.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__domain__aliases.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__domain__aliases.c      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,20 @@
+$NetBSD: patch-res_res__pjsip_config__domain__aliases.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/config_domain_aliases.c.orig 2018-06-20 15:08:56.215815643 +0000
++++ res/res_pjsip/config_domain_aliases.c
+@@ -18,12 +18,13 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/logger.h"
++#include "asterisk/sorcery.h"
++
+ #include "pjsip.h"
+ #include "pjlib.h"
+ #include "asterisk/res_pjsip.h"
+ #include "include/res_pjsip_private.h"
+-#include "asterisk/logger.h"
+-#include "asterisk/sorcery.h"
+ 
+ static void domain_alias_destroy(void *obj)
+ {
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__global.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__global.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__global.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,25 @@
+$NetBSD: patch-res_res__pjsip_config__global.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/config_global.c.orig 2018-06-20 15:12:19.176643964 +0000
++++ res/res_pjsip/config_global.c
+@@ -17,16 +17,16 @@
+  */
+ 
+ #include "asterisk.h"
++#include "asterisk/sorcery.h"
++#include "asterisk/taskprocessor.h"
++#include "asterisk/ast_version.h"
+ 
+ #include <pjsip.h>
+ #include <pjlib.h>
+ 
+ #include "asterisk/res_pjsip.h"
+-#include "include/res_pjsip_private.h"
+-#include "asterisk/sorcery.h"
+-#include "asterisk/taskprocessor.h"
+-#include "asterisk/ast_version.h"
+ #include "asterisk/res_pjsip_cli.h"
++#include "include/res_pjsip_private.h"
+ 
+ #define DEFAULT_MAX_FORWARDS 70
+ #define DEFAULT_KEEPALIVE_INTERVAL 0
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__system.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__system.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__system.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,23 @@
+$NetBSD: patch-res_res__pjsip_config__system.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/config_system.c.orig 2018-06-20 15:09:27.717943335 +0000
++++ res/res_pjsip/config_system.c
+@@ -18,14 +18,15 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/sorcery.h"
++#include "asterisk/threadpool.h"
++#include "asterisk/dns.h"
++
+ #include <pjsip.h>
+ #include <pjlib.h>
+ 
+ #include "asterisk/res_pjsip.h"
+-#include "asterisk/sorcery.h"
+ #include "include/res_pjsip_private.h"
+-#include "asterisk/threadpool.h"
+-#include "asterisk/dns.h"
+ #include "asterisk/res_pjsip_cli.h"
+ 
+ #define TIMER_T1_MIN 100
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__transport.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__transport.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_config__transport.c    Mon Jul 16 21:53:05 2018
@@ -0,0 +1,31 @@
+$NetBSD: patch-res_res__pjsip_config__transport.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/config_transport.c.orig      2018-06-20 15:08:28.782330643 +0000
++++ res/res_pjsip/config_transport.c
+@@ -19,19 +19,21 @@
+ #include "asterisk.h"
+ 
+ #include <math.h>
+-#include <pjsip.h>
+-#include <pjlib.h>
+ 
+-#include "asterisk/res_pjsip.h"
+-#include "asterisk/res_pjsip_cli.h"
+ #include "asterisk/logger.h"
+ #include "asterisk/astobj2.h"
+ #include "asterisk/sorcery.h"
+ #include "asterisk/acl.h"
+ #include "asterisk/utils.h"
+-#include "include/res_pjsip_private.h"
+ #include "asterisk/http_websocket.h"
+ 
++#include <pjsip.h>
++#include <pjlib.h>
++
++#include "asterisk/res_pjsip.h"
++#include "asterisk/res_pjsip_cli.h"
++#include "include/res_pjsip_private.h"
++
+ #define MAX_POINTER_STRING 33
+ 
+ /*! \brief Default number of state container buckets */
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_location.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_location.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_location.c     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,33 @@
+$NetBSD: patch-res_res__pjsip_location.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/location.c.orig      2018-06-20 15:05:13.082730303 +0000
++++ res/res_pjsip/location.c
+@@ -17,21 +17,22 @@
+  */
+ 
+ #include "asterisk.h"
+-#include <pjsip.h>
+-#include <pjlib.h>
+-
+-#include "asterisk/res_pjsip.h"
+ #include "asterisk/logger.h"
+ #include "asterisk/astobj2.h"
+ #include "asterisk/paths.h"
+ #include "asterisk/sorcery.h"
+ #include "asterisk/taskprocessor.h"
+-#include "include/res_pjsip_private.h"
+-#include "asterisk/res_pjsip_cli.h"
+ #include "asterisk/statsd.h"
+ #include "asterisk/named_locks.h"
+ 
++
++#include <pjsip.h>
++#include <pjlib.h>
++
++#include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjproject.h"
++#include "asterisk/res_pjsip_cli.h"
++#include "include/res_pjsip_private.h"
+ 
+ static int pj_max_hostname = PJ_MAX_HOSTNAME;
+ static int pjsip_max_url_size = PJSIP_MAX_URL_SIZE;
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__cli.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__cli.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__cli.c   Mon Jul 16 21:53:05 2018
@@ -0,0 +1,31 @@
+$NetBSD: patch-res_res__pjsip_pjsip__cli.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/pjsip_cli.c.orig     2018-06-20 15:02:40.104650162 +0000
++++ res/res_pjsip/pjsip_cli.c
+@@ -18,12 +18,6 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjsip_ua.h>
+-
+-#include "asterisk/res_pjsip.h"
+-#include "include/res_pjsip_private.h"
+-#include "asterisk/res_pjsip_cli.h"
+ #include "asterisk/acl.h"
+ #include "asterisk/cli.h"
+ #include "asterisk/astobj2.h"
+@@ -31,6 +25,13 @@
+ #include "asterisk/utils.h"
+ #include "asterisk/sorcery.h"
+ 
++#include <pjsip.h>
++#include <pjsip_ua.h>
++
++#include "asterisk/res_pjsip.h"
++#include "include/res_pjsip_private.h"
++#include "asterisk/res_pjsip_cli.h"
++
+ static struct ao2_container *formatter_registry;
+ 
+ int ast_sip_cli_print_sorcery_objectset(void *obj, void *arg, int flags)
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__configuration.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__configuration.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__configuration.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,40 @@
+$NetBSD: patch-res_res__pjsip_pjsip__configuration.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/pjsip_configuration.c.orig   2018-06-11 21:21:37.000000000 +0000
++++ res/res_pjsip/pjsip_configuration.c
+@@ -18,12 +18,6 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjsip_ua.h>
+-
+-#include "asterisk/res_pjsip.h"
+-#include "include/res_pjsip_private.h"
+-#include "asterisk/res_pjsip_cli.h"
+ #include "asterisk/acl.h"
+ #include "asterisk/manager.h"
+ #include "asterisk/astobj2.h"
+@@ -35,6 +29,13 @@
+ #include "asterisk/pbx.h"
+ #include "asterisk/stream.h"
+ 
++#include <pjsip.h>
++#include <pjsip_ua.h>
++
++#include "asterisk/res_pjsip.h"
++#include "include/res_pjsip_private.h"
++#include "asterisk/res_pjsip_cli.h"
++
+ /*! \brief Number of buckets for persistent endpoint information */
+ #define PERSISTENT_BUCKETS 53
+ 
+@@ -1222,7 +1223,7 @@ static int from_user_handler(const struc
+       const char *val;
+ 
+       for (val = var->value; *val; val++) {
+-              if (!isalpha(*val) && !isdigit(*val) && !strchr(valid_uri_marks, *val)) {
++              if (!isalpha((unsigned char)*val) && !isdigit((unsigned char)*val) && !strchr(valid_uri_marks, *val)) {
+                       ast_log(LOG_ERROR, "Error configuring endpoint '%s' - '%s' field "
+                       "contains invalid character '%c'\n",
+                       ast_sorcery_object_get_id(endpoint), var->name, *val);
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__distributor.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__distributor.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__distributor.c   Mon Jul 16 21:53:05 2018
@@ -0,0 +1,22 @@
+$NetBSD: patch-res_res__pjsip_pjsip__distributor.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/pjsip_distributor.c.orig     2018-06-20 15:08:07.655594906 +0000
++++ res/res_pjsip/pjsip_distributor.c
+@@ -18,13 +18,14 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/acl.h"
++#include "asterisk/taskprocessor.h"
++#include "asterisk/threadpool.h"
++
+ #include <pjsip.h>
+ 
+ #include "asterisk/res_pjsip.h"
+-#include "asterisk/acl.h"
+ #include "include/res_pjsip_private.h"
+-#include "asterisk/taskprocessor.h"
+-#include "asterisk/threadpool.h"
+ #include "asterisk/res_pjsip_cli.h"
+ 
+ static int distribute(void *data);
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__global__headers.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__global__headers.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__global__headers.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,19 @@
+$NetBSD: patch-res_res__pjsip_pjsip__global__headers.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/pjsip_global_headers.c.orig  2018-06-20 15:04:07.107055522 +0000
++++ res/res_pjsip/pjsip_global_headers.c
+@@ -18,11 +18,13 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/linkedlists.h"
++#include "asterisk/network.h"
++
+ #include <pjsip.h>
+ #include <pjlib.h>
+ 
+ #include "asterisk/res_pjsip.h"
+-#include "asterisk/linkedlists.h"
+ #include "include/res_pjsip_private.h"
+ 
+ static pj_status_t add_request_headers(pjsip_tx_data *tdata);
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__message__filter.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__message__filter.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__message__filter.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-res_res__pjsip_pjsip__message__filter.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/pjsip_message_filter.c.orig  2018-06-20 15:11:13.041603718 +0000
++++ res/res_pjsip/pjsip_message_filter.c
+@@ -18,6 +18,8 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/network.h"
++
+ #include <pjsip.h>
+ #include <pjsip_ua.h>
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__options.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__options.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__options.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,33 @@
+$NetBSD: patch-res_res__pjsip_pjsip__options.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/pjsip_options.c.orig 2018-06-20 15:12:53.179204973 +0000
++++ res/res_pjsip/pjsip_options.c
+@@ -18,11 +18,6 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjsip_ua.h>
+-#include <pjlib.h>
+-
+-#include "asterisk/res_pjsip.h"
+ #include "asterisk/channel.h"
+ #include "asterisk/pbx.h"
+ #include "asterisk/astobj2.h"
+@@ -30,9 +25,15 @@
+ #include "asterisk/time.h"
+ #include "asterisk/test.h"
+ #include "asterisk/statsd.h"
+-#include "include/res_pjsip_private.h"
+ #include "asterisk/taskprocessor.h"
+ 
++#include <pjsip.h>
++#include <pjsip_ua.h>
++#include <pjlib.h>
++
++#include "asterisk/res_pjsip.h"
++#include "include/res_pjsip_private.h"
++
+ #define DEFAULT_LANGUAGE "en"
+ #define DEFAULT_ENCODING "text/plain"
+ #define QUALIFIED_BUCKETS 211
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__resolver.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__resolver.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__resolver.c      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,33 @@
+$NetBSD: patch-res_res__pjsip_pjsip__resolver.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/pjsip_resolver.c.orig        2018-06-20 15:09:57.824142836 +0000
++++ res/res_pjsip/pjsip_resolver.c
+@@ -18,9 +18,6 @@
+ 
+ #include "asterisk.h"
+ 
+-#include <pjsip.h>
+-#include <pjlib-util/errno.h>
+-
+ #include <arpa/nameser.h>
+ 
+ #include "asterisk/astobj2.h"
+@@ -28,11 +25,16 @@
+ #include "asterisk/dns_query_set.h"
+ #include "asterisk/dns_srv.h"
+ #include "asterisk/dns_naptr.h"
+-#include "asterisk/res_pjsip.h"
+-#include "include/res_pjsip_private.h"
++#include "asterisk/network.h"
+ #include "asterisk/taskprocessor.h"
+ #include "asterisk/threadpool.h"
+ 
++#include <pjsip.h>
++#include <pjlib-util/errno.h>
++
++#include "asterisk/res_pjsip.h"
++#include "include/res_pjsip_private.h"
++
+ #ifdef HAVE_PJSIP_EXTERNAL_RESOLVER
+ 
+ /*! \brief Structure which contains transport+port information for an active query */
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__scheduler.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__scheduler.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__scheduler.c     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,18 @@
+$NetBSD: patch-res_res__pjsip_pjsip__scheduler.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/pjsip_scheduler.c.orig       2018-06-20 15:01:28.428240101 +0000
++++ res/res_pjsip/pjsip_scheduler.c
+@@ -25,10 +25,12 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/network.h"
++#include "asterisk/taskprocessor.h"
++
+ #include "asterisk/res_pjsip.h"
+ #include "include/res_pjsip_private.h"
+ #include "asterisk/res_pjsip_cli.h"
+-#include "asterisk/taskprocessor.h"
+ 
+ #define TASK_BUCKETS 53
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__session.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__session.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__session.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,25 @@
+$NetBSD: patch-res_res__pjsip_pjsip__session.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/pjsip_session.c.orig 2018-06-20 15:05:52.774557946 +0000
++++ res/res_pjsip/pjsip_session.c
+@@ -18,6 +18,10 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/linkedlists.h"
++#include "asterisk/lock.h"
++#include "asterisk/module.h"
++
+ #include <pjsip.h>
+ #include <pjsip_ua.h>
+ #include <pjlib.h>
+@@ -25,9 +29,6 @@
+ #include "asterisk/res_pjsip.h"
+ #include "asterisk/res_pjsip_session.h"
+ #include "include/res_pjsip_private.h"
+-#include "asterisk/linkedlists.h"
+-#include "asterisk/lock.h"
+-#include "asterisk/module.h"
+ 
+ 
+ AST_RWLIST_HEAD_STATIC(session_supplements, ast_sip_session_supplement);
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__transport__events.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__transport__events.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__transport__events.c     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,20 @@
+$NetBSD: patch-res_res__pjsip_pjsip__transport__events.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/pjsip_transport_events.c.orig        2018-06-20 15:11:40.942746700 +0000
++++ res/res_pjsip/pjsip_transport_events.c
+@@ -29,11 +29,13 @@
+ 
+ #include "asterisk.h"
+ 
+-#include "asterisk/res_pjsip.h"
+-#include "include/res_pjsip_private.h"
+ #include "asterisk/linkedlists.h"
++#include "asterisk/network.h"
+ #include "asterisk/vector.h"
+ 
++#include "asterisk/res_pjsip.h"
++#include "include/res_pjsip_private.h"
++
+ /* ------------------------------------------------------------------- */
+ 
+ /*! \brief Number of buckets for monitored active transports */
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__transport__management.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__transport__management.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_pjsip__transport__management.c Mon Jul 16 21:53:05 2018
@@ -0,0 +1,20 @@
+$NetBSD: patch-res_res__pjsip_pjsip__transport__management.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/pjsip_transport_management.c.orig    2018-06-20 15:03:44.845962982 +0000
++++ res/res_pjsip/pjsip_transport_management.c
+@@ -20,12 +20,13 @@
+ 
+ #include <signal.h>
+ 
++#include "asterisk/module.h"
++#include "asterisk/astobj2.h"
++
+ #include <pjsip.h>
+ #include <pjsip_ua.h>
+ 
+ #include "asterisk/res_pjsip.h"
+-#include "asterisk/module.h"
+-#include "asterisk/astobj2.h"
+ #include "include/res_pjsip_private.h"
+ 
+ /*! \brief Number of buckets for monitored transports */
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_presence__xml.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_presence__xml.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_presence__xml.c        Mon Jul 16 21:53:05 2018
@@ -0,0 +1,20 @@
+$NetBSD: patch-res_res__pjsip_presence__xml.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/presence_xml.c.orig  2018-06-20 15:06:56.336281107 +0000
++++ res/res_pjsip/presence_xml.c
+@@ -18,12 +18,13 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/module.h"
++#include "asterisk/pbx.h"
++
+ #include <pjsip.h>
+ #include <pjsip_simple.h>
+ #include <pjlib.h>
+ 
+-#include "asterisk/module.h"
+-#include "asterisk/pbx.h"
+ #include "asterisk/res_pjsip_presence_xml.h"
+ 
+ void ast_sip_sanitize_xml(const char *input, char *output, size_t len)
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_security__events.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_security__events.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__pjsip_security__events.c     Mon Jul 16 21:53:05 2018
@@ -0,0 +1,17 @@
+$NetBSD: patch-res_res__pjsip_security__events.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_pjsip/security_events.c.orig       2018-06-20 15:13:16.454003414 +0000
++++ res/res_pjsip/security_events.c
+@@ -26,10 +26,11 @@
+ 
+ #include "asterisk.h"
+ 
++#include "asterisk/security_events.h"
++
+ #include <pjsip.h>
+ 
+ #include "asterisk/res_pjsip.h"
+-#include "asterisk/security_events.h"
+ 
+ static enum ast_transport security_event_get_transport(pjsip_rx_data *rdata)
+ {
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__rtp__asterisk.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__rtp__asterisk.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__rtp__asterisk.c      Mon Jul 16 21:53:05 2018
@@ -0,0 +1,44 @@
+$NetBSD: patch-res_res__rtp__asterisk.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_rtp_asterisk.c.orig        2018-06-20 15:19:48.478113854 +0000
++++ res/res_rtp_asterisk.c
+@@ -46,13 +46,6 @@
+ #include <openssl/bio.h>
+ #endif
+ 
+-#ifdef HAVE_PJPROJECT
+-#include <pjlib.h>
+-#include <pjlib-util.h>
+-#include <pjnath.h>
+-#include <ifaddrs.h>
+-#endif
+-
+ #include "asterisk/options.h"
+ #include "asterisk/stun.h"
+ #include "asterisk/pbx.h"
+@@ -72,7 +65,16 @@
+ #include "asterisk/uuid.h"
+ #include "asterisk/test.h"
+ #include "asterisk/data_buffer.h"
++
++static int is_zero_address(struct in_addr *addr) {
++  return !addr->s_addr;
++}
+ #ifdef HAVE_PJPROJECT
++#include <pjlib.h>
++#include <pjlib-util.h>
++#include <pjnath.h>
++#include <ifaddrs.h>
++
+ #include "asterisk/res_pjproject.h"
+ #endif
+ 
+@@ -3254,7 +3256,7 @@ static void rtp_add_candidates_to_ice(st
+       }
+ 
+       /* If configured to use a STUN server to get our external mapped address do so */
+-      if (count && stunaddr.sin_addr.s_addr && !stun_address_is_blacklisted(addr) &&
++      if (count && !is_zero_address(&stunaddr.sin_addr) && !stun_address_is_blacklisted(addr) &&
+               (ast_sockaddr_is_ipv4(addr) || ast_sockaddr_is_any(addr))) {
+               struct sockaddr_in answer;
+               int rsp;
Index: pkgsrc/comms/asterisk15/patches/patch-res_res__xmpp.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-res_res__xmpp.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-res_res__xmpp.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-res_res__xmpp.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- res/res_xmpp.c.orig        2018-06-19 21:29:29.310245367 +0000
++++ res/res_xmpp.c
+@@ -3746,7 +3746,7 @@ static int xmpp_client_receive(struct as
+                       /* if we stumble on the ending tag character,
+                          we skip any whitespace that follows it*/
+                       if (c == '>') {
+-                              while (isspace(buf[pos+1])) {
++                              while (isspace((unsigned char)buf[pos+1])) {
+                                       pos++;
+                               }
+                       }
Index: pkgsrc/comms/asterisk15/patches/patch-sounds_Makefile
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-sounds_Makefile:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-sounds_Makefile       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,25 @@
+$NetBSD: patch-sounds_Makefile,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- sounds/Makefile.orig       2018-05-01 20:12:26.000000000 +0000
++++ sounds/Makefile
+@@ -124,20 +124,6 @@ endef # sound_format_lang_rule
+ all: $(CORE_SOUNDS) $(EXTRA_SOUNDS) $(MOH)
+ 
+ have_download:
+-      @if test "$(DOWNLOAD)" = ":" ; then \
+-              echo "**************************************************"; \
+-              echo "***                                            ***"; \
+-              echo "*** You must have either wget, curl, or fetch  ***"; \
+-              echo "*** to be able to automatically download and   ***"; \
+-              echo "*** install the requested sound packages.      ***"; \
+-              echo "***                                            ***"; \
+-              echo "*** Please install one of these, or remove any ***"; \
+-              echo "*** extra sound package selections in          ***"; \
+-              echo "*** menuselect before installing Asterisk.     ***"; \
+-              echo "***                                            ***"; \
+-              echo "**************************************************"; \
+-              exit 1; \
+-      fi
+ 
+ $(eval $(call sound_format_lang_rule,$(SOUNDS_DIR),core-sounds,en,$(CORE_SOUNDS_VERSION)))
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-tests_test__locale.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-tests_test__locale.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-tests_test__locale.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-tests_test__locale.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- tests/test_locale.c.orig   2015-10-09 21:48:48.000000000 +0000
++++ tests/test_locale.c
+@@ -81,7 +81,7 @@ static char *handle_cli_test_locales(str
+ 
+       /* First we run a set of tests with the global locale, which isn't thread-safe. */
+       if (!(localedir = opendir(
+-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__ ) || defined(__APPLE__)
++#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__ ) || defined(__APPLE__) || defined(__DragonFly__)
+               "/usr/share/locale"
+ #else /* Linux */
+               "/usr/lib/locale"
Index: pkgsrc/comms/asterisk15/patches/patch-tests_test__voicemail__api.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-tests_test__voicemail__api.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-tests_test__voicemail__api.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-tests_test__voicemail__api.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- tests/test_voicemail_api.c.orig    2015-10-09 21:48:48.000000000 +0000
++++ tests/test_voicemail_api.c
+@@ -383,7 +383,7 @@ static struct ast_vm_msg_snapshot *test_
+       struct ast_vm_msg_snapshot *snapshot;
+ 
+       snprintf(msg_id_hash, sizeof(msg_id_hash), "%s%s%s", exten, context, callerid);
+-      snprintf(msg_id_buf, sizeof(msg_id_buf), "%ld-%d", (long)time(NULL), ast_str_hash(msg_id_hash));
++      snprintf(msg_id_buf, sizeof(msg_id_buf), "%jd-%d", (intmax_t)time(NULL), ast_str_hash(msg_id_hash));
+ 
+       if ((snapshot = ast_calloc(1, sizeof(*snapshot)))) {
+               if (ast_string_field_init(snapshot, 128)) {
Index: pkgsrc/comms/asterisk15/patches/patch-utils_Makefile
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-utils_Makefile:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-utils_Makefile        Mon Jul 16 21:53:05 2018
@@ -0,0 +1,24 @@
+$NetBSD: patch-utils_Makefile,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- utils/Makefile.orig        2018-05-01 20:12:26.000000000 +0000
++++ utils/Makefile
+@@ -41,6 +41,10 @@ ifeq ($(OSARCH),SunOS)
+   UTILS:=$(filter-out muted,$(UTILS))
+ endif
+ 
++ifeq ($(OSARCH),NetBSD)
++  UTILS:=$(filter-out muted,$(UTILS))
++endif
++
+ ifeq ($(OSARCH),OpenBSD)
+   UTILS:=$(filter-out muted,$(UTILS))
+ endif
+@@ -75,7 +79,7 @@ all: $(UTILS)
+ install:
+       for x in $(UTILS); do \
+               if [ "$$x" != "none" ]; then \
+-                      $(INSTALL) -m 755 $$x "$(DESTDIR)$(ASTSBINDIR)/$$x"; \
++                      $(BSD_INSTALL_PROGRAM) $$x "$(DESTDIR)$(ASTSBINDIR)/$$x"; \
+               fi; \
+       done
+ 
Index: pkgsrc/comms/asterisk15/patches/patch-utils_db1-ast_include_db.h
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-utils_db1-ast_include_db.h:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-utils_db1-ast_include_db.h    Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-utils_db1-ast_include_db.h,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- utils/db1-ast/include/db.h.orig    2015-10-09 21:48:48.000000000 +0000
++++ utils/db1-ast/include/db.h
+@@ -55,7 +55,7 @@
+ 
+ #ifndef       __BIT_TYPES_DEFINED__
+ #define       __BIT_TYPES_DEFINED__
+-#if (!defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__APPLE__))
++#if (!defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) && !defined(__DragonFly__))
+ typedef       __signed char              int8_t;
+ typedef       short                     int16_t;
+ typedef       int                       int32_t;
Index: pkgsrc/comms/asterisk15/patches/patch-utils_extconf.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-utils_extconf.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-utils_extconf.c       Mon Jul 16 21:53:05 2018
@@ -0,0 +1,67 @@
+$NetBSD: patch-utils_extconf.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- utils/extconf.c.orig       2015-10-09 21:48:48.000000000 +0000
++++ utils/extconf.c
+@@ -593,6 +593,10 @@ static void  __attribute__((destructor))
+ #include "libkern/OSAtomic.h"
+ #endif
+ 
++#if defined(HAVE_SYS_ATOMIC_H)
++#include <sys/atomic.h>
++#endif
++
+ /*! \brief Atomically add v to *p and return * the previous value of *p.
+  * This can be used to handle reference counts, and the return value
+  * can be used to generate unique identifiers.
+@@ -606,12 +610,18 @@ AST_INLINE_API(int ast_atomic_fetchadd_i
+ #elif defined(HAVE_OSX_ATOMICS) && (SIZEOF_INT == 4)
+ AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
+ {
+-      return OSAtomicAdd32(v, (int32_t *) p);
++      return OSAtomicAdd32(v, (int32_t *) p) - v;
+ })
+ #elif defined(HAVE_OSX_ATOMICS) && (SIZEOF_INT == 8)
+ AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
+ {
+-      return OSAtomicAdd64(v, (int64_t *) p);
++      return OSAtomicAdd64(v, (int64_t *) p) - v;
++})
++#elif defined(HAVE_SYS_ATOMIC_H)
++AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
++{
++      return atomic_add_int_nv((unsigned int *)p, v) - v;
++})
+ #elif defined (__i386__) || defined(__x86_64__)
+ AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
+ {
+@@ -653,6 +663,12 @@ AST_INLINE_API(int ast_atomic_dec_and_te
+ AST_INLINE_API(int ast_atomic_dec_and_test(volatile int *p),
+ {
+       return OSAtomicAdd64( -1, (int64_t *) p) == 0;
++})
++#elif defined(HAVE_SYS_ATOMIC_H)
++AST_INLINE_API(int ast_atomic_dec_and_test(volatile int *p),
++{
++      return atomic_dec_uint_nv((unsigned int *)p) == 0;
++})
+ #else
+ AST_INLINE_API(int ast_atomic_dec_and_test(volatile int *p),
+ {
+@@ -2537,13 +2553,13 @@ static int ast_true(const char *s)
+ static struct timeval tvfix(struct timeval a)
+ {
+       if (a.tv_usec >= ONE_MILLION) {
+-              ast_log(LOG_WARNING, "warning too large timestamp %ld.%ld\n",
+-                      (long)a.tv_sec, (long int) a.tv_usec);
++              ast_log(LOG_WARNING, "warning too large timestamp %jd.%ld\n",
++                      (intmax_t)a.tv_sec, (long int) a.tv_usec);
+               a.tv_sec += a.tv_usec / ONE_MILLION;
+               a.tv_usec %= ONE_MILLION;
+       } else if (a.tv_usec < 0) {
+-              ast_log(LOG_WARNING, "warning negative timestamp %ld.%ld\n",
+-                      (long)a.tv_sec, (long int) a.tv_usec);
++              ast_log(LOG_WARNING, "warning negative timestamp %jd.%ld\n",
++                      (intmax_t)a.tv_sec, (long int) a.tv_usec);
+               a.tv_usec = 0;
+       }
+       return a;
Index: pkgsrc/comms/asterisk15/patches/patch-utils_smsq.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-utils_smsq.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-utils_smsq.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-utils_smsq.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- utils/smsq.c.orig  2015-10-09 21:48:48.000000000 +0000
++++ utils/smsq.c
+@@ -687,7 +687,7 @@ main (int argc, const char *argv[])
+       snprintf (temp, sizeof(temp), "sms/.smsq-%d", (int)getpid ());
+       mkdir ("sms", 0777);      /* ensure directory exists */
+       mkdir (dir, 0777);        /* ensure directory exists */
+-      snprintf (queuename, sizeof(queuename), "%s/%s.%ld-%d", dir, *queue ? queue : "0", (long)time (0), (int)getpid ());
++      snprintf (queuename, sizeof(queuename), "%s/%s.%jd-%d", dir, *queue ? queue : "0", (intmax_t)time (0), (int)getpid ());
+       f = fopen (temp, "w");
+       if (!f)
+       {
Index: pkgsrc/comms/asterisk15/patches/patch-utils_streamplayer.c
diff -u /dev/null pkgsrc/comms/asterisk15/patches/patch-utils_streamplayer.c:1.1
--- /dev/null   Mon Jul 16 21:53:05 2018
+++ pkgsrc/comms/asterisk15/patches/patch-utils_streamplayer.c  Mon Jul 16 21:53:05 2018
@@ -0,0 +1,13 @@
+$NetBSD: patch-utils_streamplayer.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
+
+--- utils/streamplayer.c.orig  2015-10-09 21:48:48.000000000 +0000
++++ utils/streamplayer.c
+@@ -53,7 +53,7 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__Darwin__) || defined(__CYGWIN__)
++#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__Darwin__) || defined(__CYGWIN__) || defined(__DragonFly__)
+ #include <netinet/in.h>
+ #endif
+ #include <sys/time.h>



Home | Main Index | Thread Index | Old Index