Skip to content
Snippets Groups Projects
  1. May 30, 2017
  2. May 26, 2017
  3. May 25, 2017
  4. May 24, 2017
  5. May 23, 2017
    • Sean Bright's avatar
      res_agi: Allow configuration of audio format of EAGI pipe · d847fe65
      Sean Bright authored
      This change allows the format of the EAGI audio pipe to be changed by
      setting the dialplan variable 'EAGI_AUDIO_FORMAT' to the name of one of
      the loaded formats.
      
      ASTERISK-26124 #close
      
      Change-Id: I7a10fad401ad2a21c68c2e7246fa357d5cee5bbd
      d847fe65
    • Sean Bright's avatar
      res_agi: Clarify 'RECORD FILE' documentation · e2e6baa8
      Sean Bright authored
      Documented the 'beep' option in both the parameters list and the command
      description.
      
      ASTERISK-23839 #close
      
      Change-Id: I4970395c922dbdce3f7cf0f56d5b065ec9aa53ea
      e2e6baa8
    • Sean Bright's avatar
      res_agi: Prevent crash when SET VARIABLE called without arguments · 3dcb3c88
      Sean Bright authored
      Explicitly check that the appropriate number of arguments were passed to
      SET VARIABLE before attempting to reference them. Also initialize the
      arguments array to zeroes before populating it.
      
      ASTERISK-22432 #close
      
      Change-Id: I5143607d80a2724f749c1674f3126b04ed32ea97
      3dcb3c88
    • Sean Bright's avatar
      res_agi: Fix malformed AGI usage response · e490aa31
      Sean Bright authored
      If the generated XML documentation for a command does not end with a \n,
      the postamble of the usage message does not appear on its own line.
      
      ASTERISK-25662 #close
      
      Change-Id: If190f1e9e37fe215fed95897d78d4a6e142b0020
      e490aa31
    • Sean Bright's avatar
      res_format_attr_h26x: Trim blanks in fmtp attributes · 8ae0227c
      Sean Bright authored
      Some devices separate format attributes with a semicolon followed by a
      space, so trim blanks before trying to match them.
      
      ASTERISK-27008 #close
      
      Change-Id: Ia44cb2e4fef5c73dc541a29da79cb0e19c22d9cc
      8ae0227c
    • Joshua Colp's avatar
      app_queue: Fix members showing as being in call when not. · faab0580
      Joshua Colp authored
      A change was done which added an 'in_call' flag to queue
      members that was set to true while talking to an agent.
      Unfortunately in practice this does not accurately reflect
      whether they are talking to an agent or not. If a Local
      channel is involved and a transfer is performed then the
      app_queue application would incorrectly think the agent
      was still in a call with the caller. This was done to
      fix a race condition between an agent becoming available
      by device state and the checking of the last call information
      for the wrapup time. There was a small window where the
      last call information would be the previous value instead
      of the new one.
      
      This change goes about fixing the original issue in a
      different way by considering the call completed if device
      state is received which would make the agent available
      and if they are currently in a call. If this occurs the
      last call information is updated before the agent becomes
      available ensuring that old information is not present
      when checking if the member should be called. This also
      improves the transfer situation by actually updating
      and enforcing the wrapup time.
      
      ASTERISK-26399
      ASTERISK-26400
      ASTERISK-26715
      ASTERISK-26975
      
      Change-Id: Ife1cb686e3173b3a6d368601adef9aff69d4beea
      faab0580
    • Joshua Colp's avatar
  6. May 22, 2017
  7. May 19, 2017
  8. May 18, 2017
  9. May 17, 2017
    • Kevin Harwell's avatar
      app_stream_echo: Added a multi-stream echo application · a60d1f39
      Kevin Harwell authored
      If the channel does not have multi-stream support then this application acts
      just like app_echo. If it does have multi-stream support then each stream is
      echoed back to itself (one-to-one).
      
      If a "num" is specified, then a new topology is made that contains clones (from
      the channel's topology) of all media types that are not equal to the given
      "type". If the media type differs then the first stream matching the "type" is
      cloned into the new topology and then up to "num" - 1 of the same stream are
      also cloned into it. Any additional streams from the original topology matching
      the "type" are subsequently ignored (i.e. not added to the new topology).
      
      For this same case when a frame is read from a stream that frame is still
      echoed back like before, but now that frame is also echoed out to the
      additional streams that matched on the specified "type".
      
      ASTERISK-26997 #close
      
      Change-Id: I254144486734178e196c7f590a26ffc13543ff2c
      a60d1f39
    • Kevin Harwell's avatar
      core/conversions: Added string to unsigned integer and long conversions · 51375686
      Kevin Harwell authored
      Added functions that convert a string to an unsigned integer or unsigned long.
      A couple of unit test were also created to test the routines. The reasons for
      adding these conversion utilities (and hopefully eventually more) are as
      follows:
      
        * Conversion routines are functionally contained with consistent and
          better error checking
        * The function names offer a better description of what is happening
        * It encourages code reuse for easier bug fixing at a single source
        * It's simpler to use
        * It's unit testable
      
      For instance, currently in a lot of places when converting to an integer or
      similar the "sscanf" function is used. When using "sscanf" it may not be
      immediately clear what's happening as it lacks semantic naming. Limited error
      checking is usually done as well. For example, most of the time a check is done
      to make sure the value converted, but does not check for overflows or negative
      valued conversions when converting unsigned numbers.
      
      Why use/wrap "strtoul" and not "sscanf" then? Primarily, it lacks some of the
      built in error handling that "strtoul" has. For instance "strtoul" contains
      overflow checks. Less so, but can still factor as reasons, "sscanf" is slightly
      more complex in its use. And maybe a bit controversial, but it may be ("big if")
      potentially slower than "strtoul" in some cases.
      
      Change-Id: If7eaca4a48f8c7b89cc8b5a1f4bed2852fca82bb
      51375686
    • Jenkins2's avatar
    • Joshua Colp's avatar
      aa4c8000
  10. May 16, 2017
    • Joshua Colp's avatar
      asterisk: Audit locking of channel when manipulating flags. · 5a7af00e
      Joshua Colp authored
      When manipulating flags on a channel the channel has to be
      locked to guarantee that nothing else is also manipulating
      the flags. This change introduces locking where necessary to
      guarantee this. It also adds helper functions that manipulate
      channel flags and lock to reduce repeated code.
      
      ASTERISK-26789
      
      Change-Id: I489280662dba0f4c50981bfc5b5a7073fef2db10
      5a7af00e
Loading