Skip to content
Snippets Groups Projects
  1. Jul 12, 2017
  2. Jul 11, 2017
    • George Joseph's avatar
      res_musiconhold: Add kill_escalation_delay, kill_method to class · b7a87577
      George Joseph authored
      By default, when res_musiconhold reloads or unloads, it sends a HUP
      signal to custom applications (and all descendants), waits 100ms,
      then sends a TERM signal, waits 100ms, then finally sends a KILL
      signal.  An application which is interacting with an external
      device and/or spawns children of its own may not be able to exit
      cleanly in the default times, expecially if sent a KILL signal, or
      if it's children are getting signals directly from
      res_musiconhoild.
      
      * To allow extra time, the 'kill_escalation_delay'
        class option can be used to set the number of milliseconds
        res_musiconhold waits before escalating kill signals, with the
        default being the current 100ms.
      
      * To control to whom the signals are sent, the "kill_method" class
        option can be set to "process_group" (the default, existing
        behavior), which sends signals to the application and its
        descendants directly, or "process" which sends signals only to the
        application itself.
      
      Change-Id: Iff70a1a9405685a9021a68416830c0db5158603b
      b7a87577
    • Benjamin Keith Ford's avatar
      manager: Remove AMI "Queues" action. · 5d86da61
      Benjamin Keith Ford authored
      When performing the "Queues" action via AMI, it outputs the same
      text that the Asterisk CLI outputs when running a "queue show"
      command, which does not conform with the AMI spec. "QueueStatus"
      already does what the "Queues" action should do, so instead of
      correcting the output, the "Queues" action will be removed and
      "QueueStatus" should be used instead.
      
      ASTERISK-27073 #close
      Reported by: Brian
      
      Change-Id: Id11743859758255b69cc3a557750d7a56c6d16f8
      5d86da61
    • Tzafrir Cohen's avatar
      Avoid setting maxfiles for a remote asterisk · d58ef31a
      Tzafrir Cohen authored
      Setting maxfiles (maximum number of open files) has no practical
      effect on a remote asterisk (rasterisk, rasterisk -x).
      
      It has an ill effect of printing an extra message, which
      may be annoying in case of -x.
      
      ASTERISK-27105 #close
      
      Change-Id: Iaf9eb344e4b4b517df91b736b27ec55f6a6921a2
      d58ef31a
    • George Joseph's avatar
      http.c: Reduce log spam · 303f935a
      George Joseph authored
      Messages like "fwrite() failed: Connection reset by peer" are no
      help whatsoever, especially since they can be caused simply by a
      client disconnecting.
      
      * Make those WARNINGs DEBUGs.
      * Check the return from ast_iostream_printf of headers.
      
      Change-Id: I17bd5f3621514152a7b2b263c801324c5e96568b
      303f935a
    • Jenkins2's avatar
  3. Jul 10, 2017
  4. Jul 07, 2017
  5. Jul 06, 2017
    • Richard Mudgett's avatar
      res_rtp_asterisk.c: Fix TURN deadlock by using ICE session group lock. · 9cd8a1df
      Richard Mudgett authored
      When a message is received on the TURN socket, the code processing the
      message needs to call into the ICE/STUN session for further processing.
      This code path locks the TURN group lock then the ICE/STUN group lock.  In
      another thread an ICE/STUN timer can fire off to send a keep alive message
      over the TURN socket.  In this code path, the ICE/STUN group lock is
      obtained then the TURN group lock is obtained to send the packet.  A
      classic deadlock case if the group locks are not the same.
      
      * Made TURN get created using the ICE/STUN session's group lock.
      
      NOTE: I was originally concerned that the ICE/STUN session can get
      recreated by ice_reset_session() for an event like RTCP multiplexing
      causing a change during SDP negotiation.  In this case the TURN group lock
      would become different.  However, TURN is also recreated as part of the
      ICE/STUN recreation in ice_create() when all known ICE candidates are
      added to the new ICE session.  While the ICE/STUN and TURN sessions are
      being recreated there is a period where the group locks could be
      different.
      
      ASTERISK-27023 #close
      Patches:
          res_rtp_asterisk-turn-deadlock-fix.patch (license #6502)
              patch uploaded by Michael Walton (modified)
      
      Change-Id: Ic870edb99ce4988a8c8eb6e678ca7f19da1432b9
      9cd8a1df
    • George Joseph's avatar
      Fix alembic branches · 7a4f577e
      George Joseph authored
      Change-Id: I04f607f084bda9b1b7f626e8e9735c37dc751187
      7a4f577e
  6. Jul 05, 2017
  7. Jul 03, 2017
    • Alexander Traud's avatar
      chan_sip: Only when different, add TCP|TLS in autodomain (SIP Domain Support). · 910c0545
      Alexander Traud authored
      When sip.conf contained tcpenable=yes and autodomain=yes, the TCP domain was
      added in any case, because of a local Boolean-negation error of the return value
      of ast_sockaddr_cmp. After fixing this error for TCP and TLS, the TLS domain was
      still always added with tlsenable=yes, because the domains were not compared
      just on the address but also on the port – and TLS is always on a different port
      than UDP/TCP.
      
      ASTERISK-27106
      
      Change-Id: I14fe9e319e238320b094016980445ef3a5b3337c
      910c0545
    • Alexander Traud's avatar
      chan_sip: Fix a typo for tlsbindaddr in autodomain (SIP Domain Support). · 4398aa8f
      Alexander Traud authored
      Because of a copy-and-paste error when the struct ast_sockaddr changed,
      tlsbindaddr was not added, when sip.conf contained autodomain=yes; see
      "show sip domains" on the command-line interface (CLI) of Asterisk.
      
      ASTERISK-27106
      
      Change-Id: I3d0957150017c223136968ef1266f275d0d6695e
      4398aa8f
  8. Jul 01, 2017
    • Sean Bright's avatar
      app_voicemail: Cleanup ODBC connection handling · 950b39a4
      Sean Bright authored
      The primary focus of this patch is adding a missing call to
      ast_odbc_release_obj(), but is also a general cleanup of the ODBC
      related code in app_voicemail.
      
      ASTERISK-27093 #close
      
      Change-Id: I8e285142eaeb3146b4287a928276b70db76c902b
      950b39a4
    • Corey Farrell's avatar
      channel: Clear channel flag in error branch. · 50ddb56d
      Corey Farrell authored
      Clear channel flag AST_FLAG_END_DTMF_ONLY in ast_waitfordigit_full when
      ast_read returns NULL.
      
      ASTERISK-27100 #close
      
      Change-Id: Id3039e9a4e74e0cb359f636c9fd0c9740ebf7d9d
      50ddb56d
  9. Jun 30, 2017
    • Jenkins2's avatar
    • Richard Mudgett's avatar
      pjsip_distributor.c: Fix deadlock with TCP type transports. · b485f6c5
      Richard Mudgett authored
      When a SIP message comes in on a transport, pjproject obtains the lock on
      the transport and pulls the data out of the socket.  Unlike UDP, the TCP
      transport does not allow concurrent access.  Without concurrency the
      transport lock is not released when the transport's message complete
      callback is called.  The processing continues and eventually Asterisk
      starts processing the SIP message.  The first thing Asterisk tries to do
      is determine the associated dialog of the message to determine the
      associated serializer.  To get the associated serializer safely requires
      us to get the dialog lock.
      
      To send a request or response message for a dialog, pjproject obtains the
      dialog lock and then obtains the transport lock.  Deadlock can result
      because of the opposite order the locks are obtained.
      
      * Fix the deadlock by obtaining the serializer associated with the dialog
      another way that doesn't involve obtaining the dialog lock.  In this case,
      we use an ao2 container to hold the associated endpoint and serializer.
      The new locks are held a brief time and won't overlap other existing lock
      times.
      
      ASTERISK-27090 #close
      
      Change-Id: I9ed63f4da9649e9db6ed4be29c360968917a89bd
      b485f6c5
    • Richard Mudgett's avatar
      pjsip_distributor.c: Fix unidentified_requests hash functions. · 65a5ac01
      Richard Mudgett authored
      The OBJ_SEARCH_xxx defines should not be used as if they were individual
      bits.  They represent a multi-bit enumeration value field.
      
      Change-Id: I32abc9a475396dab02402a7014357dd94284e17b
      65a5ac01
    • Jenkins2's avatar
      Merge "res_pjsip: Add DTMF INFO Failback mode" · e1c0e14f
      Jenkins2 authored
      e1c0e14f
Loading