aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
AgeCommit message (Collapse)AuthorFilesLines
2007-01-05Make codec_zap and chan_zap also depend on zaptel.qwell1-0/+1
This fixes an issue (8727) with zaptel being in a different directory, using --with-zaptel. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49705 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05reduce stack consumption for AMI and AMI/HTTP requests by nearly 20K in most ↵kpfleming1-46/+51
cases git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49676 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-02remove comment that is unrelated to this functionkpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49165 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-01check specifically for VLDTMF and transcoding support in the system's Zaptel ↵kpfleming1-1/+1
installation, and make only the modules that need those features dependent on them (this will allow building the other Zaptel-using parts of Asterisk against older versions of Zaptel or those on other platforms that haven't caught up yet to the Linux version) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49102 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-30Use asprintf to build the channel names instead of custom function. I ↵file1-3/+3
believe the custom function is doing some things that are not portable across all implementations. (issue #8570 reported by hterag & issue #8692 reported by nicolasg) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49070 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-10Merged revisions 48371 via svnmerge from murf1-2/+9
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r48371 | murf | 2006-12-09 19:14:13 -0700 (Sat, 09 Dec 2006) | 1 line This version applies the patch suggested by stevens in bug 7836 (make inbound channel RINGING state consistent with other channels). ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48372 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13Merged revisions 47522 via svnmerge from tilghman1-1/+3
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r47522 | tilghman | 2006-11-12 18:34:44 -0600 (Sun, 12 Nov 2006) | 2 lines Don't play dialtone if the seizing the channel fails (Bug 7754) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47523 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-10Make sure we don't use 32bits when we only need one bit.mattf1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47480 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-10Fix for #7321. Be able to explicitly hide callerid name for switches that bork mattf1-0/+9
on it. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47462 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-09Work around an issue that caused menuselect to display a bogus description forrussell1-0/+4
app_voicemail and chan_zap. These modules use some preprocessor directives to determine what it will report to Asterisk as its description. However, the way we extract this information from the source files for menuselect is not smart enough to figure this out. (issue #8326, #8328) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47391 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-07These mods are to solve the problem in bug 7506. It's a lot of rework to ↵murf1-21/+26
solve a fairly small problem... such is life. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47303 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-01Prevent an infinite loop when config processing gets to a jitterbuffer optionrussell1-2/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@46744 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-27move the copy of the default settings to the global settings back out ofrussell1-3/+4
process_zap, so that they aren't overwritten when process_zap is called multiple times git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@46370 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-27Instead of iterating all of the options once to look for jitterbuffer options,russell1-6/+6
and then again for everything else, move the processing of jitterbuffer options into the main loop so that there are no erroneous messages about ignoring unknown options. (issue #8226) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@46358 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-04update thread creation code a bitkpfleming1-3/+3
reduce standard thread stack size slightly to allow the pthreads library to allocate the stack+data and not overflow a power-of-2 allocation in the kernel and waste memory/address space add a new stack size for 'background' threads (those that don't handle PBX calls) when LOW_MEMORY is defined git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44378 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20Fix some chan_zap warning messages, when HAVE_PRI is not defined.qwell1-7/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43374 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20Constify the result of a config retrieval function, to avoid mutilation ↵tilghman1-3/+3
(issue 7983). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43364 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20Merged revisions 43314 via svnmerge from kpfleming1-4/+4
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r43314 | kpfleming | 2006-09-20 00:08:05 -0500 (Wed, 20 Sep 2006) | 2 lines make some more functions static ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43315 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19Various updates from PCadach's chan_h323-live branchmattf1-1/+16
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43294 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-18merge qwell's CLI verbification workkpfleming1-32/+55
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43212 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-16merge markster's usersconf branch with some slight changeskpfleming1-181/+211
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43052 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-16Fix the dtmf dialtone thingmarkster1-1/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43039 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-14Merged revisions 42946 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r42946 | tilghman | 2006-09-14 17:16:31 -0500 (Thu, 14 Sep 2006) | 2 lines Error message references wrong argument (Issue 7951) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42947 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-10Uhm, make Zap actually work again. Did anybody actually test that code?markster1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42654 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31everything that loads a config that needs a config file to runmogorman1-1/+1
now reports AST_MODULE_LOAD_DECLINE when loading if config file is not there, also fixed an error in res_config_pgsql where it had a non static function when it should. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41633 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31Merge in VLDTMF support with Zaptel/Core done by the ever great Darumkilla ↵file1-47/+108
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-29make menuselect configure process be silent when possiblekpfleming1-3/+5
don't use #ifdef inside a macro call... it appears various versions of gcc have bugs related to this git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41284 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-29Merge team/russell/frame_cachingrussell1-3/+0
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-25Note to self, always compile before committing.mattf1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41068 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-25Don't send proceeding twice (#7800)mattf1-2/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41067 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21merge new_loader_completion branch, including (at least):kpfleming1-15/+9
- restructured build tree and makefiles to eliminate recursion problems - support for embedded modules - support for static builds - simpler cross-compilation support - simpler module/loader interface (no exported symbols) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-09This bug existed in one extra place that is not also in 1.2 ... So, fix it!russell1-2/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39455 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-07Merged revisions 39081 via svnmerge from russell1-10/+10
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r39081 | russell | 2006-08-06 21:28:29 -0400 (Sun, 06 Aug 2006) | 7 lines Fix a crash reported to me by hads on IRC. This crash would occur with the use of the "distinctiveringaftercid" option. Also, on this user's system, the crash would only occur when built without optimizations. This is because the bug is that the code would write past the end of an array that was allocated on the stack, and the structure of the stack is different with or without optimizations enabled. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39082 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-07minor cleanupsrussell1-14/+7
- use appropriate types in some assignments - use ast_strlen_zero() - don't manually free cid fields since ast_set_callerid() will handle it git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39058 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-05Merged revisions 38903-38904 via svnmerge from russell1-2/+11
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r38903 | russell | 2006-08-05 01:07:39 -0400 (Sat, 05 Aug 2006) | 2 lines suppress a compiler warning about the usage of a potentially uninitialized variable ........ r38904 | russell | 2006-08-05 01:08:50 -0400 (Sat, 05 Aug 2006) | 10 lines Fix an issue that would cause a NewCallerID manager event to be generated before the channel's NewChannel event. This was due to a somewhat recent change that included using ast_set_callerid() where it wasn't before. This function should not be used in the channel driver "new" functions. (issue #7654, fixed by me) Also, fix a couple minor bugs in usecount handling. chan_iax2 could have increased the usecount but then returned an error. The place where chan_sip increased the usecount did not call ast_update_usecount() ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38905 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-25This exact deadlock situation that I observed can't happen in trunk due to therussell1-1/+7
recent hold changes so that MOH is not started on the bridged channel directly. However, the change is still not a bad idea. Merged revisions 38200 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r38200 | russell | 2006-07-25 15:43:38 -0400 (Tue, 25 Jul 2006) | 6 lines This resolves a deadlock that a tech support customer was getting frequently when his users would answer call waiting. If another thread is currently holding the zt_pvt lock for the first channel, unlock both channels and let asterisk retry the native bridge, just like what is done for the second channel directly below these changes. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38201 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-22use ast_atomic_fetchadd_int in chan_zap, sip, and iax2 for usecount handlingrussell1-9/+2
and fix a couple little things in passing - usecnt was not initialized in chan_iax2 - ast_update_use_count() was not called after incrementing the count in chan_sip git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38077 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-19merge Russell's 'hold_handling' branch, finally implementing music-on-hold ↵kpfleming1-37/+59
handling the way it was decided at AstriDevCon Europe 2006 (and the way people really want it to be) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37988 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-14add missing unregistration of a manager action on module unloadrussell1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37638 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-12Merged revisions 37417 via svnmerge from kpfleming1-47/+10
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r37417 | kpfleming | 2006-07-12 08:18:21 -0500 (Wed, 12 Jul 2006) | 2 lines get rid of some more printf's (although most of these were ifdef-ed out) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37418 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-08Support hold/unhold in Zap, update IAX2 parser to know about modern ↵markster1-0/+30
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-06Asterisk portion of the T309 patch. (#7271)mattf1-26/+37
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37226 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-06make chan_zap use proper test for libpri supportkpfleming1-80/+80
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37141 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-05update dependency information to match new names for dependencieskpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37085 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-05prepare Asterisk for new zaptel.h/tonezone.h installation locationskpfleming1-2/+2
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/+1
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-24search for Zaptel and libtonezone separately in the configure scriptkpfleming1-0/+1
various other minor fixes git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35812 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-23revert my changes that converted the jb on the channel to be dynamicallyrussell1-5/+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-23reduce indentationrussell1-140/+135
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35629 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-22- dynamically allocate the ast_jb structure that is on the channel structurerussell1-8/+14
so that channels not using a jitterbuffer don't waste as much memory - ensure that the channel drivers that use jitterbuffers can handle a failure from configuring a jitterbuffer on a new channel because of a memory allocation error - On passing through these channel drivers, configure the jitterbuffer before starting the PBX thread instead of afterwards. If the pbx fails to start for whatever reason, this would have caused a crash. - Also on passing, move the increase of the usecount to after all of the possible failure conditions in the function - fix a place where ast_update_use_count() was not called - ensure that the owner channel pointer of the channel pvt strcutures is set to NULL in failure conditions git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35553 f38db490-d61c-443f-a65b-d21fe96a405b