Skip to content
Snippets Groups Projects
  1. Jun 12, 2019
  2. Jun 10, 2019
    • agupta's avatar
      chan_pjsip.c: Check for channel and session to not be NULL in hangup · 67841b8f
      agupta authored
      We have seen some rare case of segmentation fault in hangup function
      and we could notice that channel pointer was NULL.  Debug log shows
      that there is a 200 OK answer and SIP timeout at the same time.  It
      looks that while the SIP session was being destroyed due to timeout
      call hangup due to answer event lead to race condition and channel
      is being destroyed from two different places.  The check ensures we
      check it not to be NULL before freeing it.
      
      ASTERISK-25371
      
      Change-Id: I19f6566830640625e08f7b87bfe15758ad33a778
      67841b8f
  3. Jun 07, 2019
    • Alexei Gradinari's avatar
      app_blind_transfer: new application BlindTransfer · dd12e1cb
      Alexei Gradinari authored
      BlindTransfer redirects all channels currently bridged to the
      caller channel to the specified destination.
      
      This application can be useful with Custom Dynamic Features.
      For example to make blind transfer to a predefined number.
      
      features.conf
      ;;;
      [applicationmap]
      my_blindxfer => *6,self,GoSub,"my_blindxfer,s,1",default
      ;;;
      
      extensions.conf
      ;;;
      [globals]
      DYNAMIC_FEATURES=my_blindxfer
      
      [my_blindxfer]
      exten => s,1,BlindTransfer(1234567890,default)
         same => n,Return()
      ;;;
      
      This application also can be used to completly redefine Blind transfer
      feature using dialplan. For example:
      
      features.conf
      ;;;
      [featuremap]
      blindxfer =>
      
      [applicationmap]
      custom_blindxfer => ##,self,GoSub,"custom_blindxfer,s,1",default
      ;;;
      
      extensions.conf
      ;;;
      [globals]
      DYNAMIC_FEATURES=custom_blindxfer
      
      [custom_blindxfer]
      exten => s,1,
         same => n,Playback(pbx-transfer)
         same => n,Read(dest,dial,10,i,3,3)
         same => n,BlindTransfer(${dest},default)
         same => n,Return()
      ;;;
      
      Change-Id: I9d55e7f69ccfd4472dec00d62771d6de8803215a
      dd12e1cb
  4. Jun 04, 2019
    • Chris-Savinovich's avatar
      cdr_pgsql: fix error in connection string · 45c1159c
      Chris-Savinovich authored
      Fixes an error occurring in function pgsql_reconnect() caused when value of
      hostname is blank. Which in turn will cause the connection string to look
      like this: "host= port=xx", which creates a sintax error. This fix now checks
      if the corresponding values for host, port, dbname, and user are blank. Note
      that since this is a reconnect function the database library will replace any
      missing value pairs with default ones.
      
      ASTERISK-28435
      
      Change-Id: I0a921f99bbd265768be08cd492f04b30855b8423
      45c1159c
    • Joshua Colp's avatar
  5. Jun 03, 2019
  6. May 30, 2019
  7. May 29, 2019
  8. May 24, 2019
  9. May 23, 2019
  10. May 22, 2019
  11. May 20, 2019
    • Joshua Colp's avatar
      pjproject-bundled: Add upstream timer fixes · fc49632b
      Joshua Colp authored
      Fixed #2191:
        - Stricter double timer entry scheduling prevention.
        - Integrate group lock in SIP transport, e.g: for add/dec ref,
          for timer scheduling.
      
      ASTERISK-28161
      Reported-by: Ross Beer
      
      Change-Id: I2e09aa66de0dda9414d8a8259a649c4d2d96a9f5
      fc49632b
  12. May 17, 2019
    • George Joseph's avatar
      res_rtp_asterisk: Add ability to propose local address in ICE · 90fe830a
      George Joseph authored
      You can now add the "include_local_address" flag to an entry in
      rtp.conf "[ice_host_candidates]" to include both the advertized
      address and the local address in ICE negotiation:
      
      [ice_host_candidates]
      192.168.1.1 = 1.2.3.4,include_local_address
      
      This causes both 192.168.1.1 and 1.2.3.4 to be advertized.
      
      Change-Id: Ide492cd45ce84546175ca7d557de80d9770513db
      90fe830a
  13. May 16, 2019
    • Alexei Gradinari's avatar
      pjsip: replace 180 by 183 if SDP negotiation has completed · 595d6084
      Alexei Gradinari authored
      The caller endpoint hears dead silence if a callee replies 180 (without SDP)
      and the caller already received 183 (with SDP).
      It happens because Asterisk sends 180 (WITH SDP) to the caller,
      there are not incoming RTP packets from the callee
      and Asterisk does not generate inband ringing,
      so there are not any outgoing RTP packets to the caller.
      
      This patch replaces 180 by 183 if SDP negotiation has completed,
      as if the caller endpoint is configured with "inband_progress=yes".
      
      In this case Asterisk will generate inband ringing untill Asterisk receive
      incoming RTP packets from the callee.
      
      ASTERISK-27994 #close
      
      Change-Id: I7450b751083ec30d68d6abffe922215a15ae5a73
      595d6084
  14. May 15, 2019
  15. May 13, 2019
  16. May 10, 2019
    • George Joseph's avatar
      Fixes for GCC 9 · 4337895a
      George Joseph authored
      Various fixes for issues caught by gcc 9.  Mostly snprintf
      trying to copy to a buffer potentially too small.
      
      ASTERISK-28412
      
      Change-Id: I9e85a60f3c81d46df16cfdd1c329ce63432cf32e
      4337895a
  17. May 08, 2019
  18. May 07, 2019
    • George Joseph's avatar
      Revert "pjproject-bundled: Add upstream timer fixes" · c41e3184
      George Joseph authored
      This reverts commit cfeb8a59.
      
      The fixes in question cause assert failures when pjproject
      asserts are enabled.  Reverting in 13 until a solution is
      found for all branches.
      
      Change-Id: Iae5bd340e0543613185fecb63f9c86fa985fe664
      c41e3184
    • Ben Ford's avatar
      pjsip_options.c: Allow immediate qualifies for new contacts. · f71a0e3f
      Ben Ford authored
      When multiple endpoints try to register close together using the same
      AOR with qualify_frequency set, one contact would qualify immediately
      while the other contacts would have to wait out the duration of the
      timer before being able to qualify. Changing the conditional to check
      the contact container count for a non-zero value allows all contacts to
      qualify immediately.
      
      Change-Id: I79478118ee7e0d6e76af7c354d66684220db9415
      f71a0e3f
  19. May 06, 2019
  20. May 03, 2019
    • George Joseph's avatar
      build: Pass --fno-partial-inlining to third-party when appropriate · 7646e225
      George Joseph authored
      When the gcc version is >= 8.2.1, we were already setting the
      --fno-partial-inlining flag for Asterisk source files to get around
      a gcc bug but we weren't passing the flag down to the bundled
      builds of pjproject and jansson.
      
      ASTERISK-28392
      
      Change-Id: I99ede9bc35408ecd096f7d5369e8192d3dc75704
      7646e225
    • George Joseph's avatar
      pjproject-bundled: Add upstream timer fixes · cfeb8a59
      George Joseph authored
      Fixed #2191:
        - Stricter double timer entry scheduling prevention.
        - Integrate group lock in SIP transport, e.g: for add/dec ref,
          for timer scheduling.
      
      ASTERISK-28161
      Reported-by: Ross Beer
      
      Change-Id: I02a791fd1570a1e594a132b36c4ff72441108c17
      cfeb8a59
  21. May 02, 2019
    • George Joseph's avatar
      res_pjsip: Check return from pjsip_parse_uri calls · 9d8a093a
      George Joseph authored
      Updated ast_sip_create_rdata_with_contact and registrar_find_contact
      to check the return from pjsip_parse_uri before attempting to
      use the uri returned.
      
      ASTERISK-28402
      Reported-by: Ross Beer
      
      Change-Id: I9810b3b163c45ed5a56ec743586e5ce107f13ba7
      9d8a093a
  22. Apr 30, 2019
  23. Apr 25, 2019
  24. Apr 24, 2019
    • Ben Ford's avatar
      stasis: Fix crash at shutdown. · 45892609
      Ben Ford authored
      When compiling in dev mode, stasis statistics are enabled and can cause
      a crash at shutdown due to the following:
      - Containers are freed
      - Topics and subscriptions remain
      - When those topics and subscriptions are deallocated, they go to do
        things with the container
      
      This changes the containers to global ao2 objects, and whenever needed
      in the code, a reference must be obtained and checked before any
      operations can be done.
      
      ASTERISK-28353 #close
      
      Change-Id: Ie7d5e907fcfcb4d65bd36d5e4eb923126fde8d33
      45892609
    • Antoni Goldstein's avatar
      app_dial.c: RINGTIME, PROGRESSTIME and ms resolution dial timings · 001e7762
      Antoni Goldstein authored
      Added RINGTIME, RINGTIME_MS, PROGRESSTIME, PROGRESSTIME_MS variables filled
      at the earliest received PROGRESS or RINGING.
      Added millisecond versions of DIALEDTIME and ANSWEREDTIME.
      
      Added millisecond versions of ast_channel_get_up_time and
      ast_channel_get_duration in channel.c.
      
      ASTERISK-28363
      
      Change-Id: If95f1a7d8c4acbac740037de0c6e3109ff6620b1
      001e7762
  25. Apr 23, 2019
Loading