aboutsummaryrefslogtreecommitdiffstats
path: root/main
AgeCommit message (Collapse)AuthorFilesLines
2006-09-09Merged revisions 42600 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r42600 | file | 2006-09-09 16:24:19 -0400 (Sat, 09 Sep 2006) | 2 lines Only truly consider the channel in the same format if the format matches the raw format OR if a translation path already exists to translate between them. (issue #7887 reported by softins & issue #7803 reported by alvaro_palma_aste). Thanks goes to stubert for giving me access to a box and showing me a scenario where this occured. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42601 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-09Optimize a bitfile1-7/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42583 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-09It's another round of RTP updates!file1-27/+38
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42569 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-08Merged revisions 42452 via svnmerge from file1-0/+23
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r42452 | file | 2006-09-08 14:50:43 -0400 (Fri, 08 Sep 2006) | 2 lines Swap spies during masquerading ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42453 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-08whentohangup is already in seconds, just need to convert to millisecondsfile1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42374 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-07Merged revisions 42260 via svnmerge from file1-3/+4
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r42260 | file | 2006-09-07 12:30:44 -0400 (Thu, 07 Sep 2006) | 2 lines Let's use the same thing we use in other places to calculate our time for ast_cond_timedwait (issue #7697 reported by bn999) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42261 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-07Made changes corresponding to those in 1.2 here in main/logger.c for bug 7544.murf1-70/+76
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42208 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-07don't try to get the length of the string in the ast_dynamic_str object ↵kpfleming1-1/+1
unless we know there is actually one there git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42185 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-04Remove old unused functionsfile1-85/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41974 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03Make the difference clear about what the responsibilities of the core and a ↵file1-39/+70
spy are when it comes to spying on a channel. The core is responsible for adding a spy to a channel, feeding frames into the spy, removing the spy from the channel, and notifying the spy that is has been detached. The spy is responsible for reading frames in, and cleaning itself up. Each side will not try to do the other's job. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41959 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03Add the ability to specify that a frame should not be considered for cachingrussell1-2/+2
for uses in cases where you *know* that it will do no good. This patch was inspired by file for use in some work of his on mixmonitor/chanspy. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41958 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03when calling this function to append to a dynamic string and the buffer was notrussell1-0/+3
large enough and had to be reallocated, cut off the partially appended data. Otherwise, the function will get called over and over again appending to the end every time and never thinking it has enough room. Thanks to jmls for access to his machine for debugging! (issue #7691) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41944 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03 Provide a little more protection to make sure that a MOH class is specified ↵bweschke1-2/+4
when using the 'm' option with WaitExten, and prevent a segfault in the process. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41930 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03 Fix enum indexing problem with m() in WaitExten. Reported by Pavel J, in ↵bweschke1-1/+1
asterisk-dev. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41916 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03Tweak the if statement a bitfile1-9/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41865 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03Don't use ast_frdup() in the AST_LIST_INSERT_TAIL macro directly. That was arussell1-2/+5
very stupid thing to do. It ends up duplicating the frame twice, linking in one of them and setting the tail pointer to the other one. Sorry ... Thanks to file for pointing out the breakage!!! file rocks. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41864 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-01Unbridge the RTP streams at the correct placefile1-8/+9
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41735 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-01If we are doing video and we can't reinvite, then resort to generic bridging ↵file1-1/+7
instead of Packet2Packet since video isn't supported there yet. (reported by PCadach in #asterisk-bugs) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41718 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-01You see nothing...file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41696 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-01Another formatting update for PCadach.murf1-3/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41695 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-010 is indeed considered a valid file descriptor (issue #7861 reported by PCadach)file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41694 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-01Merged revisions 41690 via svnmerge from file1-0/+2
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r41690 | file | 2006-09-01 12:28:08 -0400 (Fri, 01 Sep 2006) | 2 lines Don't treat an unexpected control subclass as voice (issue #7858 reported by PCadach) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41693 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-01PCadach wanted better formatting of those 'if' conditions for 7859.murf1-1/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41692 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-01This small tweek will hopefully fix 7859, and silence all possible othersmurf1-2/+3
along that line. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41674 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31Tweak the DTMF muting stuff a bit to take into account VLDTMF and compensation.file1-1/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41632 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31Ignore DTMF begin frames in the waitstream core so that we don't get ↵file1-1/+0
duplicate digits in our extension match git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41611 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31Don't fail the write if they try to write a NULL or IAX frame as we just ↵file1-0/+1
ignore these. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41596 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31Add new frame types for DTMFfile1-2/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41595 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31Only write a received packet out if we are actually bridged to somethingfile1-4/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41574 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31Merge in VLDTMF support with Zaptel/Core done by the ever great Darumkilla ↵file5-173/+310
Russell Bryant and the RTP portion done by myself, Muffinlicious Joshua Colp. This has gone through so many discussions/revisions it's not funny but we finally have it! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41507 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30change default setting for autofallthroughkpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41475 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30fix a bug introduced when I merged my frame caching branch. Queue therussell1-1/+1
translated frame to the spies, *not* the original frame. Thanks PCadach! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41389 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30Clarify what show translations is displaying a bit more (issue #7772 ↵file1-1/+1
reported by Mithraen) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41373 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30Print what read-only variable is being set so that the user doesn't have to ↵file1-1/+1
guess and figure it out or look at the list in cdr.c and match it up (issue #7831 reported by sedwards) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41357 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30Only feed a DTMF frame into the core if we need tofile1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41338 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30Only switch the second alert fd (which is RTCP) to callback mode if it is in usefile1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41317 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30Use an API call (ast_rtp_get_bridged) to return the RTP stream we are ↵file1-4/+9
bridged to, and also use it in chan_sip so we know to ignore the no RTP activity checking git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41316 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30If the RTP stack is already being operated in callback mode, then suspend it ↵file1-1/+13
upon switching to P2P callback bridging. Once P2P callback bridging has ended, then restore callback mode. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41303 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30This is the last round of RTP bridge optimizations. Basically it introduces ↵file1-36/+174
a way that under a straight bridge (ie: no transcoding and no DTMF detection) the core is not touched at all and no frames pass through (not even null frames). This is accomplished by stealing the file descriptors from the channel and using the provided IO context with a custom callback. When a channel is placed on hold this bridge is broken so audio can flow from the core to the other side. When a channel is off hold this bridge is re-established. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41302 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-29Move the direct bridge write to after the NAT handling codefile1-5/+9
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41285 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-29This change fixes bug 7820. Way back in April this bug was reintroduced, it ↵murf1-0/+3
appears, when a bunch of restructuring was done. This code was basically left out during the restructuring. In the case of the failure in 7820, it is trying to match the extension _x. with _x., and failing, because the 'x' should only match 0 thru 9. I **could** upgrade the code so that that N,Z, and X match not only their intended number ranges, but also N,Z,and X respectively. And, moreover, X could also match N and Z, and Z could also match N. I have no idea why this bug took so long to turn up. I have no idea what a more thorough treatment of the code would do to working code, either. So I left it as it ***was***. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41283 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-29Merge team/russell/frame_cachingrussell5-192/+194
There are some situations in Asterisk where ast_frame and/or iax_frame structures are rapidly allocatted and freed (at least 50 times per second for one call). This code significantly improves the performance of ast_frame_header_new(), ast_frdup(), ast_frfree(), iax_frame_new(), and iax_frame_free() by keeping a thread-local cache of these structures and using frames from the cache whenever possible instead of calling malloc/free every time. This commit also converts the ast_frame and iax_frame structures to use the linked list macros. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41278 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-28Merge in RTP-level packet bridging. Packet comes in, packet goes out - ↵file1-197/+362
that's what RTP-level packet bridging is all about! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41235 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-26GNU make already knows how to quietly ignore non-existent files in 'include' ↵kpfleming1-8/+1
directives git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41209 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-26ensure that unload_dynamic_module won't continue dereferencing a module ↵kpfleming1-3/+8
pointer after the module has been unloaded from memory git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41196 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-26ensure that cross-compiler info is removed from the enviroment before ↵kpfleming1-1/+1
configuring menuselect ensure that the user's LDFLAGS take precedence when linking the final binary git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41178 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-26more optimizations for embedded systems:kpfleming1-2/+8
when LOADABLE_MODULES is off, don't export symbols from the main binary when LOADABLE_MODULES is off, and the compiler/linker support it, strip out code not used in the final binary git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41166 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-25Identify what the columns mean in the output of "show profile"russell1-1/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41118 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-25Off by one error in buffer length (issue 7379)tilghman1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41103 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-25instead of reverting this supposedly 'stupid' change, let's try to get it ↵kpfleming1-0/+9
working properly also eliminate a warning from dlopen() because some flags were missing on the second dlopen() call git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41087 f38db490-d61c-443f-a65b-d21fe96a405b