[svn-commits] russell: branch russell/chan_refcount r89649 - in /team/russell/chan_refcount...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Nov 27 11:27:30 CST 2007


Author: russell
Date: Tue Nov 27 11:27:27 2007
New Revision: 89649

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89649
Log:
get the branch to compile

Removed:
    team/russell/chan_refcount/channels/gentone-ulaw.c
Modified:
    team/russell/chan_refcount/   (props changed)
    team/russell/chan_refcount/CHANGES
    team/russell/chan_refcount/Makefile
    team/russell/chan_refcount/Makefile.moddir_rules
    team/russell/chan_refcount/Makefile.rules
    team/russell/chan_refcount/UPGRADE.txt
    team/russell/chan_refcount/acinclude.m4
    team/russell/chan_refcount/agi/Makefile
    team/russell/chan_refcount/agi/eagi-test.c
    team/russell/chan_refcount/apps/Makefile
    team/russell/chan_refcount/apps/app_adsiprog.c
    team/russell/chan_refcount/apps/app_alarmreceiver.c
    team/russell/chan_refcount/apps/app_amd.c
    team/russell/chan_refcount/apps/app_authenticate.c
    team/russell/chan_refcount/apps/app_cdr.c
    team/russell/chan_refcount/apps/app_chanisavail.c
    team/russell/chan_refcount/apps/app_channelredirect.c
    team/russell/chan_refcount/apps/app_chanspy.c
    team/russell/chan_refcount/apps/app_controlplayback.c
    team/russell/chan_refcount/apps/app_db.c
    team/russell/chan_refcount/apps/app_dial.c
    team/russell/chan_refcount/apps/app_dictate.c
    team/russell/chan_refcount/apps/app_directed_pickup.c
    team/russell/chan_refcount/apps/app_directory.c
    team/russell/chan_refcount/apps/app_disa.c
    team/russell/chan_refcount/apps/app_dumpchan.c
    team/russell/chan_refcount/apps/app_echo.c
    team/russell/chan_refcount/apps/app_exec.c
    team/russell/chan_refcount/apps/app_externalivr.c
    team/russell/chan_refcount/apps/app_festival.c
    team/russell/chan_refcount/apps/app_flash.c
    team/russell/chan_refcount/apps/app_followme.c
    team/russell/chan_refcount/apps/app_forkcdr.c
    team/russell/chan_refcount/apps/app_getcpeid.c
    team/russell/chan_refcount/apps/app_ices.c
    team/russell/chan_refcount/apps/app_image.c
    team/russell/chan_refcount/apps/app_ivrdemo.c
    team/russell/chan_refcount/apps/app_macro.c
    team/russell/chan_refcount/apps/app_meetme.c
    team/russell/chan_refcount/apps/app_milliwatt.c
    team/russell/chan_refcount/apps/app_minivm.c
    team/russell/chan_refcount/apps/app_mixmonitor.c
    team/russell/chan_refcount/apps/app_morsecode.c
    team/russell/chan_refcount/apps/app_mp3.c
    team/russell/chan_refcount/apps/app_nbscat.c
    team/russell/chan_refcount/apps/app_osplookup.c
    team/russell/chan_refcount/apps/app_page.c
    team/russell/chan_refcount/apps/app_parkandannounce.c
    team/russell/chan_refcount/apps/app_playback.c
    team/russell/chan_refcount/apps/app_privacy.c
    team/russell/chan_refcount/apps/app_queue.c
    team/russell/chan_refcount/apps/app_read.c
    team/russell/chan_refcount/apps/app_readexten.c
    team/russell/chan_refcount/apps/app_readfile.c
    team/russell/chan_refcount/apps/app_record.c
    team/russell/chan_refcount/apps/app_rpt.c
    team/russell/chan_refcount/apps/app_sayunixtime.c
    team/russell/chan_refcount/apps/app_senddtmf.c
    team/russell/chan_refcount/apps/app_sendtext.c
    team/russell/chan_refcount/apps/app_setcallerid.c
    team/russell/chan_refcount/apps/app_skel.c
    team/russell/chan_refcount/apps/app_sms.c
    team/russell/chan_refcount/apps/app_softhangup.c
    team/russell/chan_refcount/apps/app_speech_utils.c
    team/russell/chan_refcount/apps/app_stack.c
    team/russell/chan_refcount/apps/app_system.c
    team/russell/chan_refcount/apps/app_talkdetect.c
    team/russell/chan_refcount/apps/app_test.c
    team/russell/chan_refcount/apps/app_transfer.c
    team/russell/chan_refcount/apps/app_url.c
    team/russell/chan_refcount/apps/app_userevent.c
    team/russell/chan_refcount/apps/app_verbose.c
    team/russell/chan_refcount/apps/app_voicemail.c
    team/russell/chan_refcount/apps/app_waitforring.c
    team/russell/chan_refcount/apps/app_waitforsilence.c
    team/russell/chan_refcount/apps/app_while.c
    team/russell/chan_refcount/apps/app_zapateller.c
    team/russell/chan_refcount/apps/app_zapbarge.c
    team/russell/chan_refcount/apps/app_zapras.c
    team/russell/chan_refcount/apps/app_zapscan.c
    team/russell/chan_refcount/build_tools/make_buildopts_h
    team/russell/chan_refcount/build_tools/strip_nonapi
    team/russell/chan_refcount/cdr/cdr_adaptive_odbc.c
    team/russell/chan_refcount/cdr/cdr_csv.c
    team/russell/chan_refcount/cdr/cdr_custom.c
    team/russell/chan_refcount/cdr/cdr_manager.c
    team/russell/chan_refcount/cdr/cdr_odbc.c
    team/russell/chan_refcount/cdr/cdr_pgsql.c
    team/russell/chan_refcount/cdr/cdr_radius.c
    team/russell/chan_refcount/cdr/cdr_sqlite.c
    team/russell/chan_refcount/cdr/cdr_sqlite3_custom.c
    team/russell/chan_refcount/cdr/cdr_tds.c
    team/russell/chan_refcount/channels/Makefile
    team/russell/chan_refcount/channels/chan_agent.c
    team/russell/chan_refcount/channels/chan_alsa.c
    team/russell/chan_refcount/channels/chan_features.c
    team/russell/chan_refcount/channels/chan_gtalk.c
    team/russell/chan_refcount/channels/chan_h323.c
    team/russell/chan_refcount/channels/chan_iax2.c
    team/russell/chan_refcount/channels/chan_jingle.c
    team/russell/chan_refcount/channels/chan_local.c
    team/russell/chan_refcount/channels/chan_mgcp.c
    team/russell/chan_refcount/channels/chan_misdn.c
    team/russell/chan_refcount/channels/chan_nbs.c
    team/russell/chan_refcount/channels/chan_oss.c
    team/russell/chan_refcount/channels/chan_phone.c
    team/russell/chan_refcount/channels/chan_sip.c
    team/russell/chan_refcount/channels/chan_skinny.c
    team/russell/chan_refcount/channels/chan_usbradio.c
    team/russell/chan_refcount/channels/chan_vpb.cc
    team/russell/chan_refcount/channels/chan_zap.c
    team/russell/chan_refcount/channels/h323/ast_h323.cxx
    team/russell/chan_refcount/channels/iax2-parser.c
    team/russell/chan_refcount/channels/iax2-provision.c
    team/russell/chan_refcount/channels/misdn/isdn_lib.c
    team/russell/chan_refcount/channels/misdn_config.c
    team/russell/chan_refcount/codecs/codec_a_mu.c
    team/russell/chan_refcount/codecs/codec_adpcm.c
    team/russell/chan_refcount/codecs/codec_alaw.c
    team/russell/chan_refcount/codecs/codec_g722.c
    team/russell/chan_refcount/codecs/codec_g726.c
    team/russell/chan_refcount/codecs/codec_gsm.c
    team/russell/chan_refcount/codecs/codec_ilbc.c
    team/russell/chan_refcount/codecs/codec_lpc10.c
    team/russell/chan_refcount/codecs/codec_speex.c
    team/russell/chan_refcount/codecs/codec_ulaw.c
    team/russell/chan_refcount/codecs/codec_zap.c
    team/russell/chan_refcount/configs/sip.conf.sample
    team/russell/chan_refcount/configure
    team/russell/chan_refcount/configure.ac
    team/russell/chan_refcount/doc/tex/localchannel.tex
    team/russell/chan_refcount/doc/tex/queues-with-callback-members.tex
    team/russell/chan_refcount/formats/format_g723.c
    team/russell/chan_refcount/formats/format_g726.c
    team/russell/chan_refcount/formats/format_g729.c
    team/russell/chan_refcount/formats/format_gsm.c
    team/russell/chan_refcount/formats/format_h263.c
    team/russell/chan_refcount/formats/format_h264.c
    team/russell/chan_refcount/formats/format_ilbc.c
    team/russell/chan_refcount/formats/format_jpeg.c
    team/russell/chan_refcount/formats/format_ogg_vorbis.c
    team/russell/chan_refcount/formats/format_pcm.c
    team/russell/chan_refcount/formats/format_sln.c
    team/russell/chan_refcount/formats/format_vox.c
    team/russell/chan_refcount/formats/format_wav.c
    team/russell/chan_refcount/formats/format_wav_gsm.c
    team/russell/chan_refcount/funcs/func_base64.c
    team/russell/chan_refcount/funcs/func_blacklist.c
    team/russell/chan_refcount/funcs/func_callerid.c
    team/russell/chan_refcount/funcs/func_cdr.c
    team/russell/chan_refcount/funcs/func_channel.c
    team/russell/chan_refcount/funcs/func_curl.c
    team/russell/chan_refcount/funcs/func_cut.c
    team/russell/chan_refcount/funcs/func_db.c
    team/russell/chan_refcount/funcs/func_devstate.c
    team/russell/chan_refcount/funcs/func_enum.c
    team/russell/chan_refcount/funcs/func_env.c
    team/russell/chan_refcount/funcs/func_extstate.c
    team/russell/chan_refcount/funcs/func_global.c
    team/russell/chan_refcount/funcs/func_groupcount.c
    team/russell/chan_refcount/funcs/func_iconv.c
    team/russell/chan_refcount/funcs/func_lock.c
    team/russell/chan_refcount/funcs/func_logic.c
    team/russell/chan_refcount/funcs/func_math.c
    team/russell/chan_refcount/funcs/func_md5.c
    team/russell/chan_refcount/funcs/func_module.c
    team/russell/chan_refcount/funcs/func_odbc.c
    team/russell/chan_refcount/funcs/func_rand.c
    team/russell/chan_refcount/funcs/func_realtime.c
    team/russell/chan_refcount/funcs/func_sha1.c
    team/russell/chan_refcount/funcs/func_shell.c
    team/russell/chan_refcount/funcs/func_strings.c
    team/russell/chan_refcount/funcs/func_timeout.c
    team/russell/chan_refcount/funcs/func_uri.c
    team/russell/chan_refcount/funcs/func_version.c
    team/russell/chan_refcount/funcs/func_vmcount.c
    team/russell/chan_refcount/funcs/func_volume.c
    team/russell/chan_refcount/include/asterisk.h
    team/russell/chan_refcount/include/asterisk/abstract_jb.h
    team/russell/chan_refcount/include/asterisk/acl.h
    team/russell/chan_refcount/include/asterisk/ael_structs.h
    team/russell/chan_refcount/include/asterisk/astmm.h
    team/russell/chan_refcount/include/asterisk/astobj.h
    team/russell/chan_refcount/include/asterisk/autoconfig.h.in
    team/russell/chan_refcount/include/asterisk/channel.h
    team/russell/chan_refcount/include/asterisk/cli.h
    team/russell/chan_refcount/include/asterisk/compat.h
    team/russell/chan_refcount/include/asterisk/config.h
    team/russell/chan_refcount/include/asterisk/dnsmgr.h
    team/russell/chan_refcount/include/asterisk/endian.h
    team/russell/chan_refcount/include/asterisk/file.h
    team/russell/chan_refcount/include/asterisk/frame.h
    team/russell/chan_refcount/include/asterisk/io.h
    team/russell/chan_refcount/include/asterisk/lock.h
    team/russell/chan_refcount/include/asterisk/logger.h
    team/russell/chan_refcount/include/asterisk/manager.h
    team/russell/chan_refcount/include/asterisk/md5.h
    team/russell/chan_refcount/include/asterisk/module.h
    team/russell/chan_refcount/include/asterisk/netsock.h
    team/russell/chan_refcount/include/asterisk/paths.h
    team/russell/chan_refcount/include/asterisk/plc.h
    team/russell/chan_refcount/include/asterisk/rtp.h
    team/russell/chan_refcount/include/asterisk/sha1.h
    team/russell/chan_refcount/include/asterisk/slinfactory.h
    team/russell/chan_refcount/include/asterisk/stringfields.h
    team/russell/chan_refcount/include/asterisk/strings.h
    team/russell/chan_refcount/include/asterisk/time.h
    team/russell/chan_refcount/include/asterisk/udptl.h
    team/russell/chan_refcount/include/asterisk/utils.h
    team/russell/chan_refcount/main/Makefile
    team/russell/chan_refcount/main/abstract_jb.c
    team/russell/chan_refcount/main/acl.c
    team/russell/chan_refcount/main/adsistub.c
    team/russell/chan_refcount/main/alaw.c
    team/russell/chan_refcount/main/app.c
    team/russell/chan_refcount/main/asterisk.c
    team/russell/chan_refcount/main/astmm.c
    team/russell/chan_refcount/main/astobj2.c
    team/russell/chan_refcount/main/audiohook.c
    team/russell/chan_refcount/main/autoservice.c
    team/russell/chan_refcount/main/callerid.c
    team/russell/chan_refcount/main/cdr.c
    team/russell/chan_refcount/main/channel.c
    team/russell/chan_refcount/main/chanvars.c
    team/russell/chan_refcount/main/cli.c
    team/russell/chan_refcount/main/config.c
    team/russell/chan_refcount/main/cryptostub.c
    team/russell/chan_refcount/main/db.c
    team/russell/chan_refcount/main/devicestate.c
    team/russell/chan_refcount/main/dial.c
    team/russell/chan_refcount/main/dlfcn.c
    team/russell/chan_refcount/main/dns.c
    team/russell/chan_refcount/main/dnsmgr.c
    team/russell/chan_refcount/main/dsp.c
    team/russell/chan_refcount/main/enum.c
    team/russell/chan_refcount/main/event.c
    team/russell/chan_refcount/main/file.c
    team/russell/chan_refcount/main/fixedjitterbuf.c
    team/russell/chan_refcount/main/frame.c
    team/russell/chan_refcount/main/fskmodem.c
    team/russell/chan_refcount/main/http.c
    team/russell/chan_refcount/main/image.c
    team/russell/chan_refcount/main/indications.c
    team/russell/chan_refcount/main/io.c
    team/russell/chan_refcount/main/jitterbuf.c
    team/russell/chan_refcount/main/loader.c
    team/russell/chan_refcount/main/logger.c
    team/russell/chan_refcount/main/manager.c
    team/russell/chan_refcount/main/md5.c
    team/russell/chan_refcount/main/minimime/mm.h
    team/russell/chan_refcount/main/netsock.c
    team/russell/chan_refcount/main/pbx.c
    team/russell/chan_refcount/main/plc.c
    team/russell/chan_refcount/main/privacy.c
    team/russell/chan_refcount/main/rtp.c
    team/russell/chan_refcount/main/say.c
    team/russell/chan_refcount/main/sched.c
    team/russell/chan_refcount/main/sha1.c
    team/russell/chan_refcount/main/slinfactory.c
    team/russell/chan_refcount/main/srv.c
    team/russell/chan_refcount/main/stdtime/localtime.c
    team/russell/chan_refcount/main/strcompat.c
    team/russell/chan_refcount/main/tdd.c
    team/russell/chan_refcount/main/term.c
    team/russell/chan_refcount/main/threadstorage.c
    team/russell/chan_refcount/main/translate.c
    team/russell/chan_refcount/main/udptl.c
    team/russell/chan_refcount/main/ulaw.c
    team/russell/chan_refcount/main/utils.c
    team/russell/chan_refcount/makeopts.in
    team/russell/chan_refcount/pbx/Makefile
    team/russell/chan_refcount/pbx/dundi-parser.c
    team/russell/chan_refcount/pbx/dundi-parser.h
    team/russell/chan_refcount/pbx/pbx_ael.c
    team/russell/chan_refcount/pbx/pbx_config.c
    team/russell/chan_refcount/pbx/pbx_dundi.c
    team/russell/chan_refcount/pbx/pbx_gtkconsole.c
    team/russell/chan_refcount/pbx/pbx_loopback.c
    team/russell/chan_refcount/pbx/pbx_realtime.c
    team/russell/chan_refcount/pbx/pbx_spool.c
    team/russell/chan_refcount/res/Makefile
    team/russell/chan_refcount/res/res_adsi.c
    team/russell/chan_refcount/res/res_ael_share.c
    team/russell/chan_refcount/res/res_agi.c
    team/russell/chan_refcount/res/res_clioriginate.c
    team/russell/chan_refcount/res/res_config_odbc.c
    team/russell/chan_refcount/res/res_config_pgsql.c
    team/russell/chan_refcount/res/res_config_sqlite.c
    team/russell/chan_refcount/res/res_convert.c
    team/russell/chan_refcount/res/res_crypto.c
    team/russell/chan_refcount/res/res_features.c
    team/russell/chan_refcount/res/res_indications.c
    team/russell/chan_refcount/res/res_jabber.c
    team/russell/chan_refcount/res/res_limit.c
    team/russell/chan_refcount/res/res_monitor.c
    team/russell/chan_refcount/res/res_musiconhold.c
    team/russell/chan_refcount/res/res_odbc.c
    team/russell/chan_refcount/res/res_realtime.c
    team/russell/chan_refcount/res/res_smdi.c
    team/russell/chan_refcount/res/res_snmp.c
    team/russell/chan_refcount/res/res_speech.c
    team/russell/chan_refcount/utils/Makefile
    team/russell/chan_refcount/utils/ael_main.c
    team/russell/chan_refcount/utils/check_expr.c
    team/russell/chan_refcount/utils/conf2ael.c
    team/russell/chan_refcount/utils/extconf.c
    team/russell/chan_refcount/utils/hashtest2.c
    team/russell/chan_refcount/utils/smsq.c

