[svn-commits] kharwell: branch kharwell/pimp_sip_state r392007 - in /team/kharwell/pimp_sip...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jun 17 09:55:35 CDT 2013


Author: kharwell
Date: Mon Jun 17 09:55:23 2013
New Revision: 392007

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=392007
Log:
Multiple revisions 391866,391886,391888,391906,391924,391942-391943,391945,391950,391967,391980,391988

........
  r391866 | root | 2013-06-14 14:17:53 -0500 (Fri, 14 Jun 2013) | 17 lines
  
  Multiple revisions 391855-391856
  
  ........
    r391855 | kmoore | 2013-06-14 13:46:00 -0500 (Fri, 14 Jun 2013) | 5 lines
    
    Fix two more possible crashes in CEL
    
    These are locations that should return valid snapshots, but need to be
    handled if not.
  ........
    r391856 | kmoore | 2013-06-14 13:50:21 -0500 (Fri, 14 Jun 2013) | 1 line
    
    Revert parts of r391855 that were not ready to go in to trunk
  ........
  
  Merged revisions 391855-391856 from file:///srv/subversion/repos/asterisk/trunk
........
  r391886 | kharwell | 2013-06-14 15:26:23 -0500 (Fri, 14 Jun 2013) | 10 lines
  
  Added call pickup group configuration options
  
  Added the ability to configure pick up groups automatically on a channel
  created for a chan_gulp endpoint. This includes: callgroup, pickupgroup,
  namedcallgroup, namedpickupgroup.
  
  (closes issue ASTERISK-21505)
  Reported by: Matt Jordan
  Review: https://reviewboard.asterisk.org/r/2589/
........
  r391888 | kharwell | 2013-06-14 15:39:17 -0500 (Fri, 14 Jun 2013) | 18 lines
  
  SIP Qualify Support
  
  Completed the work that had been started for SIP qualify support in the new
  channel driver.  Qualify requests are now sent for every contact associated
  with an endpoint.  When a contact is registered a check is done to make sure
  it is available and the round trip time is stored for reference.  The contact
  continues to be checked at a specified interval (qualify_frequency - now set
  on the AOR) until it is removed.
  
  A CLI command ("sip qualify <endpoint>") is also available that when issued
  will send qualifies for all contacts on the given endpoint.  Also added CLI
  command "sip show endpoint <endpoint>" that will show all the contacts and
  their status for the given endpoint.
  
  (closes issue ASTERISK-21499)
  Reported by: Matt Jordan
  Review: https://reviewboard.asterisk.org/r/2584/
........
  r391906 | root | 2013-06-14 17:17:54 -0500 (Fri, 14 Jun 2013) | 10 lines
  
  Ensure that the number of added contacts never goes below 0.
  
  This can happen when a REGISTER request is removing a contact.
  
  (closes issue ASTERISK-21911)
  Reported by: mdavenport
  ........
  
  Merged revisions 391902 from file:///srv/subversion/repos/asterisk/trunk
........
  r391924 | root | 2013-06-14 19:17:54 -0500 (Fri, 14 Jun 2013) | 21 lines
  
  Fix regression in MWI stasis handling.
  
  In revision 389733, mwi state allocation was placed into its
  own function instead of performing the allocation in-line when
  required. The issue was that in ast_publish_mwi_state_full(),
  the local variable "uniqueid" was no longer being set, but it was
  still being used as the topic for MWI. This meant that all MWI
  publications ended up being published to the "" (empty string)
  mailbox topic. Thus MWI subscriptions for specific mailboxes were
  never notified of mailbox state changes.
  
  This change fixes the issue by removing the local uniqueid variable
  from ast_publish_mwi_state_full() and instead referencing the
  mwi_state->uniqueid field since it has been properly set.
  
  (closes issue ASTERISK-21913)
  Reported by Malcolm Davenport
  ........
  
  Merged revisions 391921 from file:///srv/subversion/repos/asterisk/trunk
........
  r391942 | file | 2013-06-16 08:34:05 -0500 (Sun, 16 Jun 2013) | 6 lines
  
  Add an endpoint identifier for anonymous inbound calling.
  
  (closes issue ASTERISK-21434)
  
  Review: https://reviewboard.asterisk.org/r/2614/
........
  r391943 | file | 2013-06-16 08:38:23 -0500 (Sun, 16 Jun 2013) | 4 lines
  
  Add a module which performs automatic contact expiration.
  
  Review: https://reviewboard.asterisk.org/r/2598/
........
  r391945 | file | 2013-06-16 08:46:53 -0500 (Sun, 16 Jun 2013) | 2 lines
  
  Drop the ref count on the expiration if it can not be scheduled.
