Skip to content
Snippets Groups Projects
  1. Aug 10, 2016
    • 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
  2. Aug 05, 2016
    • Alexei Gradinari's avatar
      app_voicemail: Add taskprocessor alert level options. · 9042ad40
      Alexei Gradinari authored
      On heavy loaded system with IMAP or DB storage,
      'app_voicemail' taskprocessor queue could reach 500 scheduled tasks.
      It could happen when the IMAP or DB server dies or is unreachable.
      It could happen on startup when there are many (thousands)
      realtime endpoints configured with unsolicited mwi.
      If the taskprocessor queue reaches the high water level
      then the alert is triggered and pjsip stops processing new requests
      until the queue reaches the low water level to clear the alert.
      
      This patch adds 2 new 'general' configuration options
      to tune taskprocessor alert levels:
      'tps_queue_high' - Taskprocessor high water alert trigger level.
      'tps_queue_low' - Taskprocessor low water clear alert level
      
      ASTERISK-26229 #close
      
      Change-Id: I766294fbffedf64053c0d9ac0bedd3109f043ee8
      9042ad40
  3. Aug 04, 2016
  4. Aug 03, 2016
  5. Aug 02, 2016
  6. Aug 01, 2016
  7. Jul 29, 2016
    • Mark Michelson's avatar
      Remove SILK payload mappings from Asterisk core. · 1cd79d6e
      Mark Michelson authored
      SILK is a bit of a hog when it comes to using up our limited number of
      dynamic payload types in the RTP engine. By freeing up four slots, it
      allows for other codecs to potentially take the place.
      
      Now, codec_silk.so will dynamically use the payload slots in the RTP
      engine when it loads.
      
      A better fix would be make RTP dynamic payload types actually
      dynamic. However, at this stage of Asterisk 14 development, this is a
      risky move that would be imprudent.
      
      Change-Id: I5774e09408f9a203db189529eabdc0d3f4c1e612
      1cd79d6e
    • zuul's avatar
      d462cb73
    • Joshua Colp's avatar
    • Joshua Colp's avatar
      astconfigparser: Handle case where line is simply a comment. · a7ae4844
      Joshua Colp authored
      Change-Id: I2dea5815363f4d787d709228a04f33baee383ef5
      a7ae4844
    • Joshua Colp's avatar
    • Corey Farrell's avatar
      pbx.c: Fix handling of '-' in extension name and callerid · 89a0a1eb
      Corey Farrell authored
      This adds a two strings to ast_exten.  name to go with exten and
      cidmatch_display to go with cidmatch.  The new fields contain input used
      to add the extension in the first place.  The existing fields now
      contain stripped input that excludes insignificant spaces and dashes.
      These stripped fields should always be used for comparisons.  The
      unstripped fields should normally be used for display, but displaying
      stripped values will not cause runtime errors.
      
      Note the actual string is only stored twice if it contains dashes.  If
      no dashes are found then both 'char *' fields point to the same memory.
      So this change has a minimum effect on memory usage.
      
      The existing functions ast_get_extension_name and
      ast_get_extension_cidmatch return unstripped values as they did before
      this change.  Other similar bugs likely still exist where unstripped
      extensions are saved outside pbx.c then passed back in.
      
      ASTERISK-26233 #close
      
      Change-Id: I6cd61ce57acc1570ca6cc14960c4c3b0a9eb837f
      89a0a1eb
  8. Jul 28, 2016
  9. Jul 27, 2016
    • David M. Lee's avatar
      Portably sscanf tv_usec · feb1a434
      David M. Lee authored
      In a timeval, tv_usec is defined as a suseconds_t, which could be
      different underlying types on different platforms. Instead of trying to
      scanf directly into the timeval, scanf into a long int, then copy that
      into the timeval.
      
      Change-Id: I29f22d049d3f7746b6c0cc23fbf4293bdaa5eb95
      feb1a434
    • Kevin Harwell's avatar
      rtp_engine: Failed assertion and wrong name given for codec · 1d364ac5
      Kevin Harwell authored
      Fixed an assert check that would trigger when the passed in value was negative.
      The negative value was being cast to an unsigned value. This resulted in the
      check failing.
      
      Also fixed another problem when loading formats in the engine. When setting the
      mime type the format's name was being passed in instead of the codec's name.
      
      Change-Id: I1a201cd419ba4d8e9a40d337e36b6fbe1737192c
      1d364ac5
    • David M. Lee's avatar
      Replace strdupa with more portable ast_strdupa · 8802e55c
      David M. Lee authored
      The strdupa function is a GNU extension, and not widely portable. We
      have an ast_strdupa function used within Asterisk which is preferred.
      I pulled the definition up from menuselect.c into the menuselect.h
      header file so it can be shared across menuselect.
      
      Change-Id: I9593c97f78386b47dc1e83201e80cb2f62b36c2e
      8802e55c
  10. Jul 26, 2016
    • Richard Mudgett's avatar
      dsp.c: Add fax and DTMF detection unit tests. · 737471f1
      Richard Mudgett authored
      * Add fax amplitude and frequency sweep tests.
      * Add DTMF amplitude and twist unit tests.
      
      Change-Id: I8d77c9a1eec89e440d715f998c928687e870c3f7
      737471f1
    • Richard Mudgett's avatar
      dsp.c: Added descriptive comments to Goertzel calculations. · a8cd5d25
      Richard Mudgett authored
      * Added doxygen to describe some struct members and what is going on in
      the code.
      
      Change-Id: I2ec706a33b52aee42b16dcc356c2bd916a45190d
      a8cd5d25
    • Richard Mudgett's avatar
      dsp.c: Fix incorrect format reference typo. · 6dfb34cf
      Richard Mudgett authored
      Change-Id: Ia131da3ec29acf385cb43a586a29ecc975eb3896
      6dfb34cf
    • Richard Mudgett's avatar
      dsp.c: Correct DTMF twist dsp.conf documentation. · 32713608
      Richard Mudgett authored
      Change-Id: Idf97e3a72f1edc5fca58f2fa7b20785922be0cae
      32713608
    • Joshua Colp's avatar
      astconfigparser.py: Update with realtime fixes. · 1e7168ae
      Joshua Colp authored
      When configuring SIP URIs in the pjsip.conf file it is
      necessary to escape the semicolon so the parser does not
      treat it as a comment. This change allows this to work in
      the astconfigparser implementation.
      
      A secondary bug where some data was lost if a configuration
      option included a "=" in its value was also fixed.
      
      A bug where sections would be considered equal despite
      being different has also been fixed.
      
      Change-Id: If229f656ef22050b50e7b34e90c4bffe796431f8
      1e7168ae
    • Richard Mudgett's avatar
      dsp.c: Fix erroneous fax tone detection. · 49461f37
      Richard Mudgett authored
      The Goertzel calculations get less accurate the lower the signal level
      being worked with becomes because there is less resolution remaining.
      If it is too low we can erroneously detect a tone where none really
      exists.  The searched for fax frequencies not only need to be so much
      stronger than the background noise they must also be a minimum strength.
      
      * Add needed minimum threshold test to tone_detect().
      
      * Set TONE_THRESHOLD to allow low volume frequency spread detection.
      
      ASTERISK-26237 #close
      Reported by: Richard Mudgett
      
      Change-Id: I84dbba7f7628fa13720add6a88eae3b129e066fc
      49461f37
    • zuul's avatar
      Merge "codecs: Add iLBC 20." · e2bfcb3e
      zuul authored
      e2bfcb3e
Loading