Skip to content
Snippets Groups Projects
  1. Dec 03, 2015
  2. Dec 02, 2015
    • Jonathan Rose's avatar
      Unset BRIDGEPEER when leaving a bridge · eadad24b
      Jonathan Rose authored
      Currently if a channel is transferred out of a bridge, the BRIDGEPEER
      variable (also BRIDGEPVTCALLID) remain set even once the channel is
      out of the bridge. This patch removes these variables when leaving
      the bridge.
      
      ASTERISK-25600 #close
      Reported by: Mark Michelson
      
      Change-Id: I753ead2fffbfc65427ed4e9244c7066610e546da
      eadad24b
  3. Dec 01, 2015
    • Richard Mudgett's avatar
      sched.c: Make not return a sched id of 0. · e7c88e11
      Richard Mudgett authored
      According to the API doxygen a sched ID of 0 is valid.  Unfortunately, 0
      was never returned historically and several users incorrectly coded usage
      of the returned sched ID assuming that 0 was invalid.
      
      ASTERISK-25476
      
      Change-Id: Ib19c7ebb44ec9fd393ef6646dea806d4f34e3a20
      e7c88e11
    • Richard Mudgett's avatar
      Audit improper usage of scheduler exposed by 5c713fdf. (v13 additions) · 4aed349a
      Richard Mudgett authored
      chan_sip.c:
      * Initialize mwi subscription scheduler ids earlier because of ASTOBJ to
      ao2 conversion.
      
      * Initialize register scheduler ids earlier because of ASTOBJ to ao2
      conversion.
      
      chan_skinny.c:
      * Fix more scheduler usage for the valid 0 id value.
      
      ASTERISK-25476
      
      Change-Id: If9f0e5d99638b2f9d102d1ebc9c5a14b2d706e95
      4aed349a
    • Richard Mudgett's avatar
      Audit improper usage of scheduler exposed by 5c713fdf. · 6d9156d1
      Richard Mudgett authored
      channels/chan_iax2.c:
      * Initialize struct chan_iax2_pvt scheduler ids earlier because of
      iax2_destroy_helper().
      
      channels/chan_sip.c:
      channels/sip/config_parser.c:
      * Fix initialization of scheduler id struct members.  Some off nominal
      paths had 0 as a scheduler id to be destroyed when it was never started.
      
      chan_skinny.c:
      * Fix some scheduler id comparisons that excluded the valid 0 id.
      
      channel.c:
      * Fix channel initialization of the video stream scheduler id.
      
      pbx_dundi.c:
      * Fix channel initialization of the packet retransmission scheduler id.
      
      ASTERISK-25476
      
      Change-Id: I07a3449f728f671d326a22fcbd071f150ba2e8c8
      6d9156d1
  4. Nov 27, 2015
  5. Nov 26, 2015
  6. Nov 25, 2015
    • Kevin Harwell's avatar
      fastagi: record file closed after sending result · 45efbf85
      Kevin Harwell authored
      The fastagi record-file testsuite test sometimes fails reporting an empty
      recorded file. This was happening because Asterisk was sending the agi result
      notification prior to actually closing the file and the data, being buffered,
      had not been written to the file yet when the test attempts to check the file
      size.
      
      This patch makes it so the record file stream is closed prior to sending the
      agi result notification.
      
      ASTERISK-25593 #close
      
      Change-Id: I6b2b3be3ae37f7c7b18e672c419a89b3b8513cde
      45efbf85
    • Walter Doekes's avatar
      main: Slight refactor of main. Improve color situation. · b2787876
      Walter Doekes authored
      Several issues are addressed here:
      - main() is large, and half of it is only used if we're not rasterisk;
        fixed by spliting up the daemon part into a separate function.
      - Call ast_term_init from rasterisk as well.
      - Remove duplicate code reading/writing asterisk history file.
      - Attempt to tackle background color issues and color changes that
        occur. Tested by starting asterisk -c until the colors stopped
        changing at odd locations.
      
      ASTERISK-25585 #close
      
      Change-Id: Ib641a0964c59ef9fe6f59efa8ccb481a9580c52f
      b2787876
    • Matt Jordan's avatar
      Merge "Fixed some typos" into 13 · e96604c9
      Matt Jordan authored
      e96604c9
  7. Nov 24, 2015
  8. Nov 23, 2015
  9. Nov 21, 2015
  10. Nov 20, 2015
  11. Nov 19, 2015
    • Matt Jordan's avatar
      res/res_endpoint_stats: Add module to emit endpoint StatsD statistics · d27aac0a
      Matt Jordan authored
      This patch adds a module that emits StatsD statistics about Asterisk
      endpoints. This includes:
       * A GUAGE statistic for endpoint states, tracking how many endpoints are in
         a particular state.
       * A GUAGE statistic for each endpoint, counting the number of channels
         currently associated with an endpoint.
      
      ASTERISK-25572
      
      Change-Id: If7e1333c5aeda8d136850b30c2101c0ee1c97305
      d27aac0a
    • Matt Jordan's avatar
      res_pjsip/pjsip_options: Add StatsD statistics for PJSIP contacts · 90d9a707
      Matt Jordan authored
      This patch adds the ability to send StatsD statistics related to the
      state of PJSIP contacts. This includes:
       * A GUAGE statistic measuring the count of contacts in a particular state.
         This measures how many contacts are reachable, unreachable, etc.
       * The RTT time for each contact, if those contacts are qualified. This
         provides StatsD engines useful time-based data about each contact.
      
      ASTERISK-25571
      
      Change-Id: Ib8378d73afedfc622be0643b87c542557e0b332c
      90d9a707
    • Matt Jordan's avatar
      res/res_pjsip_outbound_registration: Add registration statistics for StatsD · 75097a09
      Matt Jordan authored
      This patch adds outbound registration statistics for StatsD. This includes
      the following:
       * A GUAGE metric for the overall count of outbound registrations.
       * A GUAGE metric for each state an outbound registration can be in. As the
         outbound registrations change state, the overall count of how many
         outbound registrations are in the particular state is changed.
      
      These statistics are particularly useful for systems with a large number of
      SIP trunks, and where measuring the change in state of the trunks is useful
      for monitoring.
      
      ASTERISK-25571
      
      Change-Id: Iba6ff248f5d1c1e01acbb63e9f0da1901692eb37
      75097a09
    • Matt Jordan's avatar
      res/res_pjsip_outbound_registration: Apply configuration on object type load · 8f71263e
      Matt Jordan authored
      When Asterisk is configured to use a dynamic sorcery backend (such as
      res_sorcery_astdb) with 'registration' objects, it will fail to create the
      internal state objects associated with the registration objects on module
      load. This is due to nothing actually querying for the specific objects
      and calling their sorcery apply handler during module load.
      
      This patch fixes that by calling get_registrations in the sorcery observer's
      object_type_loaded handler. Doing this causes the sorcery backends to be
      asked for the current state of all registration objects, which causes the
      apply handler to be called and the internal run-time state to be created.
      
      ASTERISK-25575 #close
      
      Change-Id: Ie9306e797098c6d4da7bcf4a5434a15891508b23
      8f71263e
    • Alexander Traud's avatar
      translate: Provide translation modules the result of SDP negotiation. · 0b508789
      Alexander Traud authored
      Previously, a trancoding module did not have access to the joint but cached
      format. Therefore, the module did not have access to the attributes negotiated
      via SDP (line fmtp). Now, a translation module receives the joint format.
      
      ASTERISK-25545 #close
      
      Change-Id: Id6878a989b50573298dab115d3371ea369e1a718
      0b508789
    • Alexander Traud's avatar
      res_format_attr_h264: Do not reset string buffer. · 1aa552b2
      Alexander Traud authored
      When no parameter is present, Asterisk does not generate the line fmtp, as
      expected. However, because a buffer was reset, even rtpmap and fmtp of previous
      media codecs got removed. Now, Asterisk does not reset other codecs in case of
      no parameter for H.264.
      
      ASTERISK-25573 #close
      
      Change-Id: I93811331f4a28c45418a9e14ee46c0debd47a286
      1aa552b2
  12. Nov 18, 2015
    • Matt Jordan's avatar
      res_statsd: Add functions that support variable arguments · 3354b325
      Matt Jordan authored
      Often, the metric names of statistics we are generating for StatsD have some
      dynamic component to them. This can be the name of a particular resource, or
      some internal status label in Asterisk. With the current set of functions,
      callers of the statsd API must first build the metric name themselves, then
      pass this to the API functions. This results in a large amount of boilerplate
      code and usage of either fixed length static buffers or dynamic memory
      allocation, neither of which is desireable.
      
      This patch adds two new functions to the StatsD API that support a printf
      style format specifier for constructing the metric name. A dynamic string,
      allocated in threadstorage, is used to build the metric name. This eases
      the burden on users of the StatsD API.
      
      Change-Id: If533c72d1afa26d807508ea48b4d8c7b32f414ea
      3354b325
    • Richard Mudgett's avatar
      res_pjsip_outbound_registration.c: Be tolerant of short registration timeouts. · d4a522d5
      Richard Mudgett authored
      Change-Id: Ie16f5053ebde0dc6507845393709b4d6a3ea526d
      d4a522d5
    • Richard Mudgett's avatar
      res_pjsip_outbound_registration.c: Fix 423 response handling. · e44ab381
      Richard Mudgett authored
      Receiving a 423 Interval Too Brief response after authentication for an
      outbound registration attempt results in assuming that the registrar has
      rejected the registration permanently.  If there are no configured retries
      for fatal responses then the outbound registration is stopped for that
      endpoint.
      
      For registrations, PJSIP/PJPROJECT intercepts the handling of 423
      responses and does not include any authentication in the updated
      registration request.  When the updated request is challenged then the
      Asterisk code assumes that we were challenged again because the peer
      rejected the authentication we sent earlier.
      
      * Made registration challenges keep track of the CSeq number to determine
      if the received challenge response was for the request we thought we sent.
      If the response's CSeq number differs from the CSeq number we last sent
      with authentication then authenticate again because it is a challenge to a
      different request.
      
      Change-Id: I81b4bd36d1be095bab606e34b8b44e6302971b09
      e44ab381
Loading