Skip to content
Snippets Groups Projects
  1. Dec 03, 2015
    • Jonathan Rose's avatar
      Fix crash in audiohook translate to slin · 69457b8d
      Jonathan Rose authored
      This patch fixes a crash which would occur when an audiohook was
      applied to a channel using an audio codec that could not be translated
      to signed linear (such as when using pass-through codecs like OPUS or
      when the codec translator module for the format in use is not loaded).
      
      ASTERISK-25498 #close
      Reported by: Ben Langfeld
      
      Change-Id: Ib6ea7373fcc22e537cad373996136636201f4384
      69457b8d
  2. Nov 19, 2015
  3. Nov 18, 2015
    • Alec Davis's avatar
      app_bridgeaddchan: ability to barge into existing call · 8c14b916
      Alec Davis authored
      To be able to barge into a call by dialling a prefix+extension that maps
      to the extensions device.
      
      Senario is that DECT headset users may be away from their desks and need
      to transfer the call, the goal is that from any phone they dial a prefix
      then their extension and are added to the bridge that they are in, from
      there they can drop the headset call, as it's also on the handset,
      and transfer the caller.
      
      The dialplan would look like, where prefix=73, extension = 8512;
      exten => _738512,1,BridgeAdd(SIP/cisco0001)
      
      ASTERISK-25551 #close
      Reported By: Alec Davis
      
      Change-Id: I8eb5096a02168dcc8d7aeea416ef36ba4ed10540
      8c14b916
    • tcambron's avatar
      StatsD: Add sample rate compatibility · 05addf3d
      tcambron authored
      Implemented support for the StatsD sample rate parameter,
      which is a parameter for determining when to send computed
      statistics to a client.
      
      Valid sample rate values are:
      Less than or equal to 0.0 will never be sent.
      Between 0.0 and 1.0 will randomly be sent.
      Greater than or equal to 1.0 will always be sent.
      
      ASTERISK-25419
      Reported By: Ashley Sanders
      
      Change-Id: I11d315d0a5034fffeae1178e650aa8264485ed52
      05addf3d
    • Matt Jordan's avatar
    • Alec Davis's avatar
      app_queue: (try_calling): mutex 'qe->chan' freed more times than we've locked! · 4013f9d5
      Alec Davis authored
      commit aae45acb (Mark Michelson 2015-04-15 10:38:02 -0500 6525)
      refer ASTERISK-24958
      
      above commit removed ast_channel_lock(qe->chan);
      but failed to remove corresponding ast_channel_unlock(qe->chan);
      
      ASTERISK-25561 #close
      Reported Alec Davis
      
      Change-Id: Ie05f4e2d08912606178bf1fded57cc022c7a2e1a
      4013f9d5
  4. Nov 17, 2015
  5. Nov 16, 2015
    • George Joseph's avatar
      dns: Fix pointer increment in dns_parse_answer_ex · 6919daab
      George Joseph authored
      When dns_parse_answer_ex was iterating over the answers it
      wasn't incrementing the answer pointer correctly after the first
      answer.  The result was that no answers after the first
      were being returned.  For results where multiple records should
      have been sorted by priority, weight, etc., there was nothing
      to sort so the only the first record was returned even if it
      wouldn't have been the correct record based on the sort.
      
      ASTERISK-25565 #close
      Reported-by: Daniel Tryba
      Tested-by George Joseph
      
      Change-Id: I8622604fefdcd3c11e2c5609a6382e53b1467b0b
      6919daab
    • Mark Michelson's avatar
      Confbridge: Add a user timeout option · ed137321
      Mark Michelson authored
      This option adds the ability to specify a timeout, in seconds, for a
      participant in a ConfBridge. When the user's timeout has been reached,
      the user is ejected from the conference with the CONFBRIDGE_RESULT
      channel variable set to "TIMEOUT".
      
      The rationale for this change is that there have been times where we
      have seen channels get "stuck" in ConfBridge because a network issue
      results in a SIP BYE not being received by Asterisk. While these
      channels can be hung up manually via CLI/AMI/ARI, adding some sort of
      automatic cleanup of the channels is a nice feature to have.
      
      ASTERISK-25549 #close
      Reported by Mark Michelson
      
      Change-Id: I2996b6c5e16a3dda27595f8352abad0bda9c2d98
      ed137321
    • Matt Jordan's avatar
      res/res_pjsip: Fix off nominal crash with requests that fail and have a timer · a83e426e
      Matt Jordan authored
      When a request is sent using pjsip_endpt_send_request and fails, a condition
      exists where the request wrapper, which is an AO2 object, may be de-ref'd
      more times than it should. This occurs when the request's callback is called,
      and, in the callback, the timer on the PJSIP heap is cancelled. When that
      occurs, the request wrapper's lifetime is decremented. When
      pjsip_endpt_send_request fails, we unilaterally decrement the lifetime of
      the request wrapper again, even though we've already cancelled the reference
      associated with the timer.
      
      This patch checks the return result of pj_timer_heap_cancel_if_active before
      removing the reference associated with the timer. We now only decrement it
      in this case if a timer is cancelled as a result of the function call.
      
      Change-Id: I21332343a1a019c1117076f9bf2df27be2850102
      a83e426e
  6. Nov 14, 2015
    • Joshua Colp's avatar
      hashtab: Add NULL check when destroying iterator. · a1fcf6f7
      Joshua Colp authored
      The hashtab API is pretty NULL tolerant which has resulted
      in remaining callers not doing much checks themselves.
      Unfortunately the function to destroy an iterator does not
      do a NULL check and will result in a crash if passed NULL.
      This change fixes that.
      
      ASTERISK-25552 #close
      
      Change-Id: Ic1bf8eec3639e5a440f1c941d3ae3893ac6ed619
      a1fcf6f7
  7. Nov 13, 2015
    • Richard Mudgett's avatar
      res_pjsip_rfc3326.c: Fix crash when channel goes away. · 436023a3
      Richard Mudgett authored
      If an authenticated incoming caller does not respond to our 200 OK INVITE
      response with an ACK then PJSIP will hangup the call.  Unfortunately,
      there is a chance that the session's channel will go away between one use
      of the channel pointer and another when building the BYE request because
      the BYE is being built by the monitor thread and not the call's serializer
      thread.
      
      * Added a check to ensure that the thread trying to add the Reason header
      is the call's serializer thread.  This ensures that the channel will not
      go away on us.
      
      Change-Id: I866388d2b97ea2032eaae3f3ab3f1ca6cbd2df89
      436023a3
    • Mark Michelson's avatar
      Taskprocessors: Increase high-water mark · e8881e17
      Mark Michelson authored
      In practical tests, we have seen certain taskprocessors, specifically
      Stasis subscription taskprocessors, cross the recently-added high-water
      mark and emit a warning. This high-water mark warning is only intended
      to be emitted when things have tanked on the system and things are
      heading south quickly. In the practical tests, the Stasis taskprocessors
      sometimes had a max depth of 180 tasks in them, and Asterisk wasn't in
      any danger at all.
      
      As such, this ups the high-water mark to 500 tasks instead. It also
      redefines the SIP threadpool request denial number to be a multiple of
      the taskprocessor high-water mark.
      
      Change-Id: Ic8d3e9497452fecd768ac427bb6f58aa616eebce
      e8881e17
    • Alexander Traud's avatar
      format: Register format-attribute module with cached formats. · fd23d423
      Alexander Traud authored
      In Asterisk 13, cached formats are created before their corresponding format-
      attribute module is registered. Cached formats are involved when a local
      extension is called. Therefore, ast_format_generate_sdp_fmtp did not work
      on local extensions. This change affects the Opus Codec, H.263 (Plus), H.264,
      and format-attribute modules provided externally.
      
      ASTERISK-25160 #close
      
      Change-Id: I1ea1f0483e5261e2a050112e4ebdfc22057d1354
      fd23d423
  8. Nov 12, 2015
  9. Nov 11, 2015
  10. Nov 10, 2015
  11. Nov 09, 2015
Loading