Propchange: team/russell/chan_refcount/
------------------------------------------------------------------------------
Binary property 'branch-1.4-blocked' - no diff available.

Propchange: team/russell/chan_refcount/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Propchange: team/russell/chan_refcount/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Tue Nov 27 11:27:27 2007
@@ -1,1 +1,1 @@
-/trunk:1-89250
+/trunk:1-89503

Modified: team/russell/chan_refcount/CHANGES
URL: http://svn.digium.com/view/asterisk/team/russell/chan_refcount/CHANGES?view=diff&rev=89649&r1=89648&r2=89649
==============================================================================
--- team/russell/chan_refcount/CHANGES (original)
+++ team/russell/chan_refcount/CHANGES Tue Nov 27 11:27:27 2007
@@ -44,6 +44,7 @@
     of devices or the name associated with a hint.
   * Added EXTENSION_STATE() dialplan function which allows retrieving the state
     of any extension.
+  * Added SYSINFO() dialplan function which allows retrieval of system information
 
 CLI Changes
 -----------
@@ -51,6 +52,9 @@
   * Added 'core show channels count' CLI command.
   * Added the ability to set the core debug and verbose values on a per-file basis.
   * Added 'queue pause member' and 'queue unpause member' CLI commands
+  * Ability to set process limits ("ulimit") without restarting Asterisk
+  * Enhanced "agi debug" to print the channel name as a prefix to the debug
+     output to make debugging on busy systems much easier.
 
 SIP changes
 -----------
