Skip to content
Snippets Groups Projects
  1. Dec 14, 2017
  2. Dec 13, 2017
  3. Dec 12, 2017
    • Sean Bright's avatar
      chan_sip: Don't send trailing \0 on keep alive packets · 0c9cc7e9
      Sean Bright authored
      This is a partial fix for ASTERISK~25817 but does not address the
      comments regarding RFC 5626.
      
      Change-Id: I227e2d10c0035bbfa1c6e46ae2318fd1122d8420
      0c9cc7e9
    • Sean Bright's avatar
      chan_sip: Don't crash in Dial on invalid destination · 5039b574
      Sean Bright authored
      Stripping the DNID in a SIP dial string can result in attempting to call
      the argument parsing macros on an empty string, causing a crash.
      
      ASTERISK-26131 #close
      Reported by: Dwayne Hubbard
      Patches:
      	dw-asterisk-master-dnid-crash.patch (license #6257) patch
      	uploaded by Dwayne Hubbard
      
      Change-Id: Ib84c1f740a9ec0539d582b09d847fc85ddca1c5e
      5039b574
    • Corey Farrell's avatar
      menuselect: Tweak check for recently run configure. · 6a67828b
      Corey Farrell authored
      Recently menuselect has randomly produced an error stating that
      configure was just run and make had to be restarted.  I believe this is
      due to an incorrect menuselect/Makefile rule.  The original rule
      produced an error if makeopts or autoconfig.h were older than
      makeopts.in or autoconfig.h.in.  I believe this can create an issue if
      makeopts is older than autoconfig.h.in or if autoconfig.h is older than
      makeopts.in.  The new rules compare files independently.
      
      Change-Id: Ibca155035fa1392c95e33cbf25f257902abba17b
      6a67828b
    • 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
    • Corey Farrell's avatar
      CLI: Fix 'core show sysinfo' function ordering. · c01ba743
      Corey Farrell authored
      Handle CLI initialization before any processing occurs.
      
      Change-Id: I598b911d2e409214bbdfd0ba0882be1d602d221c
      c01ba743
  4. Dec 11, 2017
  5. 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
  6. Dec 09, 2017
    • Corey Farrell's avatar
      loader: Refactor resource_name_match. · d2e87b8e
      Corey Farrell authored
      Optimize resource_name_match.  This change eliminates use of
      ast_strdupa, instead verifying that both basename's are the same length,
      then using strncasecmp.
      
      Change-Id: I477275c0e954c99d74be5abfc8bb6545b04e5a3d
      d2e87b8e
  7. 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
Loading