aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
AgeCommit message (Collapse)AuthorFilesLines
2006-07-06patch resolves issue with when to decide if its right time mogorman1-1/+2
to native bridge, feature redirect was not being checked. patch from bug #7296 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37223 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-05prepare Asterisk for new zaptel.h/tonezone.h installation locationskpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37027 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-24The Eurostar Commit! (it's amazing how much work you can get done on a 150 ↵kpfleming1-7/+0
minute train ride from Paris to London <G>) support the new location for zaptel.h and tonezone.h use the dependency information output by menuselect to build Makefile rules for each module for header files and libraries combine the common rules into a top-level Makefile.rules file remove all (now) unnecessary stuff from subdir Makefiles change translator API so that the newpvt() callback returns an int instead of a pointer (it no longer allocates memory) alphabetize --with-<foo> options in configure script enhance Net-SNMP support in configure script to provide a --with-netsnmp option fix support for --with-pq so that if pg-config is not found when --with-pq is specified, an error will be generated add 'optional package' usage to modules now that menuselect can output it allow res_snmp to build by default, since the new loader changes coming soon will solve the function naming problem (and users can disable it via menuselect anyway) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35832 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-23revert my changes that converted the jb on the channel to be dynamicallyrussell1-2/+1
allocated. These changes caused crashes when using a channel type that did not support the jitterbuffer. Instead of fixing why it's crashing, I'm going to implement this in a better way next week. The way I did it caused a jitterbuffer to be allocated on every channel where the channel type supported jitterbuffers, even if they were disabled. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35746 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-22don't blow up if a jitterbuffer is not in userussell1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35555 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-13adds support for t38 pass through patch brought up to trunk frommogorman1-0/+4
bug 5090 by josh colp. Thanks to everyone who help get this patch through especially to the author Steven Underwood. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33890 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-12Merged revisions 33724 via svnmerge from file1-1/+14
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r33724 | file | 2006-06-12 18:34:38 -0300 (Mon, 12 Jun 2006) | 2 lines Greatly simply the mixmonitor thread, and move channel reference directly to spy structure so that the core can modify it. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33725 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07simplify autoconfig include mechanism (make tholo happy he can use lint ↵kpfleming1-5/+5
again :-) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32846 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-06Merge of the "sdpcleanup" branch. Thanks to John Martin for a lot of testsoej1-4/+7
and some patches (all disclaimed). - Don't change RTP properties if we reject a re-INVITE - Don't add video to an outbound channel if there's no video on the inbound channel - Don't include video in the "preferred codec" list for codec selection - Clean up and document code that parses and adds SDP attachments Since we do not transcode video, we can't handle video the same way as audio. This is a bug fix patch. In future releases, we need to work on a solution for video negotiation, not codecs but formats and framerates instead. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32597 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-06fix a channel deadlock in ast_answerrussell1-1/+3
(deadlock reported by and debuged with hads on #asterisk-dev on IRC) (probably fixes issue #7267, maybe others) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32478 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-04- 5 is the highest used debug level, so let's stay thereoej1-1/+1
- Change formatting of RTP debug to align better git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32088 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-03 Make sure DEBUG is really cranked up before we decide to flood the logs ↵bweschke1-1/+1
with messages about Internal timing when a channel has to make a decision about generating internal timing (eg - MOH) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31840 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-01Merged revisions 31520 via svnmerge from kpfleming1-0/+8
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r31520 | kpfleming | 2006-06-01 15:27:50 -0500 (Thu, 01 Jun 2006) | 2 lines handle Zap transfers behind chan_agent properly so the agent doesn't get stuck waiting for the call to hang up ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31522 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-31Add support for using a jitterbuffer for RTP on bridged calls. This includesrussell1-3/+26
a new implementation of a fixed size jitterbuffer, as well as support for the existing adaptive jitterbuffer implementation. (issue #3854, Slav Klenov) Thank you very much to Slav Klenov of Securax and all of the people involved in the testing of this feature for all of your hard work! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31052 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-31a few more control frame types that don't need to generate useless notices ↵kpfleming1-1/+6
in the log git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31044 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-25Merge in branch which gives you the ability to set the hangup causecode ↵file1-44/+57
using the Hangup application. (issue #7160 reported by kmilitzer branch by jcollie) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30390 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-16Merged revisions 27468 via svnmerge from kpfleming1-0/+3
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r27468 | kpfleming | 2006-05-16 15:05:17 -0500 (Tue, 16 May 2006) | 2 lines don't leak frames when deferring DTMF or dropping duplicate ANSWER frames (issue #7041, slightly different fix, reported/patched by clausf) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@27477 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-11use the proper method to get out of the bridge loopkpfleming1-5/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26851 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-11initialize the bridge result to 'no result', so that we can check for code ↵kpfleming1-2/+2
paths that set it to AST_BRIDGE_COMPLETE inside the loop (thanks Oskar!) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26849 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10remove almost all of the checks of the result from ast_strdupa() or alloca().russell1-7/+2
As it turns out, all of these checks were useless, because alloca will never return NULL. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26451 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10ensure that control frames with payload can be sent to channel drivers via ↵kpfleming1-5/+15
->indicate() update iax2_indicate to pass control frame payload to the connected channel add an API call for sending an indication with payload, and use it for control frames with payload git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26417 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09Make sure that we don't accept an answer on an inbound call and don't permit ↵markster1-5/+14
asterisk to answer an outbound call git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26103 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09use an enum for control frame typeskpfleming1-1/+16
support sending control frames with payload git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26093 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09mark a couple of dubious pieces of coderizzo1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25894 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08Minor cleanup on dtmf calling (bug #7076)markster1-2/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25567 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-05 Make the "Avoided Initial Deadlock for '....', X retries!" a LOG_DEBUG msg ↵bweschke1-1/+1
instead of LOG_WARNING as this only has relevance to developers trying to resolve a possible problem. #6949 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25094 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03remove useless variables, and argument checks for functionsrizzo1-11/+6
that can safely handle a NULL argument. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24464 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03no point in clearing a local variable just before returnrizzo1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24462 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30remove T38_SUPPORT define that is no longer neededkpfleming1-2/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23536 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-26more janitor work, patch from bug 6975.mogorman1-27/+28
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22631 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-24Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have ↵kpfleming1-7/+7
autoconf and menuselect tools for Asterisk! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22267 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21convert to use ast_stream_and_waitrizzo1-9/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22076 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21- use symbolic constants and macros to play with the debug flagrizzo1-20/+14
on the frame counters. Document it in the header file. - provide a single exit point for a function; - mark XXX some unclear parts of the code. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21933 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21make NULL and "" equivalent in cid fields, mark some missing NULL checks.rizzo1-21/+15
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21814 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19move to a different file (channel.c for the time being) therizzo1-0/+55
wrappers around the basic 'say' functions, and redeclare these wrappers as ordinary functions rather than function pointers. This way, alternative implementations of the 'say' functions will only have to implement the basic functions and not the wrappers. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21338 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19- use ast_calloc instead of ast_mallocrizzo1-11/+6
- use ast_channel_lock/unlock in a few places - comment some dubious pieces of code - use memset to zero a buffer git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21311 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18Do not depend on having an end sound for stopping the bridge when time runs ↵file1-3/+3
out. (issue #6979 reported by ppyy) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21130 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-17actually return the number steps... not the number of steps minus 1kpfleming1-2/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20964 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-17add an API so that the number of steps required for a translation path can ↵kpfleming1-4/+7
be acquired don't transcode via SLINEAR when the option is enabled but there is a direct path from the source to the destination git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20962 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16minor formatting fixesrizzo1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20596 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16move some duplicated code outside an if/then/else blockrizzo1-13/+14
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20570 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16make sure there is [almost] only a single exit point for a very longrizzo1-20/+22
function so the flow is easier to follow. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20569 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16simplify the ast_channel walking routines.rizzo1-37/+25
(the previous version was mine, but this way it is definitely more readable). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20543 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16move common conditions to the outside block.rizzo1-11/+9
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20540 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16simplify logic in ast_generic_bridge()rizzo1-22/+17
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20514 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16move common code in one placerizzo1-4/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20513 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16avoid returning in the middle of a switch() in ast_answer()rizzo1-3/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20512 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16simplify function __ast_request_and_dial() as follows:rizzo1-79/+78
- handle immediately failures in ast_request(); This removes the need for checking 'chan' multiple times afterwards. - handle immediately failures in ast_call(), by moving the one-line case at the top of the 'if' statement; - use ast_strlen_zero in several places instead of expanding it inline; - make outstate always a valid pointer; On passing mark an unclear statement and replace a magic number with sizeof(tmp). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20511 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16properly reindent a blockrizzo1-33/+32
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20484 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16add a missing ast_channel_unlock() evidenced by previous commits.rizzo1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20477 f38db490-d61c-443f-a65b-d21fe96a405b