........
  r391950 | root | 2013-06-16 22:18:35 -0500 (Sun, 16 Jun 2013) | 31 lines
  
  Update Asterisk's CDRs for the new bridging framework
  
  This patch is the initial push to update Asterisk's CDR engine for the new
  bridging framework. This patch guts the existing CDR engine and builds the new
  on top of messages coming across Stasis. As changes in channel state and bridge
  state are detected, CDRs are built and dispatched accordingly. This
  fundamentally changes CDRs in a few ways.
  (1) CDRs are now *very* reflective of the actual state of channels and bridges.
      This means CDRs track well with what an actual channel is doing - which
      is useful in transfer scenarios (which were previously difficult to pin
      down). It does, however, mean that CDRs cannot be 'fooled'. Previous
      behavior in Asterisk allowed for CDR applications, channels, and other
      properties to be spoofed in parts of the code - this no longer works.
  (2) CDRs have defined behavior in multi-party scenarios. This behavior will not
      be what everyone wants, but it is a defined behavior and as such, it is
      predictable.
  (3) The CDR manipulation functions and applications have been overhauled. Major
      changes have been made to ResetCDR and ForkCDR in particular. Many of the
      options for these two applications no longer made any sense with the new
      framework and the (slightly) more immutable nature of CDRs.
  
  There are a plethora of other changes. For a full description of CDR behavior,
  see the CDR specification on the Asterisk wiki.
  
  (closes issue ASTERISK-21196)
  
  Review: https://reviewboard.asterisk.org/r/2486/
  ........
  
  Merged revisions 391947 from file:///srv/subversion/repos/asterisk/trunk
........
  r391967 | root | 2013-06-16 23:17:52 -0500 (Sun, 16 Jun 2013) | 11 lines
  
  Make cdr_mysql compile again by not directly setting the run-time CDR object
  
  A stray ast_cdr_setvar was missed in cdr_mysql (silly addons). This has now
  been refactored to not set the property, as the property would have been set
  on a run-time object that was already dispatched to the backend. The module
  simply remembers the value it wanted to set and writes it to MySQL later
  in the processing.
  ........
  
  Merged revisions 391964 from file:///srv/subversion/repos/asterisk/trunk
........
  r391980 | file | 2013-06-17 07:17:19 -0500 (Mon, 17 Jun 2013) | 2 lines
  
  Get this building again.
........
  r391988 | root | 2013-06-17 08:17:58 -0500 (Mon, 17 Jun 2013) | 5 lines
  
  Fix build warning (which is transmogrified into an error) with my compiler due to uninitialized variable.
  ........
  
  Merged revisions 391982 from file:///srv/subversion/repos/asterisk/trunk
........

Merged revisions 391866,391886,391888,391906,391924,391942-391943,391945,391950,391967,391980,391988 from http://svn.asterisk.org/svn/asterisk/team/group/pimp_my_sip

Added:
    team/kharwell/pimp_sip_state/include/asterisk/stasis_internal.h
      - copied unchanged from r391988, team/group/pimp_my_sip/include/asterisk/stasis_internal.h
    team/kharwell/pimp_sip_state/res/res_sip_endpoint_identifier_anonymous.c
      - copied unchanged from r391988, team/group/pimp_my_sip/res/res_sip_endpoint_identifier_anonymous.c
    team/kharwell/pimp_sip_state/res/res_sip_registrar_expire.c
      - copied unchanged from r391988, team/group/pimp_my_sip/res/res_sip_registrar_expire.c
    team/kharwell/pimp_sip_state/tests/test_cdr.c
      - copied unchanged from r391988, team/group/pimp_my_sip/tests/test_cdr.c
