aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2006-11-29Use the proper version of extra sounds. (issue #8441 reported by jtodd)file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48100 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28Add a comment to note near some code that performs a very expensive operationrussell1-0/+14
that occurs for every incoming media frame. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48099 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28resolve a couple of compiler warningsrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48098 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28Merged revisions 48095 via svnmerge from qwell1-0/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48095 | qwell | 2006-11-28 12:26:53 -0600 (Tue, 28 Nov 2006) | 2 lines Export several more variables in top level Makefile. Inspired by issue 8438. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48096 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28don't use outputstr in the struct mansession, it's justrizzo1-38/+21
an extra allocation on a path where we have way too many already. Unfortunately the AMI-over-HTTP requires multiple copies, because we need to generate a header, then the raw output to an intermediate buffer, then convert it to html/xml, and finally copy everything into a malloc'ed buffer because that's what the generic_http_callback interface expects. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48090 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28Merged revisions 48088 via svnmerge from file1-5/+0
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r48088 | file | 2006-11-28 11:57:16 -0500 (Tue, 28 Nov 2006) | 10 lines Merged revisions 48087 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r48087 | file | 2006-11-28 11:56:01 -0500 (Tue, 28 Nov 2006) | 2 lines According to the research I have done we never needed to include compiler.h in the first place so let's not! (issue #8430 reported by edguy3) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48089 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28initialize the dynamic string in a sane way.rizzo1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48086 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28some simplifications torizzo1-7/+9
ast_dynamic_str_thread_build_va_couldnt_we_choose_a_shorter_name() I am unsure whether the truncation of the string in case of a failed attempt should be done unconditionally. See the XXX mark. Russel, ideas ? git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48084 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28do not return 500 Internal error if the AMI command providesrizzo1-2/+3
no output. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48083 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28mosty comment and documentation cleanup on waitevent.rizzo1-17/+30
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48082 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28Move the code to purge stale sessions to a function,rizzo1-25/+31
to simplify the body of the main loop of the accepting thread. Rename purge_unused() to purge_events() so one knows what the function does. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48081 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28Various simplifications of the code:rizzo1-12/+21
+ use a wrapper around ast_carefulwrite(), used in two places, to make life easier when we decide to use a different interface to the socket. + put an ast_verbose() message on astman_append on a case that should never happen now that we use a temporary file for AMI-over-HTTP sessions + document and slightly simplify process_events() by removing unnecessary parentheses. + in get_input(), use ast_wait_for_input() instead of poll(). We may want to move to a completely non-blocking git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48080 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28More informative message on invalid commands.rizzo1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48079 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28another normalization of AMI vs HTTP identification.rizzo1-1/+1
Should really define a macro IS_AMI(s) so it is clear what we want to do. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48078 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28always use managerid to determine whether this is an AMI or HTTP session,rizzo1-9/+15
and document it. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48077 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28In the previous commit i forgot to set the poll_timeout to -1,rizzo1-0/+2
causing the http threads to do busy waiting around the socket... Fix the mistake, sorry for the inconvenience! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48074 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27document the support for running a server on TCP/TLS andrizzo1-13/+63
opening an SSL socket. We are almost ready to make this code available to other modules. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48073 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27add a new http.conf option, sslbindaddr.rizzo2-3/+15
Because https is more secure than http, it usually makes sense to keep this service more open than the one on the unencrypted port. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48071 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27in the helper thread, separate the FILE * creation from the actualrizzo1-8/+22
function doing work on the socket. This is another generalization to provide a generic mechanism to open TCP/TLS socket with a thread managing the accpet and children threads managing the individual sessions. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48067 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27staticize a global variable and remove an unused field structure.rizzo1-2/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48062 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27Merged revisions 48054 via svnmerge from file1-14/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r48054 | file | 2006-11-27 13:06:50 -0500 (Mon, 27 Nov 2006) | 10 lines Merged revisions 48053 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r48053 | file | 2006-11-27 13:03:57 -0500 (Mon, 27 Nov 2006) | 2 lines Use the proper function to get the new message count instead of always using the filesystem. (issue #8421 reported by slimey) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48056 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27Merged revisions 48049 via svnmerge from tilghman1-17/+14
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r48049 | tilghman | 2006-11-27 11:20:37 -0600 (Mon, 27 Nov 2006) | 10 lines Merged revisions 48045 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r48045 | tilghman | 2006-11-27 11:15:54 -0600 (Mon, 27 Nov 2006) | 2 lines Random MOH wasn't really random (bug 8381) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48050 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27Blocked revisions 48046 via svnmergerussell0-0/+0
........ r48046 | russell | 2006-11-27 12:17:40 -0500 (Mon, 27 Nov 2006) | 2 lines Remove a couple of unused variables (issue #8380, casper) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48048 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27More fixes for referencing a structure after it has been freed. (issue #8425 ↵file1-3/+3
reported by arkadia) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48040 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27Merged revisions 48038 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r48038 | file | 2006-11-27 10:32:19 -0500 (Mon, 27 Nov 2006) | 10 lines Merged revisions 48037 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r48037 | file | 2006-11-27 10:30:37 -0500 (Mon, 27 Nov 2006) | 2 lines Do not reference the freed outgoing structure in the debug message. (issue #8425 reported by arkadia) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48039 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27remove an extra comma in an initializerrizzo1-1/+1
Detected by: AST_DEVMODE=yes git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48034 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27Doxygen updatesoej2-3/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48033 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27Change error message (imported from 1.4)oej1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48032 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-26- Add some comments on thread storage with a brief explanation of what it isrussell2-1/+24
as well as what the motivation is for using it. - Add a comment by the declaration of ast_inet_ntoa() noting that this function is not reentrant, and the result of a previous call to the function is no longer valid after calling it again. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48019 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-26Merged revisions 48017 via svnmerge from murf1-2/+11
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48017 | murf | 2006-11-25 17:26:16 -0700 (Sat, 25 Nov 2006) | 1 line might as well also document the raw values of the flag vars ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48018 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-26Merged revisions 48015 via svnmerge from murf1-0/+12
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48015 | murf | 2006-11-25 17:01:34 -0700 (Sat, 25 Nov 2006) | 1 line A little bit of func_cdr documentation upgrade-- no bug# involved, although 8221 may have inspired it. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48016 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-25Little fix so we use the right messagemattf1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48014 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-25Make compiler happiermattf1-10/+10
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48013 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-25bug fixmattf1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48012 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-25Make sure we don't send a group reset on a group larger than 32 CICsmattf1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48011 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-25Add ss7 show linkset commandmattf1-7/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48010 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-25Updates to show linkset commandmattf1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48009 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-25generalize a bit the functions used to create an tcp socketrizzo1-18/+38
and then run a service on it. The code in manager.c does essentially the same things, so we will be able to reuse the code in here (probably moving it to netsock.c or another appropriate library file). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48008 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-25Changing ERROR to lesser level. Imported from 1.2/1.4oej1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48004 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-25- Adding comment on suspicious memory allocation. Seems like it's never ↵oej1-6/+11
freed, but I don't have a clear understanding of the frame allocation/deallocation, so I just mark this for investigation. (Reported by Ed Guy). We're trying to see if a free() hurts... - Doxygen comments on p2p rtp bridge stuff. I am a bit worried about shortcutting rtcp this way, but will need feedback from rtcp gurus. This should work for video calls too, and possibly UDPTL. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48003 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-25set pointers to NULL after freeing memory to avoid multiple free()rizzo1-0/+1
probably 1.4/1.2 issue as well if someone can look into that. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48001 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-24removed the svnmerge-integrated property from trunk; it's confusing svnmerge ↵murf0-0/+0
in newly created branches git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47997 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-24This fix inspired by a patch supplied in bug 8189, which points out problems ↵murf1-0/+1
with the PLC code git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47995 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-24Doxygen updateoej4-22/+148
- Document cause codes - Document a bit more on channel variables - global, predefined and local - Fix some doxygen in channel.h. Adding one comment for two definitions does not work. They won't be copied to each. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47986 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-23Remove unused memory allocationoej1-4/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47960 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-23Document new configuration option.oej1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47957 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-22Merged revisions 47944 via svnmerge from file1-22/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r47944 | file | 2006-11-22 16:47:43 -0500 (Wed, 22 Nov 2006) | 2 lines Video will never reach Packet2Packet bridging and can do more harm then good. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47945 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-22Clarify a bit more.file1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47935 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-22Need to update the CHANGES file as well for the maxfiles option.file1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47934 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-22Add support to set the maximum number of files open when Asterisk loads ↵file1-0/+26
using the 'maxfiles' configuration option. (issue #7499 reported by rkarlsba) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47933 f38db490-d61c-443f-a65b-d21fe96a405b