tilghman
4373b2af13
IAX2 remote variables - Bug 7619
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@51123 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-16 08:38:59 +00:00
kpfleming
779a16372f
Merged revisions 49536 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r49536 | kpfleming | 2007-01-04 15:58:42 -0600 (Thu, 04 Jan 2007) | 2 lines
don't mark these allocations as 'cache' allocations when caching has been disabled
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49538 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04 21:59:06 +00:00
kpfleming
ea6c02b74f
Merged revisions 49523 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r49523 | kpfleming | 2007-01-04 15:06:02 -0600 (Thu, 04 Jan 2007) | 2 lines
if we're going to decrement the frame count when we free a frame, we should inrement it when we create one :-)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49524 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04 21:06:35 +00:00
kpfleming
7457dc351c
Merged revisions 49465 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r49465 | kpfleming | 2007-01-04 12:31:55 -0600 (Thu, 04 Jan 2007) | 2 lines
only do IAX2 frame caching for voice and video frames
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49466 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04 18:32:23 +00:00
kpfleming
f409b5bba7
Merged revisions 49457,49460-49461 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r49457 | kpfleming | 2007-01-04 12:05:47 -0600 (Thu, 04 Jan 2007) | 2 lines
make building of codec_gsm against the system GSM library actually work
........
r49460 | kpfleming | 2007-01-04 12:16:40 -0600 (Thu, 04 Jan 2007) | 2 lines
don't define this type either if LOW_MEMORY is enabled
........
r49461 | kpfleming | 2007-01-04 12:17:01 -0600 (Thu, 04 Jan 2007) | 2 lines
don't do frame header caching in the core if LOW_MEMORY is defined
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49463 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04 18:19:55 +00:00
mogorman
d8c8b23c1a
Merged revisions 49458 via svnmerge from
...
https://svn.digium.com/svn/asterisk/branches/1.4
........
r49458 | kpfleming | 2007-01-04 12:06:51 -0600 (Thu, 04 Jan 2007) | 2 lines
don't do frame caching in LOW_MEMORY mode
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49462 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04 18:17:24 +00:00
kpfleming
c66dcd0bc5
Merged revisions 48987 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r48987 | kpfleming | 2006-12-27 12:29:13 -0600 (Wed, 27 Dec 2006) | 2 lines
allow 'show memory' and 'show memory summary' to distinguish memory allocations that were done for caching purposes, so they don't look like memory leaks
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48989 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27 18:33:44 +00:00
russell
21cbb8bb68
Extend the thread storage API such that a custom initialization function can
...
be called for each thread specific object after they are allocated. Note that
there was already the ability to define a custom cleanup function. Also, if
the custom cleanup function is used, it *MUST* call free on the thread
specific object at the end. There is no way to have this magically done that
I can think of because the cleanup function registered with the pthread
implementation will only call the function back with a pointer to the
thread specific object, not the parent ast_threadstorage object.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45623 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-19 01:00:57 +00:00
russell
e713821850
there is no need for __iax_frame_free ...
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41650 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31 21:50:07 +00:00
russell
405acc2368
there is no need to use iax_frame_free here, as it will actually just end up
...
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-31 20:39:12 +00:00
file
3f22aa53af
Merge in VLDTMF support with Zaptel/Core done by the ever great Darumkilla 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-31 01:59:02 +00:00
russell
53f8d43e29
Merge team/russell/frame_caching
...
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-29 20:50:36 +00:00
russell
9101f1b8e7
make the counting of ingress, outgress, and total frames thread-safe
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38587 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-31 17:27:42 +00:00
russell
f395a52a02
Merge a new implementation of ast_inet_ntoa, our thread safe replacement for
...
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-21 17:31:28 +00:00
markster
a82143962a
Support hold/unhold in Zap, update IAX2 parser to know about modern 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-07-08 02:24:07 +00:00
kpfleming
73c525e6e2
simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32846 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07 18:54:56 +00:00
kpfleming
21d21f89c0
use string fields for some stuff in ast_channel
...
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
2006-02-01 23:05:28 +00:00
russell
ab6566173e
update doxygen docs to specify authors
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7682 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-30 21:18:06 +00:00
kpfleming
24c1e3c222
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7221 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29 18:24:39 +00:00
kpfleming
615fc64a77
issue #5693
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7058 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-10 23:42:45 +00:00
kpfleming
104f491fc7
revert strncpy->ast_copy_string changes where the semantics are subtly different
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6914 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-31 23:28:30 +00:00
russell
b20f2640e3
strncpy to ast_copy_string
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6867 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-27 02:42:05 +00:00
russell
bb65d2e30a
more doxygenification (issue #5513 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6852 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26 13:03:17 +00:00
markster
64291f076e
iax2 parser cleanups
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6627 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-21 12:47:03 +00:00
kpfleming
95fe2b8fd4
update MANY more files with proper copyright/license info (thanks Ian!)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6596 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14 20:46:50 +00:00
russell
7258be9c1e
don't use a signed buffer for data that the protocol specifies as unsigned.
...
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-09 01:07:25 +00:00
kpfleming
abf34c0a59
use unsigned char for data elements and native-signed char for strings (issue #5104 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6508 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-02 19:17:19 +00:00
kpfleming
9a19b48fb9
ensure buffer is adequately sized for frames with lots of elements (issue #4974 )
...
various minor formatting/cleanup changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6386 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-23 17:38:58 +00:00
markster
4bc2bc78bf
Fix IAX2 encryption (really, bug #4500 for reference)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6103 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-12 14:46:20 +00:00
markster
7a0178bc4d
Various IAX2 fixes
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5901 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-13 08:48:17 +00:00
kpfleming
6f0f46299c
more file version tags
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5866 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06 22:12:19 +00:00
kpfleming
09f3094700
another round of version tag updates, along with 'show version files' pattern filtering
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5865 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06 21:09:59 +00:00
russell
3c746d45b9
various code cleanups (bug #4353 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5764 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-25 10:57:15 +00:00
russell
6c8c36cb12
print out the IAX DATETIME IE in 'iax2 debug' in human readable form
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5711 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-17 19:41:09 +00:00
kpfleming
31e8dcf4fe
use double-quotes instead of angle-brackets for non-system include files (bug #4058 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5490 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-21 06:02:45 +00:00
kpfleming
fc3600f9e4
fix breakage from slin endianness commit earlier today (sorry :-()
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5375 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-04 02:13:40 +00:00
kpfleming
4ce1edc05c
handle AST_FORMAT_SLINEAR endianness properly on big-endian systems (bug #3865 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5373 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-03 22:57:18 +00:00
markster
de060dd25b
Simplify endianness and fix for unaligned reads (bug #3867 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5295 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-29 04:49:24 +00:00
markster
57710533e7
Add support for Solaris/x86 (bug #3064 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5199 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-17 23:12:15 +00:00
markster
44ee08e9d9
Fix queue URL passing (bug #3543 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5104 f38db490-d61c-443f-a65b-d21fe96a405b
2005-02-28 06:06:42 +00:00
markster
08db13f776
Add support for receiver reports (bug #3236 , with mods)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5012 f38db490-d61c-443f-a65b-d21fe96a405b
2005-02-12 18:52:14 +00:00
russell
7288b1ced0
update copyright headers for 2005
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4868 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-21 07:06:25 +00:00
markster
4c5d430977
Merge experimental codec preferences for IAX2 (bug #2971 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4727 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-09 10:32:53 +00:00
markster
8b4c7c6f2e
Minor IAX2 fixes, add incomplete-but-very-basically-functional IAX2 encryption
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4595 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-29 23:02:21 +00:00
markster
7d6a256893
Merge Tilghman's cause codes patch (bug #3032 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4558 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-26 22:33:25 +00:00
markster
70cedacdde
Merge slimey's Solaris compatibility (with small mods) (bug #2740 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4446 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-14 23:36:30 +00:00
markster
fc16142d07
Add sampling rate handling
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4299 f38db490-d61c-443f-a65b-d21fe96a405b
2004-11-19 21:52:25 +00:00
citats
0ddc4d30dd
Pass format string
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4079 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-24 06:44:37 +00:00
markster
f01f076e6d
Add iax2 parsing for TNS/TON/PRES
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3877 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-02 01:56:08 +00:00
markster
59d241ba13
Minor formatting fixup (bug #2397 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3748 f38db490-d61c-443f-a65b-d21fe96a405b
2004-09-09 01:36:01 +00:00