@@ -67,8 +71,9 @@
      since they where replaced by "mohsuggest" and "mohinterpret" in version 1.4
   * The "localmask" setting was removed in version 1.2 and the reminder about it
      being removed is now also removed.
-  * A new option "busy-level" for setting a level of calls where asterisk reports
-     a device as busy, to separate it from call-limit
+  * A new option "busylevel" for setting a level of calls where asterisk reports
+     a device as busy, to separate it from call-limit. This value is also added
+     to the SIP_PEER dialplan function.
   * A new realtime family called "sipregs" is now supported to store SIP registration
      data. If this family is defined, "sippeers" will be used for configuration and
      "sipregs" for registrations. If it's not defined, "sippeers" will be used for
@@ -97,6 +102,7 @@
 Skinny changes
 -------------
   * Added skinny show device, skinny show line, and skinny show settings CLI commands.
+  * Proper codec support in chan_skinny.
 
 DUNDi changes
 -------------
@@ -194,6 +200,29 @@
      This extends the concise capabilities of this CLI command to include
      listing all conferences, instead of an addition to the other sub commands
      for the "meetme" command.
+  * Added the ability to specify the music on hold class used to play into the
+     conference when there is only one member and the M option is used.
+
+Other Dialplan Application Changes
+----------------------------------
+  * Argument support for Gosub application
+  * From the to-do lists: straighten out the app timeout args:
+     Wait() app now really does 0.3 seconds- was truncating arg to an int.
+     WaitExten() same as Wait().
+     Congestion() - Now takes floating pt. argument.
+     Busy() - now takes floating pt. argument.
+     Read() - timeout now can be floating pt.
+     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 'E' and 'V' commands to ExternalIVR.
+  * Added 'o' and 'X' options to Chanspy.
+  * Added a new dialplan application, Bridge, which allows you to bridge the
+     calling channel to any other active channel on the system.
+  * Added the ability to specify a music on hold class to play instead of ringing
+     for the SLATrunk application.
+  * The Read application no longer exits the dialplan on error.  Instead, it sets
+     READSTATUS to ERROR, which you can catch and handle separately.
 
 Music On Hold Changes
 ---------------------