Modified:
    team/kharwell/pimp_sip_state/   (props changed)
    team/kharwell/pimp_sip_state/CHANGES
    team/kharwell/pimp_sip_state/UPGRADE.txt
    team/kharwell/pimp_sip_state/addons/cdr_mysql.c
    team/kharwell/pimp_sip_state/addons/chan_ooh323.c
    team/kharwell/pimp_sip_state/apps/app_authenticate.c
    team/kharwell/pimp_sip_state/apps/app_cdr.c
    team/kharwell/pimp_sip_state/apps/app_dial.c
    team/kharwell/pimp_sip_state/apps/app_disa.c
    team/kharwell/pimp_sip_state/apps/app_dumpchan.c
    team/kharwell/pimp_sip_state/apps/app_followme.c
    team/kharwell/pimp_sip_state/apps/app_forkcdr.c
    team/kharwell/pimp_sip_state/apps/app_osplookup.c
    team/kharwell/pimp_sip_state/apps/app_queue.c
    team/kharwell/pimp_sip_state/cdr/cdr_adaptive_odbc.c
    team/kharwell/pimp_sip_state/cdr/cdr_csv.c
    team/kharwell/pimp_sip_state/cdr/cdr_custom.c
    team/kharwell/pimp_sip_state/cdr/cdr_manager.c
    team/kharwell/pimp_sip_state/cdr/cdr_odbc.c
    team/kharwell/pimp_sip_state/cdr/cdr_pgsql.c
    team/kharwell/pimp_sip_state/cdr/cdr_radius.c
    team/kharwell/pimp_sip_state/cdr/cdr_syslog.c
    team/kharwell/pimp_sip_state/cdr/cdr_tds.c
    team/kharwell/pimp_sip_state/cel/cel_manager.c
    team/kharwell/pimp_sip_state/cel/cel_radius.c
    team/kharwell/pimp_sip_state/cel/cel_tds.c
    team/kharwell/pimp_sip_state/channels/chan_agent.c
    team/kharwell/pimp_sip_state/channels/chan_dahdi.c
    team/kharwell/pimp_sip_state/channels/chan_gulp.c
    team/kharwell/pimp_sip_state/channels/chan_h323.c
    team/kharwell/pimp_sip_state/channels/chan_iax2.c
    team/kharwell/pimp_sip_state/channels/chan_mgcp.c
    team/kharwell/pimp_sip_state/channels/chan_sip.c
    team/kharwell/pimp_sip_state/channels/chan_skinny.c
    team/kharwell/pimp_sip_state/channels/chan_unistim.c
    team/kharwell/pimp_sip_state/funcs/func_callerid.c
    team/kharwell/pimp_sip_state/funcs/func_cdr.c
    team/kharwell/pimp_sip_state/funcs/func_channel.c
    team/kharwell/pimp_sip_state/include/asterisk/bridging.h
    team/kharwell/pimp_sip_state/include/asterisk/cdr.h
    team/kharwell/pimp_sip_state/include/asterisk/cel.h
    team/kharwell/pimp_sip_state/include/asterisk/channel.h
    team/kharwell/pimp_sip_state/include/asterisk/channel_internal.h
    team/kharwell/pimp_sip_state/include/asterisk/res_sip.h
    team/kharwell/pimp_sip_state/include/asterisk/stasis_channels.h
    team/kharwell/pimp_sip_state/include/asterisk/test.h
    team/kharwell/pimp_sip_state/include/asterisk/time.h
    team/kharwell/pimp_sip_state/main/app.c
    team/kharwell/pimp_sip_state/main/asterisk.c
    team/kharwell/pimp_sip_state/main/bridging.c
    team/kharwell/pimp_sip_state/main/bridging_basic.c
    team/kharwell/pimp_sip_state/main/cdr.c
    team/kharwell/pimp_sip_state/main/cel.c
    team/kharwell/pimp_sip_state/main/channel.c
    team/kharwell/pimp_sip_state/main/channel_internal_api.c
    team/kharwell/pimp_sip_state/main/cli.c
    team/kharwell/pimp_sip_state/main/dial.c
    team/kharwell/pimp_sip_state/main/features.c
    team/kharwell/pimp_sip_state/main/manager.c
    team/kharwell/pimp_sip_state/main/manager_channels.c
    team/kharwell/pimp_sip_state/main/pbx.c
    team/kharwell/pimp_sip_state/main/stasis.c
    team/kharwell/pimp_sip_state/main/stasis_cache.c
    team/kharwell/pimp_sip_state/main/stasis_channels.c
    team/kharwell/pimp_sip_state/main/test.c
    team/kharwell/pimp_sip_state/main/utils.c
    team/kharwell/pimp_sip_state/res/res_agi.c
    team/kharwell/pimp_sip_state/res/res_config_sqlite.c
    team/kharwell/pimp_sip_state/res/res_monitor.c
    team/kharwell/pimp_sip_state/res/res_sip.c
    team/kharwell/pimp_sip_state/res/res_sip/location.c
    team/kharwell/pimp_sip_state/res/res_sip/sip_configuration.c
    team/kharwell/pimp_sip_state/res/res_sip/sip_options.c
    team/kharwell/pimp_sip_state/res/res_sip_refer.c
    team/kharwell/pimp_sip_state/res/res_sip_registrar.c
    team/kharwell/pimp_sip_state/res/res_stasis_answer.c

Propchange: team/kharwell/pimp_sip_state/
------------------------------------------------------------------------------
    automerge = *

Propchange: team/kharwell/pimp_sip_state/
------------------------------------------------------------------------------
--- pimp_sip_state-integrated (original)
+++ pimp_sip_state-integrated Mon Jun 17 09:55:23 2013
@@ -1,1 +1,1 @@
-/team/group/pimp_my_sip:1-391864
+/team/group/pimp_my_sip:1-392006

Modified: team/kharwell/pimp_sip_state/CHANGES
URL: http://svnview.digium.com/svn/asterisk/team/kharwell/pimp_sip_state/CHANGES?view=diff&rev=392007&r1=392006&r2=392007
==============================================================================
--- team/kharwell/pimp_sip_state/CHANGES (original)
+++ team/kharwell/pimp_sip_state/CHANGES Mon Jun 17 09:55:23 2013
@@ -11,6 +11,94 @@
 --- Functionality changes from Asterisk 11 to Asterisk 12 --------------------
 ------------------------------------------------------------------------------
 
