]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
18 years agoCorrect the allowexternaldomains option in SIP sample config.
Jason Parker [Tue, 18 Sep 2007 15:28:21 +0000 (15:28 +0000)] 
Correct the allowexternaldomains option in SIP sample config.

Issue 10753

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82751 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoPut a memset in ast_localtime() instead of a couple places in app_voicemail
Russell Bryant [Mon, 17 Sep 2007 20:16:25 +0000 (20:16 +0000)] 
Put a memset in ast_localtime() instead of a couple places in app_voicemail
to prevent the problem everywhere instead of just a couple of places.
(related to issue #10746)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82676 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoInitialize some memory to fix crashes when leaving voicemail. This problem
Russell Bryant [Mon, 17 Sep 2007 20:00:32 +0000 (20:00 +0000)] 
Initialize some memory to fix crashes when leaving voicemail.  This problem
was fixed by running Asterisk under valgrind.
(closes issue #10746, reported by arcivanov, patched by me)

*** IMPORTANT NOTE:  We need to check to see if this same bug exists elsewhere.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82644 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoHandle the case where there are multiple dynamic features with the same digit
Russell Bryant [Mon, 17 Sep 2007 16:46:59 +0000 (16:46 +0000)] 
Handle the case where there are multiple dynamic features with the same digit
mapping, but won't always match the activated on/by access controls.  In that
case, the code needs to keep trying features for a match.
(reported by Atis on the asterisk-dev list, patched by me)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82594 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agorevert a change that wasn't supposed to be committed... doh!
Kevin P. Fleming [Mon, 17 Sep 2007 16:40:12 +0000 (16:40 +0000)] 
revert a change that wasn't supposed to be committed... doh!

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82592 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agofix a couple of places where a logical member name (if specified) was not used, but...
Kevin P. Fleming [Mon, 17 Sep 2007 16:33:30 +0000 (16:33 +0000)] 
fix a couple of places where a logical member name (if specified) was not used, but instead the direct interface was listed

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82590 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10734)
Joshua Colp [Mon, 17 Sep 2007 02:00:59 +0000 (02:00 +0000)] 
(closes issue #10734)
Reported by: asgaroth
Instead of passing a NULL pointer into snprintf pass "". It makes Solaris much happier.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82514 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agocloses issue #10668; thanks to arkadia for his patch; had to leave out the bit about...
Steve Murphy [Fri, 14 Sep 2007 21:19:27 +0000 (21:19 +0000)] 
closes issue #10668; thanks to arkadia for his patch; had to leave out the bit about ending the previous cdr in the fork; it would destroy current implementations.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82444 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdd a note to help clarify the value set with the echocancel option.
Russell Bryant [Fri, 14 Sep 2007 21:17:08 +0000 (21:17 +0000)] 
Add a note to help clarify the value set with the echocancel option.
(inspired by Malcolm's blog post on blogs.digium.com about HPEC)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82435 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoCrap, I broke the build. Fixed.
Mark Michelson [Fri, 14 Sep 2007 18:35:48 +0000 (18:35 +0000)] 
Crap, I broke the build. Fixed.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82398 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdding member name field to manager events where they were missing before
Mark Michelson [Fri, 14 Sep 2007 18:28:36 +0000 (18:28 +0000)] 
Adding member name field to manager events where they were missing before

(closes issue #10721, reported by snar)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82396 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIf a channel does not have an owner, do not try to set a channel variable.
Jason Parker [Fri, 14 Sep 2007 17:48:05 +0000 (17:48 +0000)] 
If a channel does not have an owner, do not try to set a channel variable.
This will end up making the channel variable global, which is not right.

Closes issue #10720, patch by flefoll.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82394 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdd checking for libusb here, so nobody has to deal with conflicts in the
Russell Bryant [Fri, 14 Sep 2007 15:50:49 +0000 (15:50 +0000)] 
Add checking for libusb here, so nobody has to deal with conflicts in the
chan_usbradio-1.4 branch every time the configure script gets changed

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82385 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRemove chan_usbradio from the main 1.4 branch. It can't live here because we
Russell Bryant [Fri, 14 Sep 2007 15:42:42 +0000 (15:42 +0000)] 
Remove chan_usbradio from the main 1.4 branch.  It can't live here because we
have a strict policy to not include new features in release branches.  However,
I'm going to merge it into trunk, and I also have a special 1.4 based branch that
includes this module.

svn co http://svn.digium.com/svn/asterisk/team/jdixon/chan_usbradio-1.4

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82382 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFixing a typo in the coding guidelines
Mark Michelson [Fri, 14 Sep 2007 14:42:29 +0000 (14:42 +0000)] 
Fixing a typo in the coding guidelines

(closes issue #10717, reported and patched by leedm777)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82376 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFixed problem with changes made to cdr functionality
Jim Dixon [Fri, 14 Sep 2007 01:24:07 +0000 (01:24 +0000)] 
Fixed problem with changes made to cdr functionality

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82368 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agothis new driver may not live in this branch for long (since it is a new feature)...
Kevin P. Fleming [Fri, 14 Sep 2007 00:52:57 +0000 (00:52 +0000)] 
this new driver may not live in this branch for long (since it is a new feature), but it definitely should not be built by default

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82367 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdded channel driver for USB Radio device and
Jim Dixon [Fri, 14 Sep 2007 00:34:13 +0000 (00:34 +0000)] 
Added channel driver for USB Radio device and
support thereof.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82366 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a small typo.
Jason Parker [Thu, 13 Sep 2007 23:11:27 +0000 (23:11 +0000)] 
Fix a small typo.

retrytime > waittime

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82358 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoPreemptively fixing a possible segfault. It is possible that queuename is NULL
Mark Michelson [Thu, 13 Sep 2007 20:16:37 +0000 (20:16 +0000)] 
Preemptively fixing a possible segfault. It is possible that queuename is NULL
(meaning pause ALL queues), so use q->name instead.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82346 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a crash that could occur in cdr_csv when mutliple threads tried to close the...
Jason Parker [Thu, 13 Sep 2007 20:11:40 +0000 (20:11 +0000)] 
Fix a crash that could occur in cdr_csv when mutliple threads tried to close the same file.

Do we actually need the locking here?  What happens if you open the same file twice, and
 two threads try to write to it at the same time?  Is fputs() going to write out the entire
 line at once?  I suspect that it could be possible for the second fopen to run during the
 first fputs, so the position could be in the middle of the previously written line...

Issue 10347, initial patch by explidous (but I removed all of the paranoia stuff..)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82344 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoresolve a warning when not building under dev mode
Russell Bryant [Thu, 13 Sep 2007 18:57:08 +0000 (18:57 +0000)] 
resolve a warning when not building under dev mode

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82339 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoOnly compile in tracking astobj2 statistics if dev-mode is enabled. Also, when
Russell Bryant [Thu, 13 Sep 2007 18:45:59 +0000 (18:45 +0000)] 
Only compile in tracking astobj2 statistics if dev-mode is enabled.  Also, when
dev mode is enabled, register the CLI command that can be used to run the astobj2
test and print out statistics.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82337 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMerged revisions 82334 via svnmerge from
Kevin P. Fleming [Thu, 13 Sep 2007 18:12:00 +0000 (18:12 +0000)] 
Merged revisions 82334 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r82334 | kpfleming | 2007-09-13 11:10:12 -0700 (Thu, 13 Sep 2007) | 2 lines

clarify the OpenSSL and OpenH323 license exceptions

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82335 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdded logic to handle the unlikely case that someone has two queues with the same...
Mark Michelson [Thu, 13 Sep 2007 16:25:59 +0000 (16:25 +0000)] 
Added logic to handle the unlikely case that someone has two queues with the same name.
Asterisk will log a warning message letting the user know that one was already defined with that
name and is it skipping all further instances. This also will work for realtime queues but in order
for that to happen, the user would have to trigger a perfectly timed reload as a realtime queue is being
looked up, which is highly unlikely (but taken care of nonetheless).

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82326 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoCloses issue #9401, reported and patched by irrot, with slight
Philippe Sultan [Thu, 13 Sep 2007 11:47:14 +0000 (11:47 +0000)] 
Closes issue #9401, reported and patched by irrot, with slight
modifications by me.

Handle DTMF sent by Asterisk properly.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82309 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a check of the wrong pointer, as pointed out by an XXX comment left in
Russell Bryant [Wed, 12 Sep 2007 21:56:32 +0000 (21:56 +0000)] 
Fix a check of the wrong pointer, as pointed out by an XXX comment left in
the code.  The problem was harmless, however.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82296 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoOops, wrong location for FreeBSD zone files
Tilghman Lesher [Wed, 12 Sep 2007 21:28:33 +0000 (21:28 +0000)] 
Oops, wrong location for FreeBSD zone files

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82291 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoremove a race condition for the creation of recordthread's, and fix a small memory...
Dwayne M. Hubbard [Wed, 12 Sep 2007 20:24:24 +0000 (20:24 +0000)] 
remove a race condition for the creation of recordthread's, and fix a small memory leak.  This closes issue# 10636

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82286 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoWorking on issue #10531 exposed a rather nasty 64-bit issue on ast_mktime, so we
Tilghman Lesher [Wed, 12 Sep 2007 20:12:06 +0000 (20:12 +0000)] 
Working on issue #10531 exposed a rather nasty 64-bit issue on ast_mktime, so we
updated the localtime.c file from source.  Next we'll have to write ast_strptime
to match.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82285 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoClean up the output of "asterisk -h". This tweaks the wording and wraps lines
Russell Bryant [Wed, 12 Sep 2007 15:16:49 +0000 (15:16 +0000)] 
Clean up the output of "asterisk -h".  This tweaks the wording and wraps lines
at 80 characters.
(closes issue #10699, seanbright)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82280 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agorevert patch from issue #10553, as someone not using fastagi reported that this
Russell Bryant [Wed, 12 Sep 2007 15:11:11 +0000 (15:11 +0000)] 
revert patch from issue #10553, as someone not using fastagi reported that this
broke their system.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82278 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAccidentally committed changes to app_voicemail which do NOT need to be in the 1...
Mark Michelson [Wed, 12 Sep 2007 14:30:13 +0000 (14:30 +0000)] 
Accidentally committed changes to app_voicemail which do NOT need to be in the 1.4 branch yet. reverting...

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82276 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoWe should only initialize a realtime queue when it is allocated, not every time we...
Mark Michelson [Wed, 12 Sep 2007 14:24:53 +0000 (14:24 +0000)] 
We should only initialize a realtime queue when it is allocated, not every time we access it. This prevents the members ao2_container
from being reallocated every time the queue is accessed.

I also removed a debug message I had accidentally left in on a previous commit.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82274 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix incorrect uses of ao2_find(). Every one of these calls was reading bogus
Russell Bryant [Tue, 11 Sep 2007 22:37:17 +0000 (22:37 +0000)] 
Fix incorrect uses of ao2_find().  Every one of these calls was reading bogus
memory ...

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82267 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10679)
Joshua Colp [Tue, 11 Sep 2007 21:41:49 +0000 (21:41 +0000)] 
(closes issue #10679)
Reported by: andrew
Build under dev mode when K6OPTS is enabled.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82265 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix another missing unref of member objects. This one was pointed out by Marta.
Russell Bryant [Tue, 11 Sep 2007 20:49:34 +0000 (20:49 +0000)] 
Fix another missing unref of member objects.  This one was pointed out by Marta.
When building the outgoing list in try_calling(), a member reference is stored
in each outgoing entry.  However, when this list got destroyed, the reference
was not released.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82263 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agothis change should fix issue # 10659 -- what I worry about is how many other bug...
Steve Murphy [Tue, 11 Sep 2007 20:36:15 +0000 (20:36 +0000)] 
this change should fix issue # 10659 -- what I worry about is how many other bug reports it may generate. Hopefully, we can please the/a majority. Hopefully. We shall see. Calls not marked ANSWERED and with only one channel name will not be posted. This should eliminate the double CDR's.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82261 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAll instances of ao2_iterators which were just named 'i' have been renamed
Mark Michelson [Tue, 11 Sep 2007 16:05:56 +0000 (16:05 +0000)] 
All instances of ao2_iterators which were just named 'i' have been renamed
to 'mem_iter' so that when refcounted queues are merged into trunk, there will be
little confusion regarding iterator names, especially when a queue and member iterator
are used in the same function.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82252 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoThe sample dundi.conf claims support for a wildcard peer entry - [*], but the
Russell Bryant [Tue, 11 Sep 2007 16:03:42 +0000 (16:03 +0000)] 
The sample dundi.conf claims support for a wildcard peer entry - [*], but the
code did not support it.  This patch makes it work.
(closes issue #10546, patch by dds, with some changes by me)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82250 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agofixed a hold/retrieve issue.
Christian Richter [Tue, 11 Sep 2007 16:01:27 +0000 (16:01 +0000)] 
fixed a hold/retrieve issue.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82249 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10553)
Russell Bryant [Tue, 11 Sep 2007 15:26:51 +0000 (15:26 +0000)] 
(closes issue #10553)
Reported by: juggie
Patches:
      res_agi_fgets-2.patch uploaded by juggie (license 24)
Tested by: juggie

When using fastagi, fgets() can return before a full line is read.  Add explicit
handling for the case where it gets interrupted.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82245 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10577)
Joshua Colp [Tue, 11 Sep 2007 14:56:39 +0000 (14:56 +0000)] 
(closes issue #10577)
Reported by: jamesgolovich
Patches:
      asterisk-dundifree.diff.txt uploaded by jamesgolovich (license 176)
Don't leak memory when unloading DUNDi.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82243 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdd a couple more missing unrefs of queue member objects
Russell Bryant [Tue, 11 Sep 2007 14:34:12 +0000 (14:34 +0000)] 
Add a couple more missing unrefs of queue member objects

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82240 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdd a missing unref of a queue member in an error handling block
Russell Bryant [Tue, 11 Sep 2007 14:21:17 +0000 (14:21 +0000)] 
Add a missing unref of a queue member in an error handling block

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82238 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDocument why membercount can not simply be replaced by ao2_container_count()
Russell Bryant [Tue, 11 Sep 2007 14:09:43 +0000 (14:09 +0000)] 
Document why membercount can not simply be replaced by ao2_container_count()

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82236 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agobackport astobj2 race condition fix. This function is the exact same as trunk
Russell Bryant [Mon, 10 Sep 2007 19:53:17 +0000 (19:53 +0000)] 
backport astobj2 race condition fix.  This function is the exact same as trunk
so it applies here as well.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82198 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoConvert struct member to use refcounts (closes issue #10199)
Tilghman Lesher [Mon, 10 Sep 2007 18:02:02 +0000 (18:02 +0000)] 
Convert struct member to use refcounts (closes issue #10199)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82155 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRemoving non-existent options from misdn configuration sample.
Mark Michelson [Mon, 10 Sep 2007 15:02:12 +0000 (15:02 +0000)] 
Removing non-existent options from misdn configuration sample.

(closes issue #10678, reported and patched by IgorG)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82091 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix inline compiles on really old compilers (who uses gcc 2.7 anymore, really?)
Tilghman Lesher [Sun, 9 Sep 2007 02:35:18 +0000 (02:35 +0000)] 
Fix inline compiles on really old compilers (who uses gcc 2.7 anymore, really?)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82028 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a small memory leak. ast_unregister_atexit() did not free the entry it removed.
Russell Bryant [Sat, 8 Sep 2007 18:41:32 +0000 (18:41 +0000)] 
Fix a small memory leak.  ast_unregister_atexit() did not free the entry it removed.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81997 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10672)
Russell Bryant [Sat, 8 Sep 2007 13:42:26 +0000 (13:42 +0000)] 
(closes issue #10672)
Bump the cleancount so that a "make clean" will be forced.  This is needed
because my fix in revision 81599 made a change to a data structure in file.h,
and since file dependency tracking is only on with dev-mode enabled, file
format modules that don't get rebuilt may crash, as is the case with this issue.

This makes me wonder - how much faster does the code build without the file
dependency tracking enabled?  If it doesn't make much of a difference, then it
may be worth just keeping it on all of the time, or perhaps just not in release
tarballs, so that this type of issue is avoided.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81952 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAllow the MEMBERINTERFACE variable to be used as the mixmonitor filename.
Jason Parker [Fri, 7 Sep 2007 19:48:00 +0000 (19:48 +0000)] 
Allow the MEMBERINTERFACE variable to be used as the mixmonitor filename.
This moves the setting of the MEMBERINTERFACE variable to before mixmonitor.

Issue 10671, patch by sim.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81923 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMoving the explanation for joinempty to a more appropriate place
Mark Michelson [Fri, 7 Sep 2007 15:25:19 +0000 (15:25 +0000)] 
Moving the explanation for joinempty to a more appropriate place

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81886 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #9724, closes issue #10374)
Russell Bryant [Thu, 6 Sep 2007 22:28:57 +0000 (22:28 +0000)] 
(closes issue #9724, closes issue #10374)
Reported by: kenw
Patches:
      9724.txt uploaded by russell (license 2)
Tested by: kenw, russell

Resolve a deadlock that occurs when doing a SIP transfer to parking.

I come across this type of deadlock fairly often it seems.  It is very important
to mind the boundary between the channel driver and the core in respect to the
channel lock and the channel-pvt lock.  Channel drivers lock to lock the
pvt and then the channel once it calls into the core, while the core will do
it in the opposite order.  The way this is avoided is by having channel drivers
either release their pvt lock while calling into the core, or such as in this
case, unlocking the pvt just long enough to acquire the channel lock.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81832 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoWe added COPTS for ASTCFLAGS additions, but not LDOPTS for ASTLDFLAGS. This adds...
Jason Parker [Thu, 6 Sep 2007 22:05:02 +0000 (22:05 +0000)] 
We added COPTS for ASTCFLAGS additions, but not LDOPTS for ASTLDFLAGS.  This adds LDOPTS

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81826 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoThis should fix a build issue that people building against uClibc were seeing with...
Jason Parker [Thu, 6 Sep 2007 19:59:07 +0000 (19:59 +0000)] 
This should fix a build issue that people building against uClibc were seeing with the addition of astobj2

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81778 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10122)
Joshua Colp [Thu, 6 Sep 2007 19:40:37 +0000 (19:40 +0000)] 
(closes issue #10122)
Reported by: stevefeinstein
Patches:
      meetme-unmute-manager.diff uploaded by qwell (license 4)
Tested by: stevefeinstein
After looking over the code I agree with Qwell. Setting the file descriptor to conference each time just causes a fight back and forth.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81776 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoVarious string length fixes. Removed an unused variable in aji_client structure ...
Philippe Sultan [Thu, 6 Sep 2007 16:56:29 +0000 (16:56 +0000)] 
Various string length fixes. Removed an unused variable in aji_client structure (context)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81743 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFixes an issue where valid DTMF had to be pressed twice to exit a queue if a member...
Mark Michelson [Thu, 6 Sep 2007 16:25:40 +0000 (16:25 +0000)] 
Fixes an issue where valid DTMF had to be pressed twice to exit a queue if a member's phone
was ringing.

(closes issue #10655, reported by strider2k, patched by me)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81713 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFixes a memory leak
Mark Michelson [Thu, 6 Sep 2007 15:20:36 +0000 (15:20 +0000)] 
Fixes a memory leak

(closes issue #10658, reported and patched by Ivan)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81682 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAccording to both RFC 3920 - section 9.1.2 - and Google's XMPP server
Philippe Sultan [Thu, 6 Sep 2007 14:20:54 +0000 (14:20 +0000)] 
According to both RFC 3920 - section 9.1.2 - and Google's XMPP server
complaint, if set, the 'from' attribute must be set to the user's full
JID.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81650 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix an issue that can occur when you do an attended transfer to parking. If
Russell Bryant [Wed, 5 Sep 2007 20:53:41 +0000 (20:53 +0000)] 
Fix an issue that can occur when you do an attended transfer to parking.  If
you complete the transfer before the announcement of the parking spot finishes,
then the channel being parked will hear the remainder of the announcement.
These changes make it so that will not happen anymore.

Basically, res_features sets a flag on the channel is playing the announcement
to so that the file streaming core knows that it needs to watch out for a
channel masquerade, and if it occurs, to abort the announcement.

(closes BE-182)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81599 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoSolaris x86 compatibility fix
Tilghman Lesher [Wed, 5 Sep 2007 17:18:24 +0000 (17:18 +0000)] 
Solaris x86 compatibility fix

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81569 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFixing the build...
Mark Michelson [Wed, 5 Sep 2007 15:19:47 +0000 (15:19 +0000)] 
Fixing the build...

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81525 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDo not try to unregister a NULL channel tech.
Jason Parker [Wed, 5 Sep 2007 15:14:30 +0000 (15:14 +0000)] 
Do not try to unregister a NULL channel tech.
Also changed load_module function to use defines rather than numbers for return values.

Issue 10651, patch by rbraun_proformatique, with additions by me.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81523 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoReverting behavior of QUEUE_MEMBER_COUNT to only count members who are logged in
Mark Michelson [Wed, 5 Sep 2007 15:03:22 +0000 (15:03 +0000)] 
Reverting behavior of QUEUE_MEMBER_COUNT to only count members who are logged in
and available.

(related to issue #10652, reported by wuwu)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81520 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10650)
Joshua Colp [Wed, 5 Sep 2007 13:11:48 +0000 (13:11 +0000)] 
(closes issue #10650)
Reported by: tacvbo
Only print out that the spy was removed while holding the spy lock.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81492 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRather than attempt to play a file, we can just check whether it exists.
Jason Parker [Tue, 4 Sep 2007 20:54:51 +0000 (20:54 +0000)] 
Rather than attempt to play a file, we can just check whether it exists.

Issue 10634, patch by me, testing by pabelanger, sanity checked by bweschke

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81455 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoChange default followme config file to point to the correct files.
Jason Parker [Tue, 4 Sep 2007 19:56:06 +0000 (19:56 +0000)] 
Change default followme config file to point to the correct files.

Issue 10644, patch by pabelanger

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81453 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRemove the typedefs on ao2_container and ao2_iterator. This is simply because
Russell Bryant [Tue, 4 Sep 2007 18:37:44 +0000 (18:37 +0000)] 
Remove the typedefs on ao2_container and ao2_iterator.  This is simply because
we don't typedef objects anywhere else in Asterisk, so we might as well make
this follow the same convention.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81448 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agothere is no point in sending 401 Unauthorized to a UAS that sent us a properly-format...
Kevin P. Fleming [Tue, 4 Sep 2007 16:40:39 +0000 (16:40 +0000)] 
there is no point in sending 401 Unauthorized to a UAS that sent us a properly-formatted Authentication header with the expected username and nonce but an incorrect response (which indicates the shared secret does not match)... instead, let's send 403 Forbidden so that the UAS doesn't retry with the same authentication credentials repeatedly

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81442 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10632)
Joshua Colp [Tue, 4 Sep 2007 14:23:18 +0000 (14:23 +0000)] 
(closes issue #10632)
Reported by: jamesgolovich
Patches:
      asterisk-iaxfirmwareleak.diff.txt uploaded by jamesgolovich (license 176)
Fix memory leak when unloading chan_iax2. The firmware files were not being freed.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81439 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10476)
Joshua Colp [Tue, 4 Sep 2007 13:46:23 +0000 (13:46 +0000)] 
(closes issue #10476)
Reported by: mdu113
Only look for the end of a digit when waiting for a digit. This in turn disables emulation in the core.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81437 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10610)
Joshua Colp [Tue, 4 Sep 2007 13:10:56 +0000 (13:10 +0000)] 
(closes issue #10610)
Reported by: john
Patches:
      dns.c.patch uploaded by john (license 218)
Tested by: mvanbaak
Don't return a match if no SRV record actually exists.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81435 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRemove a couple of calls to ast_string_field_free_pools() on peers in error
Russell Bryant [Mon, 3 Sep 2007 18:57:53 +0000 (18:57 +0000)] 
Remove a couple of calls to ast_string_field_free_pools() on peers in error
handling blocks in the code for building peers.  The peer object destructor
does this and doing it twice will cause a crash.
(closes issue #10625, reported by and patched by pnlarsson)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81433 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoChanged a comment to be more accurate.
Mark Michelson [Sat, 1 Sep 2007 15:57:31 +0000 (15:57 +0000)] 
Changed a comment to be more accurate.

(really this is just a test to make sure I can commit properly from home)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81428 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMaking match_by_addr into ao2_match_by_addr and making it available
Mark Michelson [Sat, 1 Sep 2007 06:02:06 +0000 (06:02 +0000)] 
Making match_by_addr into ao2_match_by_addr and making it available
everywhere since it could be a handy callback to have

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81426 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRemove references to a debugging parameter that does not exist
Russell Bryant [Fri, 31 Aug 2007 21:27:49 +0000 (21:27 +0000)] 
Remove references to a debugging parameter that does not exist

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81418 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFixed broken behavior of a reload on realtime queues. Prior to this patch, if a reloa...
Mark Michelson [Fri, 31 Aug 2007 19:48:55 +0000 (19:48 +0000)] 
Fixed broken behavior of a reload on realtime queues. Prior to this patch, if a reload was issued and
a realtime queue had callers waiting in it, then the queue would be removed from the queue list, but it would
not actually be freed (in fact, a debug message warning about a memory leak would come up). With this patch,
reloads do not touch realtime queues at all.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81416 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoThe IF() function was not allowing true values that had embedded colons (closes issue...
Tilghman Lesher [Fri, 31 Aug 2007 19:16:52 +0000 (19:16 +0000)] 
The IF() function was not allowing true values that had embedded colons (closes issue #10613)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81415 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRe-order dial options to be in line with the existing alpha order.
Jason Parker [Fri, 31 Aug 2007 18:44:44 +0000 (18:44 +0000)] 
Re-order dial options to be in line with the existing alpha order.

Issue 10621, initial patch by junky

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81412 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMake the 'gtalk show channels' CLI command available.
Philippe Sultan [Fri, 31 Aug 2007 17:38:26 +0000 (17:38 +0000)] 
Make the 'gtalk show channels' CLI command available.

Closes issue 10548, reported by keepitcool.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81410 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMake it the engine's responsible to check for the presence of results.
Joshua Colp [Fri, 31 Aug 2007 15:53:16 +0000 (15:53 +0000)] 
Make it the engine's responsible to check for the presence of results.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81406 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoadd missing "transcoder show" (and deprecated "show transcoder") CLI commands that...
Kevin P. Fleming [Fri, 31 Aug 2007 15:51:45 +0000 (15:51 +0000)] 
add missing "transcoder show" (and deprecated "show transcoder") CLI commands that were in 1.2 but never added to 1.4

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81405 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10618)
Joshua Colp [Fri, 31 Aug 2007 14:38:59 +0000 (14:38 +0000)] 
(closes issue #10618)
Reported by: dimas
Don't pass through the stopped sounds frame.... just drop it.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81403 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10009)
Joshua Colp [Thu, 30 Aug 2007 23:53:41 +0000 (23:53 +0000)] 
(closes issue #10009)
Reported by: dimas
Don't output a bridge failed warning message if it failed because one of the channels was part of the masquerade process. That is perfectly normal.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81401 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRemoving an extraneous (and possibly misleading) log message. Firstly, if the announc...
Mark Michelson [Thu, 30 Aug 2007 22:05:56 +0000 (22:05 +0000)] 
Removing an extraneous (and possibly misleading) log message. Firstly, if the announce file isn't found, the
streaming functions will report it. Secondly, not all non-zero returns from play_file mean that the announce file
wasn't found. Positive return values simply mean that a digit was pressed (most likely to skip through the announcement).

(closes issue #10612, reported and patched by dimas)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81397 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10514)
Joshua Colp [Thu, 30 Aug 2007 21:23:50 +0000 (21:23 +0000)] 
(closes issue #10514)
Reported by: casper
Patches:
      chan_sip.c.80129.diff uploaded by casper (license 55)
Remove needless check for AUTH_UNKNOWN_DOMAIN. It was impossible for it to ever be that value.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81395 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agovia issue 10599, where 'CDR already initialized' messages are being generated. Since...
Steve Murphy [Thu, 30 Aug 2007 21:11:48 +0000 (21:11 +0000)] 
via issue 10599, where 'CDR already initialized' messages are being generated. Since all channels will have an init'd CDR attached at creation time, this message is now particularly useless. Removed.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81392 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdd missing checks for the PTRACING define.
Russell Bryant [Thu, 30 Aug 2007 15:38:29 +0000 (15:38 +0000)] 
Add missing checks for the PTRACING define.
(closes issue #10559, paravoid)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81383 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoChanged some manager event messages to reflect whether a queue member is a realtime...
Mark Michelson [Thu, 30 Aug 2007 15:35:51 +0000 (15:35 +0000)] 
Changed some manager event messages to reflect whether a queue member is a realtime member or not

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81381 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a typo, update a reload command, and remove an unused configuration file.
Russell Bryant [Thu, 30 Aug 2007 15:33:48 +0000 (15:33 +0000)] 
Fix a typo, update a reload command, and remove an unused configuration file.
(closes issue #10606, casper)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81379 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10603)
Joshua Colp [Thu, 30 Aug 2007 14:53:43 +0000 (14:53 +0000)] 
(closes issue #10603)
Reported by: jmls
Patches:
      pbx.diff uploaded by jmls (license 141)
Backport changes from 81372. Add REASON dialplan variable for when an originated call fails and the failed extension is executed.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81375 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFixed some warnings.
Christian Richter [Thu, 30 Aug 2007 14:43:33 +0000 (14:43 +0000)] 
Fixed some warnings.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81373 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(issue #10599)
Joshua Colp [Thu, 30 Aug 2007 14:23:40 +0000 (14:23 +0000)] 
(issue #10599)
Reported by: dimas
Handle the -1 control subclass during feature dialing (it indicates to stop sounds).

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81369 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFixed a severe issue where a misdn_read would lock the channel, but read would
Christian Richter [Thu, 30 Aug 2007 08:31:59 +0000 (08:31 +0000)] 
Fixed a severe issue where a misdn_read would lock the channel, but read would
not return because it blocks. later chan_misdn would try to queue a frame like
a AST_CONTROL_ANSWER which could result in a deadlock situation. misdn_read
will now not block forever anymore, and we don't queue the ANSWER frame at all
when we already was called with misdn_answer -> answer would be called twice.

Also we don't explicitly send a RELEASE_COMPLETE on receiption of a RELEASE
anymore, because mISDN does that for us, this resulted in a problem on some
switches, which would block our port after some calls for a short while.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81367 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoThis patch, in essence, will correctly pause a realtime queue member and reflect...
Mark Michelson [Wed, 29 Aug 2007 16:35:29 +0000 (16:35 +0000)] 
This patch, in essence, will correctly pause a realtime queue member and reflect those
changes in the realtime engine.

(issue #10424, reported by irroot, patch by me)

This patch creates a new function called update_realtime_member_field, which is a generic
function which will allow any one field of a realtime queue member to be updated. This patch
only uses this function to update the paused status of a queue member, but it lays the foundation
for persisting the state of a realtime member the same way that static members' state is maintained
when using the persistentmembers setting

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81349 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoChanged some tabs to spaces
Mark Michelson [Wed, 29 Aug 2007 16:08:09 +0000 (16:08 +0000)] 
Changed some tabs to spaces

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81346 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIf chan_h323 is not being built, don't use g++ to do the final link of Asterisk.
Russell Bryant [Wed, 29 Aug 2007 15:57:29 +0000 (15:57 +0000)] 
If chan_h323 is not being built, don't use g++ to do the final link of Asterisk.
(in response to a question on the asterisk-dev list)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81342 65c4cc65-6c06-0410-ace0-fbb531ad65f3