Tilghman Lesher
9809a31bb5
Merged revisions 114195 via svnmerge from
...
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: https://origsvn.digium.com/svn/asterisk/trunk@114196 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-17 12:59:04 +00:00
Sean Bright
3b775e41ae
Update the CHANGES file with yesterday's ChanSpy change. Sorry Kevin, just saw your e-mail.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-17 12:25:23 +00:00
Sean Bright
45ebcb77a2
Merged revisions 114191 via svnmerge from
...
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: https://origsvn.digium.com/svn/asterisk/trunk@114192 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-17 10:55:05 +00:00
Steve Murphy
5fb4b1bbe5
This is the scariest commit I've done in a long time. This is the 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: https://origsvn.digium.com/svn/asterisk/trunk@114190 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-16 23:53:27 +00:00
Tilghman Lesher
123ac5fd64
Standardized routines for forking processes (keeps all the specialized code in one place).
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114188 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-16 22:57:54 +00:00
Steve Murphy
752f6681b1
A small enhancement-- I added the routine log_show_lock to utils.c, which if 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: https://origsvn.digium.com/svn/asterisk/trunk@114187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-16 20:54:41 +00:00
Kevin P. Fleming
a51fb142f9
Merged revisions 114184 via svnmerge from
...
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: https://origsvn.digium.com/svn/asterisk/trunk@114185 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-16 20:47:30 +00:00
Steve Murphy
8b6d8da58c
Introducing a small optimization to event_unsubscribe; events now use a Doubly-Linked list for events, gives fast deletions, for the sake of channel driver mwi events. From team/murf/bug11210.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114183 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-16 20:28:08 +00:00
Steve Murphy
2b69ec9a38
Introducing a small upgrade to the ast_sched_xxx facility, to keep it from eating up lots of cpu cycles. See CHANGES. From the team/murf/bug11210 branch.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-16 20:09:39 +00:00
Tilghman Lesher
e5ea744e1d
Blocked revisions 114180 via svnmerge
...
........
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: https://origsvn.digium.com/svn/asterisk/trunk@114181 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-16 20:00:27 +00:00
Steve Murphy
6138b16995
Introducing various astobj2 enhancements, chief being a refcount tracing 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: https://origsvn.digium.com/svn/asterisk/trunk@114175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-16 17:45:28 +00:00
Jason Parker
e93d417a19
Blocked revisions 114173 via svnmerge
...
........
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: https://origsvn.digium.com/svn/asterisk/trunk@114174 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-16 17:31:02 +00:00
Steve Murphy
27891e6b4b
Introducing doubly linked lists to trunk from branch team/murf/bug11210.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114172 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-16 17:14:18 +00:00
Joshua Colp
d04ac68dfa
Blocked revisions 114167 via svnmerge
...
........
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: https://origsvn.digium.com/svn/asterisk/trunk@114168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-16 14:11:18 +00:00
Sean Bright
5fbdb4af73
Add the ability to disable channel technology name playback when speaking the current channel name
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114165 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-16 12:23:13 +00:00
Tilghman Lesher
369ccdef5e
Oops, buffer wasn't long enough for query
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114152 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-15 20:51:08 +00:00
Olle Johansson
18866623dc
Merged revisions 114148 via svnmerge from
...
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: https://origsvn.digium.com/svn/asterisk/trunk@114151 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-15 20:39:29 +00:00
Olle Johansson
f239f24580
Adding chanvar to SIPPEER from 1.4 branch
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114150 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-15 20:31:08 +00:00
Jason Parker
fe65716e15
If somebody enters a digit during ast_stream_and_wait, the return value is the digit, which we need to use later.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114149 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-15 20:27:04 +00:00
Steve Murphy
5b4222c9de
These changes:
...
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: https://origsvn.digium.com/svn/asterisk/trunk@114146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-15 19:59:50 +00:00
Sean Bright
98c789ad12
I'm not sure why, but "this" bothers me. Ba dum dum.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-15 17:54:38 +00:00
Jason Parker
b9bb0749d1
Shorten the mac address pattern, since some phones use different identifiers (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: https://origsvn.digium.com/svn/asterisk/trunk@114141 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-15 17:21:58 +00:00
Jason Parker
c2d0b572bf
Merged revisions 114138 via svnmerge from
...
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: https://origsvn.digium.com/svn/asterisk/trunk@114139 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-15 17:17:37 +00:00
Jason Parker
f6cfccbc07
Merged revisions 114133 via svnmerge from
...
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: https://origsvn.digium.com/svn/asterisk/trunk@114134 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-15 16:18:38 +00:00
Jason Parker
efb767e432
Convert several DEBUG logs into ast_debug.
...
(closes issue #12444 )
Reported by: IgorG
Patches:
channel_c_debug.diff uploaded by IgorG (license 20)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114131 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-15 15:20:47 +00:00
Terry Wilson
91de4e9cea
Need a new buffer for each loop
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-14 19:58:52 +00:00
Terry Wilson
6d34b5fafe
Don't unref user twice on failure. Also, when adding sorted list of users, it is best to check the entry already in the list for a "next" entry instead of the newly created entry...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-14 19:12:27 +00:00
Jason Parker
6e6d6f2e10
Merged revisions 114120 via svnmerge from
...
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: https://origsvn.digium.com/svn/asterisk/trunk@114121 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-14 18:34:17 +00:00
Mark Michelson
0270776ca5
Merged revisions 114117 via svnmerge from
...
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: https://origsvn.digium.com/svn/asterisk/trunk@114118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-14 17:42:20 +00:00
Tilghman Lesher
e7daf63fd8
Make tab-completion work for all cases
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-14 16:32:59 +00:00
Mark Michelson
df7cb6b30b
Merged revisions 114112 via svnmerge from
...
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: https://origsvn.digium.com/svn/asterisk/trunk@114113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-14 16:25:09 +00:00
Joshua Colp
6fad8249f5
During hangup it is possible for p->chan or p->owner to be NULL, so just return what the channel is bridged to instead of what they are *really* bridged to. Thanks Matt Nicholson!
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114109 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-14 15:36:02 +00:00
Mark Michelson
9ddc843fbe
Merged revisions 114106 via svnmerge from
...
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: https://origsvn.digium.com/svn/asterisk/trunk@114107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-14 15:01:36 +00:00
Joshua Colp
c5d0ca23f0
Merged revisions 114103 via svnmerge from
...
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: https://origsvn.digium.com/svn/asterisk/trunk@114104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-14 14:53:33 +00:00
Joshua Colp
5fff9c7304
Merged revisions 114100 via svnmerge from
...
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: https://origsvn.digium.com/svn/asterisk/trunk@114101 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-14 13:53:33 +00:00
Tilghman Lesher
c716e8de53
Add tab command-line completion
...
(Closes issue #12428 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114098 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-14 02:55:41 +00:00
Tilghman Lesher
dc3e185e96
Use ast_mkdir instead of mkdir
...
(Closes issue #12430 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114096 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-13 14:35:43 +00:00
Matthew Fredrickson
5110d3bc69
Make sure linkset is locked exiting ss7_start_call
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-12 16:21:29 +00:00
Matthew Fredrickson
f9960bc748
Make sure we start incoming calls on SS7 with echo cancellation enabled. 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: https://origsvn.digium.com/svn/asterisk/trunk@114092 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-12 16:13:25 +00:00
Tilghman Lesher
7c26320110
If any field is not null, but has no default, then it must be set or the insert will fail.
...
(Closes issue #12285 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-11 23:26:56 +00:00
Tilghman Lesher
0dd46a6bf0
Make the sample config match the contributed LDAP schema
...
(Closes issue #12421 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114088 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-11 23:21:54 +00:00
Tilghman Lesher
7128ba0bb8
Use the correct function for free'ing objects, and maybe we won't crash.
...
(closes issue #12163 )
Reported by: gservat
Patches:
20080411__bug12163.diff.txt uploaded by Corydon76 (license 14)
Tested by: gservat
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-11 23:12:16 +00:00
Terry Wilson
4bc75c9a55
Merged revisions 114083 via svnmerge from
...
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: https://origsvn.digium.com/svn/asterisk/trunk@114084 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-11 22:48:52 +00:00
Terry Wilson
ef8007f630
Make sure that ${LINE} is set even if linenumber is not set in users.conf
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114080 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-11 22:23:34 +00:00
Doug Bailey
9a1b485100
Change the number of line keys per registration from 2 to 1
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-11 22:09:04 +00:00
Jason Parker
c7e913ed3f
Blocked revisions 114072 via svnmerge
...
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: https://origsvn.digium.com/svn/asterisk/trunk@114073 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-11 21:39:44 +00:00
Terry Wilson
e276ccea11
Fix the fact that global_variables 1) weren't being updated on reload (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: https://origsvn.digium.com/svn/asterisk/trunk@114067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-11 21:04:46 +00:00
Mark Michelson
e409a129af
Merged revisions 114063 via svnmerge from
...
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: https://origsvn.digium.com/svn/asterisk/trunk@114064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-11 15:49:35 +00:00
Tilghman Lesher
d304a88457
Errors are all greater than 0
...
(closes issue #12422 )
Reported by: nito
Patches:
res_config_ldap_result_check_patch.diff uploaded by nito (license 340)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114061 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-11 14:54:22 +00:00
Mark Michelson
115d5024a1
Merged revisions 114051 via svnmerge from
...
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: https://origsvn.digium.com/svn/asterisk/trunk@114052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-10 22:02:32 +00:00