+Applications
+------------------
+
+AgentMonitorOutgoing
+------------------
+ * The 'c' option has been removed. It is not possible to modify the name of a
+   channel involved in a CDR.
+
+ForkCDR
+------------------
+ * ForkCDR no longer automatically resets the forked CDR. See the 'r' option
+   for more information.
+
+ * Variables are no longer purged from the original CDR. See the 'v' option for
+   more information.
+
+ * The 'A' option has been removed. The Answer time on a CDR is never updated
+   once set.
+
+ * The 'd' option has been removed. The disposition on a CDR is a function of
+   the state of the channel and cannot be altered.
+
+ * The 'D' option has been removed. Who the Party B is on a CDR is a function
+   of the state of the respective channels, and cannot be altered.
+
+ * The 'r' option has been changed. Previously, ForkCDR always reset the CDR
+   such that the start time and, if applicable, the answer time was updated.
+   Now, by default, ForkCDR simply forks the CDR, maintaining any times. The
+   'r' option now triggers the Reset, setting the start time (and answer time
+   if applicable) to the current time.
+
+ * The 's' option has been removed. A variable can be set on the original CDR
+   if desired using the CDR function, and removed from a forked CDR using the
+   same function.
+
+ * The 'T' option has been removed. The concept of DONT_TOUCH and LOCKED no
+   longer applies in the CDR engine.
+
+ * The 'v' option now prevents the copy of the variables from the original CDR
+   to the forked CDR. Previously the variables were always copied but were
+   removed from the original. Removing variables from a CDR can have unintended
+   side effects - this option allows the user to prevent propagation of
+   variables from the original to the forked without modifying the original.
+
+MeetMe
+-------------------
+* Added the 'n' option to MeetMe to prevent application of the DENOISE function
+  to a channel joining a conference. Some channel drivers that vary the number
+  of audio samples in a voice frame will experience significant quality problems
+  if a denoiser is attached to the channel; this option gives them the ability
+  to remove the denoiser without having to unload func_speex.
+
+NoCDR
+------------------
+ * The NoCDR application is deprecated. Please use the CDR_PROP function to
+   disable CDRs.
+ * While the NoCDR application will prevent CDRs for a channel from being
+   propagated to registered CDR backends, it will not prevent that data from
+   being collected. Hence, a subsequent call to ResetCDR or the CDR_PROP
+   function that enables CDRs on a channel will restore those records that have
+   not yet been finalized.
+
+Queue
+-------------------
+ * Add queue available hint.  exten => 8501,hint,Queue:markq_avail
+   Note: the suffix '_avail' after the queuename.
+   Reports 'InUse' for no logged in agents or no free agents.
+   Reports 'Idle' when an agent is free.
+
+ResetCDR
+------------------
+ * The 'e' option has been deprecated. Use the CDR_PROP function to re-enable
+   CDRs when they were previously disabled on a channel.
+ * The 'w' and 'a' options have been removed. Dispatching CDRs to registered
+   backends occurs on an as-needed basis in order to preserve linkedid
+   propagation and other needed behavior.
+
+SetAMAFlags
+------------------
+ * This application is deprecated in favor of the CHANNEL function.
+
+
+Core
+------------------
+ * Redirecting reasons can now be set to arbitrary strings. This means
+   that the REDIRECTING dialplan function can be used to set the redirecting
+   reason to any string. It also allows for custom strings to be read as the
+   redirecting reason from SIP Diversion headers.
 
 AMI (Asterisk Manager Interface)
 ------------------
@@ -72,6 +160,9 @@
    event, the various ChanVariable fields will contain a suffix that specifies
    which channel they correspond to.
 
+* The NewPeerAccount AMI event is no longer raised. The NewAccountCode AMI
+  event always conveys the AMI event for a particular channel.
+
  * All "Reload" events have been consolidated into a single event type. This
    event will always contain a Module field specifying the name of the module
    and a Status field denoting the result of the reload. All modules now issue
@@ -118,6 +209,109 @@
  * The manager event AsyncAGI has been split into AsyncAGIStart, AsyncAGIExec,
    and AsyncAGIEnd.
 
