Skip to content
Snippets Groups Projects
  1. Aug 15, 2016
    • Matt Jordan's avatar
      func_channel: Reorganize documentation · ddab42e2
      Matt Jordan authored
      * Following the example of the PJSIP channel driver, the channel
        technology specific documentation has been moved to the respective
        channel drivers that provide that functionality. This has the benefit
        of locating the documentation of items with those modules that provide
        it.
      
      * Examples of using the CHANNEL function for both standard items as well
        as for PJSIP have been added.
      
      * The 'max_forwards' standard item has been documented.
      
      Change-Id: Ifaa79a232c8ac99cf8da6ef6cc7815d398b1b79b
      ddab42e2
  2. Aug 12, 2016
  3. Aug 11, 2016
  4. Aug 10, 2016
    • Richard Mudgett's avatar
      res_srtp: Move SDP SRTP code from the core to res_srtp. · 41aba83f
      Richard Mudgett authored
      A patch made to the master branch (Now the 14 branch) inadvertently made
      libsrtp a required dependency in order to compile Asterisk.  Rather than
      create dummy defines to substitute for the defines supplied by libsrtp
      when libsrtp is not available, most of the code in sdp_srtp.c is moved
      into res_srtp.c.  This gets more code out of Asterisk's core that isn't
      used when SRTP is not available.  This also makes another inadvertent
      required dependency on libsrtp by Asterisk's core unlikely.
      
      ASTERISK-26253 #close
      Reported by: Ben Merrills
      
      Change-Id: I0a46cde81501c0405399c2588633ae32706d1ee7
      41aba83f
    • Alexei Gradinari's avatar
      pjsip: Fix deadlock with suspend taskprocessor on masquerade · 82087941
      Alexei Gradinari authored
      If both channels which should be masqueraded
      are in the same serializer:
      1st channel will be locked waiting condition 'complete'
      2nd channel will be locked waiting condition 'suspended'
      
      On heavy load system a chance that both channels will be in
      the same serializer 'pjsip/distibutor' is very high.
      
      To reproduce compile res_pjsip/pjsip_distributor.c with
      DISTRIBUTOR_POOL_SIZE=1
      
      Steps to reproduce:
      1. Party A calls Party B (bridged call 'AB')
      2. Party B places Party A on hold
      3. Party B calls Voicemail app (non-bridged call 'BV')
      4. Party B attended transfers Party A to voicemail using REFER.
      5. When asterisk masquerades calls 'AB' and 'BV',
         a deadlock is happened.
      
      This patch adds a suspension indicator to the taskprocessor.
      When a session suspends/unsuspends the serializer
      it sets the indicator to the appropriate state.
      The session checks the suspension indicator before
      suspend the serializer.
      
      ASTERISK-26145 #close
      
      Change-Id: Iaaebee60013a58c942ba47b1b4930a63e686663b
      82087941
    • Kevin Harwell's avatar
      alembic/sqlalchemy: auto increment only allowed on a single column · d4170df4
      Kevin Harwell authored
      The extensions table defined two columns (id and priority) as primary key
      autoincrement columns. However only one is allowed when defining the primary
      key.
      
      This patch removes the autoincrement attribute from the priority column since
      it does not need to be as such and really should not have been on there in the
      first place.
      
      This patch also removes 'context', 'exten', and 'priority' from the primary key
      index and creates a new combined unique contraint index on them.
      
      ASTERISK-26183 #close
      
      Change-Id: Ib9c712c612a4d7ec1edb0dcb77f1bae0905a470b
      d4170df4
    • George Joseph's avatar
      res_resolver_unbound: Allow compilation with libunbound version < 1.5 · 8d42ff78
      George Joseph authored
      libunbound at version 1.4.20 (which CentOS still uses) declared all
      of their string function parameters as as 'char *'.  1.4.21 changed
      them all to 'const char *'.  Thankfully 1.4.21 also introduced the
      UNBOUND_VERSION_MAJOR define so configure now checks for that and
      sets HAVE_UNBOUND_CONST_PARAMS.  res_resolver_unbound then checks
      that and casts away the 'const' if it's not set.
      
      Tested compile and testsuite on CentOS6 (1.4.20), Ubuntu14 (1.4.22) and
      Fedora24 (1.5.4).  There are a few failing tests to be addressed though.
      
      ASTERISK-26283 #close
      
      Change-Id: Ib708b19b706c5d0ba7b7d5473e6df339d9ae4148
      8d42ff78
    • Matt Jordan's avatar
      channels/chan_pjsip: Add PJSIP_SEND_SESSION_REFRESH · c315460a
      Matt Jordan authored
      This patch adds a new PJSIP specific dialplan function,
      PJSIP_SEND_SESSION_REFRESH. When invoked on a PJSIP channel, the media
      session will be refreshed via either an UPDATE or re-INVITE request.
      When used in conjunction with the PJSIP_MEDIA_OFFER dialplan function,
      the formats in use on a PJSIP channel can be re-negotiated and changed
      dynamically after call setup.
      
      ASTERISK-26277 #close
      
      Change-Id: Ib98fe09ba889aafe26d58d32f0fd1323f8fd9b1b
      (cherry picked from commit eec60dd7)
      c315460a
    • zuul's avatar
      d78fe8fe
    • zuul's avatar
  5. Aug 09, 2016
    • zuul's avatar
      26921a55
    • Mark Michelson's avatar
      res_rtp_asterisk: Cache local RTCP address. · 8fe9f1f7
      Mark Michelson authored
      When an RTCP packet is sent or received, res_rtp_asterisk generates a
      Stasis event that contains the RTCP report as well as the local and
      remote addresses that the report pertains to.
      
      The addresses are determined using ast_find_ourip(). For the local
      address, this will typically result in a lookup of the hostname of the
      server, and then a DNS lookup of that hostname. If you do not have the
      host in /etc/hosts, then this results in a full DNS lookup, which can
      potentially block for some time.
      
      This is especially problematic when performing RTCP reads, since those
      are done on the same thread responsible for reading and writing media.
      
      This patch addresses the issue by performing a lookup of the local
      address when RTCP is allocated. We then use this cached local address
      for the Stasis events when necessary.
      
      ASTERISK-26280 #close
      Reported by Mark Michelson
      
      Change-Id: I3dd61882c2e57036f09f0c390cf38f7c87e9b556
      8fe9f1f7
Loading