@@ -267,37 +296,27 @@
 Miscellaneous 
 -------------
   * Added the bindaddr option to gtalk.conf.
-  * Argument support for Gosub application
-  * Ability to set process limits without restarting Asterisk
-  * Proper codec support in chan_skinny.
   * Ability to use libcap to set high ToS bits when non-root
      on Linux. If configure is unable to find libcap then you
      can use --with-cap to specify the path.
-  * Added rotatetimestamp option to logger.conf which will use
-     the time to name the logger files instead of sequence number.
+  * Added rotatestrategy option to logger.conf, along with two new options:
+     "timestamp" which will use the time to name the logger files instead of
+     sequence number; and "rotate", which rotates the names of the logfiles,
+     similar to the way syslog rotates files.
+  * Added exec_after_rotate option to logger.conf, which allows a system
+     command to be run after rotation.  This is primarily useful with
+     rotatestrategry=rotate, to allow a limit on the number of logfiles kept
+     and to ensure that the oldest log file gets deleted.
   * Added Masquerade manager event for when a masquerade happens between
      two channels.
-  * From the to-do lists: straighten out the app timeout args:
-     Wait() app now really does 0.3 seconds- was truncating arg to an int.
-     WaitExten() same as Wait().
-     Congestion() - Now takes floating pt. argument.
-     Busy() - now takes floating pt. argument.
-     Read() - timeout now can be floating pt.
-     WaitForRing() now takes floating pt timeout arg.
-     SpeechBackground() -- clarified in the docstrings that the timeout is an integer seconds.
   * Added maxfiles option to options section of asterisk.conf which allows you to specify
      what Asterisk should set as the maximum number of open files when it loads.
   * Added the jittertargetextra configuration option.
   * Added G729 passthrough support to chan_phone for Sigma Designs boards.
