summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2006-07-24Added a small fix to exclude the AMD optimized assembly file from being ↵Steve Murphy
included in the compile. I don't particular like the approach, which basically tries to exclude the file based on NOT being in a list of arches. This, IMHO, is backwards, it should be a list of AMD arches instead. "Better to light a candle, than to curse the darkness", is apropo here. But since I don't have an exhaustive list of what those arches could be, I leave as-is for now. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-24blocked rev 38167 on the 1.2 branch from trunk, because it'sSteve Murphy
coded differently on trunk, would conflict and have to be hand-merged anyway. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-24Start out with cleared RTP payload structures instead of defaults. This ↵Joshua Colp
should prevent issues where if a stream (audio/stream) is not present and it's RTP payload structure is combined with the overall capability then the capability would be every codec that Asterisk supports. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-24move middle-of-the-block declaration at the top.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38149 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-24fix uninitialized variableLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38148 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-24Only deal with getting the supported payloads on audio if an audio RTP ↵Joshua Colp
stream exists git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38139 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-23ast_malloc is sufficient here, since snprintf is called on the bufferRussell Bryant
immediately after it gets allocated, which will automatically NULL terminate the string git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38129 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-23Merge team/russell/ast_cli_tls into the trunk.Russell Bryant
This improves the performance of ast_cli() by not doing a heap memory allocation and deallocation every single time the function is called. Instead, a thread-specific buffer is allocatted the first time the function is called and automatically free'd when the thread exits. Also note that this buffer will only be allocatted in threads that actually call this function, which is probably only the threads spawned to service connected asterisk consoles. This does introduce a new limitation on the maximum length of the resulting string from the arguments passed to ast_cli. Previously there was no limit since it was just allocating a buffer big enough every time the function was called. The current buffer size is 16kB. If there is ever a case where we want to print more than 16k characters in a single call to ast_cli(), this will have to be increased. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-23fix a seg fault in this application if no context paramater is givenRussell Bryant
(issue #7571) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-23resolve another XXX comment by implementing proper handling of control framesRussell Bryant
in ast_write(), which is to call the channel's indicate function if it exists git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38117 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-23take the advice of an XXX comment and use an atomic operation to decrement aRussell Bryant
variable. Also, change a use of strdup to ast_strdup and remove a duplicated error message. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38108 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-23remove a stray newlineRussell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38099 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-23update to mention svn instead of cvsRussell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38089 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-23various cleanups regarding coding guidelines issuesRussell Bryant
- malloc to ast_malloc - malloc + memset to ast_calloc - sizeof(struct foo) to sizeof(*bar) - remove indentation of the entire body of a function by returning immediately on an allocation failure (issue #7581, tempest1) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38088 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-22ast_pbx_outgoing_cdr_failed() is not used outside of pbx.c so make it staticRussell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-22use ast_atomic_fetchadd_int in chan_zap, sip, and iax2 for usecount handlingRussell Bryant
and fix a couple little things in passing - usecnt was not initialized in chan_iax2 - ast_update_use_count() was not called after incrementing the count in chan_sip git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-22remove an XXX comment and document that ast_autoservice_start() will return -1Russell Bryant
if the channel is already in the autoservice list. Why is this a valid case to return -1, you ask? Well, there should never be any code where it is not clear if the channel is in autoservice or not because trying to read frames from a channel that is in the autoservice list will lead to bad results because more than one thread will be waiting on frames to arrive on the channel and then trying to read them. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-21slightly simplify a loop and replace an open coded version of ast_skip_blanksRussell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-21make ast_state2str thread safe by using thread local storage instead of aRussell Bryant
static buffer for storing the result when the state value is unknown git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-21 This corrects the crash condition present in #7575, but I'm not really sure ↵BJ Weschke
if it's the "right" fix. Please review and make any adjustments you see necessary. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38051 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-21Merge a new implementation of ast_inet_ntoa, our thread safe replacement forRussell Bryant
inet_ntoa, which uses thread specific data (aka thread local storage) instead of stack allocatted buffers to store the result. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-20Only bitmaskify the RTP payload structure for video if an RTP structure ↵Joshua Colp
exists for it... otherwise the default values will cause codec combination madness git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38030 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-20add a verbose message to the AGI command, STREAM FILE, similar to theRussell Bryant
verbose messages when using Playback, Background, or the GET DATA command (issue #7297, softins) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19Remove "initialization from incompatible pointer type" warnings.North Antara
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19Fix a few doxygen warnings.North Antara
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38009 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19add menuselect_stub.c to deps listRussell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38000 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19add notes on the changes to music on hold handlingRussell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19merge Russell's 'hold_handling' branch, finally implementing music-on-hold ↵Kevin P. Fleming
handling the way it was decided at AstriDevCon Europe 2006 (and the way people really want it to be) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19make installation of French and Spanish sounds work properlyKevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19use new sound file versionKevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37973 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19Fix some reinitialization of prev!Mark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19restore buildabilityKevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37952 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19Merged revisions 37949 via svnmerge from Kevin P. Fleming
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r37949 | kpfleming | 2006-07-19 12:10:10 -0500 (Wed, 19 Jul 2006) | 2 lines ensure that global 'maxauthreq' is reset to zero during 'reload' ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37951 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19restore buildability (bad marko!)Kevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37950 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19revert this morning's incorrect indentation changeKevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37937 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19First pass at in-place file manipulation via managerMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37936 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19committing a fix for colons in goto arguments and suppressing operator ↵Steve Murphy
messages in globals assignments. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37925 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-18move variable declarations to the beginning of a block.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37907 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-18Eliminate file descriptor leak in built in HTTP serverMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37896 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-18Expand speech API so that the developer can interact with the engine more ↵Joshua Colp
directly and use specific functions of the connector even if a generic API call is not available git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-18Merged revisions 37856 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r37856 | russell | 2006-07-17 20:41:47 -0400 (Mon, 17 Jul 2006) | 2 lines don't crash if the frame has no data, but has a src ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37857 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-17if asked to duplicate a frame that has no data, don't set the frame's dataRussell Bryant
pointer past the end of the buffer allocated for the new frame git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37830 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-17Blocked revisions 37828 via svnmergeRussell Bryant
........ r37828 | russell | 2006-07-17 19:25:33 -0400 (Mon, 17 Jul 2006) | 3 lines if asked to duplicate a frame that has no data, don't set the frame's data pointer past the end of the allocatted buffer for the new frame ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37829 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-17Blocked revisions 37808 via svnmergeTilghman Lesher
........ r37808 | tilghman | 2006-07-17 17:36:56 -0500 (Mon, 17 Jul 2006) | 2 lines Backport buffer increase to 1.2 ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-17H.263 frames can apparently be larger than was originally coded.Tilghman Lesher
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-17Merged revisions 37765 via svnmerge from Tilghman Lesher
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r37765 | tilghman | 2006-07-17 10:52:15 -0500 (Mon, 17 Jul 2006) | 2 lines Overflow bad ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37766 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-17Make app_meetme's do_invite more generic.Mark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37755 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-16use a couple of variables to remove duplicate definitionsLuigi Rizzo
of the various rules for the NOISY/!NOISY cases. Approved by: kevin git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37744 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-16add a QueueLog application that allows for custom entries in the queue_logRussell Bryant
(issue #7368, by stevedavies with some modifications) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37734 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-16malloc + memset to ast_callocRussell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37733 65c4cc65-6c06-0410-ace0-fbb531ad65f3