summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-01-19Merged revisions 51326 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51326 | russell | 2007-01-19 13:02:55 -0600 (Fri, 19 Jan 2007) | 2 lines Bump the cleancount since my last commit changed the channel structure. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19Merged revisions 51311 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51311 | russell | 2007-01-19 11:49:38 -0600 (Fri, 19 Jan 2007) | 23 lines Merge the changes from the /team/group/vldtmf_fixup branch. The main bug being addressed here is a problem introduced when two SIP channels using SIP INFO dtmf have their media directly bridged. So, when a DTMF END frame comes into Asterisk from an incoming INFO message, Asterisk would try to emulate a digit of some length by first sending a DTMF BEGIN frame and sending a DTMF END later timed off of incoming audio. However, since there was no audio coming in, the DTMF_END was never generated. This caused DTMF based features to no longer work. To fix this, the core now knows when a channel doesn't care about DTMF BEGIN frames (such as a SIP channel sending INFO dtmf). If this is the case, then Asterisk will not emulate a digit of some length, and will instead just pass through the single DTMF END event. Channel drivers also now get passed the length of the digit to their digit_end callback. This improves SIP INFO support even further by enabling us to put the real digit duration in the INFO message instead of a hard coded 250ms. Also, for an incoming INFO message, the duration is read from the frame and passed into the core instead of just getting ignored. (issue #8597, maybe others...) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19As the comment in the diff says:Luigi Rizzo
AST_INLINE_API() is a macro that takes a block of code as an argument. Using preprocessor #directives in the argument is not supported by all compilers, and it is a bit of an obfuscation anyways, so avoid it. As a workaround, define a macro that produces either its argument or nothing, and use that instead of #ifdef/#endif within the argument to AST_INLINE_API(). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51312 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19in the interest of portability, avoid using %zd when allLuigi Rizzo
we need is to print is an integer that fits in 16 bits. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51310 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19sizeof() is compatible with format %d so don't be tooLuigi Rizzo
picky on printf formats. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51309 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19remove variable declaration in the middle of a blockLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19Regenerate configure script to reflect recent zaptel changesRussell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51305 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19Include tonezone.h for linux, tooRussell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19Merged revisions 51302 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r51302 | russell | 2007-01-19 10:56:17 -0600 (Fri, 19 Jan 2007) | 12 lines Merged revisions 51300 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r51300 | russell | 2007-01-19 10:44:09 -0600 (Fri, 19 Jan 2007) | 4 lines Fix a memory leak on command line tab completion. The container for the matches was freed, but the individual matches themselves were not. (issue #8851, arkadia) ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19forgot to add AST_LIBS += $(BKTR_LIB)Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51301 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19include "asterisk/zapata.h" to get the zaptel headers.Luigi Rizzo
this should be the last one left around... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19whoops, fix a cut&paste error...Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19slight change to the initialization of a structure,Luigi Rizzo
also using '\0' to make it clear we need a (char)0 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19Break out of the config processing loop for manager.conf once the correct userRussell Bryant
has been found so that 'cat' is non-NULL. This way, users.conf is only checked when necessary. (issue #8852, akohlsmith, committed patch a bit different) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19include "asterisk/zapata.h" to get the zaptel headers.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19include "asterisk/zapata.h" to get the zaptel headersLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19include "asterisk/zapata.h" instead of testing forLuigi Rizzo
the location of the header files. On passing, add a cast to insure -Werror clean compilation on FreeBSD 6.x, where time_t does not match %ld git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19include "asterisk/zapata.h" instead of lookingLuigi Rizzo
directly for the zaptel.h and tonezone.h git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51292 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19another freebsd-specific check for zaptel compatibilityLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19Add a stub file to find the zaptel headers in the rightLuigi Rizzo
place, rather than repeating the check on every single file. Changes to the individual files are coming. The header file name has been suggested by kevin. Approved by: kpfleming git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19forgot to add BKTR_INCLUDE and BKTR_LIB in makeopts.inLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51289 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19add comments that AC_USE_SYSTEM_EXTENSIONS and AST_PROG_LDLuigi Rizzo
do not work on FreeBSD - presumably they depend on some auto* feature that is not installed by default. I am not sure on what is a proper fix. In my local copy i simply comment them out. The AST_PROG_LD is a long standing isse, there were attempts to fix it in the past but probably not enough has been copied to acinclude.m4, and i had forgotten about it because i commented out this call in configure.ac long ago git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51288 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19Add check for backtrace support on platforms that do not haveLuigi Rizzo
it natively. Part of it leaked in in a previous commit. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51287 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19remove a useless (and harmful on some platforms) -lnslLuigi Rizzo
from IKSEMEL_LIB. Actually i am not even sure whether -lgcrypt -lgpg-error are needed. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51286 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19simplify checking for zaptel version and locationLuigi Rizzo
(for linux, this is functionally equivalent to the previous method; for FreeBSD, it re-adds inspection in $PREFIX/zaptel.h). Please wait to regenerate the "configure" file as i have another few pending changes to configure.ac Not applicable to 1.4 until acinclude.m4 is also updated. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51285 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19Merged revisions 51274 via svnmerge from Dwayne M. Hubbard
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51274 | dhubbard | 2007-01-18 18:17:32 -0600 (Thu, 18 Jan 2007) | 3 lines chan_zap compiles without libpri after committing 7877 patch ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51275 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19Merged revisions 51272 via svnmerge from Dwayne M. Hubbard
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r51272 | dhubbard | 2007-01-18 17:56:49 -0600 (Thu, 18 Jan 2007) | 11 lines Merged revisions 51271 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r51271 | dhubbard | 2007-01-18 17:47:10 -0600 (Thu, 18 Jan 2007) | 3 lines issue 7877: chan_zap module reload does not use default/initialized values on subsequent loads. Reset configuration variables to default values prior to parsing configuration file. ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18Merged revisions 51265 via svnmerge from Jason Parker
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51265 | qwell | 2007-01-18 16:50:23 -0600 (Thu, 18 Jan 2007) | 4 lines Add some more checks for option_debug before ast_log(LOG_DEBUG, ...) calls. Issue 8832, patch(es) by tgrman ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18Merged revisions 51262 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51262 | russell | 2007-01-18 15:54:23 -0600 (Thu, 18 Jan 2007) | 5 lines Ensure that the locations given to the Asterisk configure script for ncurses, curses, termcap, or tinfo are further passed along to the editline configure script. This fixes some cross-compilation environments. (issue #8637, reported by ovi, patch by me) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51263 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18Merged revisions 51256 via svnmerge from Tilghman Lesher
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r51256 | tilghman | 2007-01-18 15:14:24 -0600 (Thu, 18 Jan 2007) | 10 lines Merged revisions 51255 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r51255 | tilghman | 2007-01-18 15:11:34 -0600 (Thu, 18 Jan 2007) | 2 lines If a timezone is not specified, assume localtime (instead of gmtime) (Issue #7748) ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18Merged revisions 51251 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51251 | file | 2007-01-18 14:17:34 -0500 (Thu, 18 Jan 2007) | 2 lines Only start timeout once we reach the end of the files to play back. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51252 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18Fix filename completion for "module load" and "load" CLI commands.Jason Parker
Issue 8846 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18Fix trunk version of manager support for users.conf. Now it actually paysRussell Bryant
attention to the "hasmanager" option. (Thanks to Anthony L. for pointing out that this was broken!) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51247 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18Blocked revisions 51245 via svnmergeJason Parker
........ r51245 | qwell | 2007-01-18 12:42:00 -0600 (Thu, 18 Jan 2007) | 4 lines Fix an issue with file name completion in "module load" and "load". Issue 8846 ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51246 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18Merged revisions 51243 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51243 | file | 2007-01-18 13:36:35 -0500 (Thu, 18 Jan 2007) | 2 lines Copy MOH settings when calling a peer so that if they put someone on hold or get put on hold themselves they get the right music class. (issue #8840 reported by mdu113) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51244 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18Merged revisions 51241 via svnmerge from Jason Parker
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51241 | qwell | 2007-01-18 12:28:29 -0600 (Thu, 18 Jan 2007) | 2 lines Fix an issue with deprecated commands ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18Merged revisions 51236 via svnmerge from Tilghman Lesher
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r51236 | tilghman | 2007-01-18 11:49:41 -0600 (Thu, 18 Jan 2007) | 10 lines Merged revisions 51235 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r51235 | tilghman | 2007-01-18 11:42:17 -0600 (Thu, 18 Jan 2007) | 2 lines Document all the fields, including the indication that "uniqueid" should not be renamed. ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51237 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18Merged revisions 51233 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51233 | russell | 2007-01-18 11:18:43 -0600 (Thu, 18 Jan 2007) | 3 lines Make the "hasmanager" option in users.conf actually have an effect. (issue #8740, LnxPrgr3) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18Update ast_append_ha() usagePaul Cadach
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18Add 's' option to Page application which checks devicestate before dialing. ↵Joshua Colp
(issue #8673 reported by sunder) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51215 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18Merged revisions 51213 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51213 | file | 2007-01-17 19:48:55 -0500 (Wed, 17 Jan 2007) | 2 lines Build the IMAP remote directory string better and properly. Fix an issue with encoding the GSM voicemail when attaching to the voicemail. (issue #8808 reported by akohlsmith) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51214 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18Merged revisions 51211 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51211 | file | 2007-01-17 19:18:44 -0500 (Wed, 17 Jan 2007) | 2 lines Pass data as well for hold/unhold/vidupdate frames. (issue #8840 reported by mdu113) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51212 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-17Merged revisions 51205 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51205 | russell | 2007-01-17 17:31:11 -0600 (Wed, 17 Jan 2007) | 5 lines Fix some instances where when loading func_odbc, a double-free could occur. Also, remove an unneeded error message. If the failure condition is actually a memory allocation failure, a log message will already be generated automatically. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51207 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-17Merged revisions 51204 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51204 | russell | 2007-01-17 16:09:52 -0600 (Wed, 17 Jan 2007) | 4 lines Instead of dividing the offset by 2 directly, make it more clear that the offset is being scaled by the size of the elements in the buffer. (Inspired by a discussing on the asterisk-dev list about this code) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-17Merged revisions 51198 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r51198 | russell | 2007-01-17 15:18:35 -0600 (Wed, 17 Jan 2007) | 11 lines Merged revisions 51197 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r51197 | russell | 2007-01-17 15:17:21 -0600 (Wed, 17 Jan 2007) | 3 lines Move the check for a failure of ast_channel_alloc() to before locking the pvt structure again. Otherwise, on a failure, this will cause a deadlock. ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-17Merged revisions 51195 via svnmerge from Tilghman Lesher
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r51195 | tilghman | 2007-01-17 14:56:15 -0600 (Wed, 17 Jan 2007) | 12 lines Merged revisions 51194 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r51194 | tilghman | 2007-01-17 14:52:21 -0600 (Wed, 17 Jan 2007) | 4 lines When ast_strip_quoted was called with a zero-length string, it would treat a NULL as if it were the quoting character (and would thus return the string in memory immediately following the passed-in string). ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51196 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-17Don't hold channel lock while sleeping/waiting for audio stream to get ↵Joshua Colp
setup. (issue #8834 reported by phsultan) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51193 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-17Merged revisions 51186 via svnmerge from Jason Parker
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51186 | qwell | 2007-01-17 11:36:53 -0600 (Wed, 17 Jan 2007) | 2 lines re-add "password" for realtime voicemail ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-17Merged revisions 51182 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51182 | file | 2007-01-17 01:36:41 -0500 (Wed, 17 Jan 2007) | 2 lines Return the correct result when directly writing out a packet so that the core doesn't then decide to handle it the regular way again. (issue #8833 reported by rcourtna) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51183 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-17Merged revisions 51176 via svnmerge from Kevin P. Fleming
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51176 | kpfleming | 2007-01-16 19:29:12 -0600 (Tue, 16 Jan 2007) | 2 lines a few more coding style cleanups and one bug fix (from AnthonyL) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51177 65c4cc65-6c06-0410-ace0-fbb531ad65f3