Skip to content
Snippets Groups Projects
  1. Oct 12, 2016
  2. Oct 11, 2016
  3. Oct 10, 2016
    • Joshua Colp's avatar
      28c0e7ab
    • Torrey Searle's avatar
      res_rtp_asterisk: Fix infinite DTMF issue when switching to P2P bridge · cc269766
      Torrey Searle authored
      If a bridge switched to P2P when a DTMF was in progress it
      was possible for the DTMF to continue being sent indefinitely.
      
      Change-Id: I7e2a3efe0d59d4b214ed50cd0b5d0317e2d92e29
      cc269766
    • Corey Farrell's avatar
      logger: Prevent output of verbose messages initiated from rasterisk. · fafdde32
      Corey Farrell authored
      Remote asterisk consoles should only display verbose log messages
      created by the daemon.  The first patch for ASTERISK-26410 caused
      a couple verbose messages to be printed when the rasterisk process
      ended.
      
      ASTERISK-26410
      
      Change-Id: Ie2a1bb3753ad2724c0349ec1a336f52f7117b52a
      fafdde32
    • Michael Walton's avatar
      audiohooks: Remove redundant codec translations when using audiohooks · 7af7490e
      Michael Walton authored
      The main frame read and write handlers in main/channel.c don't use the
      optimum placement in the processing flow for calling audiohooks
      callbacks, as far as codec translation is concerned. This change places
      the audiohooks callback code:
       * After the channel read translation if the frame is not linear before
      the translation, thereby increasing the chance that the frame is linear
      as required by audiohooks
       * Before the channel write translation if the frame is linear at this
      point
      This prevents the audiohooks code from instantiating additional
      translation paths to/from linear where a linear frame format is already
      available, saving valuable CPU cycles
      
      ASTERISK-26419
      
      Change-Id: I6edd5771f0740e758e7eb42558b953f046c01f8f
      7af7490e
    • Badalyan Vyacheslav's avatar
      res_pjsip_config_wizard: Memory leak in module_unload · 3ab7fae9
      Badalyan Vyacheslav authored
      Fixed a memory leak. It removes only the first element.
      Added a useful feature in vector.h to remove all items
      under the CMP through a callback function / macro.
      
      ASTERISK-26453 #close
      
      Change-Id: I84508353463456d2495678f125738e20052da950
      3ab7fae9
    • Ludovic Gasc (GMLudo)'s avatar
      res_calendar: Add support for fetching calendars when reloading · 9f62feca
      Ludovic Gasc (GMLudo) authored
      We use a lot res_calendar, we are very happy with that, especially
      because you use libical, the almost alone opensource library that
      supports really ical format with all types of recurrency.
      
      Nevertheless, some features are missed for our business use cases.
      
      This first patch adds a new option in calendar.conf:
      fetch_again_at_reload. Be my guest for a better name.
      
      If it's true, when you'll launch "module reload res_calendar.so",
      Asterisk will download again the calendar.
      
      The business use case is that we have a WebUI with a scheduler planner,
      we know when the calendars are modified.
      
      For now, we need to define 1 minute of timeout to have a chance that
      our user doesn't wait too long between the modification and the real
      test.  But it generates a lot of useless HTTP traffic.
      
      
      ASTERISK-26422 #close
      
      Change-Id: I384b02ebfa42b142bbbd5b7221458c7f4dee7077
      9f62feca
    • Joshua Colp's avatar
    • Badalyan Vyacheslav's avatar
      cel_odbc: Fix memory leak on module unload · ca2f3e5b
      Badalyan Vyacheslav authored
      Change-Id: Ic7a1236eba2408090fdabb5f717b5fa455ead715
      ca2f3e5b
  4. Oct 09, 2016
    • Joshua Colp's avatar
      Revert "Packet-Loss Concealment (PLC) for supporting codecs." · 73f75c24
      Joshua Colp authored
      This change introduced some fax test failures
      that have not yet been addressed. So this is
      not forgotten I'm submitting a change which
      reverts it.
      
      This reverts:
      d56fc3b3.
      
      ASTERISK-25629
      
      Change-Id: Ibc2f23c38643f5a2c89cf8915ae2d805b81bc3d5
      73f75c24
    • George Joseph's avatar
      pjproject_bundled: Add MALLOC_DEBUG capability · c5e8f501
      George Joseph authored
      pjproject_bundled will now use the asterisk memory debugging APIs
      if MALLOC_DEBUG is turned on in menuselect.
      
      Because this required stubs for the executable programs and the python
      bindings, some Makefile reorganization was needed to properly handle
      the dependencies.  As a result, the makefile now individually makes
      each of the pjproject libraries separately instead of making them all
      in 1 shot.  The only visible change is that there are separate status
      lines printed for each library instead oif 1 for all libs.  Also, the
      making of the pjproject dependency files was eliminated.  They're not
      needed for building unless you're actively modifying pjproject source
      files and it makes the build process faster.  Finally, any issues with
      parallel builds should be resolved again making the build faster.
      
      Change-Id: Icc5e3d658fbfb00e0a46b44c66dcc2522d5171b0
      c5e8f501
  5. Oct 07, 2016
    • George Joseph's avatar
      alembic: Allow cdr, config and voicemail to exist in the same schema · 442b5979
      George Joseph authored
      cdr, config and voicemail are all separate alembic trees.  Because
      alembic's default is to use a table named 'alembic_version' to store
      the current tree revision, the 3 trees can't exist in the same schema
      without stepping on each other.
      
      Now each tree uses 'alembic_version_<tree_name>' as the version table.
      Each tree's env.py script now first checks for 'alembic_version'.  If
      it finds it AND its revision is in the tree's history, the script
      renames it to 'alembic_version_<tree_name>'.  Regardless, the script
      then continues with the migration using 'alembic_version_<tree_name>'
      and creates that table if it's not found.  The result is that if an
      existing 'alembic_version' table was found but it didn't belong to this
      tree, it's left alone and 'alembic_version_<tree_name>' is used or
      created.
      
      WARNING:  If multiple trees are using the same schema, they MUST NOT
      CRU or D any objects with names that might exist in the other trees.
      An example would be 'yesno_values' type.  If two trees perform
      operations on it, one tree could pull it out from under the other.
      Thankfully we currently don't share any names among cdr, config and
      voicemail.
      
      NOTE:  Since the env.py scripts in each tree were identical, a common
      env.py has been placed in the ast-db-manage directory and a symlink
      to it has been placed in each tree directory.
      
      ASTERISK-24311 #close
      Reported-by: Dafi Ni
      
      Change-Id: I4d593f000350deb5d21a14fa1e9bc3896844d898
      442b5979
    • Joshua Colp's avatar
  6. Oct 05, 2016
    • Alexander Traud's avatar
      chan_sip: Honor support of Symmetric Response (rport) for SIP requests. · c4268ec7
      Alexander Traud authored
      In the SIP channel driver chan_sip, the default is "auto_force_rport". When no
      NAT was detected, for example in case of IPv6, Asterisk uses the IP address
      from the headers within the SIP-REGISTER for subsequent SIP signaling. When
      the remote party specifies support for Symmetric Response (RFC 3581) via the
      parameter "rport", Asterisk should not extract the port from the SIP headers
      but reuse the port of the transport. This did not happen because of a typo.
      
      ASTERISK-26438 #close
      
      Change-Id: If6e7891848aaf96666dee5305695f7c6667cd5a6
      c4268ec7
  7. Oct 04, 2016
  8. Sep 30, 2016
    • Corey Farrell's avatar
      astobj2: Add backtrace to log_bad_ao2. · 2a03575c
      Corey Farrell authored
      * Compile __ast_assert_failed unconditionally.
      * Use __ast_assert_failed to log messages from log_bad_ao2
      * Remove calls to ast_assert(0) that happen after log_bad_ao2 was run.
      
      Change-Id: I48f1af44b2718ad74a421ff75cb6397b924a9751
      2a03575c
    • Etienne Lessard's avatar
      app_queue: Update dynamic members ringinuse on reload. · 806d08b6
      Etienne Lessard authored
      Previously, when reloading the members of a queue, the members added statically
      (i.e. defined in queues.conf) would see their "ringinuse" value updated but not
      the members added dynamically.
      
      This change makes dynamic members ringuse value to be updated on reload.
      
      Note that it's impossible to add a dynamic member with a specific ringinuse
      value. For both static and dynamic members, the ringinuse value can always be
      changed later on with command like "queue set ringinuse" or with the AMI action
      "QueueMemberRingInUse". So it's possible this commit could break a user workflow
      if he was changing the ringinuse value of dynamic members via such commands and
      was also relying on the fact that a queue reload would not update the dynamic
      members ringinuse value.
      
      ASTERISK-26330
      
      Change-Id: I3745cc9a06ba7e02c399636f1ee9e58c04081f3f
      806d08b6
    • Joshua Colp's avatar
      224c2952
  9. Sep 29, 2016
  10. Sep 27, 2016
  11. Sep 25, 2016
    • George Joseph's avatar
      build_tools: Add ability to download variants to download_externals · 43901e94
      George Joseph authored
      Some external packages have multiple variants that apply to different
      builds of asterisk.  The DPMA for instance has a "bundled" variant that
      needs to be downloaded if asterisk was configured with
      --with-pjproject-bundled.
      
      There are 2 ways to specify variants:
      
      If you need the user to make the decision about which variant to
      download, simply create multiple menuselect "member" entries like so...
      
      <member name="res_digium_phone" displayname="..snipped..">
        <support_level>external</support_level>
        <depend>xmlstarlet</depend>
        <depend>bash</depend>
        <defaultenabled>no</defaultenabled>
      </member>
      
      <member name="res_digium_phone-bundled" displayname="..snipped..">
        <support_level>external</support_level>
        <depend>xmlstarlet</depend>
        <depend>bash</depend>
        <defaultenabled>no</defaultenabled>
      </member>
      
      Note that the second entry has "-<variant>" appended to the name.
      You can then use the existing menuselect facilities to restrict which
      members to enable or disable.  Youy probably don't want the user to
      enable multiple at the same time.
      
      If you want to hide the details of the variants, the better way to
      do it is to create 1 member with "variant" elements.
      
      <member name="res_digium_phone" displayname="..snipped..">
        <support_level>external</support_level>
        <depend>xmlstarlet</depend>
        <depend>bash</depend>
        <defaultenabled>no</defaultenabled>
        <member_data>
          <downloader>
            <variants>
              <variant tag="bundled"
                condition='[[ "$PJPROJECT_BUNDLED" = "yes" ]]'/>
            </variants>
          </downloader>
        </member_data>
      </member>
      
      The condition must be a bash expression suitable for use with an "if"
      statement.  Any environment variable can be used plus those available
      in makeopts.
      
      In this case, if asterisk was configured with --with-pjproject-bundled
      the bundled variant will be automatically downloaded.  Otherwise the
      normal version will be downloaded.
      
      Change-Id: I4de23e06d4492b0a65e105c8369966547d0faa3e
      43901e94
Loading