aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2008-04-17Merged revisions 114195 via svnmerge from tilghman1-0/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114195 | tilghman | 2008-04-17 07:56:38 -0500 (Thu, 17 Apr 2008) | 8 lines Add special case for when the agi cannot be executed, to comply with the documentation that we return failure in that case. (closes issue #12462) Reported by: fmueller Patches: 20080416__bug12462.diff.txt uploaded by Corydon76 (license 14) Tested by: fmueller ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114196 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-17Update the CHANGES file with yesterday's ChanSpy change. Sorry Kevin, just ↵seanbright1-0/+2
saw your e-mail. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114194 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-17Merged revisions 114191 via svnmerge from seanbright1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114191 | seanbright | 2008-04-17 06:51:20 -0400 (Thu, 17 Apr 2008) | 1 line Make sure we have enough room for the recording's filename. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114192 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-16This is the scariest commit I've done in a long time. This is the ↵murf4-640/+1684
astobj2-ification of chan_sip. I've tested a number of scenarios like crazy. It used to have 4x the call setup/teardown performance of trunk, but now it's roughly at parity. I will attempt to find the bottlenecks and get it back to the 4x mark. The changes made were somewhat invasive, but the value to the community of these upgrades outweighs waiting further for more testing. Every change being made to chan_sip was lousing this code up when we tried to merge. Peers, Users, Dialogs, are all now astobj2 objects, indexed via hashtables. Refcounting is used to track objects and free them at the bitter end of their lives. Please file issues on bugs.digium.com, and PLEASE, please, please be patient. One natural advantage to all the hash-table work is that loading large sip.conf files full of thousands of peers now goes much faster. One more please: PLEASE help thrash this code and test it. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114190 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-16Standardized routines for forking processes (keeps all the specialized code ↵tilghman13-137/+163
in one place). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114188 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-16A small enhancement-- I added the routine log_show_lock to utils.c, which if ↵murf2-1/+61
the mentioned lock has been acquired, this routine will log to the console the normal info about that lock you'd see from the CLI when you do a 'core show locks'. It's solely for debug-- if the lock is NOT acquired, there is no output. I use it to show 'unexpected' locks, to see where/why a lock is pre-locked. This command is to be called from points of interest, like just before a trylock, and helps to spot fleeting, highly temporal locks that normally are not locked... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114187 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-16Merged revisions 114184 via svnmerge from kpfleming1-0/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114184 | kpfleming | 2008-04-16 15:46:38 -0500 (Wed, 16 Apr 2008) | 6 lines use the ZT_SET_DIALPARAMS ioctl properly by initializing the structure to all zeroes in case it contains fields that we don't write values into (which it does as of Zaptel 1.4.10) (closes issue #12456) Reported by: fnordian ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114185 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-16Introducing a small optimization to event_unsubscribe; events now use a ↵murf1-24/+25
Doubly-Linked list for events, gives fast deletions, for the sake of channel driver mwi events. From team/murf/bug11210. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114183 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-16Introducing a small upgrade to the ast_sched_xxx facility, to keep it from ↵murf3-37/+206
eating up lots of cpu cycles. See CHANGES. From the team/murf/bug11210 branch. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114182 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-16Blocked revisions 114180 via svnmergetilghman0-0/+0
........ r114180 | tilghman | 2008-04-16 14:59:37 -0500 (Wed, 16 Apr 2008) | 3 lines Backport revisions for latest vpb drivers to 1.4 (Closes issue #12457) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114181 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-16Introducing various astobj2 enhancements, chief being a refcount tracing ↵murf5-66/+959
feature, and various documentation updates in astobj2.h, and the addition of standalone utility, refcounter, that will filter the trace output for unbalanced, unfreed objects. This comes from the team/murf/bug11210 branch. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114175 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-16Blocked revisions 114173 via svnmergeqwell0-0/+0
........ r114173 | qwell | 2008-04-16 12:30:09 -0500 (Wed, 16 Apr 2008) | 7 lines Fix "fallthrough" behavior here, so config options in a previously configured user don't override settings in general. (closes issue #12458) Reported by: tzafrir Patches: chanzap_users_sections.diff uploaded by tzafrir (license 46) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114174 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-16Introducing doubly linked lists to trunk from branch team/murf/bug11210.murf3-0/+1340
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114172 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-16Blocked revisions 114167 via svnmergefile0-0/+0
........ r114167 | file | 2008-04-16 11:10:46 -0300 (Wed, 16 Apr 2008) | 6 lines Include the proper headers for using mkdir on FreeBSD. (closes issue #12430) Reported by: ys Patches: app_meetme.c.diff uploaded by ys (license 281) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114168 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-16Add the ability to disable channel technology name playback when speaking ↵seanbright1-9/+19
the current channel name git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114165 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-15Oops, buffer wasn't long enough for querytilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114152 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-15Merged revisions 114148 via svnmerge from oej1-0/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114148 | oej | 2008-04-15 22:26:05 +0200 (Tis, 15 Apr 2008) | 2 lines Handle subscribe queues in all situations... Thanks to festr_ on irc for telling me about this bug. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114151 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-15Adding chanvar to SIPPEER from 1.4 branchoej1-0/+9
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114150 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-15If somebody enters a digit during ast_stream_and_wait, the return value is ↵qwell1-5/+14
the digit, which we need to use later. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114149 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-15These changes: murf1-19/+62
a. fix a self-found problem with SPAWN-ing an extension, where matches were not being found b. correct some wording in a comment c. Add some debug for future debugging. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114146 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-15I'm not sure why, but "this" bothers me. Ba dum dum.seanbright1-12/+11
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114143 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-15Shorten the mac address pattern, since some phones use different identifiers ↵qwell1-1/+1
(such as the i2050 softphone). (closes issue #12398) Reported by: c_hans Patches: chan_unistim_svn.diff uploaded by c (license 460) Tested by: c_hans git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114141 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-15Merged revisions 114138 via svnmerge from qwell1-0/+32
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114138 | qwell | 2008-04-15 12:17:18 -0500 (Tue, 15 Apr 2008) | 7 lines Update Digium autosupport script, for more useful information. (closes issue #12452) Reported by: angler Patches: autosupport.diff uploaded by angler (license 106) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114139 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-15Merged revisions 114133 via svnmerge from qwell1-2/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114133 | qwell | 2008-04-15 11:18:08 -0500 (Tue, 15 Apr 2008) | 8 lines Allow autofill to work in the general section of queues.conf. Additionally, don't try to (re)set options when they have empty values in realtime (all unset columns would have an empty value). (closes issue #12445) Reported by: atis Patches: 12445-autofill.diff uploaded by qwell (license 4) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114134 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-15Convert several DEBUG logs into ast_debug.qwell1-6/+3
(closes issue #12444) Reported by: IgorG Patches: channel_c_debug.diff uploaded by IgorG (license 20) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114131 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-14Need a new buffer for each looptwilson1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114127 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-14Don't unref user twice on failure. Also, when adding sorted list of users, ↵twilson1-2/+1
it is best to check the entry already in the list for a "next" entry instead of the newly created entry... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114124 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-14Merged revisions 114120 via svnmerge from qwell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114120 | qwell | 2008-04-14 13:31:57 -0500 (Mon, 14 Apr 2008) | 7 lines The call_token on the pvt can occasionally be NULL, causing a crash. If it is NULL, we can skip this channel, since it can't the one we're looking for. (closes issue #9299) Reported by: vazir ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114121 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-14Merged revisions 114117 via svnmerge from mmichelson1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114117 | mmichelson | 2008-04-14 12:41:03 -0500 (Mon, 14 Apr 2008) | 11 lines Increase the retry count when attempting to show channels. This apparently cleared an issue someone was seeing when attempting to show channels when the load was high. (closes issue #11667) Reported by: falves11 Patches: 11677.txt uploaded by russell (license 2) Tested by: falves11 ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114118 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-14Make tab-completion work for all casestilghman1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114115 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-14Merged revisions 114112 via svnmerge from mmichelson2-4/+15
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114112 | mmichelson | 2008-04-14 11:24:22 -0500 (Mon, 14 Apr 2008) | 9 lines If the datastore has been moved to another channel due to a masquerade, then freeing the datastore here causes an eventual double free when the new channel hangs up. We should only free the datastore if we were able to successfully remove it from the channel we are referencing (i.e. the datastore was not moved). (closes issue #12359) Reported by: pguido ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114113 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-14During hangup it is possible for p->chan or p->owner to be NULL, so just ↵file1-1/+4
return what the channel is bridged to instead of what they are *really* bridged to. Thanks Matt Nicholson! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114109 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-14Merged revisions 114106 via svnmerge from mmichelson1-1/+6
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114106 | mmichelson | 2008-04-14 09:58:02 -0500 (Mon, 14 Apr 2008) | 5 lines Save a local copy of the generate callback prior to unlocking the channel in case the generate callback goes NULL on us after the channel is unlocked. Thanks to Russell for pointing this need out to me. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114107 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-14Merged revisions 114103 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114103 | file | 2008-04-14 11:52:46 -0300 (Mon, 14 Apr 2008) | 4 lines It is possible for the remote side to say they want T38 but not give any capabilities. (closes issue #12414) Reported by: MVF ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114104 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-14Merged revisions 114100 via svnmerge from file1-1/+0
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114100 | file | 2008-04-14 10:52:49 -0300 (Mon, 14 Apr 2008) | 4 lines Don't change the SSRC when a new source comes into play, this might happen quite often and depending on the remote side... they might not like this. (closes issue #12353) Reported by: dimas ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114101 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-14Add tab command-line completiontilghman1-10/+31
(Closes issue #12428) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114098 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-13Use ast_mkdir instead of mkdirtilghman1-1/+1
(Closes issue #12430) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114096 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-12Make sure linkset is locked exiting ss7_start_callmattf1-2/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114093 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-12Make sure we start incoming calls on SS7 with echo cancellation enabled. ↵mattf1-4/+14
Also make sure when completing a COT we call ss7_start_call with the proper locks held. Lastly, make sure if we fail to get a channel from zt_new that we don't assume it's there. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114092 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11If any field is not null, but has no default, then it must be set or the ↵tilghman1-3/+26
insert will fail. (Closes issue #12285) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114090 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11Make the sample config match the contributed LDAP schematilghman1-91/+91
(Closes issue #12421) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114088 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11Use the correct function for free'ing objects, and maybe we won't crash.tilghman1-2/+2
(closes issue #12163) Reported by: gservat Patches: 20080411__bug12163.diff.txt uploaded by Corydon76 (license 14) Tested by: gservat git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114085 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11Merged revisions 114083 via svnmerge from twilson1-13/+28
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114083 | twilson | 2008-04-11 17:32:51 -0500 (Fri, 11 Apr 2008) | 7 lines Several places in the code called find_callno() (which releases the lock on the pvt structure) and then immediately locked the call and did things with it. Unfortunately, the call can disappear between the find_callno and the lock, causing Bad Stuff(tm) to happen. Added find_callno_locked() function to return the callno withtout unlocking for instances that it is needed. (issue #12400) Reported by: ztel ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114084 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11Make sure that ${LINE} is set even if linenumber is not set in users.conftwilson1-1/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114080 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11Change the number of line keys per registration from 2 to 1 dbailey1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114077 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11Blocked revisions 114072 via svnmergeqwell0-0/+0
Already fixed here. ........ r114072 | qwell | 2008-04-11 16:35:16 -0500 (Fri, 11 Apr 2008) | 4 lines It's possible that a channel can have an async goto on the successful execution of an application as well. Closes issue #12172. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114073 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11Fix the fact that global_variables 1) weren't being updated on reload ↵twilson1-24/+51
(thanks for the report, Doug), and 2) weren't actually being appended to the list of profile variables because build_profile was called before the list was populated. Also needed to free the contents returned by load_file(). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114067 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11Merged revisions 114063 via svnmerge from mmichelson1-1/+15
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114063 | mmichelson | 2008-04-11 10:44:28 -0500 (Fri, 11 Apr 2008) | 11 lines Fix a race condition that may happen between a sip hangup and a "core show channel" command. This patch adds locking to prevent the resulting crash. (closes issue #12155) Reported by: tsearle Patches: show_channels_crash2.patch uploaded by tsearle (license 373) Tested by: tsearle ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114064 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11Errors are all greater than 0tilghman1-9/+9
(closes issue #12422) Reported by: nito Patches: res_config_ldap_result_check_patch.diff uploaded by nito (license 340) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114061 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-10Merged revisions 114051 via svnmerge from mmichelson10-11/+58
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114051 | mmichelson | 2008-04-10 15:59:49 -0500 (Thu, 10 Apr 2008) | 3 lines Fix 1.4 build when LOW_MEMORY is enabled. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114052 f38db490-d61c-443f-a65b-d21fe96a405b