Skip to content
Snippets Groups Projects
  1. Aug 22, 2018
    • Sean Bright's avatar
      app_queue: Silence GCC 8 compiler warning · 14c6f8be
      Sean Bright authored
      I'm only seeing an error in 14+, so I assume it is due to different
      compiler options:
      
      app_queue.c: In function ‘handle_queue_add_member’:
      app_queue.c:10234:19: error: ‘%d’ directive writing between 1 and 11
          bytes into a region of size 3 [-Werror=format-overflow=]
           sprintf(num, "%d", state);
                         ^~
      app_queue.c:10234:18: note: directive argument in the range
          [-2147483648, 99]
           sprintf(num, "%d", state);
                        ^~~~
      
      Compiler: gcc version 8.0.1 20180414 (experimental)
          [trunk revision 259383] (Ubuntu 8-20180414-1ubuntu2) 
      
      Change-Id: I18577590da46829c1ea7d8b82e41d69f105baa10
      14c6f8be
  2. Aug 21, 2018
  3. Aug 20, 2018
  4. Aug 17, 2018
    • Richard Mudgett's avatar
      res_pjsip_t38.c: Fix crash if already saw a final T.38 reINVITE response. · 40f1604e
      Richard Mudgett authored
      We were still getting crashes after the first fix.  Somehow we receive a
      non-2xx final response before we get a 200 final response.  With the
      failure response we had already cleaned up and destroyed some data
      structures.  When the unexpected 200 response comes in we crash.
      
      * Add protection code to prevent processing another final T.38 reINVITE
      response.
      
      ASTERISK-27944
      
      Change-Id: I8b5baba8d07fe4d63f0d7d05d3eb9a3d27d40a74
      40f1604e
    • Richard Mudgett's avatar
      res_sorcery_realtime.c: Fix unqualified fetch warning. · 8cd36ab9
      Richard Mudgett authored
      The allow_unqualified_fetch option for the sorcery realtime backend
      blocked actually fetching all rows when the option is set to warn.
      
      * Made issue a warning and actually do the request when
      allow_unqualified_fetch=warn is set.
      
      Change-Id: I74456c80a03a62dce66fc3dc3cb0cf2351ac4312
      8cd36ab9
    • Richard Mudgett's avatar
      pbx_dundi.c: Misc memory management fixes when destroying peers · 273e2802
      Richard Mudgett authored
      * In destroy_peer(), fixed memory leaks of lookup history strings and
      qualify transactions when destroying peers.
      
      * In destroy_peer(), fixed leaving the registerexpire scheduled callback
      active when a peer is destroyed on a reload.  The reload marks and sweeps
      peers so any peers not explicitly configured get destroyed.  Peers created
      dynamically from the '*' peer will not exist until they re-register after
      the reload.  These destroyed peers caused memory corruption when the
      registerexpire timer expired.
      
      * Made build_peer() not schedule any callbacks on the '*' peer
      (empty_eid).  It is a special peer that is cloned to dynamically created
      peers so it doesn't actually get involved in any message transactions.
      
      * Made do_register_expire() remove the dundi/dpeers AstDB entry when a
      peer registration expires.
      
      * Fix deep_copy_peer() to not copy some things that cannot be copied to
      the cloned peer structure.  Timers, message transactions, and lookup
      history are specific to a peer instance.
      
      * Made set_config() lock around processing the mappings configuration.
      
      * Reordered unload_module() to handle load_module() declining the load due
      to error.
      
      Change-Id: Ib846b2b60d027f3a2c2b3b563d9a83a357dce1d6
      273e2802
    • Richard Mudgett's avatar
      pbx_dundi.c: Handle thread shutdown better. · d4e72ee2
      Richard Mudgett authored
      Change-Id: Id52f99bd6a948fe6dd82acc0a28b2447a224fe87
      d4e72ee2
    • Richard Mudgett's avatar
      pbx_dundi: Fix debug frame decode string. · 916abe7c
      Richard Mudgett authored
      * Fixed a typo in the name of the REGREQ frame decode string array.
      * Fixed off by one range check indexing into the frame decode string
      array.
      * Removed some unneeded casts associated with the decode string array.
      
      Change-Id: I77435e81cd284bab6209d545919bf236ad7933c2
      916abe7c
    • Richard Mudgett's avatar
      pbx_dundi: Update sample config documentation. · c035d0af
      Richard Mudgett authored
      Change-Id: I33d0ad0611c2124ca3440f0f811fa0f45e4e2849
      c035d0af
    • Richard Mudgett's avatar
      res_rtp_asterisk.c: Fix unused variable warnings · aee5f7c1
      Richard Mudgett authored
      Compiling without SRTP support installed resulted in some unused variable
      warnings.  These warnings also showed that the srtp variable was obtained
      and passed around some functions but not really used even when a system
      has SRTP installed.
      
      Change-Id: I6daad34be3e89b19adef6e2fbe738018975155fc
      aee5f7c1
    • Joshua Colp's avatar
    • Joshua Colp's avatar
  5. Aug 16, 2018
  6. Aug 15, 2018
  7. Aug 14, 2018
  8. Aug 13, 2018
    • Ben Ford's avatar
      res_pjsip/rtp: No joint capabilities between streams. · c31a01bd
      Ben Ford authored
      When a conference contained a mixture of audio/video and audio-only
      users, a NOTICE message would pop up stating there are no joint
      capabilities between streams. This happens because streams can never be
      removed, but they can be in a REMOVED state. If we have the scenario
      where user A joins with audio/video, user B joins with audio-only, and
      user C joins with audio/video, then user A leaves, the message would
      be triggered. That removed stream is still in the SDP, but Asterisk
      would pass it through, causing it to be seen as a ulaw stream. A check
      has been added for removed streams, setting their status to REMOVED when
      handling negotiated SDPs.
      
      Also addressed an issue where user A joins, then user B joins but does
      not receive video until much later. Full frames were not being sent,
      causing some PLI from the browser. Because the video was flowing in one
      direction, the browser sets the SSRC to 1, but Asterisk was dropping the
      PLI because of that. Added a check to see if the SSRC is 1 or not, which
      sends full frames and allows video to flow between user A and user B.
      This should only happen when dealing with PSFB or FUR, and in the case
      of PSFB, only for PLI.
      
      ASTERISK-27398
      
      Change-Id: I26e7c6f101bc119549eeca406b5bcd25ad8ebc5e
      c31a01bd
    • Ivan Poddubny's avatar
      app_queue: set QUEUESTATUS to LEAVEEMPTY instead of CONTINUE · 2ce06109
      Ivan Poddubny authored
      When a call leaves a queue on leaveempty condition, QUEUESTATUS
      must be set to LEAVEEMPTY, no matter whether Queue was executed with or
      without the "c" (continue) option.
      
      The regression was introduced in the fix for ASTERISK_25665.
      The following fix (ASTERISK_27065) was incomplete, as QUEUESTATUS was
      overwritten in case when "c" is set, regardless of what was the cause
      for leaving the queue.
      
      ASTERISK-27973 #close
      Reported-by: Valentin Safonov
      
      Change-Id: Iec013fe6a26a4e825ca572a1dda4f3cee5f6f80c
      2ce06109
  9. Aug 09, 2018
    • Corey Farrell's avatar
      Sample configs: Fix pjsip.conf syntax error. · 63ca367a
      Corey Farrell authored
      It is valid for a config file to be empty or contain only comments, but
      not valid for a config value to be set when no uncommented context
      exists.  This caused an error to be loged numerous times during start
      when loading the default pjsip.conf.
      
      Change-Id: Icf3b0d69b4ecb6e935eecd43c99ed8b32a5a1cf6
      63ca367a
  10. Aug 08, 2018
    • Joshua Colp's avatar
    • Corey Farrell's avatar
      CI: Add support for coverage processing. · addfc938
      Corey Farrell authored
      Enable coverage with `./tests/CI/buildAsterisk.sh --coverage`.  This
      will cause Asterisk to be compiled with coverage support.  It also
      initializes 'before' coverage data for all sources.  Accept
      --tested-only to disable modules which are not run by any test.
      Enabling coverage also sets tested-only true by default.  To build
      everything with coverage enabled use `--coverage --tested-only=0`.
      
      ./tests/CI/processCoverage.sh is used to process the coverage and
      generate HTML reports.
      
      Fix utils/check_expr2 which failed to compiled with coverage enabled.
      
      Add status output 5 times per stage of astobj2_test_perf to ensure
      remote CLI does not timeout when compiled with coverage.  Remote CLI
      disconnects if no output is received for 60 seconds.  When coverage is
      enabled it takes about 70 seconds for my laptop to run the stages of
      this test, so with the change a message is printed every 14 seconds.
      
      Change-Id: I890f7d5665087426ad7d3e363187691b9afc2222
      addfc938
Loading