+CDR (Call Detail Records)
+------------------
+ * Significant changes have been made to the behavior of CDRs. For a full
+   definition of CDR behavior in Asterisk 12, please read the specification
+   on the Asterisk wiki (wiki.asterisk.org).
+
+ * CDRs will now be created between all participants in a bridge. For each
+   pair of channels in a bridge, a CDR is created to represent the path of
+   communication between those two endpoints. This lets an end user choose who
+   to bill for what during multi-party bridges or bridge operations during
+   transfer scenarios.
+
+ * When a CDR is dispatched, user defined CDR variables from both parties are
+   included in the resulting CDR. If both parties have the same variable, only
+   the Party A value is provided.
+
+Features
+-------------------
+ * The BRIDGE_FEATURES channel variable would previously only set features for
+   the calling party and would set this feature regardless of whether the
+   feature was in caps or in lowercase. Use of a caps feature for a letter
+   will now apply the feature to the calling party while use of a lowercase
+   letter will apply that feature to the called party.
+
+ * Add support for automixmonitor to the BRIDGE_FEATURES channel variable.
+
+ * Parking has been pulled from core and placed into a separate module called
+   res_parking. See Parking changes below for more details.
+
+ * You can now have the settings for a channel updated using the FEATURE()
+   and FEATUREMAP() functions inherited to child channels by setting
+   FEATURE(inherit)=yes.
+
+Logging
+-------------------
+ * When performing queue pause/unpause on an interface without specifying an
+   individual queue, the PAUSEALL/UNPAUSEALL event will only be logged if at
+   least one member of any queue exists for that interface.
+
+ * Added the 'queue_log_realtime_use_gmt' option to have timestamps in GMT
+   for realtime queue log entries.
+
+Parking
+-------------------
+ * Parking is now implemented as a module instead of as core functionality.
+   The preferred way to configure parking is now through res_parking.conf while
+   configuration through features.conf is not currently supported.
+
+ * Parked calls are now placed in bridges. This is a largely architectural change,
+   but it could have some implications in allowing for new parked call retrieval
+   methods and the contents of parking lots will be visible though certain bridge
+   commands.
+
+ * The order of arguments for the new parking applications are different from the
+   old ones to be more intuitive. Timeout and return context/exten/priority are now
+   implemented as options. parking_lot_name is now the first parameter. See the
+   application documentation for Park, ParkedCall, and ParkAndAnnounce for more
+   in-depth information as well as syntax.
+
+ * Extensions are no longer automatically created in the dialplan to park calls,
+   pickup parked calls, etc by default.
+
+ * adsipark is no longer supported under the new parking model
+
+ * The PARKINGSLOT channel variable has been deprecated in favor of PARKING_SPACE
+   to match the naming scheme of the new system.
+
+ * PARKING_SPACE and PARKEDLOT channel variables will now be set for a parked
+   channel even when comebactoorigin=yes
+
+ * New CLI command 'parking show' allows you to inspect the currently in use
+   parking lots. 'parking show <parkinglot>' will also show the parked calls
+   in that specific parking lot.
+
+ * The CLI command 'parkedcalls' is now deprecated in favor of
+   'parking show <parkinglot>'.
+
+ * The AMI command 'ParkedCalls' will now accept a 'ParkingLot' argument which
+   can be used to get a list of parked calls only for a specific parking lot.
+
+ * The ParkAndAnnounce application is now provided through res_parking instead
+   of through the separate app_parkandannounce module.
+
+ * ParkAndAnnounce will no longer go to the next position in dialplan on timeout
+   by default. Instead, it will follow the timeout rules of the parking lot. The
+   old behavior can be reproduced by using the 'c' option.
+
+Realtime
+------------------
+ * Dynamic realtime tables for SIP Users can now include a 'path' field. This
+   will store the path information for that peer when it registers. Realtime
+   tables can also use the 'supportpath' field to enable Path header support.
+
+ * LDAP realtime configurations for SIP Users now have the AstAccountPathSupport
+   objectIdentifier. This maps to the supportpath option in sip.conf.
+
+Sorcery
+------------------
+ * All future modules which utilize Sorcery for object persistence must have a
+   column named "id" within their schema when using the Sorcery realtime module.
+   This column must be able to contain a string of up to 128 characters in length.
+
+
 Channel Drivers
 ------------------
  * When a channel driver is configured to enable jiterbuffers, they are now
@@ -126,6 +320,14 @@
    function, then the existing jitterbuffer will be used and the one set by
    the channel driver will not be applied.
 
+chan_agent
+------------------
+ * The updatecdr option has been removed. Altering the names of channels on a
+   CDR is not supported - the name of the channel is the name of the channel,
+   and pretending otherwise helps no one.
+ * The AGENTUPDATECDR channel variable has also been removed, for the same
+   reason as the updatecdr option.
+
 chan_local
 ------------------
  * The /b option is removed.
@@ -146,153 +348,44 @@
    set of proxies by using a pre-loaded route-set defined by the Path headers in
    the REGISTER request. See Realtime updates for more configuration information.
 
-Features
--------------------
- * The BRIDGE_FEATURES channel variable would previously only set features for
-   the calling party and would set this feature regardless of whether the
-   feature was in caps or in lowercase. Use of a caps feature for a letter
-   will now apply the feature to the calling party while use of a lowercase
-   letter will apply that feature to the called party.
-
- * Add support for automixmonitor to the BRIDGE_FEATURES channel variable.
-
- * Parking has been pulled from core and placed into a separate module called
-   res_parking. See Parking changes below for more details.
-
- * You can now have the settings for a channel updated using the FEATURE()
-   and FEATUREMAP() functions inherited to child channels by setting
-   FEATURE(inherit)=yes.
 
 Functions
+------------------
+
+JITTERBUFFER
 ------------------
  * JITTERBUFFER now accepts an argument of 'disabled' which can be used
    to remove jitterbuffers previously set on a channel with JITTERBUFFER.
    The value of this setting is ignored when disabled is used for the argument.
 
