Skip to content
Snippets Groups Projects
  1. Jan 08, 2018
  2. Jan 02, 2018
  3. Dec 31, 2017
    • Sean Bright's avatar
      ice: Increase foundation buffer size · 15f8b9b8
      Sean Bright authored
      Per RFC 5245, the foundation specified with an ICE candidate can be up
      to 32 characters but we are only allowing for 31.
      
      ASTERISK-27498 #close
      Reported by: Michele Prà
      
      Change-Id: I05ce7a5952721a76a2b4c90366168022558dc7cf
      15f8b9b8
  4. Dec 22, 2017
    • Kevin Harwell's avatar
      AST-2017-014: res_pjsip - Missing contact header can cause crash · 55330654
      Kevin Harwell authored
      Those SIP messages that create dialogs require a contact header to be present.
      If the contact header was missing from the message it could cause Asterisk to
      crash.
      
      This patch checks to make sure SIP messages that create a dialog contain the
      contact header. If the message does not and it is required Asterisk now returns
      a "400 Missing Contact header" response. Also added NULL checks when retrieving
      the contact header that were missing as a "just in case".
      
      ASTERISK-27480 #close
      
      Change-Id: I1810db87683fc637a9e3e1384a746037fec20afe
      55330654
    • Sean Bright's avatar
      Remove as much trailing whitespace as possible. · fd0ca1c3
      Sean Bright authored
      Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0
      fd0ca1c3
  5. Dec 20, 2017
    • Corey Farrell's avatar
      Fix Common Typo's. · 1b80ffa4
      Corey Farrell authored
      Fix instances of:
      * Retreive
      * Recieve
      * other then
      * different then
      * Repeated words ("the the", "an an", "and and", etc).
      * othterwise, teh
      
      ASTERISK-24198 #close
      
      Change-Id: I3809a9c113b92fd9d0d9f9bac98e9c66dc8b2d31
      1b80ffa4
  6. Dec 19, 2017
    • Corey Farrell's avatar
      Remove constant conditionals (dead-code). · b3e839de
      Corey Farrell authored
      Some variables are set and never changed, making them constant.  This
      means that code in the 'false' block of the conditional is unreachable.
      
      In chan_skinny and res_config_ldap I used preprocessor directive `#if 0`
      as I'm unsure if the unreachable code could be enabled in the future.
      
      Change-Id: I62e2aac353d739fb3c983cf768933120f5fba059
      b3e839de
    • Aaron An's avatar
      res_rtp_asterisk: Avoid close the rtp/rtcp fd twice. · 81474dfb
      Aaron An authored
      When RTCP-MUX enabled. rtp->s is the same as rtcp->s, check this before
      close the file descriptor. Close the FD twice will hangs the asterisk
      under heavy load.
      
      ASTERISK-27299 #close
      Reported-by: Aaron An
      Tested-by: AaronAn
      
      Change-Id: I870a072d73fd207463ac116ef97100addbc0820a
      81474dfb
  7. Dec 15, 2017
    • Corey Farrell's avatar
      aco: Minimize use of regex. · bf2d3593
      Corey Farrell authored
      Remove nearly all use of regex from ACO users.  Still remaining:
      * app_confbridge has a legitamate use of option name regex.
      * ast_sorcery_object_fields_register is implemented with regex, all
        callers use simple prefix based regex.  I haven't decided the best
        way to fix this in both 13/15 and master.
      
      Change-Id: Ib5ed478218d8a661ace4d2eaaea98b59a897974b
      bf2d3593
    • Corey Farrell's avatar
      res_smdi: Fix shutdown ref. · 03c25a86
      Corey Farrell authored
      When adding shutdown refs for OPTIONAL_API components I accidentally
      added it to the unload_module function in res_smdi.  Move it to
      load_module.
      
      Change-Id: I2b9da38fbc11ef78ea23dbb2df92b684be7f647c
      03c25a86
    • Sean Bright's avatar
      res_hep: hepv3_is_loaded() should check if we are enabled · 9755eff4
      Sean Bright authored
      res_hep_pjsip.so and res_hep_rtcp.so will still load and do a lot of
      unnecessary work even if 'enabled' is set to 'no' in hep.conf.
      
      Change-Id: I3eddfeea09c6b5bc7c641952ee0ae487fd09b64b
      9755eff4
  8. Dec 14, 2017
    • Corey Farrell's avatar
      res_clialiases: Fix completion pass-through. · a8aa2099
      Corey Farrell authored
      Never ignore contents of line when generating completion options.
      
      Change-Id: I74389efdfea154019d3b56a9f381610614c044c8
      a8aa2099
    • Richard Mudgett's avatar
      res_rtp_asterisk.c: Disable packet flood detection for video streams. · 98f7e925
      Richard Mudgett authored
      We should not do flood detection on video RTP streams.  Video RTP streams
      are very bursty by nature.  They send out a burst of packets to update the
      video frame then wait for the next video frame update.  Really only audio
      streams can be checked for flooding.  The others are either bursty or
      don't have a set rate.
      
      * Added code to selectively disable packet flood detection for video RTP
      streams.
      
      ASTERISK-27440
      
      Change-Id: I78031491a6e75c2d4b1e9c2462dc498fe9880a70
      98f7e925
    • George Joseph's avatar
      res_pjsip_sdp_rtp: Add NULL check in add_crypto_to_stream · 283d2df6
      George Joseph authored
      add_crypto_to_stream wasn't checking for a NULL
      session->inv_session->neg before calling pjmedia_sdp_neg_get_state.
      This was causing a crash if the negotiation hadn't already been
      completed and asterisk was compiled with --enable-dev-mode.
      
      Change-Id: I57c6229954a38145da9810fc18657bfcc4d9d0c9
      283d2df6
    • Sean Bright's avatar
      res_musiconhold: Start playlist after initial announcement · c387beb4
      Sean Bright authored
      Reset the samples counter to zero when we are done playing an
      announcement so that we don't skip into the middle of the first file in
      the playlist.
      
      Also add the selected annoucement to the output of 'moh show classes.'
      
      ASTERISK-24329 #close
      Reported by: Thomas Frederiksen
      
      Change-Id: I2a5f986a31279c981592f49391409ebf38d6f6d0
      c387beb4
    • Sean Bright's avatar
      coverity: Fix warnings in res_smdi · 7a8a187a
      Sean Bright authored
      ASTERISK-19657 #close
      Reported by: Matt Jordan III, Esq.
      
      Change-Id: I59a5e6ef3e7d9e848bec1f4b40cb73321bc7956a
      7a8a187a
  9. Dec 13, 2017
    • Joshua Colp's avatar
      AST-2017-012: Place single RTCP report block at beginning of report. · 62f2860c
      Joshua Colp authored
      When the RTCP code was transitioned over to Stasis a code change
      was made to keep track of how many reports are present. This count
      controlled where report blocks were placed in the RTCP report.
      
      If a compound RTCP packet was received this logic would incorrectly
      place a report block in the wrong location resulting in a write
      to an invalid location.
      
      This change removes this counting logic and always places the report
      block at the first position. If in the future multiple reports are
      supported the logic can be extended but for now keeping a count
      serves no purpose.
      
      ASTERISK-27382
      ASTERISK-27429
      
      Change-Id: Iad6c8a9985c4b608ef493e19c421211615485116
      62f2860c
    • Joshua Colp's avatar
      res_pjsip_session: Reinvite using active stream topology if none requested. · 3370cd21
      Joshua Colp authored
      When a connected line update is sent to an endpoint we do not request
      a specific stream topology to be used. Previously this resulted in the
      configured stream topology being used which may actually differ from the
      currently negotiated topology. PJSIP is helpful in this regard in that
      it will fill in any missing streams with removed ones. This results in
      our own state not matching the SDP, though, and we do not apply the
      negotiated SDP.
      
      This change tweaks the code to use the actively negotiated stream
      topology if it is present with a fallback to the configured one. This
      results in the SDP and the state having matching information and the
      world is happy.
      
      ASTERISK*27397
      
      Change-Id: I7a57117f0183479e6884b7bf3a53bb8c7464f604
      3370cd21
  10. Dec 12, 2017
    • Richard Mudgett's avatar
      chan_pjsip/res_pjsip: Add CHANNEL(pjsip,request_uri) · 22810fc6
      Richard Mudgett authored
      This patch does three things associated with the initial incoming INVITE
      request URI.
      
      1) Add access to the full initial incoming INVITE request URI.
      
      2) We were not setting DNID on incoming PJSIP channels.  The DNID is the
      user portion of the initial incoming INVITE Request-URI.  The value is
      accessed by reading CALLERID(dnid).
      
      3) Fix CHANNEL(pjsip,target_uri) documentation.
      
      * The initial incoming INVITE request URI is now available using
      CHANNEL(pjsip,request_uri).
      
      * Set the DNID on PJSIP channel creation so CALLERID(dnid) can return the
      initial incoming INVITE request URI user portion.
      
      * CHANNEL(pjsip,target_uri) now correctly documents that the target URI is
      the contact URI.
      
      * Refactored print_escaped_uri() out of channel_read_pjsip() to handle
      pjsip_uri_print() error condition when the buffer is too small.
      
      ASTERISK-27478
      
      Change-Id: I512e60d1f162395c946451becb37af3333337b33
      22810fc6
    • Sean Bright's avatar
      res_pjsip: Add TLSv1.1 and TLSv1.2 support · ec1f4bf4
      Sean Bright authored
      Support for these protocols was added in the same commit as the 'proto'
      field, so we can safely use the same ./configure check.
      
      For reference: https://trac.pjsip.org/repos/changeset/4968
      
      Change-Id: Icf4975d785d6bfb8f30ac7ffa695a0adf9382dac
      ec1f4bf4
    • Sean Bright's avatar
      res_pjsip: Assign support levels to a few modules · 0b9d2135
      Sean Bright authored
      Change-Id: I51f6945c4023cb93fc7b87be5ab4c50e9e6ee27d
      0b9d2135
  11. Dec 11, 2017
    • Kevin Harwell's avatar
      pjsip_options: wrongly applied "UNKNOWN" status · b088cddc
      Kevin Harwell authored
      A couple of places were setting the status to "UNKNOWN" when qualifies were
      being disabled. Instead this should be set to the "CREATED" status that
      represents when a contact is given (uri available), but the qualify frequency
      is set to zero so we don't know the status.
      
      This patch updates the relevant places with "CREATED". It also updates the
      "CREATED" status description (value shown in CLI/AMI/ARI output) to a value
      of "NonQualified"/"NonQual" as this description is hopefully less confusing.
      
      ASTERISK-27467
      
      Change-Id: Id67509d25df92a72eb3683720ad2a95a27b50c89
      b088cddc
  12. Dec 10, 2017
    • Sean Bright's avatar
      pjsip: Improve CLI completion performance · 521f741b
      Sean Bright authored
      Use the new ast_cli_completion_add() function to improve completion
      performance for commands like 'pjsip show endpoint.'
      
      Change-Id: I76d802294d2ac1766110dc75f7d117c8541ce348
      521f741b
    • Sean Bright's avatar
      astdb: Improve prefix searches in astdb · 9a9edc6c
      Sean Bright authored
      Using the LIKE operator requires a full table scan of 'astdb', whereas a
      comparison operation is able to use the primary key index.
      
      This patch adds a new function to the AstDB API for quick prefix matches
      and updates res_sorcery_astdb to utilize it. This showed substantial
      performance improvement in my test environment.
      
      Related to ASTERISK~26806, but does not completely resolve it.
      
      Change-Id: I7d37f9ba2aea139dabf2ca72d31fbe34bd9b2fa1
      9a9edc6c
  13. Dec 08, 2017
    • Sean Bright's avatar
      pjsip_configuration: Add correct file header · dbb376f1
      Sean Bright authored
      Change-Id: I25348c386a222bb704aff07f54375108a6402906
      dbb376f1
    • Sean Bright's avatar
      utils: Add convenience function for setting fd flags · 2ffe52a1
      Sean Bright authored
      There are many places in the code base where we ignore the return value
      of fcntl() when getting/setting file descriptior flags. This patch
      introduces a convenience function that allows setting or clearing file
      descriptor flags and will also log an error on failure for later
      analysis.
      
      Change-Id: I8b81901e1b1bd537ca632567cdb408931c6eded7
      2ffe52a1
    • Corey Farrell's avatar
      res_stasis and res_speech: Fix load order. · e2dbc263
      Corey Farrell authored
      res_stasis was missing AST_MODFLAG_LOAD_ORDER.  Set res_stasis and
      res_speech to start at (AST_MODPRI_APP_DEPEND - 1) so they are ready for
      dependent modules.
      
      Change-Id: I27f4f3810a95b6be8a5bfbf62be2ace6bfab6ff3
      e2dbc263
    • Kevin Harwell's avatar
      pjsip_options: contacts sometimes not being updated on reload · 0e4d31eb
      Kevin Harwell authored
      For both dynamic and static contacts it was possible that potential AOR
      changes were not being applied to all contacts. This was because the qualify
      and schedule code was only retrieving AOR's, and contacts with frequencies
      greater than zero.
      
      For instance the following could happen: and AOR/contact has a frequency of 5,
      it then gets set to 0, and then a reload occurs. All scheduled OPTIONS are
      stopped, a list of AOR's is retrieved with frequency > 0, but none are
      selected since in this scenario all are 0. The contact for the one previously
      set to 5 though does not get updated, so it's status remains "AVAILABLE".
      
      This patch makes it so all contacts (static and dynamic) are selected, and
      appropriately updated if need be.
      
      ASTERISK-27467 #close
      
      Change-Id: I7a920170f89c683af9505d4723a44fc6841decdb
      0e4d31eb
    • Kevin Harwell's avatar
      pjsip_options: dynamic contact's fields not updated on reload · bd2218ce
      Kevin Harwell authored
      Dynamic contacts were not being properly updated on reload. As a matter of
      fact any changes to the AOR that a dynamic contact was associated with were
      not being applied.
      
      On reload, this patch makes it so for each dynamic contact, the associated
      AOR is now retrieved and the AOR's fields are applied to the contact.
      
      ASTERISK-27467
      
      Change-Id: I8e3165dc6a745218c1c9db837f77fafa0516985d
      bd2218ce
  14. Dec 04, 2017
    • Richard Mudgett's avatar
      security-events: Fix SuccessfulAuth using_password declaration. · 8536a09b
      Richard Mudgett authored
      The SuccessfulAuth using_password field was declared as a pointer to a
      uint32_t when the field was later read as a uint32_t value.  This resulted
      in unnecessary casts and a non-portable field value reinterpret in
      main/security_events.c:add_json_object().  i.e., It would work on a 32 bit
      architecture but not on a 64 bit big endian architecture.
      
      Change-Id: Ia08bc797613a62f07e5473425f9ccd8d77c80935
      8536a09b
    • Richard Mudgett's avatar
      res_rtp_asterisk.c: Increase strictrtp learning timeout time. · ab63448f
      Richard Mudgett authored
      More complicated direct media reinvite negotiations can result in longer
      delays before direct media flows.  The strictrtp learning timeout time
      was too short.  One log showed that the first RTP packet came in just
      after three seconds.
      
      * Increase the strictrtp learning timeout time from 1.5 to 5 seconds.
      
      ASTERISK-27453
      
      Change-Id: Ic5e711164cbb91b4d1c1e40c83697755640f138c
      ab63448f
  15. Dec 01, 2017
  16. Nov 26, 2017
    • Richard Mudgett's avatar
      res_ari: Fix inverted test giving wrong error message. · 55c4d8e0
      Richard Mudgett authored
      The patch for ASTERISK_24560 inverted a test checking if the bridge name
      is being updated to a different name.
      
      * Fix the test to return "Changing bridge name is not implemented" when
      someone attempts to change the bridge name.
      
      ASTERISK-27445
      
      Change-Id: I4b70bf08b0e02e016108b077ff75b345dec12fc9
      55c4d8e0
  17. Nov 22, 2017
  18. Nov 21, 2017
    • Corey Farrell's avatar
      res_parking: Set load_pri more appropriately. · 8e150615
      Corey Farrell authored
      res_parking had an inplicit load_pri of 0 meaning it was one of the very
      first modules loaded after modules with global symbols.  Set it to
      AST_MODPRI_DEVSTATE_PROVIDER as it provides device state for parking
      lots.
      
      Change-Id: I297b6fb3ff6993ec004e667b22a74f5925906259
      8e150615
  19. Nov 20, 2017
  20. Nov 19, 2017
Loading