aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2006-07-29Blocked revisions 38501 via svnmergefile0-0/+0
........ r38501 | file | 2006-07-29 19:18:00 -0400 (Sat, 29 Jul 2006) | 2 lines How many attempts does it take to make a SIP URI parser that works well? I'm up to 5 personally. On to the good stuff - parse the domain first, user second, and get rid of port & options/params last. (issue #7616 reported by andrew) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38502 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-29Allow updates to match specific lines, allow specification of object or markster3-16/+26
no when appending. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38489 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-29update cleancount because the channel structure changed todaykpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38476 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-28play a beep tone into the spied-on channel if we are about to whisper to themkpfleming1-3/+16
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38466 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-28add ExtenSpy variant of ChanSpykpfleming3-61/+228
implement whisper mode for ExtenSpy/ChanSpy git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38465 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-28the pure attribute was not implemented before gcc 2.96. Since we have thisrussell1-2/+2
version check here anwyay, define attribute_pure to be empty if it's an earlier version. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38464 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-28add macros for the pure and const attributes to compiler.h, in case they everrussell3-10/+16
need to be handled differently for a specific compiler git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38454 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-28Add the function attribute "pure" or "const" to various functions that performrussell2-10/+10
int to string or string to int operations. "pure" essentially says that this function has no side effects aside from its result, and the result depends on nothing else other than its arguments and global variables. "const" is a more strict form of "pure", where the function also doesn't access any global variables. From the gcc manual: "Such a function can be subject to common subexpression elimination and loop optimization just as an arithmetic operator would be." This also tells the compiler that it is safe to call the function fewer times than the code says to, given the same arguments, since the result will always be the same. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38452 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-28just for fun, let's lock the whisper buffer for writing AND reading :-)kpfleming1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38441 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-28As discussed and decided on the asterisk-dev mailing list ...russell4-5/+7
- Fix some breakage I introduced a while ago that made the timestamps option not functional for CLI verbose output. - Remove the use of the timestamps option for log output, since it was not functional. - clarify text referring to the timestamps option so that it is clear that it only applies to CLI verbose output git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38439 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-28move slinfactory structure definition back to header... it's just easier to ↵kpfleming6-25/+134
use this way add infrastructure for whispering onto a channel git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38422 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-28Merged revisions 38420 via svnmerge from file1-4/+5
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r38420 | file | 2006-07-28 14:49:00 -0400 (Fri, 28 Jul 2006) | 2 lines Make a copy of the request URI in check_user_full instead of modifying the one on the structure, and also strip params properly from the user portion of the SIP URI so as to preserve the domain (issue #7552 reported by dan42) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38421 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-28more slinfactory structure definition to inside implementation modulekpfleming2-54/+53
make read/write/hold work on samples, not bytes add an API call to find out how many samples are available in a slinfactory git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38418 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-27more simplification, and correct a bug i introduced in the last commitkpfleming3-20/+21
fix prototype for a channel walking function to use a const input pointer use existing channel walk by name prefix instead of reproducing that code in this app git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38389 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-27remove local channel finding wrapperskpfleming1-117/+111
move guts of dialplan application into separate function, so it can be shared bythe new application i'm about to add :-) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38374 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-27block this patch from 1.2, it's already fixed here as part of a larger commitkpfleming0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38371 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-27restore infinite timeout for ast_waitfor() callkpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38369 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-27various cleanups:kpfleming1-224/+201
use API call for finding channel by name prefix code formatting to match guidelines (lost about half the of the indenting) remove useless automatic variable initializations don't set the spying channel's read format to SLINEAR when we don't do anything with the voice frames we read from it anyway use proper option argument checking for volume argument git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38368 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-27Merged revisions 38347 via svnmerge from kpfleming1-4/+7
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r38347 | kpfleming | 2006-07-27 10:40:03 -0500 (Thu, 27 Jul 2006) | 2 lines do a better job avoiding translation path teardown/setup when not needed ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38348 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-27fix seg fault when the parked call that timed out was the last one in the listrussell1-1/+1
of parked calls (fixes issue #7565) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38330 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-27Merged revisions 38328 via svnmerge from russell1-1/+10
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r38328 | russell | 2006-07-27 00:25:41 -0400 (Thu, 27 Jul 2006) | 4 lines Fix crash when using the "regexten" option with MALLOC_DEBUG enabled. This was not reported in the bug tracker but the same bug has been demonstrated in other places in the code. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38329 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-27Merged revisions 38310 via svnmerge from kpfleming1-0/+4
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r38310 | kpfleming | 2006-07-26 21:43:49 -0500 (Wed, 26 Jul 2006) | 2 lines don't do useless translation destroy/build when the channel is already in the correct format ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38311 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-27Merged revisions 38288 via svnmerge from russell1-1/+10
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r38288 | russell | 2006-07-26 21:58:41 -0400 (Wed, 26 Jul 2006) | 3 lines fix a crash when MALLOC_DEBUG is enabled and the regexten is enabled. The crash would occur when the extension got removed. (fixes issue #7484) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38291 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-27fix crashes with MALLOC_DEBUG enabled that were a result of my recent threadrussell3-3/+29
storage changes (fixes issue #7595) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38286 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-27fix some breakage of ast_cli() that resulted in seg faults on Josh's machine.russell1-0/+2
I'm not sure why this never caused problems for me ... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38283 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-26fix setting the CFLAGS for building codec libs so that they are built withrussell1-3/+3
astmm support and astmm doesn't get really upset and complain that it is being asked to free memory that was never allocated git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38271 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-26Typo found on the -dev listtilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38258 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-26Only unlock these if they were locked on entrytilghman1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38250 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-26Merged revisions 38234 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r38234 | file | 2006-07-26 11:26:06 -0400 (Wed, 26 Jul 2006) | 2 lines Put default callerid into contact when the one specified is either NULL or has a zero string length. (issue #7590 reported by key2) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38235 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-26merge the changes from my ast_cli_tls branch ...russell1-6/+19
Instead of having a static buffer size of 16k, start out with 256 bytes and increase the size of the buffer as needed. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38223 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-25This exact deadlock situation that I observed can't happen in trunk due to therussell1-1/+7
recent hold changes so that MOH is not started on the bridged channel directly. However, the change is still not a bad idea. Merged revisions 38200 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r38200 | russell | 2006-07-25 15:43:38 -0400 (Tue, 25 Jul 2006) | 6 lines This resolves a deadlock that a tech support customer was getting frequently when his users would answer call waiting. If another thread is currently holding the zt_pvt lock for the first channel, unlock both channels and let asterisk retry the native bridge, just like what is done for the second channel directly below these changes. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38201 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-24Added a small fix to exclude the AMD optimized assembly file from being ↵murf1-2/+2
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: http://svn.digium.com/svn/asterisk/trunk@38187 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-24blocked rev 38167 on the 1.2 branch from trunk, because it'smurf0-0/+0
coded differently on trunk, would conflict and have to be hand-merged anyway. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38168 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-24Start out with cleared RTP payload structures instead of defaults. This ↵file1-9/+4
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: http://svn.digium.com/svn/asterisk/trunk@38158 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-24move middle-of-the-block declaration at the top.rizzo1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38149 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-24fix uninitialized variablerizzo1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38148 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-24Only deal with getting the supported payloads on audio if an audio RTP ↵file1-2/+3
stream exists git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38139 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-23ast_malloc is sufficient here, since snprintf is called on the bufferrussell1-1/+1
immediately after it gets allocated, which will automatically NULL terminate the string git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38129 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-23Merge team/russell/ast_cli_tls into the trunk.russell1-9/+24
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: http://svn.digium.com/svn/asterisk/trunk@38127 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-23fix a seg fault in this application if no context paramater is givenrussell1-1/+1
(issue #7571) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38118 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-23resolve another XXX comment by implementing proper handling of control framesrussell1-2/+2
in ast_write(), which is to call the channel's indicate function if it exists git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38117 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-23take the advice of an XXX comment and use an atomic operation to decrement arussell1-9/+4
variable. Also, change a use of strdup to ast_strdup and remove a duplicated error message. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38108 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-23remove a stray newlinerussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38099 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-23update to mention svn instead of cvsrussell1-8/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38089 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-23various cleanups regarding coding guidelines issuesrussell1-25/+27
- 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: http://svn.digium.com/svn/asterisk/trunk@38088 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-22ast_pbx_outgoing_cdr_failed() is not used outside of pbx.c so make it staticrussell1-3/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38078 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-22use ast_atomic_fetchadd_int in chan_zap, sip, and iax2 for usecount handlingrussell3-28/+9
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: http://svn.digium.com/svn/asterisk/trunk@38077 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-22remove an XXX comment and document that ast_autoservice_start() will return -1russell2-3/+12
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: http://svn.digium.com/svn/asterisk/trunk@38076 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-21slightly simplify a loop and replace an open coded version of ast_skip_blanksrussell1-7/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38068 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-21make ast_state2str thread safe by using thread local storage instead of arussell1-6/+19
static buffer for storing the result when the state value is unknown git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38060 f38db490-d61c-443f-a65b-d21fe96a405b