-  * Added 's' option to Page application.
-  * Added 'E' and 'V' commands to ExternalIVR.
-  * Added 'o' and 'X' options to Chanspy.
   * Added a new CDR module, cdr_sqlite3_custom.
   * The cdr_manager module has a [mappings] feature, like cdr_custom,
     to add fields to the manager event from the CDR variables.
   * Added a new realtime configuration module, res_config_sqlite
-  * Added a new dialplan application, Bridge, which allows you to bridge the
-     calling channel to any other active channel on the system.
   * Added support for setting the CoS for VLAN traffic (802.1p).  See the sample
      configuration files for the IP channel drivers.  The new option is "cos".
      This information is also documented in doc/qos.tex, or the IP Quality of Service
@@ -317,8 +336,6 @@
      It allows you to configure a prefix for auto-monitor recordings.
   * Added support for writing and running your dialplan in lua.  See
      configs/extensions.lua.sample for examples of how to do this.
- * Added a new channel driver, chan_unistim.  See doc/unistim.txt and
-    configs/unistim.conf.sample for details.  This new channel driver allows
-    you to use Nortel i2002, i2004, and i2050 phones with Asterisk.
- * Enhanced "agi debug" to print the channel name as a prefix to the debug
-    output to make debugging on busy systems much easier.
+  * Added a new channel driver, chan_unistim.  See doc/unistim.txt and
+     configs/unistim.conf.sample for details.  This new channel driver allows
+     you to use Nortel i2002, i2004, and i2050 phones with Asterisk.

Modified: team/russell/chan_refcount/Makefile
URL: http://svn.digium.com/view/asterisk/team/russell/chan_refcount/Makefile?view=diff&rev=89649&r1=89648&r2=89649
==============================================================================
--- team/russell/chan_refcount/Makefile (original)
+++ team/russell/chan_refcount/Makefile Tue Nov 27 11:27:27 2007
@@ -251,7 +251,7 @@
 
 ASTCFLAGS+=$(MALLOC_DEBUG)$(BUSYDETECT)$(OPTIONS)
 
-MOD_SUBDIRS:=res channels pbx apps codecs formats cdr funcs main
+MOD_SUBDIRS:=channels pbx apps codecs formats cdr funcs main res
 OTHER_SUBDIRS:=utils agi
 SUBDIRS:=$(OTHER_SUBDIRS) $(MOD_SUBDIRS)
 SUBDIRS_INSTALL:=$(SUBDIRS:%=%-install)
@@ -293,6 +293,9 @@
 	mK=" make"
 endif
 
+# comment to print directories during submakes
+PRINT_DIR?= --no-print-directory
+
 all: _all
 	@echo " +--------- Asterisk Build Complete ---------+"  
 	@echo " + Asterisk has successfully been built, and +"  
@@ -314,34 +317,46 @@
 	menuselect/menuselect --check-deps $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS) menuselect.makeopts
 
 $(MOD_SUBDIRS_EMBED_LDSCRIPT):
-	@echo "EMBED_LDSCRIPTS+="`$(MAKE) --quiet --no-print-directory -C $(@:-embed-ldscript=) SUBDIR=$(@:-embed-ldscript=) __embed_ldscript` >> makeopts.embed_rules
+	@echo "EMBED_LDSCRIPTS+="`$(MAKE) --quiet $(PRINT_DIR) -C $(@:-embed-ldscript=) SUBDIR=$(@:-embed-ldscript=) __embed_ldscript` >> makeopts.embed_rules
 
 $(MOD_SUBDIRS_EMBED_LDFLAGS):
-	@echo "EMBED_LDFLAGS+="`$(MAKE) --quiet --no-print-directory -C $(@:-embed-ldflags=) SUBDIR=$(@:-embed-ldflags=) __embed_ldflags` >> makeopts.embed_rules
+	@echo "EMBED_LDFLAGS+="`$(MAKE) --quiet $(PRINT_DIR) -C $(@:-embed-ldflags=) SUBDIR=$(@:-embed-ldflags=) __embed_ldflags` >> makeopts.embed_rules
 
 $(MOD_SUBDIRS_EMBED_LIBS):
-	@echo "EMBED_LIBS+="`$(MAKE) --quiet --no-print-directory -C $(@:-embed-libs=) SUBDIR=$(@:-embed-libs=) __embed_libs` >> makeopts.embed_rules
+	@echo "EMBED_LIBS+="`$(MAKE) --quiet $(PRINT_DIR) -C $(@:-embed-libs=) SUBDIR=$(@:-embed-libs=) __embed_libs` >> makeopts.embed_rules
 
 makeopts.embed_rules: menuselect.makeopts
 	@echo "Generating embedded module rules ..."
 	@rm -f $@
-	@$(MAKE) --no-print-directory $(MOD_SUBDIRS_EMBED_LDSCRIPT)
-	@$(MAKE) --no-print-directory $(MOD_SUBDIRS_EMBED_LDFLAGS)
-	@$(MAKE) --no-print-directory $(MOD_SUBDIRS_EMBED_LIBS)
+	@$(MAKE) $(PRINT_DIR) $(MOD_SUBDIRS_EMBED_LDSCRIPT)
+	@$(MAKE) $(PRINT_DIR) $(MOD_SUBDIRS_EMBED_LDFLAGS)
+	@$(MAKE) $(PRINT_DIR) $(MOD_SUBDIRS_EMBED_LIBS)
 
 $(SUBDIRS): include/asterisk/version.h include/asterisk/build.h include/asterisk/buildopts.h defaults.h makeopts.embed_rules
 
-# ensure that all module subdirectories are processed before 'main' during
-# a parallel build, since if there are modules selected to be embedded the
-# directories containing them must be completed before the main Asterisk
-# binary can be built
+ifeq ($(findstring $(OSARCH), mingw32 cygwin ),)
+    # Non-windows:
+    # ensure that all module subdirectories are processed before 'main' during
+    # a parallel build, since if there are modules selected to be embedded the
+    # directories containing them must be completed before the main Asterisk
+    # binary can be built
 main: $(filter-out main,$(MOD_SUBDIRS))
