aboutsummaryrefslogtreecommitdiffstats
path: root/channels/iax2-parser.c
AgeCommit message (Collapse)AuthorFilesLines
2009-09-03Merge code associated with AST-2009-006dvossel1-1/+9
(closes issue #12912) Reported by: rathaus Tested by: tilghman, russell, dvossel, dbrooks git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@216000 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-15Update to previous IAX2 "Ghost" Channels patch.dvossel1-4/+4
Fixed some comments made on reviewboard for the previous patch. (issue #14207) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@194685 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-14IAX2 "Ghost" Channelsdvossel1-0/+53
There is a bug tracker issue where people are reporting "Ghost" channels in their 'iax2 show channels' output. The confusion is caused by channels being listed as "(NONE)" with format "unknown". These are not channels of coarse. They are usually just pending registration or poke requests, but it is confusing output. To help make sense of this I have added two columns to 'iax2 show channels'. One shows the first message which started the transaction, and the second shows the last message sent by either side of the call. This helps diagnose why the entry exists and why it may not go away. (closes issue #14207) Reported by: clive18 Review: https://reviewboard.asterisk.org/r/246/ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@194557 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-31In case we have some processing threads that free more frames than they ↵russell1-8/+19
allocate, do not let the frame cache grow forever. (closes issue #13160) Reported by: tavius Tested by: tavius, russell git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@134814 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17Merged revisions 75444 via svnmerge from russell1-7/+14
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75444 | russell | 2007-07-17 15:45:27 -0500 (Tue, 17 Jul 2007) | 5 lines Ensure that when encoding the contents of an ast_frame into an iax_frame, that the size of the destination buffer is known in the iax_frame so that code won't write past the end of the allocated buffer when sending outgoing frames. (ASA-2007-014) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75445 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13Add TXMEDIA to list so that it is properly displayed during iax2 packet output.file1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69184 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-20Copy len variable as well, should fix remaining IAX2 DTMF issues.file1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@59076 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04don't mark these allocations as 'cache' allocations when caching has been ↵kpfleming1-2/+6
disabled git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49536 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04if we're going to decrement the frame count when we free a frame, we should ↵kpfleming1-0/+2
inrement it when we create one :-) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49523 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04only do IAX2 frame caching for voice and video frameskpfleming1-2/+3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49465 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04don't define this type either if LOW_MEMORY is enabledkpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49460 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04don't do frame caching in LOW_MEMORY modekpfleming1-1/+14
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49458 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27allow 'show memory' and 'show memory summary' to distinguish memory ↵kpfleming1-1/+1
allocations that were done for caching purposes, so they don't look like memory leaks git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48987 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31there is no need for __iax_frame_free ...russell1-10/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41650 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31there is no need to use iax_frame_free here, as it will actually just end uprussell1-1/+1
having a bunch of erroneous messages about attempting to double free frames spammed to the console. Problem reported to me by file ... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41629 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31Merge in VLDTMF support with Zaptel/Core done by the ever great Darumkilla ↵file1-3/+6
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-29Merge team/russell/frame_cachingrussell1-12/+70
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-07-31make the counting of ingress, outgress, and total frames thread-saferussell1-6/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38587 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-21Merge a new implementation of ast_inet_ntoa, our thread safe replacement forrussell1-7/+3
inet_ntoa, which uses thread specific data (aka thread local storage) instead of stack allocatted buffers to store the result. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38042 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-08Support hold/unhold in Zap, update IAX2 parser to know about modern ↵markster1-1/+12
commands, forward hold/unhold in dial, add hold device state and implement holding in the SLA. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37318 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07simplify autoconfig include mechanism (make tholo happy he can use lint ↵kpfleming1-4/+4
again :-) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32846 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-01use string fields for some stuff in ast_channelkpfleming1-3/+3
const-ify some more APIs remove 'type' field from ast_channel, in favor of the one in the channel's tech structure allow string field module users to specify the 'chunk size' for pool allocations update chan_alsa to be compatible with recent const-ification patches git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9060 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-30update doxygen docs to specify authorsrussell1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7682 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7221 ↵kpfleming1-0/+0
f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-10issue #5693kpfleming1-5/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7058 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-31revert strncpy->ast_copy_string changes where the semantics are subtly differentkpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6914 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-27strncpy to ast_copy_stringrussell1-5/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6867 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26more doxygenification (issue #5513)russell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6852 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-21iax2 parser cleanupsmarkster1-9/+9
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6627 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14update MANY more files with proper copyright/license info (thanks Ian!)kpfleming1-5/+16
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6596 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-09don't use a signed buffer for data that the protocol specifies as unsigned.russell1-20/+20
This fixes an issues with RSA authentication (issue #5148) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6554 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-02use unsigned char for data elements and native-signed char for strings ↵kpfleming1-4/+4
(issue #5104) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6508 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-23ensure buffer is adequately sized for frames with lots of elements (issue #4974)kpfleming1-20/+21
various minor formatting/cleanup changes git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6386 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-12Fix IAX2 encryption (really, bug #4500 for reference)markster1-1/+16
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6103 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-13Various IAX2 fixesmarkster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5901 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06more file version tagskpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5866 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06another round of version tag updates, along with 'show version files' ↵kpfleming1-0/+5
pattern filtering git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5865 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-25various code cleanups (bug #4353)russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5764 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-17print out the IAX DATETIME IE in 'iax2 debug' in human readable formrussell1-11/+28
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5711 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-21use double-quotes instead of angle-brackets for non-system include files ↵kpfleming1-3/+3
(bug #4058) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5490 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-04fix breakage from slin endianness commit earlier today (sorry :-()kpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5375 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-03handle AST_FORMAT_SLINEAR endianness properly on big-endian systems (bug #3865)kpfleming1-1/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5373 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-29Simplify endianness and fix for unaligned reads (bug #3867)markster1-43/+28
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5295 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-17Add support for Solaris/x86 (bug #3064)markster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5199 f38db490-d61c-443f-a65b-d21fe96a405b
2005-02-28Fix queue URL passing (bug #3543)markster1-2/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5104 f38db490-d61c-443f-a65b-d21fe96a405b
2005-02-12Add support for receiver reports (bug #3236, with mods)markster1-0/+54
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5012 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-21update copyright headers for 2005russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4868 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-09Merge experimental codec preferences for IAX2 (bug #2971)markster1-0/+23
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4727 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-29Minor IAX2 fixes, add incomplete-but-very-basically-functional IAX2 encryptionmarkster1-2/+16
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4595 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-26Merge Tilghman's cause codes patch (bug #3032)markster1-0/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4558 f38db490-d61c-443f-a65b-d21fe96a405b