[asterisk-commits] mvanbaak: branch mvanbaak/res_clialiases_unconditional r154877 - in /team/mva...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Nov 5 15:21:13 CST 2008
Author: mvanbaak
Date: Wed Nov 5 15:21:11 2008
New Revision: 154877
URL: http://svn.digium.com/view/asterisk?view=rev&rev=154877
Log:
Blocked revisions 154839 via svnmerge
........
r154839 | mvanbaak | 2008-11-05 21:33:11 +0100 (Wed, 05 Nov 2008) | 2 lines
make this compile on OpenBSD again.
........
Added:
team/mvanbaak/res_clialiases_unconditional/contrib/scripts/live_ast
- copied unchanged from r154875, trunk/contrib/scripts/live_ast
team/mvanbaak/res_clialiases_unconditional/include/asterisk/buildinfo.h
- copied unchanged from r154875, trunk/include/asterisk/buildinfo.h
team/mvanbaak/res_clialiases_unconditional/include/asterisk/xml.h
- copied unchanged from r154875, trunk/include/asterisk/xml.h
team/mvanbaak/res_clialiases_unconditional/main/xml.c
- copied unchanged from r154875, trunk/main/xml.c
Modified:
team/mvanbaak/res_clialiases_unconditional/ (props changed)
team/mvanbaak/res_clialiases_unconditional/CHANGES
team/mvanbaak/res_clialiases_unconditional/Makefile
team/mvanbaak/res_clialiases_unconditional/agi/eagi-sphinx-test.c
team/mvanbaak/res_clialiases_unconditional/agi/eagi-test.c
team/mvanbaak/res_clialiases_unconditional/apps/app_adsiprog.c
team/mvanbaak/res_clialiases_unconditional/apps/app_alarmreceiver.c
team/mvanbaak/res_clialiases_unconditional/apps/app_amd.c
team/mvanbaak/res_clialiases_unconditional/apps/app_authenticate.c
team/mvanbaak/res_clialiases_unconditional/apps/app_cdr.c
team/mvanbaak/res_clialiases_unconditional/apps/app_chanisavail.c
team/mvanbaak/res_clialiases_unconditional/apps/app_channelredirect.c
team/mvanbaak/res_clialiases_unconditional/apps/app_chanspy.c
team/mvanbaak/res_clialiases_unconditional/apps/app_controlplayback.c
team/mvanbaak/res_clialiases_unconditional/apps/app_dahdibarge.c
team/mvanbaak/res_clialiases_unconditional/apps/app_dahdiras.c
team/mvanbaak/res_clialiases_unconditional/apps/app_dahdiscan.c
team/mvanbaak/res_clialiases_unconditional/apps/app_db.c
team/mvanbaak/res_clialiases_unconditional/apps/app_dial.c
team/mvanbaak/res_clialiases_unconditional/apps/app_dictate.c
team/mvanbaak/res_clialiases_unconditional/apps/app_directed_pickup.c
team/mvanbaak/res_clialiases_unconditional/apps/app_directory.c
team/mvanbaak/res_clialiases_unconditional/apps/app_disa.c
team/mvanbaak/res_clialiases_unconditional/apps/app_dumpchan.c
team/mvanbaak/res_clialiases_unconditional/apps/app_echo.c
team/mvanbaak/res_clialiases_unconditional/apps/app_exec.c
team/mvanbaak/res_clialiases_unconditional/apps/app_fax.c
team/mvanbaak/res_clialiases_unconditional/apps/app_festival.c
team/mvanbaak/res_clialiases_unconditional/apps/app_flash.c
team/mvanbaak/res_clialiases_unconditional/apps/app_followme.c
team/mvanbaak/res_clialiases_unconditional/apps/app_forkcdr.c
team/mvanbaak/res_clialiases_unconditional/apps/app_getcpeid.c
team/mvanbaak/res_clialiases_unconditional/apps/app_ices.c
team/mvanbaak/res_clialiases_unconditional/apps/app_image.c
team/mvanbaak/res_clialiases_unconditional/apps/app_ivrdemo.c
team/mvanbaak/res_clialiases_unconditional/apps/app_jack.c
team/mvanbaak/res_clialiases_unconditional/apps/app_macro.c
team/mvanbaak/res_clialiases_unconditional/apps/app_milliwatt.c
team/mvanbaak/res_clialiases_unconditional/apps/app_mixmonitor.c
team/mvanbaak/res_clialiases_unconditional/apps/app_morsecode.c
team/mvanbaak/res_clialiases_unconditional/apps/app_mp3.c
team/mvanbaak/res_clialiases_unconditional/apps/app_nbscat.c
team/mvanbaak/res_clialiases_unconditional/apps/app_osplookup.c
team/mvanbaak/res_clialiases_unconditional/apps/app_page.c
team/mvanbaak/res_clialiases_unconditional/apps/app_parkandannounce.c
team/mvanbaak/res_clialiases_unconditional/apps/app_playback.c
team/mvanbaak/res_clialiases_unconditional/apps/app_privacy.c
team/mvanbaak/res_clialiases_unconditional/apps/app_queue.c
team/mvanbaak/res_clialiases_unconditional/apps/app_read.c
team/mvanbaak/res_clialiases_unconditional/apps/app_readexten.c
team/mvanbaak/res_clialiases_unconditional/apps/app_readfile.c
team/mvanbaak/res_clialiases_unconditional/apps/app_record.c
team/mvanbaak/res_clialiases_unconditional/apps/app_sayunixtime.c
team/mvanbaak/res_clialiases_unconditional/apps/app_senddtmf.c
team/mvanbaak/res_clialiases_unconditional/apps/app_sendtext.c
team/mvanbaak/res_clialiases_unconditional/apps/app_setcallerid.c
team/mvanbaak/res_clialiases_unconditional/apps/app_skel.c
team/mvanbaak/res_clialiases_unconditional/apps/app_sms.c
team/mvanbaak/res_clialiases_unconditional/apps/app_softhangup.c
team/mvanbaak/res_clialiases_unconditional/apps/app_stack.c
team/mvanbaak/res_clialiases_unconditional/apps/app_system.c
team/mvanbaak/res_clialiases_unconditional/apps/app_talkdetect.c
team/mvanbaak/res_clialiases_unconditional/apps/app_test.c
team/mvanbaak/res_clialiases_unconditional/apps/app_transfer.c
team/mvanbaak/res_clialiases_unconditional/apps/app_url.c
team/mvanbaak/res_clialiases_unconditional/apps/app_userevent.c
team/mvanbaak/res_clialiases_unconditional/apps/app_verbose.c
team/mvanbaak/res_clialiases_unconditional/apps/app_voicemail.c
team/mvanbaak/res_clialiases_unconditional/apps/app_waitforring.c
team/mvanbaak/res_clialiases_unconditional/apps/app_waitforsilence.c
team/mvanbaak/res_clialiases_unconditional/apps/app_waituntil.c
team/mvanbaak/res_clialiases_unconditional/apps/app_while.c
team/mvanbaak/res_clialiases_unconditional/apps/app_zapateller.c
team/mvanbaak/res_clialiases_unconditional/autoconf/ast_ext_lib.m4
team/mvanbaak/res_clialiases_unconditional/autoconf/ast_gcc_attribute.m4
team/mvanbaak/res_clialiases_unconditional/bootstrap.sh
team/mvanbaak/res_clialiases_unconditional/build_tools/menuselect-deps.in
team/mvanbaak/res_clialiases_unconditional/cdr/cdr_adaptive_odbc.c
team/mvanbaak/res_clialiases_unconditional/cdr/cdr_odbc.c
team/mvanbaak/res_clialiases_unconditional/channels/Makefile
team/mvanbaak/res_clialiases_unconditional/channels/chan_agent.c
team/mvanbaak/res_clialiases_unconditional/channels/chan_alsa.c
team/mvanbaak/res_clialiases_unconditional/channels/chan_dahdi.c
team/mvanbaak/res_clialiases_unconditional/channels/chan_h323.c
team/mvanbaak/res_clialiases_unconditional/channels/chan_iax2.c
team/mvanbaak/res_clialiases_unconditional/channels/chan_local.c
team/mvanbaak/res_clialiases_unconditional/channels/chan_mgcp.c
team/mvanbaak/res_clialiases_unconditional/channels/chan_misdn.c
team/mvanbaak/res_clialiases_unconditional/channels/chan_oss.c
team/mvanbaak/res_clialiases_unconditional/channels/chan_sip.c
team/mvanbaak/res_clialiases_unconditional/channels/chan_skinny.c
team/mvanbaak/res_clialiases_unconditional/channels/chan_usbradio.c
team/mvanbaak/res_clialiases_unconditional/channels/chan_vpb.cc
team/mvanbaak/res_clialiases_unconditional/channels/misdn/isdn_lib.c
team/mvanbaak/res_clialiases_unconditional/channels/misdn/isdn_lib.h
team/mvanbaak/res_clialiases_unconditional/channels/misdn/isdn_lib_intern.h
team/mvanbaak/res_clialiases_unconditional/codecs/lpc10/chanwr.c
team/mvanbaak/res_clialiases_unconditional/configs/extensions.conf.sample
team/mvanbaak/res_clialiases_unconditional/configs/features.conf.sample
team/mvanbaak/res_clialiases_unconditional/configs/func_odbc.conf.sample
team/mvanbaak/res_clialiases_unconditional/configs/phoneprov.conf.sample
team/mvanbaak/res_clialiases_unconditional/configs/sip.conf.sample
team/mvanbaak/res_clialiases_unconditional/configure
team/mvanbaak/res_clialiases_unconditional/configure.ac
team/mvanbaak/res_clialiases_unconditional/contrib/scripts/vmdb.sql
team/mvanbaak/res_clialiases_unconditional/doc/ (props changed)
team/mvanbaak/res_clialiases_unconditional/doc/tex/asterisk-conf.tex
team/mvanbaak/res_clialiases_unconditional/doc/tex/channelvariables.tex
team/mvanbaak/res_clialiases_unconditional/formats/format_gsm.c
team/mvanbaak/res_clialiases_unconditional/formats/format_ogg_vorbis.c
team/mvanbaak/res_clialiases_unconditional/formats/format_wav.c
team/mvanbaak/res_clialiases_unconditional/formats/format_wav_gsm.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_base64.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_blacklist.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_callerid.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_cdr.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_channel.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_config.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_cut.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_db.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_devstate.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_dialgroup.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_dialplan.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_enum.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_env.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_extstate.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_global.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_groupcount.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_iconv.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_lock.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_logic.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_math.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_md5.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_module.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_odbc.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_rand.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_realtime.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_sha1.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_shell.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_speex.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_strings.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_timeout.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_uri.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_version.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_vmcount.c
team/mvanbaak/res_clialiases_unconditional/funcs/func_volume.c
team/mvanbaak/res_clialiases_unconditional/include/asterisk/_private.h
team/mvanbaak/res_clialiases_unconditional/include/asterisk/agi.h
team/mvanbaak/res_clialiases_unconditional/include/asterisk/autoconfig.h.in
team/mvanbaak/res_clialiases_unconditional/include/asterisk/channel.h
team/mvanbaak/res_clialiases_unconditional/include/asterisk/compat.h
team/mvanbaak/res_clialiases_unconditional/include/asterisk/compiler.h
team/mvanbaak/res_clialiases_unconditional/include/asterisk/config.h
team/mvanbaak/res_clialiases_unconditional/include/asterisk/devicestate.h
team/mvanbaak/res_clialiases_unconditional/include/asterisk/dial.h
team/mvanbaak/res_clialiases_unconditional/include/asterisk/extconf.h
team/mvanbaak/res_clialiases_unconditional/include/asterisk/features.h
team/mvanbaak/res_clialiases_unconditional/include/asterisk/module.h
team/mvanbaak/res_clialiases_unconditional/include/asterisk/pbx.h
team/mvanbaak/res_clialiases_unconditional/include/asterisk/sched.h
team/mvanbaak/res_clialiases_unconditional/include/asterisk/strings.h
team/mvanbaak/res_clialiases_unconditional/include/asterisk/term.h
team/mvanbaak/res_clialiases_unconditional/include/asterisk/timing.h
team/mvanbaak/res_clialiases_unconditional/main/Makefile
team/mvanbaak/res_clialiases_unconditional/main/ast_expr2f.c
team/mvanbaak/res_clialiases_unconditional/main/asterisk.c
team/mvanbaak/res_clialiases_unconditional/main/buildinfo.c
team/mvanbaak/res_clialiases_unconditional/main/cdr.c
team/mvanbaak/res_clialiases_unconditional/main/channel.c
team/mvanbaak/res_clialiases_unconditional/main/config.c
team/mvanbaak/res_clialiases_unconditional/main/db1-ast/hash/hash_page.c
team/mvanbaak/res_clialiases_unconditional/main/devicestate.c
team/mvanbaak/res_clialiases_unconditional/main/dial.c
team/mvanbaak/res_clialiases_unconditional/main/dnsmgr.c
team/mvanbaak/res_clialiases_unconditional/main/features.c
team/mvanbaak/res_clialiases_unconditional/main/file.c
team/mvanbaak/res_clialiases_unconditional/main/http.c
team/mvanbaak/res_clialiases_unconditional/main/logger.c
team/mvanbaak/res_clialiases_unconditional/main/manager.c
team/mvanbaak/res_clialiases_unconditional/main/pbx.c
team/mvanbaak/res_clialiases_unconditional/main/rtp.c
team/mvanbaak/res_clialiases_unconditional/main/term.c
team/mvanbaak/res_clialiases_unconditional/main/utils.c
team/mvanbaak/res_clialiases_unconditional/makeopts.in
team/mvanbaak/res_clialiases_unconditional/pbx/pbx_config.c
team/mvanbaak/res_clialiases_unconditional/pbx/pbx_dundi.c
team/mvanbaak/res_clialiases_unconditional/pbx/pbx_lua.c
team/mvanbaak/res_clialiases_unconditional/res/ael/ael.flex
team/mvanbaak/res_clialiases_unconditional/res/ael/ael.tab.c
team/mvanbaak/res_clialiases_unconditional/res/ael/ael.y
team/mvanbaak/res_clialiases_unconditional/res/ael/ael_lex.c
team/mvanbaak/res_clialiases_unconditional/res/res_agi.c
team/mvanbaak/res_clialiases_unconditional/res/res_config_odbc.c
team/mvanbaak/res_clialiases_unconditional/res/res_config_sqlite.c
team/mvanbaak/res_clialiases_unconditional/res/res_crypto.c
team/mvanbaak/res_clialiases_unconditional/res/res_http_post.c
team/mvanbaak/res_clialiases_unconditional/res/res_indications.c
team/mvanbaak/res_clialiases_unconditional/res/res_jabber.c
team/mvanbaak/res_clialiases_unconditional/res/res_musiconhold.c
team/mvanbaak/res_clialiases_unconditional/res/res_odbc.c
team/mvanbaak/res_clialiases_unconditional/res/res_phoneprov.c
team/mvanbaak/res_clialiases_unconditional/utils/astcanary.c
team/mvanbaak/res_clialiases_unconditional/utils/astman.c
team/mvanbaak/res_clialiases_unconditional/utils/frame.c
team/mvanbaak/res_clialiases_unconditional/utils/muted.c
team/mvanbaak/res_clialiases_unconditional/utils/stereorize.c
team/mvanbaak/res_clialiases_unconditional/utils/streamplayer.c
Propchange: team/mvanbaak/res_clialiases_unconditional/
------------------------------------------------------------------------------
Binary property 'branch-1.4-blocked' - no diff available.
Propchange: team/mvanbaak/res_clialiases_unconditional/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Propchange: team/mvanbaak/res_clialiases_unconditional/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Wed Nov 5 15:21:11 2008
@@ -1,1 +1,1 @@
-/team/group/res_clialiases:1-151235 /trunk:1-151309
+/team/group/res_clialiases:1-151235 /trunk:1-154875
Modified: team/mvanbaak/res_clialiases_unconditional/CHANGES
URL: http://svn.digium.com/view/asterisk/team/mvanbaak/res_clialiases_unconditional/CHANGES?view=diff&rev=154877&r1=154876&r2=154877
==============================================================================
--- team/mvanbaak/res_clialiases_unconditional/CHANGES (original)
+++ team/mvanbaak/res_clialiases_unconditional/CHANGES Wed Nov 5 15:21:11 2008
@@ -9,6 +9,12 @@
subscribed to.
* Added support for subscribing to a voice mailbox on a remote server and
making the new/old message count available to local devices.
+ * Added support for setting the domain in the URI for caller of an
+ outbound call by using the SIPFROMDOMAIN channel variable.
+ * Added a new configuration option "remotesecret" for authentication to
+ remote services. For backwards compatibility, "secret" still has the
+ same function as before, but now you can configure both a remote secret and a
+ local secret for mutual authentication.
Skinny Changes
--------------
@@ -23,6 +29,9 @@
cookies, proxies, connection timeouts, passwords, etc.
* Permit the syntax and synopsis fields of the corresponding dialplan
functions to be individually set from func_odbc.conf.
+ * Added debugging CLI functions to func_odbc, 'odbc read' and 'odbc write'.
+ * func_odbc now may specify an insert query to execute, when the write query
+ affects 0 rows (usually indicating that no such row exists).
Applications
------------
@@ -30,6 +39,9 @@
using MeetMeAdmin.
* app_authenticate now gives the ability to select a prompt other than
the default.
+ * app_directory now pays attention to the searchcontexts setting in
+ voicemail.conf and will look through all contexts, if no context is
+ specified in the initial argument.
Miscellaneous
-------------
@@ -677,6 +689,7 @@
WaitForRing() now takes floating pt timeout arg.
SpeechBackground() -- clarified in the docstrings that the timeout is an integer seconds.
* Added 's' option to Page application.
+ * Added an optional timeout argument to the Page application.
* Added 'E', 'V', and 'P' commands to ExternalIVR.
* Added 'o' and 'X' options to Chanspy.
* Added a new dialplan application, Bridge, which allows you to bridge the
@@ -763,6 +776,7 @@
the first one available.
* Added cli command 'features reload' to reload call features from features.conf
* Moved into core asterisk binary.
+ * Changed the default setting for featuredigittimeout to 2000 ms from 500 ms.
Language Support Changes
------------------------
Modified: team/mvanbaak/res_clialiases_unconditional/Makefile
URL: http://svn.digium.com/view/asterisk/team/mvanbaak/res_clialiases_unconditional/Makefile?view=diff&rev=154877&r1=154876&r2=154877
==============================================================================
--- team/mvanbaak/res_clialiases_unconditional/Makefile (original)
+++ team/mvanbaak/res_clialiases_unconditional/Makefile Wed Nov 5 15:21:11 2008
@@ -104,6 +104,9 @@
# CFLAGS and LDFLAGS in the COPTS and LDOPTS variables.
ASTCFLAGS+=$(COPTS)
ASTLDFLAGS+=$(LDOPTS)
+
+# libxml2 cflags
+ASTCFLAGS+=$(LIBXML2_INCLUDE)
#Uncomment this to see all build commands instead of 'quiet' output
#NOISY_BUILD=yes
@@ -348,7 +351,7 @@
@echo " + $(mK) install +"
@echo " +-------------------------------------------+"
-_all: cleantest makeopts $(SUBDIRS)
+_all: cleantest makeopts $(SUBDIRS) doc/core-en_US.xml
makeopts: configure
@echo "****"
@@ -480,6 +483,29 @@
done
mkdir -p $(DESTDIR)$(AGI_DIR)
$(MAKE) -C sounds install
+
+doc/core-en_US.xml: $(foreach dir,$(MOD_SUBDIRS),$(wildcard $(dir)/*.c) $(wildcard $(dir)/*.cc))
+ @echo -n "Building Documentation For: "
+ @echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > $@
+ @echo "<!DOCTYPE docs SYSTEM \"appdocsxml.dtd\">" >> $@
+ @echo "<docs>" >> $@
+ @for x in $(MOD_SUBDIRS); do \
+ echo -n "$$x " ; \
+ for i in $$x/*.c; do \
+ $(AWK) -f build_tools/get_documentation $$i >> $@ ; \
+ done ; \
+ done
+ @echo
+ @echo "</docs>" >> $@
+
+validate-docs: doc/core-en_US.xml
+ifeq ($(XMLSTARLET),:)
+ @echo "---------------------------------------------------------------"
+ @echo "--- Please install xmlstarlet to validate the documentation ---"
+ @echo "---------------------------------------------------------------"
+else
+ $(XMLSTARLET) val -d doc/appdocsxml.dtd $<
+endif
update:
@if [ -d .svn ]; then \
@@ -529,12 +555,16 @@
if [ -n "$(OLDHEADERS)" ]; then \
rm -f $(addprefix $(DESTDIR)$(ASTHEADERDIR)/,$(OLDHEADERS)) ;\
fi
+ mkdir -p $(DESTDIR)$(ASTDATADIR)/documentation
+ mkdir -p $(DESTDIR)$(ASTDATADIR)/documentation/thirdparty
mkdir -p $(DESTDIR)$(ASTLOGDIR)/cdr-csv
mkdir -p $(DESTDIR)$(ASTLOGDIR)/cdr-custom
mkdir -p $(DESTDIR)$(ASTDATADIR)/keys
mkdir -p $(DESTDIR)$(ASTDATADIR)/firmware
mkdir -p $(DESTDIR)$(ASTDATADIR)/firmware/iax
mkdir -p $(DESTDIR)$(ASTMANDIR)/man8
+ $(INSTALL) -m 644 doc/core-*.xml $(ASTDATADIR)/documentation
+ $(INSTALL) -m 644 doc/appdocsxml.dtd $(ASTVARLIBDIR)/documentation
$(INSTALL) -m 644 keys/iaxtel.pub $(DESTDIR)$(ASTDATADIR)/keys
$(INSTALL) -m 644 keys/freeworlddialup.pub $(DESTDIR)$(ASTDATADIR)/keys
$(INSTALL) -m 644 doc/asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8
@@ -656,7 +686,7 @@
echo "astrundir => $(ASTVARRUNDIR)" ; \
echo "astlogdir => $(ASTLOGDIR)" ; \
echo "" ; \
- echo ";[options]" ; \
+ echo "[options]" ; \
echo ";verbose = 3" ; \
echo ";debug = 3" ; \
echo ";alwaysfork = yes ; same as -F at startup" ; \
@@ -686,6 +716,7 @@
echo ";runuser = asterisk ; The user to run as" ; \
echo ";rungroup = asterisk ; The group to run as" ; \
echo ";lightbackground = yes ; If your terminal is set for a light-colored background" ; \
+ echo "documentation_language = en_US ; Set the Language you want Documentation displayed in. Value is in the same format as locale names" ; \
echo "" ; \
echo "; Changing the following lines may compromise your security." ; \
echo ";[files]" ; \
@@ -902,7 +933,7 @@
asterisk.pdf:
$(MAKE) -C doc/tex asterisk.pdf
-.PHONY: menuselect menuselect.makeopts main sounds clean dist-clean distclean all prereqs cleantest uninstall _uninstall uninstall-all pdf dont-optimize $(SUBDIRS_INSTALL) $(SUBDIRS_DIST_CLEAN) $(SUBDIRS_CLEAN) $(SUBDIRS_UNINSTALL) $(SUBDIRS) $(MOD_SUBDIRS_EMBED_LDSCRIPT) $(MOD_SUBDIRS_EMBED_LDFLAGS) $(MOD_SUBDIRS_EMBED_LIBS) badshell installdirs
+.PHONY: menuselect menuselect.makeopts main sounds clean dist-clean distclean all prereqs cleantest uninstall _uninstall uninstall-all pdf dont-optimize $(SUBDIRS_INSTALL) $(SUBDIRS_DIST_CLEAN) $(SUBDIRS_CLEAN) $(SUBDIRS_UNINSTALL) $(SUBDIRS) $(MOD_SUBDIRS_EMBED_LDSCRIPT) $(MOD_SUBDIRS_EMBED_LDFLAGS) $(MOD_SUBDIRS_EMBED_LIBS) badshell installdirs validate-docs
FORCE:
Modified: team/mvanbaak/res_clialiases_unconditional/agi/eagi-sphinx-test.c
URL: http://svn.digium.com/view/asterisk/team/mvanbaak/res_clialiases_unconditional/agi/eagi-sphinx-test.c?view=diff&rev=154877&r1=154876&r2=154877
==============================================================================
--- team/mvanbaak/res_clialiases_unconditional/agi/eagi-sphinx-test.c (original)
+++ team/mvanbaak/res_clialiases_unconditional/agi/eagi-sphinx-test.c Wed Nov 5 15:21:11 2008
@@ -79,7 +79,9 @@
char *val;
/* Read environment */
for(;;) {
- fgets(buf, sizeof(buf), stdin);
+ if (!fgets(buf, sizeof(buf), stdin)) {
+ return -1;
+ }
if (feof(stdin))
return -1;
buf[strlen(buf) - 1] = '\0';
@@ -130,7 +132,9 @@
return NULL;
}
if (FD_ISSET(STDIN_FILENO, &fds)) {
- fgets(astresp, sizeof(astresp), stdin);
+ if (!fgets(astresp, sizeof(astresp), stdin)) {
+ return NULL;
+ }
if (feof(stdin)) {
fprintf(stderr, "Got hungup on apparently\n");
return NULL;
@@ -141,9 +145,10 @@
}
if (FD_ISSET(AUDIO_FILENO, &fds)) {
res = read(AUDIO_FILENO, audiobuf, sizeof(audiobuf));
- if (res > 0) {
- if (sphinx_sock > -1)
- write(sphinx_sock, audiobuf, res);
+ if ((res > 0) && (sphinx_sock > -1)) {
+ if (write(sphinx_sock, audiobuf, res) < 0) {
+ fprintf(stderr, "write() failed: %s\n", strerror(errno));
+ }
}
}
if ((sphinx_sock > -1) && FD_ISSET(sphinx_sock, &fds)) {
Modified: team/mvanbaak/res_clialiases_unconditional/agi/eagi-test.c
URL: http://svn.digium.com/view/asterisk/team/mvanbaak/res_clialiases_unconditional/agi/eagi-test.c?view=diff&rev=154877&r1=154876&r2=154877
==============================================================================
--- team/mvanbaak/res_clialiases_unconditional/agi/eagi-test.c (original)
+++ team/mvanbaak/res_clialiases_unconditional/agi/eagi-test.c Wed Nov 5 15:21:11 2008
@@ -24,7 +24,9 @@
char *val;
/* Read environment */
for(;;) {
- fgets(buf, sizeof(buf), stdin);
+ if (!fgets(buf, sizeof(buf), stdin)) {
+ return -1;
+ }
if (feof(stdin))
return -1;
buf[strlen(buf) - 1] = '\0';
@@ -68,7 +70,9 @@
return NULL;
}
if (FD_ISSET(STDIN_FILENO, &fds)) {
- fgets(astresp, sizeof(astresp), stdin);
+ if (!fgets(astresp, sizeof(astresp), stdin)) {
+ return NULL;
+ }
if (feof(stdin)) {
fprintf(stderr, "Got hungup on apparently\n");
return NULL;
Modified: team/mvanbaak/res_clialiases_unconditional/apps/app_adsiprog.c
URL: http://svn.digium.com/view/asterisk/team/mvanbaak/res_clialiases_unconditional/apps/app_adsiprog.c?view=diff&rev=154877&r1=154876&r2=154877
==============================================================================
--- team/mvanbaak/res_clialiases_unconditional/apps/app_adsiprog.c (original)
+++ team/mvanbaak/res_clialiases_unconditional/apps/app_adsiprog.c Wed Nov 5 15:21:11 2008
@@ -47,13 +47,27 @@
static char *app = "ADSIProg";
-static char *synopsis = "Load Asterisk ADSI Scripts into phone";
+/*** DOCUMENTATION
+ <application name="ADSIProg" language="en_US">
+ <synopsis>
+ Load Asterisk ADSI Scripts into phone
+ </synopsis>
+ <syntax>
+ <parameter name="script" required="false">
+ <para>adsi script to use. If not given uses the default script <filename>asterisk.adsi</filename></para>
+ </parameter>
+ </syntax>
+ <description>
+ <para>This application programs an ADSI Phone with the given script</para>
+ </description>
+ <see-also>
+ <ref type="application">GetCPEID</ref>
+ <ref type="filename">adsi.conf</ref>
+ </see-also>
+ </application>
+ ***/
/* #define DUMP_MESSAGES */
-
-static char *descrip =
-" ADSIProg(script): This application programs an ADSI Phone with the given\n"
-"script. If nothing is specified, the default script (asterisk.adsi) is used.\n";
struct adsi_event {
int id;
@@ -828,7 +842,7 @@
ast_log(LOG_WARNING, "'%s' is not a valid state name at line %d of %s\n", tok, lineno, script);
return 0;
}
- if ((snums[scnt] = getstatebyname(state, sname, script, lineno, 0) < 0)) {
+ if ((snums[scnt] = getstatebyname(state, sname, script, lineno, 0) == NULL)) {
ast_log(LOG_WARNING, "State '%s' not declared at line %d of %s\n", sname, lineno, script);
return 0;
}
@@ -1369,7 +1383,9 @@
/* Create "main" as first subroutine */
getsubbyname(scr, "main", NULL, 0);
while (!feof(f)) {
- fgets(buf, sizeof(buf), f);
+ if (!fgets(buf, sizeof(buf), f)) {
+ continue;
+ }
if (!feof(f)) {
lineno++;
/* Trim off trailing return */
@@ -1570,7 +1586,7 @@
static int load_module(void)
{
- if (ast_register_application(app, adsi_exec, synopsis, descrip))
+ if (ast_register_application_xml(app, adsi_exec))
return AST_MODULE_LOAD_FAILURE;
return AST_MODULE_LOAD_SUCCESS;
}
Modified: team/mvanbaak/res_clialiases_unconditional/apps/app_alarmreceiver.c
URL: http://svn.digium.com/view/asterisk/team/mvanbaak/res_clialiases_unconditional/apps/app_alarmreceiver.c?view=diff&rev=154877&r1=154876&r2=154877
==============================================================================
--- team/mvanbaak/res_clialiases_unconditional/apps/app_alarmreceiver.c (original)
+++ team/mvanbaak/res_clialiases_unconditional/apps/app_alarmreceiver.c Wed Nov 5 15:21:11 2008
@@ -63,18 +63,27 @@
typedef struct event_node event_node_t;
static char *app = "AlarmReceiver";
-
-static char *synopsis = "Provide support for receiving alarm reports from a burglar or fire alarm panel";
-static char *descrip =
-" AlarmReceiver(): Only 1 signalling format is supported at this time: Ademco\n"
-"Contact ID. This application should be called whenever there is an alarm\n"
-"panel calling in to dump its events. The application will handshake with the\n"
-"alarm panel, and receive events, validate them, handshake them, and store them\n"
-"until the panel hangs up. Once the panel hangs up, the application will run the\n"
-"system command specified by the eventcmd setting in alarmreceiver.conf and pipe\n"
-"the events to the standard input of the application. The configuration file also\n"
-"contains settings for DTMF timing, and for the loudness of the acknowledgement\n"
-"tones.\n";
+/*** DOCUMENTATION
+ <application name="AlarmReceiver" language="en_US">
+ <synopsis>
+ Provide support for receiving alarm reports from a burglar or fire alarm panel.
+ </synopsis>
+ <syntax />
+ <description>
+ <para>This application should be called whenever there is an alarm panel calling in to dump its events.
+ The application will handshake with the alarm panel, and receive events, validate them, handshake them,
+ and store them until the panel hangs up. Once the panel hangs up, the application will run the system
+ command specified by the eventcmd setting in <filename>alarmreceiver.conf</filename> and pipe the
+ events to the standard input of the application.
+ The configuration file also contains settings for DTMF timing, and for the loudness of the
+ acknowledgement tones.</para>
+ <note><para>Only 1 signalling format is supported at this time: Ademco Contact ID.</para></note>
+ </description>
+ <see-also>
+ <ref type="filename">alarmreceiver.conf</ref>
+ </see-also>
+ </application>
+ ***/
/* Config Variables */
static int fdtimeout = 2000;
@@ -711,7 +720,7 @@
static int load_module(void)
{
if (load_config()) {
- if (ast_register_application(app, alarmreceiver_exec, synopsis, descrip))
+ if (ast_register_application_xml(app, alarmreceiver_exec))
return AST_MODULE_LOAD_FAILURE;
return AST_MODULE_LOAD_SUCCESS;
} else
Modified: team/mvanbaak/res_clialiases_unconditional/apps/app_amd.c
URL: http://svn.digium.com/view/asterisk/team/mvanbaak/res_clialiases_unconditional/apps/app_amd.c?view=diff&rev=154877&r1=154876&r2=154877
==============================================================================
--- team/mvanbaak/res_clialiases_unconditional/apps/app_amd.c (original)
+++ team/mvanbaak/res_clialiases_unconditional/apps/app_amd.c Wed Nov 5 15:21:11 2008
@@ -39,45 +39,92 @@
#include "asterisk/config.h"
#include "asterisk/app.h"
+/*** DOCUMENTATION
+ <application name="AMD" language="en_US">
+ <synopsis>
+ Attempt to detect answering machines.
+ </synopsis>
+ <syntax>
+ <parameter name="initialSilence" required="false">
+ <para>Is maximum initial silence duration before greeting.</para>
+ <para>If this is exceeded set as MACHINE</para>
+ </parameter>
+ <parameter name="greeting" required="false">
+ <para>is the maximum length of a greeting.</para>
+ <para>If this is exceeded set as MACHINE</para>
+ </parameter>
+ <parameter name="afterGreetingSilence" required="false">
+ <para>Is the silence after detecting a greeting.</para>
+ <para>If this is exceeded set as HUMAN</para>
+ </parameter>
+ <parameter name="totalAnalysis Time" required="false">
+ <para>Is the maximum time allowed for the algorithm</para>
+ <para>to decide HUMAN or MACHINE</para>
+ </parameter>
+ <parameter name="miniumWordLength" required="false">
+ <para>Is the minimum duration of Voice considered to be a word</para>
+ </parameter>
+ <parameter name="betweenWordSilence" required="false">
+ <para>Is the minimum duration of silence after a word to
+ consider the audio that follows to be a new word</para>
+ </parameter>
+ <parameter name="maximumNumberOfWords" required="false">
+ <para>Is the maximum number of words in a greeting</para>
+ <para>If this is exceeded set as MACHINE</para>
+ </parameter>
+ <parameter name="silenceThreshold" required="false">
+ <para>How long do we consider silence</para>
+ </parameter>
+ <parameter name="maximumWordLength" required="false">
+ <para>Is the maximum duration of a word to accept.</para>
+ <para>If exceeded set as MACHINE</para>
+ </parameter>
+ </syntax>
+ <description>
+ <para>This application attempts to detect answering machines at the beginning
+ of outbound calls. Simply call this application after the call
+ has been answered (outbound only, of course).</para>
+ <para>When loaded, AMD reads amd.conf and uses the parameters specified as
+ default values. Those default values get overwritten when the calling AMD
+ with parameters.</para>
+ <para>This application sets the following channel variables:</para>
+ <variablelist>
+ <variable name="AMDSTATUS">
+ <para>This is the status of the answering machine detection</para>
+ <value name="MACHINE" />
+ <value name="HUMAN" />
+ <value name="NOTSURE" />
+ <value name="HANGUP" />
+ </variable>
+ <variable name="AMDCAUSE">
+ <para>Indicates the cause that led to the conclusion</para>
+ <value name="TOOLONG">
+ Total Time.
+ </value>
+ <value name="INITIALSILENCE">
+ Silence Duration - Initial Silence.
+ </value>
+ <value name="HUMAN">
+ Silence Duration - afterGreetingSilence.
+ </value>
+ <value name="LONGGREETING">
+ Voice Duration - Greeting.
+ </value>
+ <value name="MAXWORDLENGTH">
+ Word Count - maximum number of words.
+ </value>
+ </variable>
+ </variablelist>
+ </description>
+ <see-also>
+ <ref type="application">WaitForSilence</ref>
+ <ref type="application">WaitForNoise</ref>
+ </see-also>
+ </application>
+
+ ***/
static char *app = "AMD";
-static char *synopsis = "Attempts to detect answering machines";
-static char *descrip =
-" AMD([initialSilence],[greeting],[afterGreetingSilence],[totalAnalysisTime]\n"
-" ,[minimumWordLength],[betweenWordsSilence],[maximumNumberOfWords]\n"
-" ,[silenceThreshold],[|maximumWordLength])\n"
-" This application attempts to detect answering machines at the beginning\n"
-" of outbound calls. Simply call this application after the call\n"
-" has been answered (outbound only, of course).\n"
-" When loaded, AMD reads amd.conf and uses the parameters specified as\n"
-" default values. Those default values get overwritten when calling AMD\n"
-" with parameters.\n"
-"- 'initialSilence' is the maximum silence duration before the greeting. If\n"
-" exceeded then MACHINE.\n"
-"- 'greeting' is the maximum length of a greeting. If exceeded then MACHINE.\n"
-"- 'afterGreetingSilence' is the silence after detecting a greeting.\n"
-" If exceeded then HUMAN.\n"
-"- 'totalAnalysisTime' is the maximum time allowed for the algorithm to decide\n"
-" on a HUMAN or MACHINE.\n"
-"- 'minimumWordLength'is the minimum duration of Voice to considered as a word.\n"
-"- 'betweenWordsSilence' is the minimum duration of silence after a word to \n"
-" consider the audio that follows as a new word.\n"
-"- 'maximumNumberOfWords'is the maximum number of words in the greeting. \n"
-" If exceeded then MACHINE.\n"
-"- 'silenceThreshold' is the silence threshold.\n"
-"- 'maximumWordLength' is the maximum duration of a word to accept. If exceeded then MACHINE\n"
-"This application sets the following channel variables upon completion:\n"
-" AMDSTATUS - This is the status of the answering machine detection.\n"
-" Possible values are:\n"
-" MACHINE | HUMAN | NOTSURE | HANGUP\n"
-" AMDCAUSE - Indicates the cause that led to the conclusion.\n"
-" Possible values are:\n"
-" TOOLONG-<%d total_time>\n"
-" INITIALSILENCE-<%d silenceDuration>-<%d initialSilence>\n"
-" HUMAN-<%d silenceDuration>-<%d afterGreetingSilence>\n"
-" MAXWORDS-<%d wordsCount>-<%d maximumNumberOfWords>\n"
-" LONGGREETING-<%d voiceDuration>-<%d greeting>\n"
-" MAXWORDLENGTH-<%d consecutiveVoiceDuration>\n";
#define STATE_IN_WORD 1
#define STATE_IN_SILENCE 2
@@ -437,7 +484,7 @@
{
if (load_config(0))
return AST_MODULE_LOAD_DECLINE;
- if (ast_register_application(app, amd_exec, synopsis, descrip))
+ if (ast_register_application_xml(app, amd_exec))
return AST_MODULE_LOAD_FAILURE;
return AST_MODULE_LOAD_SUCCESS;
}
Modified: team/mvanbaak/res_clialiases_unconditional/apps/app_authenticate.c
URL: http://svn.digium.com/view/asterisk/team/mvanbaak/res_clialiases_unconditional/apps/app_authenticate.c?view=diff&rev=154877&r1=154876&r2=154877
==============================================================================
--- team/mvanbaak/res_clialiases_unconditional/apps/app_authenticate.c (original)
+++ team/mvanbaak/res_clialiases_unconditional/apps/app_authenticate.c Wed Nov 5 15:21:11 2008
@@ -54,31 +54,56 @@
static char *app = "Authenticate";
-
-static char *synopsis = "Authenticate a user";
-
-static char *descrip =
-" Authenticate(password[,options[,maxdigits[,prompt]]]): This application asks the caller\n"
-"to enter a given password in order to continue dialplan execution. If the password\n"
-"begins with the '/' character, it is interpreted as a file which contains a list of\n"
-"valid passwords, listed 1 password per line in the file.\n"
-" When using a database key, the value associated with the key can be anything.\n"
-"Users have three attempts to authenticate before the channel is hung up.\n"
-" Options:\n"
-" a - Set the channels' account code to the password that is entered\n"
-" d - Interpret the given path as database key, not a literal file\n"
-" m - Interpret the given path as a file which contains a list of account\n"
-" codes and password hashes delimited with ':', listed one per line in\n"
-" the file. When one of the passwords is matched, the channel will have\n"
-" its account code set to the corresponding account code in the file.\n"
-" r - Remove the database key upon successful entry (valid with 'd' only)\n"
-" maxdigits - maximum acceptable number of digits. Stops reading after\n"
-" maxdigits have been entered (without requiring the user to\n"
-" press the '#' key).\n"
-" Defaults to 0 - no limit - wait for the user press the '#' key.\n"
-" prompt - Override the agent-pass prompt file.\n"
- ;
-;
+/*** DOCUMENTATION
+ <application name="Authenticate" language="en_US">
+ <synopsis>
+ Authenticate a user
+ </synopsis>
+ <syntax>
+ <parameter name="password" required="true">
+ <para>Password the user should know</para>
+ </parameter>
+ <parameter name="options" required="false">
+ <optionlist>
+ <option name="a">
+ <para>Set the channels' account code to the password that is entered</para>
+ </option>
+ <option name="d">
+ <para>Interpret the given path as database key, not a literal file</para>
+ </option>
+ <option name="m">
+ <para>Interpret the given path as a file which contains a list of account
+ codes and password hashes delimited with <literal>:</literal>, listed one per line in
+ the file. When one of the passwords is matched, the channel will have
+ its account code set to the corresponding account code in the file.</para>
+ </option>
+ <option name="r">
+ <para>Remove the database key upon successful entry (valid with <literal>d</literal> only)</para>
+ </option>
+ </optionlist>
+ </parameter>
+ <parameter name="maxdigits" required="false">
+ <para>maximum acceptable number of digits. Stops reading after
+ maxdigits have been entered (without requiring the user to press the <literal>#</literal> key).
+ Defaults to 0 - no limit - wait for the user press the <literal>#</literal> key.</para>
+ </parameter>
+ <parameter name="prompt" required="false">
+ <para>Override the agent-pass prompt file.</para>
+ </parameter>
[... 23825 lines stripped ...]
More information about the asterisk-commits
mailing list