aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2008-07-25Add a missing unlock.mmichelson1-0/+1
Pointed out by Atis Lezdins in #asterisk-dev git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133570 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-25Minor coding guidelines tweaks ...russell1-31/+31
- Use ast_strlen_zero in one place - check for successful string comparison the way most of Asterisk code does it git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133568 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-25When the ast_device_state() function is called to retrieve device state, andrussell1-1/+1
the code checks to see if there is a cached state available, use the aggregate cached state across all servers, and not just the local state. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133566 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-24Merged revisions 133488 via svnmerge from tilghman1-5/+10
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r133488 | tilghman | 2008-07-24 16:17:55 -0500 (Thu, 24 Jul 2008) | 3 lines Fix rtautoclear and rtcachefriends (Closes issue #12707) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133509 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-24I made this change from DEVICE_STATE to DEVICE_STATE_CHANGE, but I had it ↵russell1-1/+1
backwards, this is the right event to subscribe to ... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133486 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-24Print the correct PID in log messages. Prior tommichelson1-7/+9
this commit, only the logger thread's PID would be printed. (closes issue #13150) Reported by: atis Patches: log_pid.diff uploaded by putnopvut (license 60) Tested by: eliel git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133448 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-24Build the logrotate script according to pathstilghman2-4/+6
(Closes issue #13147) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133400 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-24Optionally install logrotate filetilghman1-0/+6
(Closes issue #13148) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133391 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23(closes issue #13144)murf1-21/+37
Reported by: murf Tested by: murf For: J. Geis The 'data' field in the ast_exten struct was being 'moved' from the current dialplan to the replacement dialplan. This was not good, as the current dialplan could have problems in the time between the change and when the new dialplan is swapped in. So, I modified the merge_and_delete code to strdup the 'data' field (the args to the app call), and then it's freed as normal. I improved a few messages; I added code to limit the number of calls to the context_merge_incls_swits_igps_other_registrars() to one per context. I don't think having it called multiple times per context was doing anything bad, but it was inefficient. I hope this fixes the problems Mr. Geiss was noting in asterisk-users, see http://lists.digium.com/pipermail/asterisk-users/2008-July/215634.html git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133299 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23Merged revisions 133295 via svnmerge from qwell1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r133295 | qwell | 2008-07-23 16:49:03 -0500 (Wed, 23 Jul 2008) | 1 line inbandrelease is gone - it's now inbanddisconnect ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133296 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23Blocked revisions 133237 via svnmergekpfleming0-0/+0
........ r133237 | kpfleming | 2008-07-23 16:05:22 -0500 (Wed, 23 Jul 2008) | 2 lines revert an optimization that broke ABI... thanks russell! ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133238 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23Fix issue where tcp in sip is enabled by default, despite what it says in ↵bbryant1-2/+1
the config sample file. Also fix "sip show settings" for tcp connections. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133197 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23Merged revisions 133169 via svnmerge from mmichelson3-4/+12
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r133169 | mmichelson | 2008-07-23 14:39:47 -0500 (Wed, 23 Jul 2008) | 12 lines As suggested by seanbright, the PSEUDO_CHAN_LEN in app_chanspy should be set at load time, not at compile time, since dahdi_chan_name is determined at load time. Also changed the next_unique_id_to_use to have the static qualifier. Also added the dahdi_chan_name_len variable so that strlen(dahdi_chan_name) isn't necessary. Thanks to seanbright for the suggestion. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133171 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23Merged revisions 133104 via svnmerge from mmichelson1-1/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r133104 | mmichelson | 2008-07-23 14:06:16 -0500 (Wed, 23 Jul 2008) | 5 lines Zap/pseudo is ten characters, but DAHDI/pseudo is twelve. The strncmp call in next_channel should account for this. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133106 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23Merged revisions 133101 via svnmerge from mmichelson1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r133101 | mmichelson | 2008-07-23 13:57:17 -0500 (Wed, 23 Jul 2008) | 6 lines Update the "last" channel in next_channel in app_chanspy so that the same pseudo channel isn't constantly returned. related to issue #13124 ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133102 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23Merged revisions 133038 via svnmerge from mmichelson1-3/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r133038 | mmichelson | 2008-07-23 12:50:01 -0500 (Wed, 23 Jul 2008) | 7 lines Small cleanup. Move the declaration of the DAHDI_SPANINFO variable to the block where it is used. This allows one less #ifdef HAVE_PRI to clutter things up. Thanks to Tzafrir for pointing this out on #asterisk-dev ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133041 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23Yet another conversion of '|' to ','tilghman1-4/+2
(closes issue #13137) Reported by: eliel Patches: chan_iax2trunk-IAXPEER.patch uploaded by eliel (license 64) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132981 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23Add logrotate script for Asterisktilghman1-0/+13
(closes issue #13085) Reported by: pabelanger Patches: logrotate uploaded by pabelanger (license 224) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132977 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23Blocked revisions 132974 via svnmergemmichelson0-0/+0
........ r132974 | mmichelson | 2008-07-23 12:05:04 -0500 (Wed, 23 Jul 2008) | 4 lines Fix building of chan_dahdi when HAVE_PRI is not defined. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132975 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23use correct function name... please compile with --enable-dev-modekpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132966 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23Merged revisions 132872 via svnmerge from kpfleming2-28/+75
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r132872 | kpfleming | 2008-07-23 06:52:18 -0500 (Wed, 23 Jul 2008) | 2 lines minor optimization for stringfields: when a field is being set to a larger value than it currently contains and it happens to be the most recent field allocated from the currentl pool, it is possible to 'grow' it without having to waste the space it is currently using (or potentially even allocate a new pool) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132964 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23Merged revisions 132826 via svnmerge from crichter1-1/+14
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r132826 | crichter | 2008-07-23 13:37:50 +0200 (Mi, 23 Jul 2008) | 1 line another Fix because of r119585, this commit has broken high frequented BRI Ports, there was a possibility that a channel, that was marked as in_use would be reused later, the corresponding port could got stuck then. So it is recommended to upgrade for chan_misdn users. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132883 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23remove bogus property that is breaking automergeskpfleming0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132827 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23Well, the content of a channel variable may be longer than the size of a ↵oej1-1/+1
pointer... Thanks, eliel! Reported by: eliel Patches: chan_siptrunk.SIPPEER.patch uploaded by eliel (license 64) (closes issue #13135) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132823 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22Merged revisions 132777 via svnmerge from mmichelson1-5/+296
https://origsvn.digium.com/svn/asterisk/trunk ........ Allow Spiraled INVITEs to work correctly within Asterisk. Prior to this change, a spiraled INVITE would cause a 482 Loop Detected to be sent to the caller. With this change, if a potential loop is detected, the Request-URI is inspected to see if it has changed from what was originally received. If pedantic mode is on, then this inspection is fully RFC 3261 compliant. If pedantic mode is not on, then a string comparison is used to test the equality of the two R-URIs. This has been tested by using OpenSER to rewrite the R-URI and send the INVITE back to Asterisk. (closes issue #7403) Reported by: stephen_dredge Modified: branches/1.4/channels/chan_sip.c ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132795 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22correct fix made in r132777... the code *did* compile in dev-mode, as long ↵kpfleming1-1/+2
as libpri was installed and enabled git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132791 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22Blocked revisions 132787 via svnmergekpfleming0-0/+0
........ r132787 | kpfleming | 2008-07-22 17:11:01 -0500 (Tue, 22 Jul 2008) | 5 lines fix up namespace pollution for dahdi_chan_mode enum correct registration of AMI actions in chan_dahdi; in zap-only mode, only register the Zap flavors of the actions (and use Zap prefixes for headers and acks), but in dahdi+zap mode, register both Zap and DAHDI flavors of actions ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132788 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22Blocked revisions 132784 via svnmergekpfleming0-0/+0
........ r132784 | kpfleming | 2008-07-22 17:09:37 -0500 (Tue, 22 Jul 2008) | 2 lines add rules to create preprocessor output... useful for debugging macros ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132786 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22Merged revisions 132713 via svnmerge from tilghman2-2/+39
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r132713 | tilghman | 2008-07-22 16:19:39 -0500 (Tue, 22 Jul 2008) | 10 lines Merged revisions 132711 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r132711 | tilghman | 2008-07-22 16:14:10 -0500 (Tue, 22 Jul 2008) | 2 lines Fixes for AST-2008-010 and AST-2008-011 ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132778 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22Get chan_dahdi to compile in devmodemmichelson1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132777 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22Merged revisions 132712 via svnmerge from kpfleming1-23/+17
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r132712 | kpfleming | 2008-07-22 16:17:23 -0500 (Tue, 22 Jul 2008) | 6 lines ensure that if any alarms exist at channel creation time, they are handled identically to if they occurred later, so that later alarm clearing will work properly and 'make sense' (closes issue #12160) Reported by: tzafrir ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132721 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22Merged revisions 132704 via svnmerge from kpfleming3-7/+21
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r132704 | kpfleming | 2008-07-22 15:49:41 -0500 (Tue, 22 Jul 2008) | 2 lines make AST_C_COMPILE_CHECK able to print a 'pretty' description of what it is doing ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132705 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22Merged revisions 132645 via svnmerge from oej2-3/+129
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r132645 | oej | 2008-07-22 22:10:26 +0200 (Tis, 22 Jul 2008) | 9 lines The most common question on the #asterisk iRC channel and on mailing lists seems to be in regards to an error message when retransmit fails. This is frequently misunderstood as a failure of Asterisk, not a failure of the network to reach the other party. This document tries to assist the Asterisk user in sorting out these issues by explaining the logic and pointing at some possible causes. Hopefully, we will get other questions now :-) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132703 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22Merged revisions 132641 via svnmerge from kpfleming5-43/+43
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r132641 | kpfleming | 2008-07-22 14:49:11 -0500 (Tue, 22 Jul 2008) | 2 lines use renamed libpri API call for controlling this feature (was improperly named before) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132643 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-21Merged revisions 132571 via svnmerge from kpfleming1-4/+12
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r132571 | kpfleming | 2008-07-21 17:45:16 -0500 (Mon, 21 Jul 2008) | 2 lines teach chan_dahdi how to find the D-channel on BRI spans, and don't attempt to use channel 24 as a D-channel on spans of unexpected sizes ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132573 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-21Add autocompletion to "iax2 set debug peer".bbryant1-17/+18
(closes issue #13129) Reported by: eliel Patches: chan_iax2.c.patch uploaded by eliel (license 64) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132572 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-21Update configuration files to add missing options for jingle, gtalk, bbryant4-2/+8
manager.conf, and features.conf. (closes issue #13128) Reported by: caio1982 Patches: missing_options1.diff uploaded by caio1982 (license 22) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132514 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-21(Step 2 of 2)tilghman2-0/+62
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132511 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-21Optionally build integer-based routines for FSK tone decoding (but defaulttilghman7-1/+473
to the more accurate float-based routines). (Closes issue #11679) (Step 1 of 2) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132510 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-21Fix a bug where SENDTEXTSTATUS isn't set properly when it isn't bbryant1-6/+3
supported on a channel (yet _another_ useful patch by eliel). (closes issue #13081) Reported by: eliel Patches: app_sendtext.c.patch uploaded by eliel (license 64) Tested by: eliel git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132508 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-21Add "iax2 set debug peer" command and remove deprecated iax2 debug bbryant1-153/+111
commands that conflicted with adding new features to the newer debug commaands. (closes issue #13103) Reported by: mvanbaak Patches: 2008071901__issue13103_iax2_set_debug_peer.diff uploaded by mvanbaak (license 7) Tested by: bbryant, mvanbaak git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132470 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-21Fix bug where ast_parse_arg would inadvertantly enable sip tcp when parsing ↵bbryant1-0/+2
a tcpbindaddr if it was disabled. (closes issue #13117) Reported by: pj git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132468 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-21Fix an issue in iax2 where a call that's been rejected still kept an open ↵bbryant1-4/+2
channel on the side that attempted to make the call (not the side of the call that rejected the call). Changes were load tested and also approved by Russell. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132466 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-21make buffers config option (chan_dahdi.conf) parsing safer and added logging ↵jpeeler1-11/+14
in case of failure git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132425 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-21Remove libresample from the Asterisk source tree. It is now available in itsrussell30-10276/+331
own repository, and must be installed like any other library for Asterisk to use. The two modules that require it are codec_resample and app_jack. To install libresample: $ svn co http://svn.digium.com/svn/libresample/trunk libresample $ cd libresample $ ./configure $ make $ sudo make install This code is currently in our own repository because the build system did not include the appropriate targets for building a dynamic library or for installing the library. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132390 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-21Enable higher quality resampling, as it doesn't have a noticeable performancerussell2-2/+2
impact on my machine .. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132388 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-19Merged revisions 132311 via svnmerge from kpfleming1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r132311 | kpfleming | 2008-07-19 11:45:52 -0500 (Sat, 19 Jul 2008) | 2 lines grant a license exception to allow distribution of Asterisk binaries that use the UW IMAP Toolkit (which is licensed under a non-GPL-compatible license) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132312 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-19fix a couple of comments in sqlite resource driver.mvanbaak1-10/+4
(closes issue #13110) Reported by: gknispel_proformatique Patches: res_config_sqlite_comments.patch uploaded by gknispel (license 261) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132277 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-18Fixes problem where manager users loaded from users.conf would be bbryant1-0/+1
removed early (before the routine to load the configuration was finished) because a variable wasn't initialized. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132242 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-18Russell pointed out that using ast_strdupa() within a loop like this istilghman1-44/+93
probably not a good idea, as we might run out of stack space. Therefore, changing this over to use the ast_str infrastructure for buffers is probably a good idea. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132206 f38db490-d61c-443f-a65b-d21fe96a405b