dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

13640 Commits

Author SHA1 Message Date
murf f258e58444 Hoping to avoid a crash in OSX for a problem blitzrage found
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89051 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 19:40:33 +00:00
oej f063aa43f4 Formatting. Illegaly using some spare spaces from Russell's space-bucket.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89050 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 19:23:10 +00:00
tilghman c0f25b1bf2 Merged revisions 89045 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89045 | tilghman | 2007-11-06 13:09:06 -0600 (Tue, 06 Nov 2007) | 2 lines

We went to the trouble of creating a method of tracking failed trylocks, then never turned it on (oops).

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89049 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 19:16:02 +00:00
oej beb1ba7813 Additional TDD changes (preparing for SIP changes - adding TDD support to SIP)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89048 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 19:10:26 +00:00
qwell 6314703e32 Merged revisions 89046 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89046 | qwell | 2007-11-06 13:09:30 -0600 (Tue, 06 Nov 2007) | 4 lines

Correctly set the total number of channels from a zaptel transcoder board.

SPD-49, patch by Matthew Nicholson.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89047 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 19:10:18 +00:00
mmichelson 92ac6820ee "show application <foo>" changes for clarity.
(closes issue #11171, reported and patched by blitzrage)

Many thanks!



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89044 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 19:04:45 +00:00
oej 15d67c4bef Merged revisions 89042 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89042 | oej | 2007-11-06 19:53:37 +0100 (Tis, 06 Nov 2007) | 2 lines

Bug fixes to tdd support in zaptel. 

........

(Small changes for trunk)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89043 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 19:04:29 +00:00
qwell f20cdcdc59 Allow gtalk and jingle to use TLS connections again.
Closes issue #9972


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89041 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 18:44:19 +00:00
russell cd0b9bcfce Merged revisions 89037 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89037 | russell | 2007-11-06 12:20:07 -0600 (Tue, 06 Nov 2007) | 11 lines

If someone were to delete the files used by an existing MOH class, and then
issue a reload, further use of that class could result in a crash due to
dividing by zero.  This set of changes fixes up some places to prevent this
from happening.

(closes issue #10948)
Reported by: jcomellas
Patches:
      res_musiconhold_division_by_zero.patch uploaded by jcomellas (license 282)
	  Additional changes added by me.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89038 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 18:23:36 +00:00
file 487d264c99 Merged revisions 89032 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89032 | file | 2007-11-06 13:08:05 -0400 (Tue, 06 Nov 2007) | 4 lines

Make it so that if a peer is determined to be unreachable using qualify their devicestate will report back unavailable.
(closes issue #11006)
Reported by: pj

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89034 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 17:10:03 +00:00
rizzo 38f484f179 Fix embedding of modules on FreeBSD:
the constructor for the list of modules was run
after the constructors for the embedded modules
(which appended entries to the list).
As a result, the list appeared empty when it was
time to use it.

On linux the order of execution of constructor
was evidently different (it may depend on the
ordering of modules in the ELF file).

This is only a workaround - there may be other
situations where the execution of constructors
causes problems, so if we manage to find a more
general solution this workaround can go away.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89031 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 17:05:13 +00:00
file 523fa9cb07 Merged revisions 88994 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88994 | file | 2007-11-06 12:24:56 -0400 (Tue, 06 Nov 2007) | 6 lines

Fix improbable but possible memory leaks in chan_zap.
(closes issue #11166)
Reported by: eliel
Patches:
      chan_zap.c.patch uploaded by eliel (license 64)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88995 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 16:29:16 +00:00
file 3f48783c29 Update chan_agent documentation. Change a | to , as that is now the required way.
(closes issue #11167)
Reported by: eliel
Patches:
      chan_agent.c.patch uploaded by eliel (license 64)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88974 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 15:37:17 +00:00
tilghman f1e53779f1 Set up detection of IP_PKTINFO in autoconf for chan_unistim
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88973 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 15:01:56 +00:00
russell ce01581f86 convert uses of LOG_DEBUG to use ast_debug()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88937 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 14:17:33 +00:00
russell 73fdba4c4d Add jitterbuffer support to chan_unistim.
(closes issue #11168)
Reported by: IgorG
Patches: 
      unistimjb-88863-1.patch uploaded by IgorG (license 20)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88935 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 14:11:34 +00:00
russell f36c90c199 Merged revisions 88805 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88805 | russell | 2007-11-05 16:07:54 -0600 (Mon, 05 Nov 2007) | 12 lines

After seeing crashes related to channel variables, I went looking around at the
ways that channel variables are handled.  In general, they were not handled in
a thread-safe way.  The channel _must_ be locked when reading or writing from/to
the channel variable list.

What I have done to improve this situation is to make pbx_builtin_setvar_helper()
and friends lock the channel when doing their thing.  Asterisk API calls almost 
all lock the channel for you as necessary, but this family of functions did not.

(closes issue #10923, reported by atis)
(closes issue #11159, reported by 850t)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88934 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 14:08:54 +00:00
russell fe4629867d Merged revisions 88931 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88931 | russell | 2007-11-06 07:50:15 -0600 (Tue, 06 Nov 2007) | 8 lines

Remove some checks to see if locks are initialized from the non-DEBUG_THREADS
versions of the lock routines.  These are incorrect for a number of reasons:
 - It breaks the build on mac.
 - If there is a problem with locks not getting initialized, then the proper
   fix is to find that place and fix the code so that it does get initialized.
 - If additional debug code is needed to help find the problem areas, then this
   type of things should _only_ be put in the DEBUG_THREADS wrappers.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88932 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 13:57:16 +00:00
rizzo b7f6951c5c explain that the host environment must be used to build gentone;
Remove unset variables, they would be misleading.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88913 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 08:17:42 +00:00
rizzo 4048d8e9e6 don't export variables that can be retrieved from makeopts in child subdirs
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88898 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 07:26:25 +00:00
kpfleming a5b8bbee8f Merged revisions 88862 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88862 | kpfleming | 2007-11-05 20:52:05 -0600 (Mon, 05 Nov 2007) | 2 lines

update comment to match the state of the code

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88863 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 02:53:13 +00:00
mmichelson b4fe14f9d0 Merged revisions 88826 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88826 | mmichelson | 2007-11-05 17:29:29 -0600 (Mon, 05 Nov 2007) | 6 lines

Reworked deadlock avoidance in __ast_read. Restored audio to 
callback agents.

(closes issue #11071, reported by callguy, patched by me, tested by callguy and Ted Brown)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88827 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 23:31:00 +00:00
rizzo 6ba6ba6e24 Move AUDIO_LIBS outside the top level Makefile. This too is used only
in one place.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88770 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 21:36:11 +00:00
russell 11ad54a10b Merged revisions 88768 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88768 | russell | 2007-11-05 15:33:56 -0600 (Mon, 05 Nov 2007) | 8 lines

When traversing the list of channel variables here in transmit_invite(), the 
asterisk channel must be locked, as this data may change at any time.

(I have seen numerous reports of crashes related to the handling of channel
variables.  There are a couple of issues on the bug tracker related to it,
but it has also been noted on IRC and mailing lists.  So, I am finding and
fixing some places where channel variables are handled improperly.) 

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88769 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 21:35:51 +00:00
rizzo 9ed4fe37f7 Move the last instance of AST_LIBS to the only place it is used,
namely main/Makefile .

I am unclear where decisions on the build environment (CFLAGS,
LDFLAGS, LIBS and so on) should be made - right now they are
split here and there.

As a first step in cleaning up this situation, i am trying to at
least collect all instances of each variable in one place.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88767 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 21:27:04 +00:00
russell d3d49dd21b Merged revisions 88765 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88765 | russell | 2007-11-05 15:21:39 -0600 (Mon, 05 Nov 2007) | 2 lines

Fix up some indentation.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88766 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 21:23:32 +00:00
rizzo 31dceeb247 comment out an unused variable. Remove it in a few days
if no problems arise.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88764 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 20:50:26 +00:00
russell a7c35f1073 Merged revisions 88719 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88719 | russell | 2007-11-05 14:40:01 -0600 (Mon, 05 Nov 2007) | 7 lines

Merge changes from asterisk/team/kpfleming/SRV-priority-handling

Previously, the SRV record support in Asterisk was broken.  There was no
guarantee on what record Asterisk would choose to actually use.  This set of
changes improves the situation by ensuring that Asterisk will choose the
highest priority record.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88740 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 20:44:05 +00:00
russell f2977f1903 Merged revisions 88709 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88709 | russell | 2007-11-05 14:11:04 -0600 (Mon, 05 Nov 2007) | 20 lines

Merge the last bit of changes from asterisk/team/russell/readq-1.4

The issue here is that the channel frame readq handling got broken when the
code was converted to use the linked list macros.  It caused corruption of the
list head and tail pointers.  So, I fixed up the usage of the linked list
macros and in passing, simplified the code.  I also documented what the code
is doing, as it was a bit difficult to figure out at first.

This bug showed itself with crashes showing messed up head/tail pointers for
the readq.  However, there are a couple of crashes that aren't quite as obvious,
but I think may be related.  So, if your bug gets closed by this commit, but
you still have a problem, please reopen or create a new bug report.

(closes issue #10936)
(closes issue #10595)
(closes issue #10368)
(closes issue #11084)
(closes issue #10040)
(closes issue #10840)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88710 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 20:14:48 +00:00
rizzo e9521cd0c9 Cleanup the installation of samples, avoiding repetitions.
I am preserving the behaviour on *.adsi files,
i.e. overwrite anything there without making a backup.
However I am not sure that this is the intended behaviour.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88675 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 19:22:56 +00:00
file 7c3af6c368 Merged revisions 88671 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88671 | file | 2007-11-05 14:47:13 -0400 (Mon, 05 Nov 2007) | 7 lines

If a SIP channel is put on hold multiple times do not keep incrementing the onHold value.
(closes issue #11085)
Reported by: francesco_r
Tested by: blitzrage
(closes issue #10474)
Reported by: acennami

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88673 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 18:52:12 +00:00
tilghman 5c6e4cf4a4 Change wording to that suggested by MasterYoda
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88653 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 18:22:20 +00:00
rizzo 32e50d89aa simplify (hopefully) the printing of $(MAKE) in aligned output.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88652 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 18:00:24 +00:00
russell cc093e3faf Merged revisions 88624 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88624 | russell | 2007-11-05 11:46:02 -0600 (Mon, 05 Nov 2007) | 5 lines

Fix up datastore handling in ast_do_masquerade().  The code is intended to move
any channel datastores from the old channel to the new one.  However, it did
not use the linked list macros properly to accomplish the task.  The existing
code would only work if there was only a single datastore on the old channel.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88651 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 17:52:08 +00:00
rizzo 7f0f1e85e8 print messages when entering/leaving a directory so we know where we are
(sometimes it is obvious, sometimes it is not).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88615 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 17:44:10 +00:00
rizzo a81a01d13c merge two rules with the same right hand;
document a bit what is done here.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88587 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 17:27:02 +00:00
qwell eb61f174cd Merged revisions 88585 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #11163)
........
r88585 | qwell | 2007-11-05 11:19:41 -0600 (Mon, 05 Nov 2007) | 4 lines

Make sure we destroy the config structure on configuration failure.

Issue 11163, patch by eliel.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88586 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 17:21:05 +00:00
kpfleming a67b783299 use a variable name that actually indicates what it is for
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88584 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 17:00:07 +00:00
rizzo 6e1338853c Put extra compiler flags into a variable so they are not repeated
too many times.
On passing, add some comments and fix indentation a bit.

On passing, i suspect that the following pattern is wrong

	%.eoo: %.o

but in case it will be fixed in a later commit.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88553 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 16:41:39 +00:00
tilghman 5a542f5f08 Merged revisions 88539 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88539 | tilghman | 2007-11-05 10:20:13 -0600 (Mon, 05 Nov 2007) | 4 lines

Don't check used pooled connections for connection status, as it will cause issues for prepared queries.
Reported by: Nick Gorham (via -dev list)
Patch by: tilghman

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88540 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 16:30:51 +00:00
rizzo bd07db1f95 remove a cygwin-specific function remap that does not work.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88525 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 15:15:22 +00:00
file 19a74b8591 Fix memory leaks and deadlocks in chan_unistim.
(closes issue #11158)
Reported by: eliel
Patches:
      chan_unistim.c.patch uploaded by eliel (license 64)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88510 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 13:11:37 +00:00
rizzo e7c3f913ac block merging of not-applicable patch
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88490 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-04 22:42:54 +00:00
rizzo 5c6adf7951 Simplify the implementation and the API for stringfields;
details and examples are in include/asterisk/stringfields.h.

Not applicable to older branches except for 1.4 which will
receive a fix for the routines that free memory pools.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88454 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-04 19:44:31 +00:00
tilghman 69e206ffb4 Revert commit #86119. Some users intentionally do not want colorized terminals, so this was a misfeature.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88437 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-03 14:19:47 +00:00
jamesgolovich 661a6413fb Set CLI command to the correct name. Rev 85460 introduced two 'database show' commands when this one
should have been 'database showkey'



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88422 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-03 04:55:06 +00:00
russell 4e9e2791c2 fix some issues with crashing on unload, when it didn't completely load cleanly
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88409 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-02 22:36:30 +00:00
russell 3b700df38a Convert the CLI commands to the new format
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88408 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-02 22:08:15 +00:00
russell 3b2405b45f propagate the DECLINE return value back to the loader
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88376 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-02 21:39:36 +00:00
russell f5b2699dac Don't kill asterisk if extensions.lua is not present.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88371 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-02 21:36:37 +00:00