-Logging
--------------------
- * When performing queue pause/unpause on an interface without specifying an
-   individual queue, the PAUSEALL/UNPAUSEALL event will only be logged if at
-   least one member of any queue exists for that interface.
-
- * Added the 'queue_log_realtime_use_gmt' option to have timestamps in GMT
-   for realtime queue log entries.
-
-MeetMe
--------------------
-* Added the 'n' option to MeetMe to prevent application of the DENOISE function
-  to a channel joining a conference. Some channel drivers that vary the number
-  of audio samples in a voice frame will experience significant quality problems
-  if a denoiser is attached to the channel; this option gives them the ability
-  to remove the denoiser without having to unload func_speex.
-
-Parking
--------------------
- * Parking is now implemented as a module instead of as core functionality.
-   The preferred way to configure parking is now through res_parking.conf while
-   configuration through features.conf is not currently supported.
-
- * res_parking uses the configuration framework. If an invalid configuration is
-   supplied, res_parking will fail to load or fail to reload. Previously parking
-   lots that were misconfigured would generally be accepted with certain
-   configuration problems leading to individual disabled parking lots.
-
- * Parked calls are now placed in bridges. This is a largely architectural change,
-   but it could have some implications in allowing for new parked call retrieval
-   methods and the contents of parking lots will be visible though certain bridge
-   commands.
-
- * The order of arguments for the new parking applications are different from the
-   old ones to be more intuitive. Timeout and return context/exten/priority are now
-   implemented as options. parking_lot_name is now the first parameter. See the
-   application documentation for Park, ParkedCall, and ParkAndAnnounce for more
-   in-depth information as well as syntax.
-
- * Extensions are no longer automatically created in the dialplan to park calls,
-   pickup parked calls, etc by default.
-
- * adsipark is no longer supported under the new parking model
-
- * The PARKINGSLOT channel variable has been deprecated in favor of PARKING_SPACE
-   to match the naming scheme of the new system.
-
- * PARKING_SPACE and PARKEDLOT channel variables will now be set for a parked
-   channel even when comebactoorigin=yes
-
- * New CLI command 'parking show' allows you to inspect the currently in use
-   parking lots. 'parking show <parkinglot>' will also show the parked calls
-   in that specific parking lot.
-
- * The CLI command 'parkedcalls' is now deprecated in favor of
-   'parking show <parkinglot>'.
-
- * The AMI command 'ParkedCalls' will now accept a 'ParkingLot' argument which
-   can be used to get a list of parked calls only for a specific parking lot.
-
- * The ParkAndAnnounce application is now provided through res_parking instead
-   of through the separate app_parkandannounce module.
-
- * ParkAndAnnounce will no longer go to the next position in dialplan on timeout
-   by default. Instead, it will follow the timeout rules of the parking lot. The
-   old behavior can be reproduced by using the 'c' option.
-
- * Added a channel variable PARKER_FLAT which stores the name of the extension
-   that would be used to come back to if comebacktoorigin was set to use. This can
-   be useful when comebacktoorigin is off if you still want to use the extensions
-   in the park-dial context that are generated to redial the parker on timeout.
-
-Queue
--------------------
- * Add queue available hint.  exten => 8501,hint,Queue:markq_avail
-   Note: the suffix '_avail' after the queuename.
-   Reports 'InUse' for no logged in agents or no free agents.
-   Reports 'Idle' when an agent is free.
-
- * The configuration options eventwhencalled and eventmemberstatus have been
-   removed.  As a result, the AMI events QueueMemberStatus, AgentCalled,
-   AgentConnect, AgentComplete, AgentDump, and AgentRingNoAnswer will always be
-   sent.  The "Variable" fields will also no longer exist on the Agent* events.
-
-Core
-------------------
- * Redirecting reasons can now be set to arbitrary strings. This means
-   that the REDIRECTING dialplan function can be used to set the redirecting
-   reason to any string. It also allows for custom strings to be read as the
-   redirecting reason from SIP Diversion headers.
-
- * For DTMF blind and attended transfers, the channel variable TRANSFER_CONTEXT
-   must be on the channel initiating the transfer to have any effect.
-
- * The channel variable ATTENDED_TRANSFER_COMPLETE_SOUND is no longer channel
-   driver specific.  If the channel variable is set on the transferrer channel,
-   the sound will be played to the target of an attended transfer.
-
- * The channel variable BRIDGEPEER becomes a comma separated list of peers in
-   a multi-party bridge.  The BRIDGEPEER value can have a maximum of 10 peers
-   listed.  Any more peers in the bridge will not be included in the list.
-   BRIDGEPEER is not valid in holding bridges like parking since those channels
-   do not talk to each other even though they are in a bridge.
-
- * The channel variable BRIDGEPVTCALLID is only valid for two party bridges
-   and will contain a value if the BRIDGEPEER's channel driver supports it.
-
- * The channel variable DYNAMIC_PEERNAME is redundant with BRIDGEPEER and is
-   removed.  The more useful DYNAMIC_WHO_ACTIVATED gives the channel name that
-   activated the dynamic feature.
-
- * The channel variables DYNAMIC_FEATURENAME and DYNAMIC_WHO_ACTIVATED are set
-   only on the channel executing the dynamic feature.  Executing a dynamic
-   feature on the bridge peer in a multi-party bridge will execute it on all
-   peers of the activating channel.
-
-Realtime
-------------------
- * Dynamic realtime tables for SIP Users can now include a 'path' field. This
-   will store the path information for that peer when it registers. Realtime
-   tables can also use the 'supportpath' field to enable Path header support.
-
- * LDAP realtime configurations for SIP Users now have the AstAccountPathSupport
-   objectIdentifier. This maps to the supportpath option in sip.conf.
+CDR (function)
+------------------
+ * The 'amaflags' and 'accountcode' attributes for the CDR function are
+   deprecated. Use the CHANNEL function instead to access these attributes.
+ * The 'l' option has been removed. When reading a CDR attribute, the most
+   recent record is always used. When writing a CDR attribute, all non-finalized
+   CDRs are updated.
+ * The 'r' option has been removed, for the same reason as the 'l' option.
+ * The 's' option has been removed, as LOCKED semantics no longer exist in the
+   CDR engine.
+
+CDR_PROP
+------------------
+ * A new function CDR_PROP has been added. This function lets you set properties
+   on a channel's active CDRs. This function is write-only. Properties accept
+   boolean values to set/clear them on the channel's CDRs. Valid properties
+   include:
+   * 'party_a' - make this channel the preferred Party A in any CDR between two
+     channels. If two channels have this property set, the creation time of the
+     channel is used to determine who is Party A. Note that dialed channels are
+     never Party A in a CDR.
+   * 'disable' - disable CDRs on this channel. This is analogous to the NoCDR
+     application when set to True, and analogous to the 'e' option in ResetCDR
+     when set to False.
+
+
+Resources
+------------------
 
 RTP
 ------------------

