Luigi Rizzo
5afbcc4f86
remove an extra lock.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
845298a7b3
- replace some nested 'if' with '&&'
...
- bring the short case at the top of an 'if' statement
(also fix misformatting)
- replace several 'if' with the '?' operator;
- invert the condition on an 'if' to reduce the nesting depth
(reindentation to be done later).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20454 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
ed6def5c46
Localize some variables documenting their usage.
...
Comment a possible problem with locking.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20453 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
4a312a044d
- Fixes to ast_channel_lock functions
...
- New get_sip_pvt_byid function (not really used correctly yet...)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20424 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
4c9c289a5d
localize some variables, add some comments.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20396 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
429025db22
implement ast_waitfordigit() and ast_readstring() in terms
...
of their '_full()' version, so we can remove the replicated
implementation and, especially, the risk that they get out of sync.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20389 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
e75fa47099
More ast_channel_lock fixes
...
- Update lock.h with definitions of ast_channel_lock, ast_channel_unlock and ast_channel_trylock
- Convert some functions (but not all) in channel.c
- Fix some bugs in chan_sip.c
- Convert rest of chan_sip.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
6b3367bf5c
New functions for locking a channel - these simplify debugging
...
when you have channel locking issues.
(Part of the SIP transfer patch, where I had a *lot* of
channel locking problems)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20264 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
160031b7be
code cleanup (for loop normalization, remove useless casts and parentheses)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20132 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
7bf8d36c8b
Merged revisions 19347 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r19347 | kpfleming | 2006-04-11 16:35:52 -0500 (Tue, 11 Apr 2006) | 2 lines
simplify spy queue flushing logic, and always force a flush when one side gets full, even if the other side is not empty (issue #6457 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19349 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
0f1321d423
Data stores do not need a lock. As well change the way they are removed from the channel when it is destroyed (thanks Russell Wussell) and finally... because C++ is silly... change our list macro info thing to be "entry" instead of "list".
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
e4811a8248
Presenting a revised data stores and oh my, a generic speech recognition API! I wonder what we can do with this now...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18979 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
5d34c2bbe1
minor formatting cleanup and removal of trailing whitespace.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17863 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
e57131511e
the fix for bug #6399 makes sense. thanks wrmem for the report.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17753 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Matt O'Gorman
3112b3b49f
list word cant be used with g++ and causes problems
...
with h323. patch from bug 6446, renames list to chan_list
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
03ce34e1aa
convert internal timing to be stored as a flag in the ast_options flags
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16477 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
50f0b12880
Issue #5374 - Enable internal timing of generators (cmantunes)
...
Thanks everyone involved for hard work, testing and testing!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16473 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
a3fe92b352
fix memory leak due to not freeing the channel's string fields in
...
ast_channel_destroy() (issue #6746 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13628 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
9675cd2d42
Make astmm compile (imported from 1.2)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12041 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
cfbce6db40
Revert, needs to be fixed in 1.2 first
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12031 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
1bda384bb8
Fix compilation with astmm
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12025 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
1323c7be91
Merged revisions 11250 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r11250 | russell | 2006-02-26 21:50:09 -0500 (Sun, 26 Feb 2006) | 2 lines
don't hang up the channel if its state is set to UP before we return from ast_call (issue #6569 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
50765d9aa5
Merged revisions 11058 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r11058 | kpfleming | 2006-02-24 22:23:48 -0600 (Fri, 24 Feb 2006) | 2 lines
ensure that spy frame queueing is able to deal with translation failing for any reason (issue #6546 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
a1e703fb01
more memory allocation wrapper conversion
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10141 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
124b00c4a4
add 'systemname' option to prefix channel unique IDs with (issue #5825 )
...
convert chan->uniqueid to a stringfield from a fixed-size buffer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10088 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
95151cead2
Merged revisions 9581 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r9581 | russell | 2006-02-11 13:15:00 -0500 (Sat, 11 Feb 2006) | 2 lines
now that CDR is a loadable module, don't depend on it elsewhere (issue #6460 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9582 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Mark Spencer
4a80fe5022
Add capability to retrieve list of channel types
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9508 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Tilghman Lesher
34bcd0e0b6
Bug 6322 - Implementation of SHA1 in Asterisk (plus dialplan function to use it)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
a16ae226b6
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: https://origsvn.digium.com/svn/asterisk/trunk@9060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
e01861fafd
define a global null_frame object so when queueing a null frame, you don't
...
have to allocate one on the stack
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Mark Spencer
37815b2cce
Merge Rizzo's waitfor update (bug #4584 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
f8b6a4db98
don't use tone generation for DTMF if the channel driver only supports begin/end (will need more work to translate non-variable events into begin/end events)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
d8908a3f52
add channel-driver callbacks for variable length DTMF
...
teach ast_write() to call those new callbacks
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8851 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
cde6058aef
make ast_read() able to handle channel read()/exception() methods that return a chain of frames
...
cleanup code in ast_read()
add AST_FRAME_DTMF_BEGIN and AST_FRAME_DTMF_END so that variable-length DTMF events can be supported
teach chan_zap to send DTMF_BEGIN and DTMF_END when appropriate
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
1d99282f9f
Issue #6349 - patch by markster, imported from 1.2
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8633 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
49f69c3f94
Merged revisions 8588 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r8588 | kpfleming | 2006-01-24 16:32:09 -0600 (Tue, 24 Jan 2006) | 2 lines
ensure that channel cannot become zombie after we check but before we try to start indications
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8591 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
a7b05ea51c
convert ast_channel list to use linked list macros (issue #6338 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8571 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
9434a05dc1
- Report SIP reload in manager (issue 5742 with small changes)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8531 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
c84ec3a3ad
Merged revisions 8437 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r8437 | russell | 2006-01-22 12:47:13 -0500 (Sun, 22 Jan 2006) | 2 lines
fix MixMonitor crash (issue #6321 , probably others)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
8cddfd5da1
add 'show channeltype' CLI command (issue #6149 , with small modifications)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
4414f45393
on this pass, only remove duplicate log messages
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
e040a10d81
finish reverting my pass through the tree to remove checks of the result of
...
ast_strdupa, this one is revision 8362
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8401 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
a501cdb8c6
remove some useless checks after calls to ast_strdupa
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8362 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
533a64401b
Extra comma causing compilation errors...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
21347757ef
don't generate any message for native bridge attempts unless all the basic checks have passed and we're actually going to try it
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
BJ Weschke
3854a2438e
Spelling corrections (mostly in comments and doxygen areas) #6249
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8100 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
06d2ae82cd
Merged revisions 7963 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r7963 | mogorman | 2006-01-10 23:38:07 -0500 (Tue, 10 Jan 2006) | 2 lines
Minor typo refrenced in 6191
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Matt O'Gorman
06f2040e6f
added feature for pausing and unpausing the
...
monitor app from manager and in the call through
features.conf bug 5395 for the patch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Matthew Fredrickson
1437a7255d
More changes to make t.38 support work
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
9de6d70b24
oops. :)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago