Skip to content
Snippets Groups Projects
  1. Mar 15, 2017
  2. Mar 14, 2017
    • Joshua Colp's avatar
    • Matt Jordan's avatar
      res_pjsip_endpoint_identifier_ip: Add an option to match requests by header · b3c2c996
      Matt Jordan authored
      This patch adds a new features to the endpoint identifier module,
      'match_header'. When set, inbound requests are matched by a provided SIP
      header: value pair. This option works in conjunction with the existing
      'match' configuration option, such that if any 'match*' attribute
      matches an inbound request, the request is associated with the specified
      endpoint.
      
      Since this module now identifies by more than just IP address,
      appropriate renaming of the module and/or variables can be done in a
      non-release branch.
      
      ASTERISK-26863 #close
      
      Change-Id: Icfc14835c962f92e35e67bbdb235cf0589de5453
      (cherry picked from commit 30f52d79)
      b3c2c996
    • Matt Jordan's avatar
      configs/samples/hep.conf.sample: Clarify how the HEP stack works · 51985565
      Matt Jordan authored
      This patch updates the documenation in hep.conf.sample to better specify
      how the various HEP modules interact.
      
      ASTERISK-26717 #close
      
      Change-Id: I337fb742a89e3ec5edc7fc7a7a0295218d841124
      51985565
    • zuul's avatar
    • Matt Jordan's avatar
      funcs/func_devstate: Remove new line in Device field of during module load · f9b791de
      Matt Jordan authored
      During module loading of func_devstate, Asterisk emits the current
      device state of all Custom device states currently stored in the AstDB.
      This was erroneously including a new line character ('\n') to the end of
      the device state, causing two new lines to be emitted in
      DeviceStateChange AMI events.
      
      Note that this only happened for those device state changes that
      occurred during startup. Regular device state changes for Custom device
      states are handled elsewhere, and did not have the newline.
      
      ASTERISK-26643 #close
      Reported by: Roman Bedros
      Tested by: Matt Jordan
      patches:
        ami_devstate.diff uploaded by Roman Bedros (License 6842)
      
      Change-Id: I1f4c02fc79c448d43bf725f5039c83d9611d7d93
      f9b791de
    • Matt Jordan's avatar
      main/stasis_cache: Demote the ERROR message when removing a nonexistent item · 216e28aa
      Matt Jordan authored
      This patch demotes the ERROR message that is displayed when a
      nonexistent item is removed from the Stasis cache. The genesis of this
      demotion is due to chan_sip's realtime peers and their interaction with
      Asterisk's core ast_endpoint code, but ostensibly it could happen from
      other channel drivers as well.
      
      Since Mark Michelson already did an excellent job of explaining on this
      issue, it is quoted here for posterity:
      
      "Internally, when a realtime peer is retrieved, Asterisk creates an
      ast_endpoint structure. When that peer is destroyed, the ast_endpoint is
      destroyed as well. Part of the destruction of the ast_endpoint involves
      clearing the Stasis cache of all information about that endpoint. The
      problem here is that the act of creating the ast_endpoint is not enough
      to actually put any information in the Stasis cache. Instead, something
      has to happen, such as a state change, in order for the Stasis cache to
      have any information about that endpoint. When a device registers,
      chan_sip creates an ast_endpoint structure, processes the REGISTER, and
      then destroys the ast_endpoint. When the ast_endpoint is destroyed,
      there is nothing to destroy in the Stasis cache, so an error message is
      emitted. When you use rtcachefriends, ast_endpoint structures persist
      for the lifetime of the module and so you do not see this error
      message."
      
      ASTERISK-25237 #close
      
      Change-Id: I53cebc6b4a897a1ab9564182b75c177780feff70
      216e28aa
  3. Mar 13, 2017
    • Joshua Colp's avatar
      chan_pjsip: Don't assume a session will have a channel. · c8d1b915
      Joshua Colp authored
      When querying for PJSIP specific information using the dialplan
      function CHANNEL() it is possible that the underlying session
      will no longer have a channel associated with it. This is
      most likely to occur when the RTCP HEP module attempts to get
      the channel name. If this happens then a crash will occur.
      
      This change just adds a check that the channel exists on the
      session before querying it.
      
      ASTERISK-26857
      
      Change-Id: I113479cffff6ae64cf8ed089e9e1565223426f01
      c8d1b915
    • George Joseph's avatar
      menuselect: Add a new 'options' support type · 6d1eb880
      George Joseph authored
      The Binaural Rendering patches in the master branch required
      menuselect to be updated with a new support type called 'option'.
      This allows binaural rendering to be turned on or off when
      bridge_softmix is built.  This patch backports the 'option'
      functionality to the 13 and 14 branches.
      
      Here's what it looks like in menuselect:
      
        [*] bridge_simple
        [*] bridge_softmix
            --- Module Options ---
        [ ] binaural_rendering_in_bridge_softmix
      
      To create an option for a module, you can create (or update) the
      menuselect-tree xml snippet in the directory where the module
      resides and add a member element with an 'option' support_level.
      
      Example (abbreviated) from bridges/bridges.xml:
      
      <member name="binaural_rendering_in_bridge_softmix"
      	displayname="Enable binaural rendering in bridge_softmix"
      	remove_on_change="bridges/bridge_softmix.o bridges/bridge_softmix.so">
      	<support_level>option</support_level>
      	<depend>bridge_softmix</depend>
      	<depend>fftw3</depend>
      	<defaultenabled>no</defaultenabled>
      </member>
      
      The 'name' will be added or removed from the MENUSELECT_<dir>
      make variable following the standard module "missing means yes"
      rules.
      
      Example (abbreviated) from bridges/Makefile:
      
      ifeq ($(findstring binaural_rendering,$(MENUSELECT_BRIDGES)),)
      bridge_softmix.o: _ASTCFLAGS+=-DBINAURAL_RENDERING
      bridge_softmix.so: LIBS+=$(FFTW3_LIB)
      endif
      
      Change-Id: I66d23755ed6e81f8d439cad410f2ffa7c30f25ad
      6d1eb880
  4. Mar 11, 2017
  5. Mar 10, 2017
  6. Mar 09, 2017
  7. Mar 08, 2017
    • Joshua Colp's avatar
      res_pjsip_transport_websocket: Add support for IPv6. · 2a858882
      Joshua Colp authored
      This change adds a PJSIP patch (which has been contributed upstream)
      to allow the registration of IPv6 transport types.
      
      Using this the res_pjsip_transport_websocket module now registers
      an IPv6 Websocket transport and uses it for the corresponding
      traffic.
      
      ASTERISK-26685
      
      Change-Id: Id1f9126f995b31dc38db8fdb58afd289b4ad1647
      2a858882
    • Daniel Journo's avatar
      app_voicemail: Cannot set fromstring on a per-mailbox basis · bc6eeab8
      Daniel Journo authored
      * apps/app_voicemail.c fromstring field added to mailbox which will
      override the global fromstring if set.
      
      ASTERISK-24562 #close
      
      Change-Id: I5e90e3a1ec2b2d5340b49a0db825e4bbb158b2fe
      bc6eeab8
  8. Mar 07, 2017
  9. Mar 06, 2017
    • Daniel Journo's avatar
      Saynumber is trying to get "and" from "digits/" subfolder · d9972423
      Daniel Journo authored
      * say.c Changed 'digits/and' to 'vm-and' for en_GB
      
      ASTERISK-26598 #close
      
      Change-Id: If1b713e5daea6f952b339f139178d292a6c4fcfe
      d9972423
    • Sean Bright's avatar
      pbx_spool: Gracefully handle long lines in call files · 77901a58
      Sean Bright authored
      Per the linked issue, we aren't checking the buffer filled by fgets()
      to determine if it contains a newline, so we will fail to correctly
      parse the trailing portion of a long line.
      
      This patch increases the buffer size from 256 to 1024, and skips any
      line that exceeds that length, logging a warning in the process.
      
      ASTERISK-17067 #close
      Reported by: Dave Olszewski
      
      Change-Id: I51bcf270c1b4347ba05b43f18dc2094c76f5d7b0
      77901a58
  10. Mar 03, 2017
    • Richard Mudgett's avatar
      core: Cleanup ast_get_hint() usage. · 4271c700
      Richard Mudgett authored
      * manager.c:manager_state_cb() Fix potential use of uninitialized hint[]
      if a hint does not exist for the requested extension.  Ran into this when
      developing a testsuite test.  The AMI event ExtensionStatus came out with
      the hint header value containing garbage.  The AMI event PresenceStatus
      also had the same issue.
      
      * manager.c:action_extensionstate() no need to completely initialize the
      hint[].  Only initialize the first element.
      
      * pbx.c:ast_add_hint() Remove unnecessary assignment.
      
      * chan_sip.c: Eliminate an unneeded hint[] local variable.  We only care
      about the return value of ast_get_hint() there.
      
      Change-Id: Ia9a8786f01f93f1f917200f0a50bead0319af97b
      4271c700
  11. Mar 02, 2017
  12. Mar 01, 2017
  13. Feb 28, 2017
  14. Feb 27, 2017
    • Jørgen H's avatar
      res_pjsip: Fix crash when contact has no status · 0595c31d
      Jørgen H authored
      This change fixes an assumption in res_pjsip that a contact will
      always have a status. There is a race condition where this is
      not true and would crash. The status will now be unknown when
      this situation occurs.
      
      ASTERISK-26623 #close
      
      Change-Id: Id52d3ca4d788562d236da49990a319118f8d22b5
      0595c31d
Loading