Modified: team/kharwell/pimp_sip_state/UPGRADE.txt
URL: http://svnview.digium.com/svn/asterisk/team/kharwell/pimp_sip_state/UPGRADE.txt?view=diff&rev=392007&r1=392006&r2=392007
==============================================================================
--- team/kharwell/pimp_sip_state/UPGRADE.txt (original)
+++ team/kharwell/pimp_sip_state/UPGRADE.txt Mon Jun 17 09:55:23 2013
@@ -20,6 +20,49 @@
 === UPGRADE-11.txt -- Upgrade info for 10 to 11
 ===
 ===========================================================
+
+AgentMonitorOutgoing
+ - The 'c' option has been removed. It is not possible to modify the name of a
+   channel involved in a CDR.
+
+NoCDR:
+ - This application is deprecated. Please use the CDR_PROP function instead.
+
+ResetCDR:
+ - The 'w' and 'a' options have been removed. Dispatching CDRs to registered
+   backends occurs on an as-needed basis in order to preserve linkedid
+   propagation and other needed behavior.
+ - The 'e' option is deprecated. Please use the CDR_PROP function to enable
+   CDRs on a channel that they were previously disabled on.
+ - The ResetCDR application is no longer a part of core Asterisk, and instead
+   is now delivered as part of app_cdr.
+
+ForkCDR:
+ - ForkCDR no longer automatically resets the forked CDR. See the 'r' option
+   for more information.
+ - Variables are no longer purged from the original CDR. See the 'v' option for
+   more information.
+ - The 'A' option has been removed. The Answer time on a CDR is never updated
+   once set.
+ - The 'd' option has been removed. The disposition on a CDR is a function of
+   the state of the channel and cannot be altered.
+ - The 'D' option has been removed. Who the Party B is on a CDR is a function
+   of the state of the respective channels, and cannot be altered.
+ - The 'r' option has been changed. Previously, ForkCDR always reset the CDR
+   such that the start time and, if applicable, the answer time was updated.
+   Now, by default, ForkCDR simply forks the CDR, maintaining any times. The
+   'r' option now triggers the Reset, setting the start time (and answer time
+   if applicable) to the current time.
+ - The 's' option has been removed. A variable can be set on the original CDR
+   if desired using the CDR function, and removed from a forked CDR using the
+   same function.
+ - The 'T' option has been removed. The concept of DONT_TOUCH and LOCKED no
+   longer applies in the CDR engine.
+ - The 'v' option now prevents the copy of the variables from the original CDR
+   to the forked CDR. Previously the variables were always copied but were
+   removed from the original. Removing variables from a CDR can have unintended
+   side effects - this option allows the user to prevent propagation of
+   variables from the original to the forked without modifying the original.
 
 AMI:
  - The SIP SIPqualifypeer action now sends a response indicating it will qualify
@@ -72,6 +115,16 @@
  - Now recognizes 'W' to pause sending DTMF for one second in addition to
    the previously existing 'w' that paused sending DTMF for half a second.
 
+SetAMAFlags
+ - This application is deprecated in favor of the CHANNEL function.
+
+chan_agent:
+ - The updatecdr option has been removed. Altering the names of channels on a
+   CDR is not supported - the name of the channel is the name of the channel,
+   and pretending otherwise helps no one.
+ - The AGENTUPDATECDR channel variable has also been removed, for the same
+   reason as the updatecdr option.
+
 chan_dahdi:
  - Analog port dialing and deferred DTMF dialing for PRI now distinguishes
    between 'w' and 'W'.  The 'w' pauses dialing for half a second.  The 'W'
@@ -79,7 +132,7 @@
  - The default for inband_on_proceeding has changed to no.
 
 chan_local:
- - The /b option is removed.
+ - The /b option has been removed.
 
 Dialplan:
  - All channel and global variable names are evaluated in a case-sensitive manner.

Modified: team/kharwell/pimp_sip_state/addons/cdr_mysql.c
URL: http://svnview.digium.com/svn/asterisk/team/kharwell/pimp_sip_state/addons/cdr_mysql.c?view=diff&rev=392007&r1=392006&r2=392007
==============================================================================
--- team/kharwell/pimp_sip_state/addons/cdr_mysql.c (original)
+++ team/kharwell/pimp_sip_state/addons/cdr_mysql.c Mon Jun 17 09:55:23 2013
@@ -251,7 +251,7 @@
 					char timestr[128];
 					ast_localtime(&tv, &tm, ast_str_strlen(cdrzone) ? ast_str_buffer(cdrzone) : NULL);
 					ast_strftime(timestr, sizeof(timestr), "%Y-%m-%d %T", &tm);
