asterisk/asterisk.git
12 years agoMerged revisions 80932 via svnmerge from
Russell Bryant [Sun, 26 Aug 2007 18:12:58 +0000 (18:12 +0000)]
Merged revisions 80932 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80932 | russell | 2007-08-26 13:11:26 -0500 (Sun, 26 Aug 2007) | 3 lines

Remove an extra signal_condition() for the scheduler thread.
(closes issue #10564, patch from casper)

........

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

12 years agoMerged revisions 80895 via svnmerge from
Russell Bryant [Sat, 25 Aug 2007 17:55:45 +0000 (17:55 +0000)]
Merged revisions 80895 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80895 | russell | 2007-08-25 12:37:39 -0500 (Sat, 25 Aug 2007) | 7 lines

Fix some issues with the handling of the scheduler in chan_iax2.  Most of the
places that scheduled items to be executed by the scheduler thread did not
signal the scheduler thread to wake up so that it could recalculate the time
until the next action.  These changes will make the scheduler thread more
responsive and ensure that actions get executed as close to when intended as
possible instead of it being possible for very long delays.

........

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

12 years agolocalize a variable and remove a duplicate error message
Russell Bryant [Sat, 25 Aug 2007 17:49:51 +0000 (17:49 +0000)]
localize a variable and remove a duplicate error message

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

12 years agouse ast_strlen_zero
Russell Bryant [Sat, 25 Aug 2007 17:49:04 +0000 (17:49 +0000)]
use ast_strlen_zero

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

12 years agoMerged revisions 80849 via svnmerge from
Russell Bryant [Fri, 24 Aug 2007 21:23:14 +0000 (21:23 +0000)]
Merged revisions 80849 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80849 | russell | 2007-08-24 16:22:50 -0500 (Fri, 24 Aug 2007) | 5 lines

If dnsmgr is in use, and no DNS servers are available when Asterisk first
starts, then don't give up on poking peers.  Allow the poke to get rescheduled
so that it will work once the dnsmgr is able to resolve the host.
(closes issue #10521, patch by jamesgolovich)

........

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

12 years agoMerged revisions 80820 via svnmerge from
Russell Bryant [Fri, 24 Aug 2007 20:25:39 +0000 (20:25 +0000)]
Merged revisions 80820 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80820 | russell | 2007-08-24 15:24:05 -0500 (Fri, 24 Aug 2007) | 7 lines

Improve the debouncing logic in the DTMF detector to fix some reliability
issues.  Previously, this code used a shift register of hits and non-hits.
However, if the start of the digit isn't clean, it is possible for the
leading edge detector to miss the digit.  These changes replace the flawed
shift register logic and also does the debouncing on the trailing edge as well.
(closes issue #10535, many thanks to softins for the patch)

........

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

12 years agoMerged revisions 80818 via svnmerge from
BJ Weschke [Fri, 24 Aug 2007 20:21:17 +0000 (20:21 +0000)]
Merged revisions 80818 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80818 | bweschke | 2007-08-24 15:52:06 -0400 (Fri, 24 Aug 2007) | 3 lines

 A minor correction to the available logic of autofill. If a queue member is paused, they're not really "available" so don't count them as such. Somewhat related to issue #10155

........

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

12 years agoFix documentation for Set (closes issue #10549)
Tilghman Lesher [Fri, 24 Aug 2007 19:50:16 +0000 (19:50 +0000)]
Fix documentation for Set (closes issue #10549)

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

12 years agoMerged revisions 80789 via svnmerge from
Steve Murphy [Fri, 24 Aug 2007 19:03:39 +0000 (19:03 +0000)]
Merged revisions 80789 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80789 | murf | 2007-08-24 12:52:15 -0600 (Fri, 24 Aug 2007) | 1 line

From a complaint by jmls, I realize that the message in cdr_disposition is unnecessary. To get failure disposition, just return -1; no use having more than one case do that.
........

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

12 years agoAdd VMWI chan_zap support #9909
Matthew Fredrickson [Fri, 24 Aug 2007 18:05:11 +0000 (18:05 +0000)]
Add VMWI chan_zap support #9909

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

12 years agoMerged revisions 80750 via svnmerge from
Mark Michelson [Fri, 24 Aug 2007 15:53:36 +0000 (15:53 +0000)]
Merged revisions 80750 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80750 | mmichelson | 2007-08-24 10:51:03 -0500 (Fri, 24 Aug 2007) | 3 lines

Fix a possible crash in IMAP voicemail.

........

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

12 years agoBlocked revisions 80747 via svnmerge
Tilghman Lesher [Fri, 24 Aug 2007 15:49:37 +0000 (15:49 +0000)]
Blocked revisions 80747 via svnmerge

........
r80747 | tilghman | 2007-08-24 10:41:43 -0500 (Fri, 24 Aug 2007) | 2 lines

Make the deprecation warning inline with the code, instead of only in documentation (closes issue #10549)

........

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

12 years agofix up the MODULEINFO in conf2ael.c as well
Steve Murphy [Fri, 24 Aug 2007 15:42:25 +0000 (15:42 +0000)]
fix up the MODULEINFO in conf2ael.c as well

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

12 years agoMerged revisions 80722 via svnmerge from
Russell Bryant [Fri, 24 Aug 2007 15:29:16 +0000 (15:29 +0000)]
Merged revisions 80722 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80722 | russell | 2007-08-24 10:28:05 -0500 (Fri, 24 Aug 2007) | 3 lines

Tweak the formatting of this MODULEINFO block.  I think this would have caused
a "*" to get in the menuselect-tree file.

........

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

12 years agoMerged revisions 80717 via svnmerge from
Steve Murphy [Fri, 24 Aug 2007 14:55:34 +0000 (14:55 +0000)]
Merged revisions 80717 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80717 | murf | 2007-08-24 08:48:49 -0600 (Fri, 24 Aug 2007) | 1 line

This change addresses JerJer's complaint that aelparse builds and installs even if pbx_ael is unchecked in the menuselect stuff.
........

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

12 years agoBlocked 80689, the fix to ael.y; already in trunk.
Steve Murphy [Fri, 24 Aug 2007 13:23:44 +0000 (13:23 +0000)]
Blocked 80689, the fix to ael.y; already in trunk.

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

12 years agoMerged revisions 80661 via svnmerge from
Philippe Sultan [Fri, 24 Aug 2007 11:49:36 +0000 (11:49 +0000)]
Merged revisions 80661 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80661 | phsultan | 2007-08-24 13:42:46 +0200 (Fri, 24 Aug 2007) | 9 lines

Closes issue #10509

Googletalk calls are answered too early, which results in CDRs wrongly
stating that a call was ANSWERED when the calling party cancelled a
call before before being established.

We must not answer the call upon reception of a 'transport-accept' iq
packet, but this packet still needs to be acknowledged, otherwise the
remote peer would close the call (like in #8970).
........

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

12 years agoan unreported crash I debugged, looked like it was backing up way too far after hitti...
Steve Murphy [Thu, 23 Aug 2007 23:37:33 +0000 (23:37 +0000)]
an unreported crash I debugged, looked like it was backing up way too far after hitting the syntax error. An inspection of the code revealed that error tokens in lists were not rearranged when the rules were rearranged as part of a code neatening-up process. By moving the error tokens to where they should be, I also reduced the number of shift/reduce conflicts to 3 instead of 8. This introduces subtle differences in error messages, so the regressions had to be updated.

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

12 years agoUse the comma separator in app_while. reported by blitzrage on irc, patched by me
Russell Bryant [Thu, 23 Aug 2007 21:34:10 +0000 (21:34 +0000)]
Use the comma separator in app_while. reported by blitzrage on irc, patched by me

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

12 years agoMerged revisions 80573 via svnmerge from
Russell Bryant [Thu, 23 Aug 2007 20:20:17 +0000 (20:20 +0000)]
Merged revisions 80573 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80573 | russell | 2007-08-23 15:16:41 -0500 (Thu, 23 Aug 2007) | 5 lines

When executing a dynamic feature, don't look it up a second time by digit pattern
after we already looked it up by name.  This causes broken behavior if there is
more than one feature defined with the same digit pattern.
(closes issue #10539, reported by bungalow, patch by me)

........

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

12 years agoMerged revisions 80547 via svnmerge from
Russell Bryant [Thu, 23 Aug 2007 19:30:49 +0000 (19:30 +0000)]
Merged revisions 80547 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80547 | russell | 2007-08-23 14:29:44 -0500 (Thu, 23 Aug 2007) | 3 lines

Revert very broken fix for issue #10540 ... none of these values take ms so I
don't know what I was thinking

........

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

12 years agoMerged revisions 80539 via svnmerge from
Russell Bryant [Thu, 23 Aug 2007 19:22:49 +0000 (19:22 +0000)]
Merged revisions 80539 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80539 | russell | 2007-08-23 14:21:53 -0500 (Thu, 23 Aug 2007) | 4 lines

Fix func_timeout to take values in floating point so 1.5 actually means
1.5 seconds instead of being rounded.
(closes issue #10540, reported by spendergrass, patch by me)

........

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

12 years agoFix a typo in the Asterisk MIB and fix astNumChanBridged so it acts as a counter...
Russell Bryant [Thu, 23 Aug 2007 17:27:07 +0000 (17:27 +0000)]
Fix a typo in the Asterisk MIB and fix astNumChanBridged so it acts as a counter again
(closes issue #10118, patch by jeffg)

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

12 years agoMerged revisions 80501 via svnmerge from
Kevin P. Fleming [Thu, 23 Aug 2007 17:18:29 +0000 (17:18 +0000)]
Merged revisions 80501 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80501 | kpfleming | 2007-08-23 12:08:25 -0500 (Thu, 23 Aug 2007) | 2 lines

report the actual channel number that was unregistered, instead of assuming that the interface list consists of channels 1 through <x> with no gaps in the sequence

........

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

12 years agoMerged revisions 80499 via svnmerge from
Russell Bryant [Thu, 23 Aug 2007 17:04:04 +0000 (17:04 +0000)]
Merged revisions 80499 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80499 | russell | 2007-08-23 12:02:50 -0500 (Thu, 23 Aug 2007) | 3 lines

Fix some code where it was possible for a reference to a peer to not get
released when it should.  Thank you to Marta Carbone for pointing this out!

........

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

12 years agoBlocked revisions 80497 via svnmerge
Russell Bryant [Thu, 23 Aug 2007 16:54:19 +0000 (16:54 +0000)]
Blocked revisions 80497 via svnmerge

........
r80497 | russell | 2007-08-23 11:53:52 -0500 (Thu, 23 Aug 2007) | 5 lines

This is a hack to maintain old behavior of chan_iax2.  This ensures that if
the peers and users are being stored in a linked list, that they go in the
list in the same order that the older code used.  This is necessary to maintain
the behavior of which peers and users get matched when traversing the container.

........

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

12 years agoMerged revisions 80469 via svnmerge from
Russell Bryant [Thu, 23 Aug 2007 15:52:08 +0000 (15:52 +0000)]
Merged revisions 80469 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80469 | russell | 2007-08-23 10:49:28 -0500 (Thu, 23 Aug 2007) | 2 lines

Revert res_agi fix that didn't quite work until we get it right ...

........

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

12 years agoIf no default language has been specified print out that it will default to english...
Joshua Colp [Thu, 23 Aug 2007 15:48:35 +0000 (15:48 +0000)]
If no default language has been specified print out that it will default to english when using sip show peer or sip show user.

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

12 years agoReturn trunk to a working state by including compat.h in minimime.
Joshua Colp [Thu, 23 Aug 2007 13:37:20 +0000 (13:37 +0000)]
Return trunk to a working state by including compat.h in minimime.

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

12 years agoConvert minimime to use the proper uint*_t types, rather than u_int*_t
Jason Parker [Wed, 22 Aug 2007 23:26:02 +0000 (23:26 +0000)]
Convert minimime to use the proper uint*_t types, rather than u_int*_t

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

12 years agoCast calls to getpid. This was done in 1.4 already, this one was just new
Jason Parker [Wed, 22 Aug 2007 23:17:04 +0000 (23:17 +0000)]
Cast calls to getpid.  This was done in 1.4 already, this one was just new

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

12 years agoMerged revisions 80426 via svnmerge from
Russell Bryant [Wed, 22 Aug 2007 22:54:26 +0000 (22:54 +0000)]
Merged revisions 80426 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80426 | russell | 2007-08-22 17:54:03 -0500 (Wed, 22 Aug 2007) | 6 lines

Add some more documentation on iterating ao2 containers.  The documentation
implies that is possible to miss an object or see an object twice while
iterating.  After looking through the code and talking with mmichelson, I have
documented the exact conditions under which this can happen (which are rare and
harmless in most cases).

........

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

12 years agoMerged revisions 80424 via svnmerge from
Russell Bryant [Wed, 22 Aug 2007 22:43:12 +0000 (22:43 +0000)]
Merged revisions 80424 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80424 | russell | 2007-08-22 17:40:27 -0500 (Wed, 22 Aug 2007) | 10 lines

When converting this code to use the list macros, I changed it so objects are
added to the head of a bucket instead of the tail.  However, while looking over
code with mmichelson, we noticed that the algorithm used in ao2_iterator_next
requires that items are added to the tail.  This wouldn't have caused any huge
problem, but it wasn't correct.  It meant that if an object was added to a
container while you were iterating it, and it was added to the same bucket that
the current element is in, then the new object would be returned by
ao2_iterator_next, and any other objects in the bucket would be bypassed in
the traversal.

........

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

12 years agoallow peers and users to go into a hash table
Russell Bryant [Wed, 22 Aug 2007 21:35:08 +0000 (21:35 +0000)]
allow peers and users to go into a hash table

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

12 years agoMerged revisions 80390 via svnmerge from
Russell Bryant [Wed, 22 Aug 2007 21:03:27 +0000 (21:03 +0000)]
Merged revisions 80390 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80390 | russell | 2007-08-22 16:00:44 -0500 (Wed, 22 Aug 2007) | 3 lines

Don't crash when using realtime in chan_sip without an insecure setting in the database.
(closes issue #10348, reported by link55, fixed by me)

........

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

12 years agoUnsubscribe from MWI events in the peer destructor
Russell Bryant [Wed, 22 Aug 2007 20:46:16 +0000 (20:46 +0000)]
Unsubscribe from MWI events in the peer destructor

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

12 years agoMerged revisions 80362 via svnmerge from
Russell Bryant [Wed, 22 Aug 2007 20:44:23 +0000 (20:44 +0000)]
Merged revisions 80362 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80362 | russell | 2007-08-22 15:21:36 -0500 (Wed, 22 Aug 2007) | 34 lines

Merge changes from team/russell/iax_refcount.

This set of changes fixes problems with the handling of iax2_user and iax2_peer
objects.  It was very possible for a thread to still hold a reference to one of
these objects while a reload operation tries to delete them.  The fix here is to
ensure that all references to these objects are tracked so that they can't go away
while still in use.

To accomplish this, I used the astobj2 reference counted object model.  This
code has been in one of Luigi Rizzo's branches for a long time and was primarily
developed by one of his students, Marta Carbone.  I wanted to go ahead and bring
this in to 1.4 because there are other problems similar to the ones fixed by these
changes, so we might as well go ahead and use the new astobj if we're going to go
through all of the work necessary to fix the problems.

As a nice side benefit of these changes, peer and user handling got more efficient.
Using astobj2 lets us not hold the container lock for peers or users nearly as long
while iterating.  Also, by changing a define at the top of chan_iax2.c, the objects
will be distributed in a hash table, drastically increasing lookup speed in these
containers, which will have a very big impact on systems that have a large number of
users or peers.

The use of the hash table will be made the default in trunk.  It is not the default
in 1.4 because it changes the behavior slightly.  Previously, since peers and users
were stored in memory in the same order they were specified in the configuration file,
you could influence peer and user matching order based on the order they are specified
in the configuration.  The hash table does not guarantee any order in the container,
so this behavior will be going away.  It just means that you have to be a little
more careful ensuring that peers and users are matched explicitly and not forcing
chan_iax2 to have to guess which user is the right one based on secret, host, and
access list settings, instead of simply using the username.

If you have any questions, feel free to ask on the asterisk-dev list.

........

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

12 years agoMerged revisions 80360 via svnmerge from
Russell Bryant [Wed, 22 Aug 2007 19:54:52 +0000 (19:54 +0000)]
Merged revisions 80360 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80360 | russell | 2007-08-22 14:53:30 -0500 (Wed, 22 Aug 2007) | 5 lines

Juggie in #asterisk-dev was reporting problems where fgets would return
without reading  the whole line when using fastagi.  When this happens,
errno was set to EINTR or EAGAIN.  This patch accounts for the possibility
and lets fgets continue in that case.

........

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

12 years agoMerged revisions 80330 via svnmerge from
Jason Parker [Wed, 22 Aug 2007 18:54:30 +0000 (18:54 +0000)]
Merged revisions 80330 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80330 | qwell | 2007-08-22 13:53:18 -0500 (Wed, 22 Aug 2007) | 7 lines

Fix a few build issues in Solaris (and likely others).

Use GREP and ID variables from autoconf.

Reported to me in #asterisk-dev
I forgot who reported this - sorry. :(

........

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

12 years agoMerged revisions 80304 via svnmerge from
Jason Parker [Wed, 22 Aug 2007 18:25:58 +0000 (18:25 +0000)]
Merged revisions 80304 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80304 | qwell | 2007-08-22 13:25:34 -0500 (Wed, 22 Aug 2007) | 2 lines

Change a syntax that the GNU make in Solaris dislikes.

........

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

12 years agoMerged revisions 80302 via svnmerge from
Jason Parker [Wed, 22 Aug 2007 18:06:28 +0000 (18:06 +0000)]
Merged revisions 80302 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80302 | qwell | 2007-08-22 13:06:00 -0500 (Wed, 22 Aug 2007) | 3 lines

Fix a bashism (we explicitly request /bin/sh).
Remove some oddly placed quotes I found in passing.

........

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

12 years agoEnsure that the object code for ast_atomic_fetchadd_int() gets included in the
Russell Bryant [Wed, 22 Aug 2007 16:27:39 +0000 (16:27 +0000)]
Ensure that the object code for ast_atomic_fetchadd_int() gets included in the
check_expr binary when building with LOW_MEMORY defined.
(reported by Brian Capouch on the asterisk-dev list, patch by me)

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

12 years agoMerged revisions 80257 via svnmerge from
Russell Bryant [Wed, 22 Aug 2007 16:22:27 +0000 (16:22 +0000)]
Merged revisions 80257 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80257 | russell | 2007-08-22 11:21:58 -0500 (Wed, 22 Aug 2007) | 4 lines

Honor the contents of the COPTS variable as custom target CFLAGS.  Apparently
this is what openwrt does.
(reported by Brian Capouch on the asterisk-dev list, patch by me)

........

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

12 years agoMerged revisions 80255 via svnmerge from
Joshua Colp [Wed, 22 Aug 2007 16:16:01 +0000 (16:16 +0000)]
Merged revisions 80255 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80255 | file | 2007-08-22 13:14:38 -0300 (Wed, 22 Aug 2007) | 4 lines

(closes issue #10526)
Reported by: sinistermidget
Revert commit from issue #10355 and return timestamp skew to 640.

........

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

12 years agoblocking 80167
Steve Murphy [Wed, 22 Aug 2007 14:17:42 +0000 (14:17 +0000)]
blocking 80167

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

12 years agoMerged revisions 80166 via svnmerge from
Steve Murphy [Wed, 22 Aug 2007 14:12:24 +0000 (14:12 +0000)]
Merged revisions 80166 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80166 | murf | 2007-08-21 10:36:34 -0600 (Tue, 21 Aug 2007) | 1 line

This patch solves problem 1 in 8126; it should not slow down the alaw codec, but should prevent signal degradation via multiple trips thru the codec. Fossil estimates the twice thru this codec will prevent fax from working. 4-6 times thru would result hearable, noticeable, voice degradation.
........

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

12 years agouse ast_atomic_fetchadd_int for incrementing resultcount
Russell Bryant [Tue, 21 Aug 2007 21:58:29 +0000 (21:58 +0000)]
use ast_atomic_fetchadd_int for incrementing resultcount

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

12 years agoAs per 10472, mvanbaak thought the generated code would look better this way.
Steve Murphy [Tue, 21 Aug 2007 20:55:44 +0000 (20:55 +0000)]
As per 10472, mvanbaak thought the generated code would look better this way.

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

12 years agoMerged revisions 80183 via svnmerge from
Russell Bryant [Tue, 21 Aug 2007 18:49:23 +0000 (18:49 +0000)]
Merged revisions 80183 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80183 | russell | 2007-08-21 13:42:15 -0500 (Tue, 21 Aug 2007) | 7 lines

Don't record SIP dialog history if it's not turned on.  Also, put an upper
limit on how many history entires will be stored for each SIP dialog.  It is
currently set to 50, but can be increased if deemed necessary.
(closes issue #10421, closes issue #10418, patches suggested by jmoldenhauer,
 patches updated by me)
(Security implications documented in AST-2007-020)

........

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

12 years agoMinor tweak. Don't manipulate volume of the audio in the buffer if no audio is actual...
Joshua Colp [Tue, 21 Aug 2007 15:51:49 +0000 (15:51 +0000)]
Minor tweak. Don't manipulate volume of the audio in the buffer if no audio is actually there.

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

12 years agoMerged revisions 80132 via svnmerge from
Russell Bryant [Tue, 21 Aug 2007 15:23:12 +0000 (15:23 +0000)]
Merged revisions 80132 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80132 | russell | 2007-08-21 10:22:22 -0500 (Tue, 21 Aug 2007) | 3 lines

Don't try to dereference the owner channel when it may not exist
(issue #10507, maxper)

........

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

12 years agoMerged revisions 80130 via svnmerge from
Jason Parker [Tue, 21 Aug 2007 15:04:37 +0000 (15:04 +0000)]
Merged revisions 80130 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80130 | qwell | 2007-08-21 10:03:45 -0500 (Tue, 21 Aug 2007) | 7 lines

(closes issue #10510)
Reported by: casper
Patches:
      cdr.conf.diff uploaded by casper (license 55)

Fix a few errors in sample cdr config file.

........

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

12 years agoThis change set fixes bug 8126 in trunk. It is implemented via compile time options...
Steve Murphy [Mon, 20 Aug 2007 22:53:48 +0000 (22:53 +0000)]
This change set fixes bug 8126 in trunk. It is implemented via compile time options, activated via the menuselect stuff, which defaults to the old way. non-zero sample data added. Translate tables expressed in microseconds instead of milliseconds, with 5-digit data now instead of 3, giving 2 more digits of precision.

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

12 years agoBlocked revisions 80088 via svnmerge
Russell Bryant [Mon, 20 Aug 2007 22:00:01 +0000 (22:00 +0000)]
Blocked revisions 80088 via svnmerge

........
r80088 | russell | 2007-08-20 16:57:08 -0500 (Mon, 20 Aug 2007) | 2 lines

Fix the build of app_queue

........

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

12 years agoBlocked revisions 80086 via svnmerge
Mark Michelson [Mon, 20 Aug 2007 21:42:11 +0000 (21:42 +0000)]
Blocked revisions 80086 via svnmerge

........
r80086 | mmichelson | 2007-08-20 16:39:17 -0500 (Mon, 20 Aug 2007) | 5 lines

After a discussion on #asterisk-dev, it was decided that this should be in 1.4 as well.

(issue #10424, reported and patched by irroot)

........

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

12 years agoStephn Davies reports that this will help make things work on 64-bit machines
Steve Murphy [Mon, 20 Aug 2007 17:37:36 +0000 (17:37 +0000)]
Stephn Davies reports that this will help make things work on 64-bit machines

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

12 years agoMerged revisions 80049 via svnmerge from
Mark Michelson [Mon, 20 Aug 2007 16:18:55 +0000 (16:18 +0000)]
Merged revisions 80049 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80049 | mmichelson | 2007-08-20 11:17:43 -0500 (Mon, 20 Aug 2007) | 4 lines

Found a pointless ternary if. member->dynamic was set to 1 and has no opportunity to change
between then and this line, so "dynamic" will ALWAYS be output.

........

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

12 years agoMerged revisions 80047 via svnmerge from
Jason Parker [Mon, 20 Aug 2007 16:12:29 +0000 (16:12 +0000)]
Merged revisions 80047 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80047 | qwell | 2007-08-20 11:08:49 -0500 (Mon, 20 Aug 2007) | 7 lines

(closes issue #10499)
Reported by: casper
Patches:
      extensions.conf.sample.diff uploaded by casper (license 55)

Update CLI examples in extensions.conf.sample to reflect command changes.

........

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

12 years agoRemove remnants of last commit so trunk builds again.
Joshua Colp [Mon, 20 Aug 2007 15:53:20 +0000 (15:53 +0000)]
Remove remnants of last commit so trunk builds again.

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

12 years agoMerged revisions 80044 via svnmerge from
Mark Michelson [Mon, 20 Aug 2007 15:37:13 +0000 (15:37 +0000)]
Merged revisions 80044 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80044 | mmichelson | 2007-08-20 10:34:43 -0500 (Mon, 20 Aug 2007) | 5 lines

Ukrainian language voicemail support.

(closes issue #10458, reported and patched by Oleh)

........

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

12 years agopval.c should not be in svn, in the utils dir
Steve Murphy [Mon, 20 Aug 2007 15:27:35 +0000 (15:27 +0000)]
pval.c should not be in svn, in the utils dir

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

12 years agoBring pval.c in utils up to date with pval.c in res/ael.
Joshua Colp [Mon, 20 Aug 2007 15:10:55 +0000 (15:10 +0000)]
Bring pval.c in utils up to date with pval.c in res/ael.

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

12 years agoFix random segfault issue when loading chan_zap. Trying to access a configuration...
Joshua Colp [Mon, 20 Aug 2007 14:15:30 +0000 (14:15 +0000)]
Fix random segfault issue when loading chan_zap. Trying to access a configuration structure that has already been destroyed is bad, mmmk?

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

12 years agoMerged revisions 79998 via svnmerge from
Tilghman Lesher [Mon, 20 Aug 2007 02:46:02 +0000 (02:46 +0000)]
Merged revisions 79998 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79998 | tilghman | 2007-08-19 21:42:49 -0500 (Sun, 19 Aug 2007) | 2 lines

Missing curly braces.  Oops.  (Reported by snuffy via IRC)

........

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

12 years ago(closes issue #10495)
Joshua Colp [Mon, 20 Aug 2007 00:54:19 +0000 (00:54 +0000)]
(closes issue #10495)
Reported by: stevedavies
Make sure context pointer is valid or else chan_iax2 will go kaboom.

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

12 years ago(closes issue #10496)
Joshua Colp [Mon, 20 Aug 2007 00:38:20 +0000 (00:38 +0000)]
(closes issue #10496)
Reported by: caio1982
Fix building on OSX.

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

12 years agoFix building of trunk. I'm doing work on a Sunday night just to avoid watching Snakes...
Joshua Colp [Mon, 20 Aug 2007 00:37:12 +0000 (00:37 +0000)]
Fix building of trunk. I'm doing work on a Sunday night just to avoid watching Snakes on a Plane which my roommate is watching.

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

12 years agoAdd strcompat dependency for check_expr (needed for platforms that don't have strndup)
Tilghman Lesher [Sun, 19 Aug 2007 14:17:30 +0000 (14:17 +0000)]
Add strcompat dependency for check_expr (needed for platforms that don't have strndup)

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

12 years agoActually check the return value of epoll_create to make sure it works.
Joshua Colp [Sat, 18 Aug 2007 23:58:51 +0000 (23:58 +0000)]
Actually check the return value of epoll_create to make sure it works.

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

12 years agoMerged revisions 79947 via svnmerge from
Tilghman Lesher [Sat, 18 Aug 2007 14:34:47 +0000 (14:34 +0000)]
Merged revisions 79947 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79947 | tilghman | 2007-08-18 09:30:44 -0500 (Sat, 18 Aug 2007) | 3 lines

Don't allocate vmu for messagecount when we could just use the stack instead (closes issue #10490)
Also, remove a useless (and leaky) SQLAllocHandle (closes issue #10480)

........

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

12 years agoWe weren't properly encapsulating the mtime ignores of config files (closes issue...
Tilghman Lesher [Sat, 18 Aug 2007 13:52:44 +0000 (13:52 +0000)]
We weren't properly encapsulating the mtime ignores of config files (closes issue #10488)

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

12 years agoI broke the build. Now I'm fixing it.
Mark Michelson [Fri, 17 Aug 2007 21:19:18 +0000 (21:19 +0000)]
I broke the build. Now I'm fixing it.

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

12 years agoMerged revisions 79912 via svnmerge from
Russell Bryant [Fri, 17 Aug 2007 21:04:33 +0000 (21:04 +0000)]
Merged revisions 79912 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79912 | russell | 2007-08-17 16:01:43 -0500 (Fri, 17 Aug 2007) | 4 lines

Avoid a crash in the handling of DTMF based Caller ID.  It is valid for
ast_read to return NULL in the case that the channel has been hung up.
(crash reported by anonymouz666 on IRC in #asterisk-dev)

........

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

12 years agoMerged revisions 79906 via svnmerge from
Mark Michelson [Fri, 17 Aug 2007 19:16:51 +0000 (19:16 +0000)]
Merged revisions 79906 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79906 | mmichelson | 2007-08-17 14:14:05 -0500 (Fri, 17 Aug 2007) | 6 lines

Patch allows for more seamless transition from file storage voicemail to ODBC storage voicemail.
If a retrieval of a greeting from the database fails, but the file is found on the file system, then
we go ahead an insert the greeting into the database. The result of this is that people who
switch from file storage to ODBC storage do not need to rerecord their voicemail greetings.

........

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

12 years agoMerged revisions 79904 via svnmerge from
Jason Parker [Fri, 17 Aug 2007 19:13:25 +0000 (19:13 +0000)]
Merged revisions 79904 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #10430)
........
r79904 | qwell | 2007-08-17 14:12:19 -0500 (Fri, 17 Aug 2007) | 11 lines

Don't send a semicolon over the wire in sip notify messages.
Caused by fix for issue 9938.

I basically took the code that existed before 9938 was fixed, and
 copied it into a new function - ast_unescape_semicolon

There should be very few places this will be needed (pbx_config
 does NOT need this (see issue 9938 for details))

Issue 10430, patch by me, with help/ideas from murf (thanks murf).

........

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

12 years agoMerged revisions 79902 via svnmerge from
Jason Parker [Fri, 17 Aug 2007 17:45:01 +0000 (17:45 +0000)]
Merged revisions 79902 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #10485)
........
r79902 | qwell | 2007-08-17 12:44:22 -0500 (Fri, 17 Aug 2007) | 4 lines

Re-add the setting of callerid name and number.

Issue 10485, reported by and fix explained by paradise.

........

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

12 years agoDocumentation for %q in logger.conf, as suggested by jtodd (closes issue #10475)
Tilghman Lesher [Fri, 17 Aug 2007 16:39:41 +0000 (16:39 +0000)]
Documentation for %q in logger.conf, as suggested by jtodd (closes issue #10475)

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

12 years agoFix Dial arguments in res_features.
Jason Parker [Fri, 17 Aug 2007 16:04:20 +0000 (16:04 +0000)]
Fix Dial arguments in res_features.

Closes issue #10484, patch by lunn.

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

12 years agoCorrect the argument separator for a Dial statement in pbx_dundi.
Jason Parker [Fri, 17 Aug 2007 15:27:19 +0000 (15:27 +0000)]
Correct the argument separator for a Dial statement in pbx_dundi.

Closes issue #10483, patch by lunn

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

12 years agoChange this flag... might not otherwise unlock in an OOM situation
Tilghman Lesher [Fri, 17 Aug 2007 14:41:33 +0000 (14:41 +0000)]
Change this flag... might not otherwise unlock in an OOM situation

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

12 years agoMake use of ast_sched_replace() in some places in chan_iax2
Russell Bryant [Fri, 17 Aug 2007 14:14:59 +0000 (14:14 +0000)]
Make use of ast_sched_replace() in some places in chan_iax2

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

12 years agoThis commit adds a scheduler API call, ast_sched_replace that can be used
Russell Bryant [Fri, 17 Aug 2007 14:07:44 +0000 (14:07 +0000)]
This commit adds a scheduler API call, ast_sched_replace that can be used
in place of a very common construct.  I also used it in a number of places
in chan_sip.

  if (id > -1)
     ast_sched_del(sched, id);
  id = ast_sched_add(sched, ...);

changes to:

  ast_sched_replace(id, sched, ...);

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

12 years agostore and destroy implementations for sqlite (closes issue #10446) and odbc (closes...
Tilghman Lesher [Fri, 17 Aug 2007 13:45:44 +0000 (13:45 +0000)]
store and destroy implementations for sqlite (closes issue #10446) and odbc (closes issue #10447)

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

12 years agostore and destroy implementations for realtime pgsql (closes issue #10372)
Tilghman Lesher [Fri, 17 Aug 2007 13:40:11 +0000 (13:40 +0000)]
store and destroy implementations for realtime pgsql (closes issue #10372)

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

12 years agoMerged revisions 79857 via svnmerge from
Russell Bryant [Fri, 17 Aug 2007 13:39:17 +0000 (13:39 +0000)]
Merged revisions 79857 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79857 | russell | 2007-08-17 08:37:08 -0500 (Fri, 17 Aug 2007) | 5 lines

Fix some crashes in chan_sip.  This patch changes various places that add items
to the scheduler to ensure that they don't overwrite the ID of a previously
scheduled item.  If there is one, it should be removed.
(closes issue #10391, closes issue #10256, probably others, patch by me)

........

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

12 years agoMerged revisions 79833 via svnmerge from
Christian Richter [Fri, 17 Aug 2007 08:29:56 +0000 (08:29 +0000)]
Merged revisions 79833 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79833 | crichter | 2007-08-17 10:22:36 +0200 (Fr, 17 Aug 2007) | 1 line

sometimes we don't need to signal dtmf tones to asterisk, we just want them to go through as inband. Otherwise they might be generated by the other channel partner and then there is a double tone.
........

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

12 years agoFix building of chan_zap under development mode without libpri and libss7 installed.
Joshua Colp [Fri, 17 Aug 2007 01:19:04 +0000 (01:19 +0000)]
Fix building of chan_zap under development mode without libpri and libss7 installed.

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

12 years agoRevise dialplan locks to permit multiple locks per channel, but with deadlock avoidance
Tilghman Lesher [Thu, 16 Aug 2007 23:31:14 +0000 (23:31 +0000)]
Revise dialplan locks to permit multiple locks per channel, but with deadlock avoidance

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

12 years agoMerged revisions 79792 via svnmerge from
Russell Bryant [Thu, 16 Aug 2007 22:33:02 +0000 (22:33 +0000)]
Merged revisions 79792 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79792 | russell | 2007-08-16 17:32:33 -0500 (Thu, 16 Aug 2007) | 4 lines

Fix a little race condition that could cause a crash if two channels had MOH
stopped at the same time that were using a class that had been marked for
deletion when its use count hits zero.

........

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

12 years agoMerged revisions 79778 via svnmerge from
Russell Bryant [Thu, 16 Aug 2007 22:30:39 +0000 (22:30 +0000)]
Merged revisions 79778 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79778 | russell | 2007-08-16 17:24:25 -0500 (Thu, 16 Aug 2007) | 14 lines

This patch fixes a bug where reloading the module with "module reload" did not
delete classes from memory that were no longer in the config.  This patch fixes
that problem as well as another one.  Previously, if you reloaded MOH using the
"moh reload" CLI command, which behaved differently than "module reload ...",
MOH had to be stopped on every channel and started again immediately.  However,
there was no way to tell what class was being used, so they would all fall back
to the default class.

(closes issue #10139)
Reported by: blitzrage
Patches:
      asterisk-10139-advanced.diff.txt uploaded by jamesgolovich (license 176)
Tested by: jamesgolovich

........

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

12 years agoMerged revisions 79756 via svnmerge from
Russell Bryant [Thu, 16 Aug 2007 21:33:38 +0000 (21:33 +0000)]
Merged revisions 79756 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79756 | russell | 2007-08-16 16:29:24 -0500 (Thu, 16 Aug 2007) | 11 lines

Fix more deadlocks in chan_iax2 that were introduced by making frame handling
and scheduling multi-threaded.  Unfortunately, we have to do some expensive
deadlock avoidance when queueing frames on to the ast_channel owner of the IAX2
pvt struct.  This was already handled for regular frames, but ast_queue_hangup
and ast_queue_control were still used directly.  Making these changes introduced
even more places where the IAX2 pvt struct can disappear in the context of a
function holding its lock due to calling a function that has to unlock/lock it
to avoid deadlocks.  I went through and fixed all of these places to account for
this possibility.
(issue #10362, patch by me)

........

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

12 years agoFix properties on trunk again.
Joshua Colp [Thu, 16 Aug 2007 21:28:50 +0000 (21:28 +0000)]
Fix properties on trunk again.

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

12 years agoMerged revisions 79748 via svnmerge from
Mark Michelson [Thu, 16 Aug 2007 21:21:35 +0000 (21:21 +0000)]
Merged revisions 79748 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79748 | mmichelson | 2007-08-16 16:16:40 -0500 (Thu, 16 Aug 2007) | 8 lines

Fixes a problem where agents would get stuck busy due to their wrapuptime being longer than the queue's wrapuptime and
ringinuse=no for the queue.

(closes issue #10215, reported by Doug, repaired by me)

Special thanks to fkasumovic for pointing out the source of the problem and to bweschke for helping to come up with a solution!

........

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

12 years agoDon't reload a configuration file if nothing has changed.
Tilghman Lesher [Thu, 16 Aug 2007 21:09:46 +0000 (21:09 +0000)]
Don't reload a configuration file if nothing has changed.

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

12 years agoMany thanks to mvanbaak for his update to translate hints; I added the -d option...
Steve Murphy [Thu, 16 Aug 2007 19:40:28 +0000 (19:40 +0000)]
Many thanks to mvanbaak for his update to translate hints; I added the -d option for local testing purposes. This is from bug 10472

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

12 years agoadded counter for iax2 show registry CLI output, closes issue 10461, thanks junky
Dwayne M. Hubbard [Thu, 16 Aug 2007 18:23:39 +0000 (18:23 +0000)]
added counter for iax2 show registry CLI output, closes issue 10461, thanks junky

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

12 years agoadded counter for voicemail show users, issue 10462, thanks junky
Dwayne M. Hubbard [Thu, 16 Aug 2007 17:44:25 +0000 (17:44 +0000)]
added counter for voicemail show users, issue 10462, thanks junky

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

12 years agomvanbaak asks: why did you include that twice? Answer: dunno. removed redundant include
Steve Murphy [Thu, 16 Aug 2007 17:34:50 +0000 (17:34 +0000)]
mvanbaak asks: why did you include that twice? Answer: dunno. removed redundant include

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

12 years agosvn did me dirty for some reason. Left 5 files out of the commit; Tilghman copied...
Steve Murphy [Thu, 16 Aug 2007 16:50:58 +0000 (16:50 +0000)]
svn did me dirty for some reason. Left 5 files out of the commit; Tilghman copied them in from the branch, but I had made changes to these. Here they are.

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

12 years agoMerged revisions 79690 via svnmerge from
Mark Michelson [Thu, 16 Aug 2007 15:59:15 +0000 (15:59 +0000)]
Merged revisions 79690 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79690 | mmichelson | 2007-08-16 10:58:34 -0500 (Thu, 16 Aug 2007) | 5 lines

base_encode is not trying to open a log file, so we should not call it a log file in the warning.

(related to issue #10452, reported by bcnit)

........

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