Skip to content
Snippets Groups Projects
  1. Feb 16, 2018
  2. Dec 22, 2017
  3. Oct 04, 2017
    • krells's avatar
      res_calendar_icalendar: Filter out occurrences superceded by another VEVENT · 2301447a
      krells authored
      When we are loading the calendars, we call libical's
      icalcomponent_foreach_recurrence method for each VEVENT component that
      we have in our calendar.
      
      That method has no knowledge concerning the existence of the other
      VEVENT components and will feed our callback with all ocurrences
      matching the requested time span.
      
      The occurrences generated by icalcomponent_foreach_recurrence while
      expanding a recurring VEVENT's RRULE and RDATE properties can be
      superceded by an other VEVENT sharing the same UID.
      
      I use an external iterator (in libical terminology) to avoid messing
      with the internal ones from the calling function, and search for
      VEVENTS which could supersede the current occurrence.
      
      The event which can invalidate this occurence needs to have:
      
      - the same UID as our recurrent component (comp)
      - a RECURRENCE-ID property, which represents the start time of this
        occurrence
      
      If one component is found, just clean and return.
      
      ASTERISK-27296 #close
      Reported by: Benoît Dereck-Tricot
      
      Change-Id: I8587ae3eaa765af7cb21eda3b6bf84e8a1c87af8
      2301447a
  4. Sep 05, 2017
  5. Aug 17, 2017
  6. Oct 27, 2016
    • Corey Farrell's avatar
      Remove ASTERISK_REGISTER_FILE. · a6e5bae3
      Corey Farrell authored
      ASTERISK_REGISTER_FILE no longer has any purpose so this commit removes
      all traces of it.
      
      Previously exported symbols removed:
      * __ast_register_file
      * __ast_unregister_file
      * ast_complete_source_filename
      
      This also removes the mtx_prof static variable that was declared when
      MTX_PROFILE was enabled.  This variable was only used in lock.c so it
      is now initialized in that file only.
      
      ASTERISK-26480 #close
      
      Change-Id: I1074af07d71f9e159c48ef36631aa432c86f9966
      a6e5bae3
  7. May 13, 2015
  8. Apr 13, 2015
    • Matt Jordan's avatar
      git migration: Refactor the ASTERISK_FILE_VERSION macro · 4a582616
      Matt Jordan authored
      Git does not support the ability to replace a token with a version
      string during check-in. While it does have support for replacing a
      token on clone, this is somewhat sub-optimal: the token is replaced
      with the object hash, which is not particularly easy for human
      consumption. What's more, in practice, the source file version was often
      not terribly useful. Generally, when triaging bugs, the overall version
      of Asterisk is far more useful than an individual SVN version of a file. As a
      result, this patch removes Asterisk's support for showing source file
      versions.
      
      Specifically, it does the following:
      
      * Rename ASTERISK_FILE_VERSION macro to ASTERISK_REGISTER_FILE, and
        remove passing the version in with the macro. Other facilities
        than 'core show file version' make use of the file names, such as
        setting a debug level only on a specific file. As such, the act of
        registering source files with the Asterisk core still has use. The
        macro rename now reflects the new macro purpose.
      
      * main/asterisk:
        - Refactor the file_version structure to reflect that it no longer
          tracks a version field.
        - Remove the "core show file version" CLI command. Without the file
          version, it is no longer useful.
        - Remove the ast_file_version_find function. The file version is no
          longer tracked.
        - Rename ast_register_file_version/ast_unregister_file_version to
          ast_register_file/ast_unregister_file, respectively.
      
      * main/manager: Remove value from the Version key of the ModuleCheck
        Action. The actual key itself has not been removed, as doing so would
        absolutely constitute a backwards incompatible change. However, since
        the file version is no longer tracked, there is no need to attempt to
        include it in the Version key.
      
      * UPGRADE: Add notes for:
        - Modification to the ModuleCheck AMI Action
        - Removal of the "core show file version" CLI command
      
      Change-Id: I6cf0ff280e1668bf4957dc21f32a5ff43444a40e
      4a582616
  9. Jul 25, 2014
  10. May 09, 2014
  11. Mar 07, 2014
    • Scott Griepentrog's avatar
      uniqueid: channel linkedid, ami, ari object creation with id's · 80ef9a21
      Scott Griepentrog authored
      Much needed was a way to assign id to objects on creation, and
      much change was necessary to accomplish it.  Channel uniqueids
      and linkedids are split into separate string and creation time
      components without breaking linkedid propgation.  This allowed
      the uniqueid to be specified by the user interface - and those
      values are now carried through to channel creation, adding the
      assignedids value to every function in the chain including the
      channel drivers. For local channels, the second channel can be
      specified or left to default to a ;2 suffix of first.  In ARI,
      bridge, playback, and snoop objects can also be created with a
      specified uniqueid.
      
      Along the way, the args order to allocating channels was fixed
      in chan_mgcp and chan_gtalk, and linkedid is no longer lost as
      masquerade occurs.
      
      (closes issue ASTERISK-23120)
      Review: https://reviewboard.asterisk.org/r/3191/
      ........
      
      Merged revisions 410157 from http://svn.asterisk.org/svn/asterisk/branches/12
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@410158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      80ef9a21
  12. Jan 30, 2013
  13. May 18, 2012
    • Matthew Jordan's avatar
      Fix a variety of memory leaks · 7b513206
      Matthew Jordan authored
      This patch addresses a number of memory leaks in a variety of modules that were
      found by a static analysis tool.  A brief summary of the changes:
      
      * app_minivm:       free ast_str objects on off nominal paths
      * app_page:         free the ast_dial object if the requested channel technology
                          cannot be appended to the dialing structure
      * app_queue:        if a penalty rule failed to match any existing rule list
                          names, the created rule would not be inserted and its memory
                          would be leaked
      * app_read:         dispose of the created silence detector in the presence of
                          off nominal circumstances
      * app_voicemail:    dispose of an allocated unique ID field for MWI event
                          un-subscribe requests in off nominal paths; dispose of
                          configuration objects when using the secret.conf option
      * chan_dahdi:       dispose of the allocated frame produced by ast_dsp_process
      * chan_iax2:        properly unref peer in CLI command "iax2 unregister"
      * chan_sip:         dispose of the allocated frame produced by sip_rtp_read's
                          call of ast_dsp_process; free memory in parse unit tests
      * func_dialgroup:   properly deref ao2 object grhead in nominal path of
                          dialgroup_read
      * func_odbc:        free resultset in off nominal paths of odbc_read
      * cli:              free match_list in off nominal paths of CLI match completion
      * config:           free comment_buffer/list_buffer when configuration file load
                          is unchanged; free the same buffers any time they were
                          created and config files were processed
      * data:             free XML nodes in various places
      * enum:             free context buffer in off nominal paths
      * features:         free ast_call_feature in off nominal paths of applicationmap
                          config processing
      * netsock2:         users of ast_sockaddr_resolve pass in an ast_sockaddr struct
                          that is allocated by the method.  Failures in
                          ast_sockaddr_resolve could result in the users of the method
                          not knowing whether or not the buffer was allocated.  The
                          method will now not allocate the ast_sockaddr struct if it
                          will return failure.
      * pbx:              cleanup hash table traversals in off nominal paths; free
                          ignore pattern buffer if it already exists for the specified
                          context
      * xmldoc:           cleanup various nodes when we no longer need them
      * main/editline:    various cleanup of pointers not being freed before being
                          assigned to other memory, cleanup along off nominal paths
      * menuselect/mxml:  cleanup of value buffer for an attribute when that attribute
                          did not specify a value
      * res_calendar*:    responses are allocated via the various *_request method
                          returns and should not be allocated in the various
                          write_event methods; ensure attendee buffer is freed if no
                          data exists in the parsed node; ensure that calendar objects
                          are de-ref'd appropriately
      * res_jabber:       free buffer in off nominal path
      * res_musiconhold:  close the DIR* object in off nominal paths
      * res_rtp_asterisk: if we run out of ports, close the rtp socket object and free
                          the rtp object
      * res_srtp:         if we fail to create the session in libsrtp, destroy the
                          temporary ast_srtp object
      
      (issue ASTERISK-19665)
      Reported by: Matt Jordan
      
      Review: https://reviewboard.asterisk.org/r/1922
      ........
      
      Merged revisions 366880 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 366881 from http://svn.asterisk.org/svn/asterisk/branches/10
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@366917 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      7b513206
  14. May 10, 2012
  15. Apr 27, 2012
  16. Jul 14, 2011
  17. Jan 04, 2011
  18. Sep 17, 2010
    • Jan Kalab's avatar
      Merged revisions 287269-287271 via svnmerge from · 526e8fca
      Jan Kalab authored
      https://origsvn.digium.com/svn/asterisk/branches/1.8
      
      ........
        r287269 | pitel | 2010-09-17 10:37:49 +0200 (Pá, 17 zář 2010) | 8 lines
        
        Support for HTTP redirects in calendar's URL
        
        libneon does not support HTTP redirects (3xx responses) by default. You must tell it to follow them.
        Also, another little unsigned int fix.
        
        (closes issue #17776)
        Review: https://reviewboard.asterisk.org/r/921/
      ........
        r287270 | pitel | 2010-09-17 10:42:37 +0200 (Pá, 17 zář 2010) | 6 lines
        
        Asterisk crashing because of double free when EWS request fails
        
        The free is done later in code. I think ast_free() should have built in checks for double free.
        
        (closes issue #17782)
      ........
        r287271 | pitel | 2010-09-17 10:44:28 +0200 (Pá, 17 zář 2010) | 6 lines
        
        Events are visible after they were removed from EWS calendar
        
        Because we must merge calendar even when it's empty.
        
        (closes issue #17786)
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@287272 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      526e8fca
  19. Sep 03, 2010
  20. Jul 20, 2010
  21. May 28, 2010
    • Terry Wilson's avatar
      Fix ical library handling (again) · 9a2f04ce
      Terry Wilson authored
      Newer versions of libical (which we require) store the header file in a
      libical/ subfolder and include an ical.h file that does a #warning for
      deprecation and then #includes <libical/ical.h>. Since we now test for
      libical/ical.h, we can change the #includes back to <libical/ical.h> and
      remove the test which specifically adds /usr/include/libical as an include
      directory.
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@266386 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      9a2f04ce
  22. May 26, 2010
  23. Apr 21, 2010
  24. Feb 05, 2010
  25. Jan 11, 2010
  26. Oct 10, 2009
  27. Oct 09, 2009
  28. Oct 08, 2009
  29. Jun 15, 2009
  30. May 28, 2009
    • Terry Wilson's avatar
      Add Calendaring support for Asterisk · 71a3a2eb
      Terry Wilson authored
      This commit add Calendaring support to Asterisk for iCalendar, CalDAV, and MS
      Exchange calendars. Exchange support has only been tested on Exchange Server 2k3
      and does not support forms-based authentication at this time (patches *very*
      welcome). Exchange support is also currently missing the ability to return a
      list of a meting's attendees (again, patches are very, very welcome).
      
      Features include:
        Querying a calendar for events over a specific time range
        Checking a calendar's busy status via the dialplan
        Writing calendar events via the dialplan (CalDAV and Exchange only)
        Handling calendar event notifications through the dialplan
      
      (closes issue #14771)
      Tested by: lmadsen, twilson, Shivaprakash
      
      Review: https://reviewboard.asterisk.org/r/58
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@197738 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      71a3a2eb
Loading