+else
+    # Windows: we need to build main (i.e. the asterisk dll) first,
+    # followed by res, followed by the other directories, because
+    # dll symbols must be resolved during linking and not at runtime.
+D1:= $(filter-out main,$(MOD_SUBDIRS))
+D1:= $(filter-out res,$(D1))
+
+$(D1): res
+res:	main
+endif
 
 $(MOD_SUBDIRS):
-	@ASTCFLAGS="$(MOD_SUBDIR_CFLAGS) $(ASTCFLAGS)" ASTLDFLAGS="$(ASTLDFLAGS)" $(MAKE) --no-print-directory --no-builtin-rules -C $@ SUBDIR=$@ all
+	@ASTCFLAGS="$(MOD_SUBDIR_CFLAGS) $(ASTCFLAGS)" ASTLDFLAGS="$(ASTLDFLAGS)" $(MAKE) $(PRINT_DIR) --no-builtin-rules -C $@ SUBDIR=$@ all
 
 $(OTHER_SUBDIRS):
-	@ASTCFLAGS="$(OTHER_SUBDIR_CFLAGS) $(ASTCFLAGS)" ASTLDFLAGS="$(ASTLDFLAGS)" $(MAKE) --no-print-directory --no-builtin-rules -C $@ SUBDIR=$@ all
+	@ASTCFLAGS="$(OTHER_SUBDIR_CFLAGS) $(ASTCFLAGS)" ASTLDFLAGS="$(ASTLDFLAGS)" $(MAKE) $(PRINT_DIR) --no-builtin-rules -C $@ SUBDIR=$@ all
 
 defaults.h: makeopts
 	@build_tools/make_defaults_h > $@.tmp
@@ -372,10 +387,10 @@
 	@rm -f $@.tmp
 
 $(SUBDIRS_CLEAN):
-	@$(MAKE) --no-print-directory -C $(@:-clean=) clean
+	@$(MAKE) $(PRINT_DIR) -C $(@:-clean=) clean
 
 $(SUBDIRS_DIST_CLEAN):
-	@$(MAKE) --no-print-directory -C $(@:-dist-clean=) dist-clean
+	@$(MAKE) $(PRINT_DIR) -C $(@:-dist-clean=) dist-clean
 
 clean: $(SUBDIRS_CLEAN)
 	rm -f defaults.h
@@ -668,11 +683,11 @@
 			if [ -z "$(DESTDIR)" ]; then /sbin/chkconfig --add asterisk; fi; \
 		elif [ -f /etc/debian_version ]; then \
 			$(INSTALL) -m 755 contrib/init.d/rc.debian.asterisk $(DESTDIR)/etc/init.d/asterisk; \
-			if [ -z "$(DESTDIR)" ]; then /usr/sbin/update-rc.d asterisk start 10 2 3 4 5 . stop 91 2 3 4 5 .; fi; \
+			if [ -z "$(DESTDIR)" ]; then /usr/sbin/update-rc.d asterisk start 50 2 3 4 5 . stop 91 2 3 4 5 .; fi; \
 		elif [ -f /etc/gentoo-release ]; then \
 			$(INSTALL) -m 755 contrib/init.d/rc.gentoo.asterisk $(DESTDIR)/etc/init.d/asterisk; \
 			if [ -z "$(DESTDIR)" ]; then /sbin/rc-update add asterisk default; fi; \
-		elif [ -f /etc/mandrake-release ]; then \
+		elif [ -f /etc/mandrake-release -o -f /etc/mandriva-release ]; then \
 			$(INSTALL) -m 755 contrib/init.d/rc.mandrake.asterisk $(DESTDIR)/etc/rc.d/init.d/asterisk; \
 			if [ -z "$(DESTDIR)" ]; then /sbin/chkconfig --add asterisk; fi; \
 		elif [ -f /etc/SuSE-release -o -f /etc/novell-release ]; then \
@@ -698,7 +713,7 @@
 	@cmp -s .cleancount .lastclean || $(MAKE) clean
 
 $(SUBDIRS_UNINSTALL):
