aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2008-03-04Use autotagged externalsv1.6.0-beta5russell0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.6.0-beta5@105666 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Importing files for 1.6.0-beta5 releaserussell3-0/+37532
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.6.0-beta5@105665 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Creating tag for the release of asterisk-1.6.0-beta5russell0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.6.0-beta5@105662 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Creating tag for the release of asterisk-1.6.0-beta5russell0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.6.0-beta5@105660 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Creating tag for the release of asterisk-1.6.0-beta5russell0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.6.0-beta5@105657 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Creating tag for the release of asterisk-1.6.0-beta5russell0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.6.0-beta5@105654 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Creating tag for the release of asterisk-1.6.0-beta5russell0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.6.0-beta5@105625 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04change the versions in the headingrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@105600 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Blocked revisions 105597 via svnmergerussell0-0/+0
........ r105597 | russell | 2008-03-04 10:55:17 -0600 (Tue, 04 Mar 2008) | 2 lines Update CHANGES heading ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@105599 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04set up trunk-merged propertyrussell0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@105598 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Create 1.6.0 branch (email to asterisk-dev coming soon to explain)russell0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@105596 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Simplify a trivial snprintf() with ast_copy_string()russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105595 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Make it so you don't have to cast away const in a couple placesrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105594 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04remove unnecessary castsrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105593 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Blocked revisions 105591 via svnmergerussell0-0/+0
........ r105591 | russell | 2008-03-03 22:31:29 -0600 (Mon, 03 Mar 2008) | 4 lines Backport a minor bug fix from trunk that I found while doing random code cleanup. Properly break out of the loop when a context isn't found when verify that includes are valid. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105592 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04 - Add curly braces around the while looprussell1-6/+10
- Properly break out of the loop on error when an included context is not found git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105590 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Use ast_copy_string() instead of strncpy(), and use sizeof() instead ofrussell1-1/+4
a magic number git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105589 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-03Fix some code that was improperly changed in revision 104866 from issue #12079.russell1-1/+1
(closes issue #12129, reported by elguero, patched by me) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105574 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-03Merged revisions 105572 via svnmerge from qwell1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105572 | qwell | 2008-03-03 12:06:52 -0600 (Mon, 03 Mar 2008) | 7 lines Fix types for astNumChannels and astConfigCallsProcessed. (closes issue #12114) Reported by: jeffg Patches: 12114.patch uploaded by jeffg (license 192) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105573 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-03Merged revisions 105570 via svnmerge from russell1-1/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105570 | russell | 2008-03-03 11:16:53 -0600 (Mon, 03 Mar 2008) | 3 lines In the case of an ast_channel allocation failure, take the local_pvt out of the pvt list before destroying it. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105571 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-03Merged revisions 105568 via svnmerge from russell1-10/+14
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105568 | russell | 2008-03-03 11:05:16 -0600 (Mon, 03 Mar 2008) | 3 lines Fix a potential memory leak of the local_pvt struct when ast_channel allocation fails. Also, in passing, centralize the code necessary to destroy a local_pvt. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105569 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-03Merged revisions 105565 via svnmerge from russell1-1/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105565 | russell | 2008-03-03 10:01:50 -0600 (Mon, 03 Mar 2008) | 3 lines Update the copyright information for autoservice. Most of the code in this file now is stuff that I have written recently ... ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105566 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-033) In addition to merging the changes below, change trunk back to a regularrussell4-26/+44
LIST instead of an RWLIST. The way this list works makes it such that a RWLIST provides no additional benefit. Also, a mutex is needed for use with the thread condition. Merged revisions 105563 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105563 | russell | 2008-03-03 09:50:43 -0600 (Mon, 03 Mar 2008) | 24 lines Merge in some changes from team/russell/autoservice-nochans-1.4 These changes fix up some dubious code that I came across while auditing what happens in the autoservice thread when there are no channels currently in autoservice. 1) Change it so that autoservice thread doesn't keep looping around calling ast_waitfor_n() on 0 channels twice a second. Instead, use a thread condition so that the thread properly goes to sleep and does not wake up until a channel is put into autoservice. This actually fixes an interesting bug, as well. If the autoservice thread is already running (almost always is the case), then when the thread goes from having 0 channels to have 1 channel to autoservice, that channel would have to wait for up to 1/2 of a second to have the first frame read from it. 2) Fix up the code in ast_waitfor_nandfds() for when it gets called with no channels and no fds to poll() on, such as was the case with the previous code for the autoservice thread. In this case, the code would call alloca(0), and pass the result as the first argument to poll(). In this case, the 2nd argument to poll() specified that there were no fds, so this invalid pointer shouldn't actually get dereferenced, but, this code makes it explicit and ensures the pointers are NULL unless we have valid data to put there. (related to issue #12116) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105564 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-03Merged revisions 105560 via svnmerge from file1-1/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105560 | file | 2008-03-03 11:28:59 -0400 (Mon, 03 Mar 2008) | 7 lines It is possible for no audio to pass between the current digit and next digit so expand logic that clears emulation to AST_FRAME_NULL. (closes issue #11911) Reported by: edgreenberg Patches: v1-11911.patch uploaded by dimas (license 88) Tested by: tbsky ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105561 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-03Merged revisions 105557 via svnmerge from file1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105557 | file | 2008-03-03 11:15:39 -0400 (Mon, 03 Mar 2008) | 6 lines Add a comment to describe some logic. (closes issue #12120) Reported by: flefoll Patches: chan_sip.c.br14.patch-just-a-comment uploaded by flefoll (license 244) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105558 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-01Add support for 16KHz signed linear.file1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105509 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-01Drop bad propertytilghman0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105479 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-01Asterisk, when parking can drop rights a caller when a parking timeout ↵twilson6-8/+147
occurs. Also, when doing built-in attended transfers, sometimes incorrectly passes rights from the transferrer to the transferee. This patch tries to fixes the parking issue and lays some groundwork for later fixing the transfer issue. (closes issue #11520) Reported by: pliew Tested by: otherwiseguy git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105477 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-01Add a "devstate change" CLI command to control custom device states. Also,russell2-2/+77
do some additional code cleanup and improvement in passing. (closes issue #12106) Reported by: nizon Patches: devstate-patch.txt uploaded by nizon (license 415) -- Updated to trunk, and tab completion added by me git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105461 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-29Convert to use ast_strtilghman1-59/+47
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105411 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-29Merged revisions 105409 via svnmerge from russell1-0/+18
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105409 | russell | 2008-02-29 17:34:32 -0600 (Fri, 29 Feb 2008) | 23 lines Fix a major bug in autoservice. There was a race condition in the handling of the list of channels in autoservice. The problem was that it was possible for a channel to get removed from autoservice and destroyed, while the autoservice thread was still messing with the channel. This led to memory corruption, and caused crashes. This explains multiple backtraces I have seen that have references to autoservice, but do to the nature of the issue (memory corruption), could cause crashes in a number of areas. (fixes the crash in BE-386) (closes issue #11694) (closes issue #11940) The following issues could be related. If you are the reporter of one of these, please update to include this fix and try again. (potentially fixes issue #11189) (potentially fixes issue #12107) (potentially fixes issue #11573) (potentially fixes issue #12008) (potentially fixes issue #11189) (potentially fixes issue #11993) (potentially fixes issue #11791) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105410 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-29Add documentation for setting username/password in SIP dial string.file1-1/+10
(closes issue #11587) Reported by: sobomax Patches: dialstring_doc.diff uploaded by sobomax (license 359) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105378 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-29Merged revisions 105326 via svnmerge from phsultan1-0/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105326 | phsultan | 2008-02-29 15:47:10 +0100 (Fri, 29 Feb 2008) | 1 line Fix a potential memory leak ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105327 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-29Remove unnecessary if statements before calling iks_delete (redundant check isphsultan3-189/+141
done inside iks_delete), thus making the code conform with coding guidelines. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105263 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-29Merged revisions 105261 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105261 | file | 2008-02-29 09:48:13 -0400 (Fri, 29 Feb 2008) | 4 lines Bump up the size of the uniqueid variable. (closes issue #12107) Reported by: asgaroth ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105262 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-29Automatically create new buddy upon reception of a presence stanza ofphsultan1-19/+13
type subscribed. (closes issue #12066) Reported by: ffadaie Patches: branch-1.4-12066-1.diff uploaded by phsultan (license 73) trunk-12066-1.diff uploaded by phsultan (license 73) Tested by: ffadaie, phsultan git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105210 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-29Merged revisions 105113 via svnmerge from tilghman1-22/+23
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105113 | tilghman | 2008-02-28 15:56:54 -0600 (Thu, 28 Feb 2008) | 7 lines Update init script for LSB compat (closes issue #9843) Reported by: ibc Patches: rc.debian.asterisk.patch uploaded by ibc (license 211) Tested by: paravoid ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105176 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-28Merged revisions 105116 via svnmerge from russell3-16/+20
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105116 | russell | 2008-02-28 16:23:05 -0600 (Thu, 28 Feb 2008) | 8 lines Fix a bug in the lock tracking code that was discovered by mmichelson. The issue is that if the lock history array was full, then the functions to mark a lock as acquired or not would adjust the stats for whatever lock is at the end of the array, which may not be itself. So, do a sanity check to make sure that we're updating lock info for the proper lock. (This explains the bizarre stats on lock #63 in BE-396, thanks Mark!) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105144 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-28Merged revisions 105059 via svnmerge from mmichelson1-0/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105059 | mmichelson | 2008-02-28 14:11:57 -0600 (Thu, 28 Feb 2008) | 6 lines When using autofill, members who are in use should be counted towards the number of available members to call if ringinuse is set to yes. Thanks to jmls who brought this issue up on IRC ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105061 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-28Merged revisions 104841 via svnmerge from mmichelson1-5/+29
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104841 | mmichelson | 2008-02-27 15:49:20 -0600 (Wed, 27 Feb 2008) | 17 lines Two fixes: 1. Make the list of ast_dial_channels a lockable list. This is because in some cases, the ast_dial may exist in multiple threads due to asynchronous execution of its application, and I found some cases where race conditions could exist. 2. Check in ast_dial_join to be sure that the channel still exists before attempting to lock it, since it could have gotten hung up but the is_running_app flag on the ast_dial_channel may not have been cleared yet. (closes issue #12038) Reported by: jvandal Patches: 12038v2.patch uploaded by putnopvut (license 60) Tested by: jvandal ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105060 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-28Merged revisions 105005 via svnmerge from qwell2-8/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105005 | qwell | 2008-02-28 13:20:10 -0600 (Thu, 28 Feb 2008) | 9 lines Make pbx_exec pass an empty string into applications, if we get NULL. This protects against possible segfaults in applications that may try to use data before checking length (ast_strdupa'ing it, for example) (closes issue #12100) Reported by: foxfire Patches: 12100-nullappargs.diff uploaded by qwell (license 4) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105006 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-28Fix crash when configuration does not match hardware detection.tilghman1-0/+17
(closes issue #12096) Reported by: mmickan Patches: chan_vpb.cc.diff uploaded by mmickan (license 400) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104974 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-28Merged revisions 104920 via svnmerge from qwell1-1/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104920 | qwell | 2008-02-27 22:31:21 -0600 (Wed, 27 Feb 2008) | 2 lines According to a video at www.cisco.com, the 7921G supports 6 line appearances. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104921 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-28Merged revisions 104868 via svnmerge from tilghman2-2/+11
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104868 | tilghman | 2008-02-27 18:05:06 -0600 (Wed, 27 Feb 2008) | 7 lines Compatibility fix for PPC64 (closes issue #12081) Reported by: jcollie Patches: asterisk-1.4.18-funcdesc.patch uploaded by jcollie (license 412) Tested by: jcollie, Corydon76 ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104869 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27reduce indentation in alloc_subrussell1-25/+28
(issue #12079) Reported by: tzafrir Patches: alloc_sub uploaded by tzafrir (license 46) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104866 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27Merged revisions 104787 via svnmerge from file1-5/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104787 | file | 2008-02-27 16:56:23 -0400 (Wed, 27 Feb 2008) | 2 lines Don't loop around infinitely trying to spy on our own channel, and don't forget to free/detach the datastore upon hangup of the spy. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104788 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27Merged revisions 104783 via svnmerge from mmichelson1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104783 | mmichelson | 2008-02-27 14:36:26 -0600 (Wed, 27 Feb 2008) | 4 lines Bump a couple of more buffers up by 2 so that annoying warnings aren't generated like crazy on every fileexists_core call. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104784 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27Remove useless 's' and 'key' variables, in favor of 'val', which serves the ↵qwell1-55/+53
exact same purpose. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104756 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27Merged revisions 104704 via svnmerge from tilghman1-1/+6
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104704 | tilghman | 2008-02-27 12:15:10 -0600 (Wed, 27 Feb 2008) | 2 lines Ensure the session ID can't be 0. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104705 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27Merged revisions 104665 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104665 | file | 2008-02-27 13:41:40 -0400 (Wed, 27 Feb 2008) | 2 lines Bump up the buffer by 2. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104687 f38db490-d61c-443f-a65b-d21fe96a405b