-					ast_cdr_setvar(cdr, "calldate", timestr, 0);
+					value = ast_strdupa(timestr);
 					cdrname = "calldate";
 				} else {
 					cdrname = "start";
@@ -277,9 +277,11 @@
 				 strstr(entry->type, "real") ||
 				 strstr(entry->type, "numeric") ||
 				 strstr(entry->type, "fixed"))) {
-				ast_cdr_getvar(cdr, cdrname, &value, workspace, sizeof(workspace), 0, 1);
+				ast_cdr_format_var(cdr, cdrname, &value, workspace, sizeof(workspace), 1);
+			} else if (!strcmp(cdrname, "calldate")) {
+				/* Skip calldate - the value has already been dup'd */
 			} else {
-				ast_cdr_getvar(cdr, cdrname, &value, workspace, sizeof(workspace), 0, 0);
+				ast_cdr_format_var(cdr, cdrname, &value, workspace, sizeof(workspace), 0);
 			}
 
 			if (value) {

Modified: team/kharwell/pimp_sip_state/addons/chan_ooh323.c
URL: http://svnview.digium.com/svn/asterisk/team/kharwell/pimp_sip_state/addons/chan_ooh323.c?view=diff&rev=392007&r1=392006&r2=392007
==============================================================================
--- team/kharwell/pimp_sip_state/addons/chan_ooh323.c (original)
+++ team/kharwell/pimp_sip_state/addons/chan_ooh323.c Mon Jun 17 09:55:23 2013
@@ -2376,7 +2376,7 @@
 				ast_parse_allow_disallow(&user->prefs,
 					 user->cap,  tcodecs, 1);
 			} else if (!strcasecmp(v->name, "amaflags")) {
-				user->amaflags = ast_cdr_amaflags2int(v->value);
+				user->amaflags = ast_channel_string2amaflag(v->value);
          		} else if (!strcasecmp(v->name, "ip") || !strcasecmp(v->name, "host")) {
 				struct ast_sockaddr p;
 				if (!ast_parse_arg(v->value, PARSE_ADDR, &p)) {
@@ -2560,7 +2560,7 @@
 				ast_parse_allow_disallow(&peer->prefs, peer->cap, 
 												 tcodecs, 1);				 
 			} else if (!strcasecmp(v->name,  "amaflags")) {
-				peer->amaflags = ast_cdr_amaflags2int(v->value);
+				peer->amaflags = ast_channel_string2amaflag(v->value);
 			} else if (!strcasecmp(v->name, "roundtrip")) {
 				sscanf(v->value, "%d,%d", &peer->rtdrcount, &peer->rtdrinterval);
 			} else if (!strcasecmp(v->name, "dtmfmode")) {
@@ -2917,7 +2917,7 @@
 											"'lowdelay', 'throughput', 'reliability', "
 											"'mincost', or 'none'\n", v->lineno);
 		} else if (!strcasecmp(v->name, "amaflags")) {
-			gAMAFLAGS = ast_cdr_amaflags2int(v->value);
+			gAMAFLAGS = ast_channel_string2amaflag(v->value);
 		} else if (!strcasecmp(v->name, "accountcode")) {
          ast_copy_string(gAccountcode, v->value, sizeof(gAccountcode));
 		} else if (!strcasecmp(v->name, "disallow")) {
@@ -3117,7 +3117,7 @@
 		}
 
 		ast_cli(a->fd, "%-15.15s%s\n", "AccountCode: ", peer->accountcode);
-		ast_cli(a->fd, "%-15.15s%s\n", "AMA flags: ", ast_cdr_flags2str(peer->amaflags));
+		ast_cli(a->fd, "%-15.15s%s\n", "AMA flags: ", ast_channel_amaflags2string(peer->amaflags));
 		ast_cli(a->fd, "%-15.15s%s\n", "IP:Port: ", ip_port);
 		ast_cli(a->fd, "%-15.15s%d\n", "OutgoingLimit: ", peer->outgoinglimit);
 		ast_cli(a->fd, "%-15.15s%d\n", "rtptimeout: ", peer->rtptimeout);
@@ -3276,7 +3276,7 @@
 		}
 
 		ast_cli(a->fd, "%-15.15s%s\n", "AccountCode: ", user->accountcode);
-		ast_cli(a->fd, "%-15.15s%s\n", "AMA flags: ", ast_cdr_flags2str(user->amaflags));
+		ast_cli(a->fd, "%-15.15s%s\n", "AMA flags: ", ast_channel_amaflags2string(user->amaflags));
 		ast_cli(a->fd, "%-15.15s%s\n", "Context: ", user->context);
 		ast_cli(a->fd, "%-15.15s%d\n", "IncomingLimit: ", user->incominglimit);
 		ast_cli(a->fd, "%-15.15s%d\n", "InUse: ", user->inUse);
@@ -3524,7 +3524,7 @@
 
 	ast_cli(a->fd, "%-20s%ld\n", "Call counter: ", callnumber);
 	ast_cli(a->fd, "%-20s%s\n", "AccountCode: ", gAccountcode);
-	ast_cli(a->fd, "%-20s%s\n", "AMA flags: ", ast_cdr_flags2str(gAMAFLAGS));
+	ast_cli(a->fd, "%-20s%s\n", "AMA flags: ", ast_channel_amaflags2string(gAMAFLAGS));
 
 	pAlias = gAliasList;
 	if(pAlias) {

Modified: team/kharwell/pimp_sip_state/apps/app_authenticate.c

[... 11777 lines stripped ...]



More information about the svn-commits mailing list