-	@$(MAKE) --no-print-directory -C $(@:-uninstall=) uninstall
+	@$(MAKE) $(PRINT_DIR) -C $(@:-uninstall=) uninstall
 
 _uninstall: $(SUBDIRS_UNINSTALL)
 	rm -f $(DESTDIR)$(MODULES_DIR)/*

Modified: team/russell/chan_refcount/Makefile.moddir_rules
URL: http://svn.digium.com/view/asterisk/team/russell/chan_refcount/Makefile.moddir_rules?view=diff&rev=89649&r1=89648&r2=89649
==============================================================================
--- team/russell/chan_refcount/Makefile.moddir_rules (original)
+++ team/russell/chan_refcount/Makefile.moddir_rules Tue Nov 27 11:27:27 2007
@@ -43,8 +43,12 @@
 $(addsuffix .oo,$(CC_MODS)) $(addsuffix .o,$(C_MODS)):	\
 	ASTCFLAGS+= -DAST_MODULE=\"$*\" $(MENUSELECT_OPTS_$*:%=-D%) $(foreach dep,$(MENUSELECT_DEPENDS_$*),$(value $(dep)_INCLUDE))
 
+ifeq ($(findstring $(OSARCH), mingw32 cygwin ),)
+   # don't define -fPIC on mingw32 and cygwin, it is the default
+   $(LOADABLE_MODS:%=%.so): ASTCFLAGS+=-fPIC
+endif
+
 # For loadable modules, pass _LIB and _LDFLAGS from menuselect.
-$(LOADABLE_MODS:%=%.so): ASTCFLAGS+=-fPIC
 $(LOADABLE_MODS:%=%.so): LIBS+=$(foreach dep,$(MENUSELECT_DEPENDS_$*),$(value $(dep)_LIB))
 $(LOADABLE_MODS:%=%.so): ASTLDFLAGS+=$(foreach dep,$(MENUSELECT_DEPENDS_$*),$(value $(dep)_LDFLAGS))
 
@@ -54,12 +58,17 @@
 $(addsuffix .so,$(filter $(LOADABLE_MODS),$(CC_MODS))): %.so: %.oo
 
 modules.link: $(addsuffix .eo,$(filter $(EMBEDDED_MODS),$(C_MODS)))
-modules.link: $(addsuffix .eoo,$(filter $(EMBEDDED_MODS),$(CC_MODS)))
 
 .PHONY: clean uninstall _all
 
 ifneq ($(LOADABLE_MODS),)
 _all: $(LOADABLE_MODS:%=%.so)
+ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
+  # linker options and extra libraries for cygwin
+  SOLINK=-Wl,--out-implib=lib$@.a -shared
+  LIBS+=-L../main -lasterisk -L../res $($@_LIBS)
+  # additional libraries in res/
+endif
 endif
 
 ifneq ($(EMBEDDED_MODS),)
@@ -80,11 +89,11 @@
 
 modules.link:
 	@rm -f $@
-	@for file in $(patsubst %,$(SUBDIR)/%,$(filter %.eo %.eoo,$^)); do echo "INPUT (../$${file})" >> $@; done
-	@for file in $(patsubst %,$(SUBDIR)/%,$(filter-out %.eo %.eoo,$^)); do echo "INPUT (../$${file})" >> $@; done
+	@for file in $(patsubst %,$(SUBDIR)/%,$(filter %.eo,$^)); do echo "INPUT (../$${file})" >> $@; done
+	@for file in $(patsubst %,$(SUBDIR)/%,$(filter-out %.eo,$^)); do echo "INPUT (../$${file})" >> $@; done
 
 clean::
-	rm -f *.so *.o *.oo *.eo *.eoo
+	rm -f *.so *.o *.oo *.eo
 	rm -f .*.o.d .*.oo.d
 	rm -f *.s *.i
 	rm -f modules.link

Modified: team/russell/chan_refcount/Makefile.rules
URL: http://svn.digium.com/view/asterisk/team/russell/chan_refcount/Makefile.rules?view=diff&rev=89649&r1=89648&r2=89649
==============================================================================
--- team/russell/chan_refcount/Makefile.rules (original)
+++ team/russell/chan_refcount/Makefile.rules Tue Nov 27 11:27:27 2007
@@ -85,7 +85,7 @@
 	$(CMD_PREFIX) $(LD) -r -T .$@.ld -o $@ $<
 	$(CMD_PREFIX) rm -f .$@.ld
 
-%.eoo: %.o
+%.eo: %.oo
 	$(ECHO_PREFIX) echo "   [EMBED] $< -> $@"
 	$(CMD_PREFIX) $(ASTTOPDIR)/build_tools/make_linker_eo_script $* > .$@.ld
 	$(CMD_PREFIX) $(LD) -r -T .$@.ld -o $@ $<

Modified: team/russell/chan_refcount/UPGRADE.txt
URL: http://svn.digium.com/view/asterisk/team/russell/chan_refcount/UPGRADE.txt?view=diff&rev=89649&r1=89648&r2=89649
==============================================================================
--- team/russell/chan_refcount/UPGRADE.txt (original)
+++ team/russell/chan_refcount/UPGRADE.txt Tue Nov 27 11:27:27 2007
@@ -78,6 +78,9 @@
   introduced dialplan functions LOCK(), TRYLOCK(), and UNLOCK().  You may use
   these functions in any location where you desire to ensure that only one
   channel is executing that path at any one time.
+* Read() now sets a READSTATUS variable on exit.  It does NOT automatically
+  return -1 (and hangup) anymore on error.  If you want to hangup on error,
+  you need to do so explicitly in your dialplan.
 
 Dialplan Functions:
 
@@ -98,7 +101,7 @@
 
 * format_wav: The GAIN preprocessor definition and source code that used it
   is removed.  This change was made in response to user complaints of
-  choppiness or the clipping of loud signal peaks.  To increasing the volume
+  choppiness or the clipping of loud signal peaks.  To increase the volume
   of voicemail messages, use the 'volgain' option in voicemail.conf
 
 Channel Drivers:

Modified: team/russell/chan_refcount/acinclude.m4
URL: http://svn.digium.com/view/asterisk/team/russell/chan_refcount/acinclude.m4?view=diff&rev=89649&r1=89648&r2=89649
==============================================================================
--- team/russell/chan_refcount/acinclude.m4 (original)
+++ team/russell/chan_refcount/acinclude.m4 Tue Nov 27 11:27:27 2007
@@ -1,3 +1,7 @@
+# Various support functions for configure.ac in asterisk
+#
+
+# Helper function to check for gcc attributes.
 # AST_GCC_ATTRIBUTE([attribute name])
 
 AC_DEFUN([AST_GCC_ATTRIBUTE],
@@ -11,35 +15,43 @@
 	AC_MSG_RESULT(no))
 ])
 
-# AST_EXT_LIB_SETUP([package symbol name], [package friendly name], [package option name], [additional help text])
+# Helper function to setup variables for a package.
+# $1 -> the package name. Used in configure.ac and also as a prefix
+#	for the variables ($1_DIR, $1_INCLUDE, $1_LIB) in makeopts
+# $3 ->	option name, used in --with-$3 or --without-$3 when calling configure.
+# $2 and $4 are just text describing the package (short and long form)
+
+# AST_EXT_LIB_SETUP([package], [short description], [configure option name], [long description])
 
 AC_DEFUN([AST_EXT_LIB_SETUP],
 [
-$1_DESCRIP="$2"
-$1_OPTION="$3"
-AC_ARG_WITH([$3], AC_HELP_STRING([--with-$3=PATH],[use $2 files in PATH $4]),[
-case ${withval} in
-     n|no)
-     USE_$1=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} $1"
-     ;;
-     *)
-     $1_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} $1"
-     ;;
-esac
-])
-PBX_$1=0
-AC_SUBST([$1_LIB])
-AC_SUBST([$1_INCLUDE])
-AC_SUBST([$1_DIR])
-AC_SUBST([PBX_$1])
+    $1_DESCRIP="$2"
+    $1_OPTION="$3"
+    AC_ARG_WITH([$3], AC_HELP_STRING([--with-$3=PATH],[use $2 files in PATH $4]),
+    [
+	case ${withval} in
+	n|no)
+	USE_$1=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} $1"
+	;;
+	*)
+	$1_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} $1"
+	;;
+	esac
+    ])
+    PBX_$1=0
+    AC_SUBST([$1_LIB])
+    AC_SUBST([$1_INCLUDE])
+    AC_SUBST([$1_DIR])
+    AC_SUBST([PBX_$1])
 ])
 
 # Check whether any of the mandatory modules are not present, and
-# print error messages in case.
+# print error messages in case. The mandatory list is built using
+# --with-* arguments when invoking configure.
 
 AC_DEFUN([AST_CHECK_MANDATORY],
 [
@@ -61,16 +73,22 @@
 	AC_MSG_RESULT(ok)
 ])
 
-#-- The following two tests are only performed if PBX_$1 != 1,
-#   so you can use multiple tests and stop at the first matching one.
-#   On success, set PBX_$1 = 1, and also #define HAVE_$1 1
-#   and #define HAVE_$1_VERSION ${last_argument} so you can tell which
-#   test succeeded.
-#   They should be called after AST_EXT_LIB_SETUP($1, ...)
+# The next three functions check for the availability of a given package.
+# AST_C_DEFINE_CHECK looks for the presence of a #define in a header file,
+# AST_EXT_LIB_CHECK looks for a symbol in a given library, or at least
+#	for the presence of a header file.
+# AST_EXT_TOOL_CHECK looks for a symbol in using $1-config to determine CFLAGS and LIBS
+#
+# They are only run if PBX_$1 != 1 (where $1 is the package),
+# so you can call them multiple times and stop at the first matching one.
+# On success, they both set PBX_$1 = 1, set $1_INCLUDE and $1_LIB as applicable,
+# and also #define HAVE_$1 1 and #define HAVE_$1_VERSION ${last_argument}
+# in autoconfig.h so you can tell which test succeeded.
+# They should be called after AST_EXT_LIB_SETUP($1, ...)
 
 # Check if a given macro is defined in a certain header.
 
-# AST_C_DEFINE_CHECK([package symbol name], [macro name], [header file], [version])
+# AST_C_DEFINE_CHECK([package], [macro name], [header file], [version])
 AC_DEFUN([AST_C_DEFINE_CHECK],
 [
     if test "x${PBX_$1}" != "x1" -a "${USE_$1}" != "no"; then
@@ -99,11 +117,13 @@
 # in a library, or, if no function is supplied, only check for the
 # existence of the header files.
 
-# AST_EXT_LIB_CHECK([package symbol name], [package library name], [function to check], [package header], [additional LIB data], [version])
+# AST_EXT_LIB_CHECK([package], [library], [function], [header],
+#	 [extra libs], [extra cflags], [version])
 AC_DEFUN([AST_EXT_LIB_CHECK],
 [
 if test "x${PBX_$1}" != "x1" -a "${USE_$1}" != "no"; then
    pbxlibdir=""
+   # if --with-$1=DIR has been specified, use it.
    if test "x${$1_DIR}" != "x"; then
       if test -d ${$1_DIR}/lib; then
       	 pbxlibdir="-L${$1_DIR}/lib"
@@ -118,22 +138,21 @@
       AC_CHECK_LIB([$2], [${pbxfuncname}], [AST_$1_FOUND=yes], [AST_$1_FOUND=no], ${pbxlibdir} $5)
    fi
 
+   # now check for the header.
    if test "${AST_$1_FOUND}" = "yes"; then
-      $1_LIB="-l$2 $5"
-      $1_HEADER_FOUND="1"
+      $1_LIB="${pbxlibdir} -l$2 $5"
+      # if --with-$1=DIR has been specified, use it.
       if test "x${$1_DIR}" != "x"; then
-         $1_LIB="${pbxlibdir} ${$1_LIB}"
 	 $1_INCLUDE="-I${$1_DIR}/include"
-	 saved_cppflags="${CPPFLAGS}"
-	 CPPFLAGS="${CPPFLAGS} -I${$1_DIR}/include"
-	 if test "x$4" != "x" ; then
-	    AC_CHECK_HEADER([${$1_DIR}/include/$4], [$1_HEADER_FOUND=1], [$1_HEADER_FOUND=0])
-	 fi
-	 CPPFLAGS="${saved_cppflags}"
-      else
-	 if test "x$4" != "x" ; then
-            AC_CHECK_HEADER([$4], [$1_HEADER_FOUND=1], [$1_HEADER_FOUND=0])
-	 fi
+      fi
+      $1_INCLUDE="${$1_INCLUDE} $6"
+      if test "x$4" = "x" ; then	# no header, assume found
+         $1_HEADER_FOUND="1"
+      else				# check for the header
+         saved_cppflags="${CPPFLAGS}"
+         CPPFLAGS="${CPPFLAGS} ${$1_INCLUDE} $6"
+	 AC_CHECK_HEADER([$4], [$1_HEADER_FOUND=1], [$1_HEADER_FOUND=0])
+         CPPFLAGS="${saved_cppflags}"
       fi
       if test "x${$1_HEADER_FOUND}" = "x0" ; then
          $1_LIB=""
@@ -145,12 +164,30 @@
          PBX_$1=1
          # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
          AC_DEFINE_UNQUOTED([HAVE_$1], 1, [Define this to indicate the ${$1_DESCRIP} library])
-	 AC_DEFINE_UNQUOTED([HAVE_$1_VERSION], [$6], [Define to indicate the ${$1_DESCRIP} library version])
+	 AC_DEFINE_UNQUOTED([HAVE_$1_VERSION], [$7], [Define to indicate the ${$1_DESCRIP} library version])
       fi
    fi
 fi
 ])
 
+
+# Check for a package using $2-config. Similar to AST_EXT_LIB_CHECK,
+# but use $2-config to determine cflags and libraries to use.
+

[... 33198 lines stripped ...]



More information about the svn-commits mailing list