Skip to content
Snippets Groups Projects
  1. Jul 04, 2014
    • Matthew Jordan's avatar
      Remove many deprecated modules · 97834718
      Matthew Jordan authored
      Billing records are fair,
      To get paid is quite bright,
      You should really use ODBC;
      Good-bye cdr_sqlite.
      
      Microsoft did once push H.323,
      Hell, we all remember NetMeeting.
      But try to compile chan_h323 now
      And you will take quite a beating.
      
      The XMPP and SIP war was fierce,
      And in the distant fray
      Was birthed res_jabber/chan_jingle;
      But neither to stay.
      
      For everyone did care and chase what Google professed.
      "Free Internet Calling" was what devotees cried,
      But Google did change the specs so often
      That the developers were happy the day chan_gtalk died.
      
      And then there was that odd application
      Dedicated to the Polish tongue.
      app_saycountpl was subsumed by Say;
      One could say its bell was rung.
      
      To read and parse a file from the dialplan
      You could (I guess) use an application.
      app_readfile did fill that purpose, but I think
      A function is perhaps better in its creation.
      
      Barging is rude, I'm not sure why we do it.
      Inwardly, the caller will probably sigh.
      But if you really must do it,
      Don't use app_dahdibarge, use ChanSpy.
      
      We all despise the sound of tinny robots
      It makes our queues so cold.
      To control such an abomination
      It's better to not use Wait/SetMusicOnHold.
      
      It's often nice to know properties of a channel
      It makes our calls right
      We have a nice function called CHANNEL
      And so SIPCHANINFO is sent off into the night.
      
      And now things get odd;
      Apparently one could delimit with a colon
      Properties from the SIPPEER function!
      Commas are in; all others are done.
      
      Finally, a word on pipes and commas.
      We're sorry. We can't say it enough.
      But those compatibility options in asterisk.conf;
      To maintain them forever was just too tough.
      
      This patch removes:
      
      * cdr_sqlite
      * chan_gtalk
      * chan_jingle
      * chan_h323
      * res_jabber
      * app_saycountpl
      * app_readfile
      * app_dahdibarge
      
      It removes the following applications/functions:
      
      * WaitMusicOnHold
      * SetMusicOnHold
      * SIPCHANINFO
      
      It removes the colon delimiter from the SIPPEER function.
      
      Finally, it also removes all compatibility options that were configurable from
      asterisk.conf, as these all applied to compatibility with Asterisk 1.4 systems.
      
      Review: https://reviewboard.asterisk.org/r/3698/
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@418019 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      97834718
  2. Jul 03, 2014
  3. Jun 19, 2014
  4. May 09, 2014
  5. Mar 21, 2014
  6. 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
  7. Jan 08, 2014
  8. Dec 18, 2013
    • Kevin Harwell's avatar
      channel locking: Add locking for channel snapshot creation · 28c0cb28
      Kevin Harwell authored
      Original commit message by mmichelson (asterisk 12 r403311):
      
      "This adds channel locks around calls to create channel snapshots as well
      as other functions which operate on a channel and then end up
      creating a channel snapshot. Functions that expect the channel to be
      locked prior to being called have had their documentation updated to
      indicate such."
      
      The above was initially committed and then reverted at r403398.  The problem
      was found to be in core_local.c in the publish_local_bridge_message function.
      The ast_unreal_lock_all function locks and adds a reference to the returned
      channels and while they were being unlocked they were not being unreffed when
      no longer needed.  Fixed by unreffing the channels.
      
      Also in bridge.c a lock was obtained on "other->chan", but then an attempt was
      made to unlock "other" and not the previously locked channel.  Fixed by
      unlocking "other->chan"
      
      (closes issue ASTERISK-22709)
      Reported by: John Bigelow
      ........
      
      Merged revisions 404237 from http://svn.asterisk.org/svn/asterisk/branches/12
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@404260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      28c0cb28
  9. Dec 05, 2013
  10. Dec 03, 2013
  11. Oct 03, 2013
  12. Aug 06, 2013
  13. May 10, 2013
  14. Apr 08, 2013
    • Matthew Jordan's avatar
      Add multi-channel Stasis messages; refactor Dial AMI events to Stasis · b8d4e573
      Matthew Jordan authored
      This patch does the following:
       * A new Stasis payload has been defined for multi-channel messages. This
         payload can store multiple ast_channel_snapshot objects along with a single
         JSON blob. The payload object itself is opaque; the snapshots are stored
         in a container keyed by roles. APIs have been provided to query for and
         retrieve the snapshots from the payload object.
       * The Dial AMI events have been refactored onto Stasis. This includes dial
         messages in app_dial, as well as the core dialing framework. The AMI events
         have been modified to send out a DialBegin/DialEnd events, as opposed to
         the subevent type that was previously used.
       * Stasis messages, types, and other objects related to channels have been
         placed in their own file, stasis_channels. Unit tests for some of these
         objects/messages have also been written.
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@384910 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      b8d4e573
  15. Mar 28, 2013
  16. Mar 22, 2013
    • David M. Lee's avatar
      Move more channel events to Stasis; move res_json.c to main/json.c. · cf9324b2
      David M. Lee authored
      This patch started out simply as fixing the bouncing tests introduced
      in r382685, but required some other changes to give it a decent
      implementation.
      
      To fix the bouncing tests, the UserEvent and Newexten AMI events
      needed to be refactored to dispatch via Stasis. Dispatching directly
      to AMI resulted in those events sometimes getting ahead of the
      associated Newchannel events, which would understandably confuse anyone.
      
      I found that instead of creating a zillion different message types and
      structures associated with them, it would be preferable to define a
      message type that has a channel snapshot and a blob of structured data
      with a small bit of additional information. The JSON object model
      provides a very nice way of representing structured data, so I went
      with that.
      
       * Move JSON support from res_json.c to main/json.c
         * Made libjansson-dev a required dependency
       * Added an ast_channel_blob message type, which has a channel
         snapshot and JSON blob of data.
       * Changed UserEvent and Newexten events so that they are dispatched
         via ast_channel_blob messages on the channel's topic.
       * Got rid of the ast_channel_varset message; used ast_channel_blob
         instead.
       * Extracted the manager functions converting Stasis channel events to
         AMI events into manager_channel.c.
      
      (issue ASTERISK-21096)
      Review: https://reviewboard.asterisk.org/r/2381/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@383579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      cf9324b2
  17. Mar 15, 2013
  18. Nov 27, 2012
  19. Nov 14, 2012
  20. Oct 18, 2012
  21. Oct 14, 2012
  22. Oct 08, 2012
    • Richard Mudgett's avatar
      Fix deletion of unopenable spool files. · ab548bb0
      Richard Mudgett authored
      If scan_service() cannot open the spool file, it logs a message saying
      that it will delete the file and calls remove_from_queue() to do it.
      However, remove_from_queue() fails to delete the spool file because struct
      outgoing has not yet been fully initialized.
      
      * Merged allocating a new struct outgoing and init_outgoing() into
      new_outgoing().  Allocation is initialization.
      
      * Made apply_outgoing() not initialize the spool filename in struct
      outgoing.
      
      * Made apply_outgoing() call ast_trim_blanks() and ast_skip_blanks()
      rather than manually inlining them.
      
      * Reduced indentation levels in apply_outgoing().
      
      * Fixed a garbled comment in remove_from_queue().
      
      * Reworked scan_service() to simplify it.
      
      (closes issue ASTERISK-17231)
      Reported by: David Chappell
      Patches:
            spool_open_failure.diff (license #4997) patch uploaded by David Chappell
            Started with this patch.
      ........
      
      Merged revisions 374686 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      
      * Fixed some memory leaks on off nominal paths in init_outgoing() when
      merging into the new_outgoing() function dealing with o->capabilities.
      ........
      
      Merged revisions 374695 from http://svn.asterisk.org/svn/asterisk/branches/10
      ........
      
      Merged revisions 374708 from http://svn.asterisk.org/svn/asterisk/branches/11
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@374717 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      ab548bb0
  23. Sep 06, 2012
    • Matthew Jordan's avatar
      Fix DUNDi message routing bug when neighboring peer is unreachable · 34d3cbc7
      Matthew Jordan authored
      Consider a scenario where DUNDi peer PBX1 has two peers that are its neighbors,
      PBX2 and PBX3, and where PBX2 and PBX3 are also neighbors.  If the connection
      is temporarily broken between PBX1 and PBX3, PBX1 should not include PBX3 in
      the list of peers it sends to PBX2 in a DPDISCOVER message, as it cannot send
      messages to PBX3.  If it does, PBX2 will assume that PBX3 already received the
      message and fail to forward the message on to PBX3 itself.  This patch fixes
      this by only including peers in a DPDISCOVER message that are reachable by the
      sending node.  This includes all peers with an empty address
      (00:00:00:00:00:00) and that are have been reached by a qualify message.
      
      This patch also prevents attempting to qualify a dynamic peer with an empty
      address until that peer registers.
      
      The patch uploaded by Peter was modified slightly for this commit.
      
      (closes issue ASTERISK-19309)
      Reported by: Peter Racz
      patches:
        dundi_routing.patch uploaded by Peter Racz (license 6290)
      
      ........
      
      Merged revisions 372417 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 372418 from http://svn.asterisk.org/svn/asterisk/branches/10
      ........
      
      Merged revisions 372419 from http://svn.asterisk.org/svn/asterisk/branches/11
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@372420 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      34d3cbc7
  24. Aug 30, 2012
    • Matthew Jordan's avatar
      Clean up doxygen warnings · 8018b879
      Matthew Jordan authored
      This patch fixes numerous doxygen warnings across Asterisk.  It also updates
      the makefile to regenerate the doxygen configuration on the local system
      before running doxygen to help prevent warnings/errors on the local system.
      
      Much thanks to Andrew for tackling one of the Asterisk janitor projects!
      
      (issue ASTERISK-20259)
      Reported by: Andrew Latham
      Patches:
        doxygen_partial.diff uploaded by Andrew Latham (license 5985)
        make_progdocs.diff uploaded by Andrew Latham (license 5985)
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@371989 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      8018b879
  25. Aug 21, 2012
  26. Aug 09, 2012
  27. Aug 08, 2012
  28. Jul 31, 2012
    • Kinsey Moore's avatar
      Clean up and ensure proper usage of alloca() · 9b16c8b0
      Kinsey Moore authored
      This replaces all calls to alloca() with ast_alloca() which calls gcc's
      __builtin_alloca() to avoid BSD semantics and removes all NULL checks
      on memory allocated via ast_alloca() and ast_strdupa().
      
      (closes issue ASTERISK-20125)
      Review: https://reviewboard.asterisk.org/r/2032/
      Patch-by: Walter Doekes (wdoekes)
      ........
      
      Merged revisions 370642 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 370643 from http://svn.asterisk.org/svn/asterisk/branches/10
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370655 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      9b16c8b0
    • Mark Michelson's avatar
      Add "dialplan remove context" and modify "dialplan add include" · 6c23a60f
      Mark Michelson authored
      From corruptor's review board posting:
      
      "I've noticed that we can remove particular extension from context with
      dialplan remove extension command but in order to remove all extensions
      in the context we should delete them on by one. I've created dialplan
      remove context command which uses ast_context_destroy to destroy the
      whole context with all extensions. I've created to functions for in
      pbx_config.c: handle_cli_dialplan_remove_context which actually removes
      context and complete_dialplan_remove_context which completes input.
      They are based on other similar functions and pretty trivial but I can be
      mistaken somewhere.
      
      "I've also modified dialplan add include <context2> into <context1>. I've
      made it similar dialplan add extension ... command. It creates <context1>
      if it doesn't exist and I've also modified complete_dialplan_add_include
      and removed check for existance of <context2> because we can include
      non-existent context into another one. (I usually include empty
      (non-existent) contexts in advance). Should we raise warning in this case
      as it's raised while reading extensions.conf?
      
      "I use those functions with AMI. I think manager commands should be created
      in addition to those CLI commands."
      
      I've addressed the latest comments on review board and have made some other
      coding guidelines-related cleanup. I also have modified the CHANGES file to
      mention these new commands.
      
      (closes issue ASTERISK-19292)
      reported by Andrey Solovyev
      
      Patches:
      	dialplan_add_include.patch
          uploaded by Andrey Solovyev (license #5214)
          dialplan_remove_context.patch
          uploaded by Andrey Solovyev (license #5214)
      
      Review: https://reviewboard.asterisk.org/r/2042
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370644 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      6c23a60f
  29. Jun 15, 2012
    • Kevin P. Fleming's avatar
      Multiple revisions 369001-369002 · 166b4e2b
      Kevin P. Fleming authored
      ........
        r369001 | kpfleming | 2012-06-15 10:56:08 -0500 (Fri, 15 Jun 2012) | 11 lines
        
        Add support-level indications to many more source files.
        
        Since we now have tools that scan through the source tree looking for files
        with specific support levels, we need to ensure that every file that is
        a component of a 'core' or 'extended' module (or the main Asterisk binary)
        is explicitly marked with its support level. This patch adds support-level
        indications to many more source files in tree, but avoids adding them to
        third-party libraries that are included in the tree and to source files
        that don't end up involved in Asterisk itself.
      ........
        r369002 | kpfleming | 2012-06-15 10:57:14 -0500 (Fri, 15 Jun 2012) | 3 lines
        
        Add a script to enable finding source files without support-levels defined.
      ........
      
      Merged revisions 369001-369002 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 369005 from http://svn.asterisk.org/svn/asterisk/branches/10
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      166b4e2b
  30. Jun 11, 2012
  31. May 31, 2012
  32. May 14, 2012
  33. May 10, 2012
  34. May 04, 2012
  35. Apr 12, 2012
Loading