Skip to content
Snippets Groups Projects
  1. Jul 04, 2014
    • Matthew Jordan's avatar
      Remove many deprecated modules · 97834718
      Matthew Jordan authored
      Billing records are fair,
      To get paid is quite bright,
      You should really use ODBC;
      Good-bye cdr_sqlite.
      
      Microsoft did once push H.323,
      Hell, we all remember NetMeeting.
      But try to compile chan_h323 now
      And you will take quite a beating.
      
      The XMPP and SIP war was fierce,
      And in the distant fray
      Was birthed res_jabber/chan_jingle;
      But neither to stay.
      
      For everyone did care and chase what Google professed.
      "Free Internet Calling" was what devotees cried,
      But Google did change the specs so often
      That the developers were happy the day chan_gtalk died.
      
      And then there was that odd application
      Dedicated to the Polish tongue.
      app_saycountpl was subsumed by Say;
      One could say its bell was rung.
      
      To read and parse a file from the dialplan
      You could (I guess) use an application.
      app_readfile did fill that purpose, but I think
      A function is perhaps better in its creation.
      
      Barging is rude, I'm not sure why we do it.
      Inwardly, the caller will probably sigh.
      But if you really must do it,
      Don't use app_dahdibarge, use ChanSpy.
      
      We all despise the sound of tinny robots
      It makes our queues so cold.
      To control such an abomination
      It's better to not use Wait/SetMusicOnHold.
      
      It's often nice to know properties of a channel
      It makes our calls right
      We have a nice function called CHANNEL
      And so SIPCHANINFO is sent off into the night.
      
      And now things get odd;
      Apparently one could delimit with a colon
      Properties from the SIPPEER function!
      Commas are in; all others are done.
      
      Finally, a word on pipes and commas.
      We're sorry. We can't say it enough.
      But those compatibility options in asterisk.conf;
      To maintain them forever was just too tough.
      
      This patch removes:
      
      * cdr_sqlite
      * chan_gtalk
      * chan_jingle
      * chan_h323
      * res_jabber
      * app_saycountpl
      * app_readfile
      * app_dahdibarge
      
      It removes the following applications/functions:
      
      * WaitMusicOnHold
      * SetMusicOnHold
      * SIPCHANINFO
      
      It removes the colon delimiter from the SIPPEER function.
      
      Finally, it also removes all compatibility options that were configurable from
      asterisk.conf, as these all applied to compatibility with Asterisk 1.4 systems.
      
      Review: https://reviewboard.asterisk.org/r/3698/
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@418019 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      97834718
  2. May 09, 2014
  3. Mar 21, 2014
  4. Feb 22, 2014
  5. Jul 31, 2012
  6. Jul 11, 2012
  7. Jun 15, 2012
    • Kevin P. Fleming's avatar
      Multiple revisions 369001-369002 · 166b4e2b
      Kevin P. Fleming authored
      ........
        r369001 | kpfleming | 2012-06-15 10:56:08 -0500 (Fri, 15 Jun 2012) | 11 lines
        
        Add support-level indications to many more source files.
        
        Since we now have tools that scan through the source tree looking for files
        with specific support levels, we need to ensure that every file that is
        a component of a 'core' or 'extended' module (or the main Asterisk binary)
        is explicitly marked with its support level. This patch adds support-level
        indications to many more source files in tree, but avoids adding them to
        third-party libraries that are included in the tree and to source files
        that don't end up involved in Asterisk itself.
      ........
        r369002 | kpfleming | 2012-06-15 10:57:14 -0500 (Fri, 15 Jun 2012) | 3 lines
        
        Add a script to enable finding source files without support-levels defined.
      ........
      
      Merged revisions 369001-369002 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 369005 from http://svn.asterisk.org/svn/asterisk/branches/10
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      166b4e2b
  8. May 31, 2012
  9. May 10, 2012
  10. Mar 24, 2012
  11. Mar 13, 2012
    • Tilghman Lesher's avatar
      Enable macros in 1.8 to find the next highest "h" extension in a context, like in 1.4. · 9af5c769
      Tilghman Lesher authored
      This change restores functionality that was present in 1.4, when AEL macros
      were implemented with the Macro dialplan application.  Macros are fraught with
      functionality issues, because they consume a large portion of the underlying
      application stack.  This limits the ability of AEL users to call many layers
      of subroutines, an issue which Gosub does not have (originally tested to
      100,000 levels deep).  Therefore, starting in 1.6.0, AEL macros were
      implemented with Gosub.
      
      However, there were some implicit behaviors of Macro, which were not replicated
      at the same time as with the transition to Gosub, one of which is documented in
      the related issue.  In particular, the "h" extension is designed to execute not
      in the Macro context, but in the topmost calling context.  Due to legacy issues
      with a misapplied bugfix many years ago, when a macro exited in 1.4, it looks
      in all calling contexts, bubbling up from the deepest level until it finds an
      "h" extension.
      
      Since AEL hides the complexity of the underlying dialplan logic from the AEL
      programmer, it's reasonable to assume that this behavior should not change in
      the transition from Asterisk 1.4 LTS to Asterisk 1.8 LTS, lest we break
      working AEL configurations in the transition to Asterisk 1.8 LTS.  This fix
      is the result, which implements a search for the "h" extension in all calling
      Gosub contexts.
      
      Fixes ASTERISK-19336
      
      Patch: 20120308__ael_bugfix_for_trunk__2.diff (License #5003) by Tilghman Lesher
      	(with slight modifications for 1.8)
      
      Tested by: Johan Wilfer
      
      Review: https://reviewboard.asterisk.org/r/1776/
      ........
      
      Merged revisions 358810 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 358811 from http://svn.asterisk.org/svn/asterisk/branches/10
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@358812 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      9af5c769
  12. Dec 22, 2010
  13. Oct 28, 2010
  14. Oct 04, 2010
  15. Jun 23, 2010
  16. Jun 21, 2010
  17. Jun 18, 2010
  18. May 12, 2010
  19. Oct 06, 2009
  20. Aug 10, 2009
  21. Jun 18, 2009
  22. Apr 20, 2009
    • Sean Bright's avatar
      Merged revisions 189462 via svnmerge from · e7423907
      Sean Bright authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
        r189462 | seanbright | 2009-04-20 16:58:39 -0400 (Mon, 20 Apr 2009) | 13 lines
        
        Properly handle @s within hints in AEL.
        
        AEL was not handling the case of a device hint containing an @ symbol, which
        caused parking hints (e.g. hint(park:exten@context)) to error out the parser.
        This patch makes AEL treat the @ the same way it treats colon and ampersand
        now, meaning the characters are included in verbatim.
        
        (closes issue #14941)
        Reported by: bpgoldsb
        Patches:
              bug14941.patch uploaded by seanbright (license 71)
        Tested by: bpgoldsb
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@189464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      e7423907
  23. Feb 18, 2009
    • Steve Murphy's avatar
      Merged revisions 177225 via svnmerge from · 6c2a537c
      Steve Murphy authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
        r177225 | murf | 2009-02-18 15:43:14 -0700 (Wed, 18 Feb 2009) | 34 lines
        
        This patch fixes a regression of sorts that was introduced in 
        rev 24425.
        
        It basically fixes AST-190/ABE-1782.
        
        What was wrong: the user has 6000 extensions in one context; and
        then 6000 contexts, one per extension. The parser could only handle
        about 4893 of the 6000 extens in the single context.
        
        This was due to the regression I mentioned. To get rid of
        shift/reduce conflicts, Luigi set up right-recursive lists
        for globals, context elements, switch lists, and statements.
        Right recursive lists got rid of the warnings, but instead, they
        use up a tremendous amount of stack space when the lists are long.
        
        I saw this a few years back, and resolved not to fix it until
        someone complained. That day has arrived!
        
        After the changes were made, I ran the regression test suite,
        and there were no problems.
        
        I took the test case the user provided, and added 100,000 
        extensions to the single context, that already had 6,000 extens
        in it. (I'll see your 6, and raise you 100!) It takes a few minutes
        to read it all in, check it and generate code for it, but no
        problems.
        
        So, I think I can say that fundamentally, there are no longer
        any limits on the number of items you can place in contexts,
        statement blocks, switches, or globals, beyond your virt mem
        constraints.
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@177286 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      6c2a537c
  24. Jan 16, 2009
  25. Dec 09, 2008
    • Steve Murphy's avatar
      Merged revisions 162264 via svnmerge from · 08225b9f
      Steve Murphy authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r162264 | murf | 2008-12-09 13:20:54 -0700 (Tue, 09 Dec 2008) | 1 line
      
      In discussion with seanbright on #asterisk-dev,  I have added a default rule, and an option to suppress the default rule from being generated in the flex output, for the sake of those OS's where they didn't tweak flex's ECHO macro, and the compiler doesn't like it. The regressions are OK with this.
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@162271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      08225b9f
    • Steve Murphy's avatar
      Merged revisions 162136 via svnmerge from · 24395ed5
      Steve Murphy authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r162136 | murf | 2008-12-09 11:13:39 -0700 (Tue, 09 Dec 2008) | 1 line
      
      Previous fix used ast_malloc and ast_copy_string and messed up the standalone stuff. Fixed.
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@162140 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      24395ed5
    • Steve Murphy's avatar
      Merged revisions 162013 via svnmerge from · 67cb0526
      Steve Murphy authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r162013 | murf | 2008-12-09 09:31:55 -0700 (Tue, 09 Dec 2008) | 45 lines
      
      (closes issue #14019)
      Reported by: ckjohnsonme
      Patches:
            14019.diff uploaded by murf (license 17)
      Tested by: ckjohnsonme, murf
      
      This crash was the result of a few small errors that
      would combine in 64-bit land to result in a crash.
      
      32-bit land might have seen these combine to mysteriously
      drop the args to an application call, in certain
      circumstances.
      
      Also, in trying to find this bug, I spotted
      a situation in the flex input, where, in passing
      back a 'word' to the parser, it would allocate
      a buffer larger than necessary. I changed the
      usage in such situations, so that strdup was
      not used, but rather, an ast_malloc, followed
      by ast_copy_string.
      
      I removed a field from the pval struct, in
      u2, that was never getting used, and set in
      one spot in the code. I believe it was an
      artifact of a previous fix to make switch
      cases work invisibly with extens.
      
      And, for goto's I removed a '!' from
      before a strcmp, that has been there
      since the initial merging of AEL2, that
      might prevent the proper target of a 
      goto from being found. This was pretty
      harmless on its own, as it would just
      louse up a consistency check for users.
      
      Many thanks to ckjohnsonme for providing
      a simplified and complete set of information
      about the bug, that helped considerably in
      finding and fixing the problem.
      
      Now, to get aelparse up and running again
      in trunk, and out of its "horribly broken" state,
      so I can run the regression suite!
      
      
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@162079 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      67cb0526
  26. Nov 20, 2008
  27. Nov 06, 2008
  28. Nov 02, 2008
  29. Sep 04, 2008
    • Steve Murphy's avatar
      Merged revisions 141094 via svnmerge from · ec25f4be
      Steve Murphy authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r141094 | murf | 2008-09-04 17:15:07 -0600 (Thu, 04 Sep 2008) | 70 lines
      
      (closes issue #13357)
      Reported by: pj
      Tested by: murf
      
      (closes issue #13416)
      Reported by: yarns
      Tested by: murf
      
      If you find this message overly verbose, relax, it's probably
      not meant for you. This message is meant for probably only
      two people in the whole world: me, or the poor schnook that
      has to maintain this code because I'm either dead or unavailable
      at the moment.
      
      This fix solves two reports, both having to do with embedding
      a function call in a ${} construct. It was tricky because the
      funccall syntax has parenthesis () in it. And up till now,
      the 'word' token in the flex stuff didn't allow that, because
      it would tend to steal the LP and RP tokens. To be truthful,
      the "word" token was the trickiest, most unstable thing in
      the whole lexer. I was lucky it made this long without complaints.
      I had to choose every character in the pattern with extreme
      care, and I knew that someday I'd have to revisit it. Well,
      the day has come.
      
      So, my brilliant idea (and I'm being modest), was to use the 
      surrounding ${} construct to make a state machine and capture 
      everything in it, no matter what it contains. But, I have to now
      treat the word token like I did with comments, in that I turn
      the whole thing into a state-machine sort of spec, with new
      contexts "curlystate", "wordstate", and "brackstate".
      
      Wait a minute, "brackstate"? Yes, well, it didn't take very many
      regression tests to point out if I do this for ${} constructs,
      I also have to do it with the $[] constructs, too.
      
      I had to create a separate pcbstack2 and pcbstack3 because
      these constructs can occur inside macro argument lists, and
      when we have two state machines operating on the same structures
      we'd get problems otherwise. I guess I could have stopped at
      pcbstack2 and had the brackstate stuff share it, but it doesn't
      hurt to be safe. So, the pcbpush and pcbpop routines also now
      have versions for "2" and "3".
      
      I had to add the {KEYWORD} construct to the initial pattern for
      "word", because previously word would match stuff like "default7",
      because it was a longer match than the keyword "default". But,
      not any more, because the word pattern only matches only one or
      two characters now, and it will always lose. So, I made it the
      winner again by making an optional match on any of the keywords
      before it's normal pattern.
      
      I added another regression test to make sure we don't
      lose this in future edits, and had to fix just one regression,
      where it no longer reports a 'cascaded' error, which I guess
      is a plus.
      
      I've given some thought as to whether to apply these fixes to
      1.4 and the 1.6.x releases, vs trunk; I decided to put it in
      1.4 because one of the bug reports was against 1.4; and it
      is unexpected that AEL cannot handle this situation. It actually
      reduced the amount of useless "cascade" error messages that
      appeared in the regressions (by one line, ehhem). There is
      a possible side-effect in that it does now do more careful
      checking of what's in those ${} constructs, as far as matching
      parens, and brackets are concerned. Some users may find a an
      insidious problem and correct it this way. This should be 
      exceedingly rare, I hope.
      
      
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@141115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      ec25f4be
  30. Sep 03, 2008
    • Steve Murphy's avatar
      In these changes, I have added some explanation · 06885911
      Steve Murphy authored
      of changes to the Set and MSet apps, so people aren't
      so shocked and surprised when they upgrade from
      1.4 to 1.6.
      
      Also, for the sake of those upgrading from 1.4 to
      1.6 with AEL, I provide automatic support for the 
      "old" way of using Set(), that still does the
      exact same old thing with quotes and backslashes
      and so on as 1.4 did, by having AEL compile in the
      use of MSet() instead of Set(), everywhere it inserts
      this code.
      
      But, if the app_set var is set to 1.6 or higher,
      it uses the "new", non-evaluative Set().
      
      This only usually happens if the user manually 
      inserts this into the asterisk.conf file, or runs
      the "make samples" command.
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@140824 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      06885911
  31. Aug 19, 2008
  32. Aug 10, 2008
  33. Aug 08, 2008
    • Steve Murphy's avatar
      Merged revisions 136726 via svnmerge from · a40f1cc1
      Steve Murphy authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r136726 | murf | 2008-08-07 18:15:34 -0600 (Thu, 07 Aug 2008) | 32 lines
      
      
      (closes issue #13236)
      Reported by: korihor
      
      Wow, this one was a challenge!
      
      I regrouped and ran a new strategy for
      setting the ~~MACRO~~ value; I set it once
      per extension, up near the top. It is only
      set if there is a switch in the extension.
      
      So, I had to put in a chunk of code to detect
      a switch in the pval tree.
      
      I moved the code to insert the set of ~~exten~~
      up to the beginning of the gen_prios routine, 
      instead of down in the switch code.
      
      I learned that I have to push the detection
      of the switches down into the code, so everywhere
      I create a new exten in gen_prios, I make sure
      to pass onto it the values of the mother_exten
      first, and the exten next.
      
      I had to add a couple fields to the exten
      struct to accomplish this, in the ael_structs.h
      file. The checked field makes it so we don't
      repeat the switch search if it's been done.
      
      I also updated the regressions.
      
      
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@136746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      a40f1cc1
Loading