asterisk/asterisk.git
11 years agoInitialize the start time in smdi_msg_wait. Somehow this code got lost in trunk.
Russell Bryant [Tue, 13 May 2008 17:14:22 +0000 (17:14 +0000)]
Initialize the start time in smdi_msg_wait.  Somehow this code got lost in trunk.

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

11 years agoAdd a script which installs every package needed for a Debian install of
Tilghman Lesher [Mon, 12 May 2008 20:34:38 +0000 (20:34 +0000)]
Add a script which installs every package needed for a Debian install of
Asterisk, and includes possible support (to be contributed) for various other
distributions.
(closes issue #10523)
 Reported by: tzafrir
 Patches:
       install_prereq_2 uploaded by tzafrir (license 46)

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

11 years agoAdd support for playing an audio file for caller and callee at start and stop of...
Olle Johansson [Mon, 12 May 2008 18:39:09 +0000 (18:39 +0000)]
Add support for playing an audio file for caller and callee at start and stop of monitoring (one-touch monitor).
Keep messages short, since the other party is waiting while one party hear the message...

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

11 years agoMerged revisions 115735 via svnmerge from
Mark Michelson [Mon, 12 May 2008 17:55:08 +0000 (17:55 +0000)]
Merged revisions 115735 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115735 | mmichelson | 2008-05-12 12:51:14 -0500 (Mon, 12 May 2008) | 7 lines

If a thread holds no locks, do not print any information on the thread when issuing
a core show locks command. This will help to de-clutter output somewhat.

Russell said it would be fine to place this improvement in the 1.4 branch, so that's
why it's going here too.

........

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

11 years agoCorrectly document state interface for AddQueueMember. Discovered while looking...
Jason Parker [Mon, 12 May 2008 16:35:50 +0000 (16:35 +0000)]
Correctly document state interface for AddQueueMember.  Discovered while looking at issue #12626.

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

11 years agoA small change to fix iax2 native bridging.
Brett Bryant [Mon, 12 May 2008 15:17:32 +0000 (15:17 +0000)]
A small change to fix iax2 native bridging.

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

11 years agoAdd Zap MTP2 support to chan_zap
Matthew Fredrickson [Sun, 11 May 2008 03:23:05 +0000 (03:23 +0000)]
Add Zap MTP2 support to chan_zap

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

11 years agoOpen up audio channel when we get ACM on SS7 event
Matthew Fredrickson [Sun, 11 May 2008 02:19:21 +0000 (02:19 +0000)]
Open up audio channel when we get ACM on SS7 event

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

11 years agoEnsure that "calldate" is acceptable for a column name.
Tilghman Lesher [Sat, 10 May 2008 14:19:41 +0000 (14:19 +0000)]
Ensure that "calldate" is acceptable for a column name.

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

11 years agofix a sample since we now required , and not | for the arguments separator
Claude Patry [Sat, 10 May 2008 03:30:59 +0000 (03:30 +0000)]
fix a sample since we now required , and not | for the arguments separator

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

11 years agoameliorate load and unload to dont use DECLINED or FAILED, when theres no .conf involved.
Claude Patry [Sat, 10 May 2008 03:28:50 +0000 (03:28 +0000)]
ameliorate load and unload to dont use DECLINED or FAILED, when theres no .conf involved.

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

11 years agosince we unregister, that has not been properly registered, i standardized this.
Claude Patry [Sat, 10 May 2008 03:04:25 +0000 (03:04 +0000)]
since we unregister, that has not been properly registered, i standardized this.

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

11 years agoRemove a debug line
Mark Michelson [Fri, 9 May 2008 22:36:50 +0000 (22:36 +0000)]
Remove a debug line

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

11 years agoAdding support for "urgent" voicemail messages. Messages which are
Mark Michelson [Fri, 9 May 2008 21:22:42 +0000 (21:22 +0000)]
Adding support for "urgent" voicemail messages. Messages which are
marked "urgent" are considered to be higher priority than other messages
and so they will be played before any other messages in a user's mailbox.

There are two ways to leave an urgent message.
1. send the 'U' option to VoiceMail().
2. Set review=yes in voicemail.conf. This will give instructions for
   a caller to mark a message as urgent after the message has been recorded.

I have tested that this works correctly with file and ODBC storage, and James
Rothenberger (who wrote initial support for this feature) has tested its use
with IMAP storage.

(closes issue #11817)
Reported by: jaroth
Based on branch http://svn.digium.com/svn/asterisk/team/jrothenberger/asterisk-urgent
Tested by: putnopvut, jaroth

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

11 years agoUpdate CHANGES file for previous commit of ENUM and TXCIDNAME changes.
Brett Bryant [Fri, 9 May 2008 20:05:50 +0000 (20:05 +0000)]
Update CHANGES file for previous commit of ENUM and TXCIDNAME changes.

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

11 years agoThe following patch adds new options and alters the default behavior of the ENUM...
Brett Bryant [Fri, 9 May 2008 19:54:45 +0000 (19:54 +0000)]
The following patch adds new options and alters the default behavior of the ENUM* functions. The TXCIDNAME lookup function has also gotten a
new paramater. The new options for ENUM* functions include 'u', 's', 'i', and 'd' which return the full uri, trigger isn specific rewriting, look
for branches into an infrastructure enum tree, or do a direct dns lookup of a number respectively. The new paramater for TXCIDNAME adds a
zone-suffix argument for looking up caller id's in DNS that aren't e164.arpa.

This patch is based on the original code from otmar, modified by snuffy, and tested by jtodd, me, and others.

(closes issue #8089)
Reported by: otmar
Patches:
      20080508_bug8089-1.diff
- original code by otmar (license 480),
- revised by snuffy (license 35)
Tested by: oej, otmar, jtodd, Corydon76, snuffy, alexnikolov, bbryant

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

11 years agoAllow a password change to be validated by an external script.
Tilghman Lesher [Fri, 9 May 2008 17:28:06 +0000 (17:28 +0000)]
Allow a password change to be validated by an external script.
(closes issue #12090)
 Reported by: jaroth
 Patches:
       vm-check-newpassword.diff.txt uploaded by mvanbaak (license 7)
       20080509__bug12090.diff.txt uploaded by Corydon76 (license 14)

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

11 years agoMerged revisions 115579 via svnmerge from
Joshua Colp [Fri, 9 May 2008 16:36:58 +0000 (16:36 +0000)]
Merged revisions 115579 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115579 | file | 2008-05-09 13:34:08 -0300 (Fri, 09 May 2008) | 2 lines

Improve res_ninit and res_ndestroy autoconf logic on the Darwin platform.

........

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

11 years agoMerged revisions 115568 via svnmerge from
Russell Bryant [Thu, 8 May 2008 19:20:35 +0000 (19:20 +0000)]
Merged revisions 115568 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115568 | russell | 2008-05-08 14:19:50 -0500 (Thu, 08 May 2008) | 2 lines

Remove debug output.

........

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

11 years agoMerged revisions 115565 via svnmerge from
Russell Bryant [Thu, 8 May 2008 19:17:04 +0000 (19:17 +0000)]
Merged revisions 115565 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r115565 | russell | 2008-05-08 14:15:25 -0500 (Thu, 08 May 2008) | 33 lines

Merged revisions 115564 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r115564 | russell | 2008-05-08 14:14:04 -0500 (Thu, 08 May 2008) | 25 lines

Fix a race condition that bbryant just found while doing some IAX2 testing.
He was running Asterisk trunk running IAX2 calls through a few Asterisk boxes,
however, the audio was extremely choppy.  We looked at a packet trace and saw
a storm of INVAL and VNAK frames being sent from one box to another.

It turned out that what had happened was that one box tried to send a CONTROL
frame before the 3 way handshake had completed.  So, that frame did not include
the destination call number, because it didn't have it yet.  Part of our recent
work for security issues included an additional check to ensure that frames that
are supposed to include the destination call number have the correct one.  This
caused the frame to be rejected with an INVAL.  The frame would get retransmitted
for forever, rejected every time ...

This race condition exists in all versions that got the security changes,
in theory.  However, it is really only likely that this would cause a problem in
Asterisk trunk.  There was a control frame being sent (SRCUPDATE) at the _very_
beginning of the call, which does not exist in 1.2 or 1.4.  However, I am fixing
all versions that could potentially be affected by the introduced race condition.

These changes are what bbryant and I came up with to fix the issue.  Instead of
simply dropping control frames that get sent before the handshake is complete,
the code attempts to wait a little while, since in most cases, the handshake
will complete very quickly.  If it doesn't complete after yielding for a little
while, then the frame gets dropped.

........

................

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

11 years agoMerged revisions 115561 via svnmerge from
Russell Bryant [Thu, 8 May 2008 16:14:08 +0000 (16:14 +0000)]
Merged revisions 115561 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115561 | russell | 2008-05-08 11:11:33 -0500 (Thu, 08 May 2008) | 3 lines

Don't give up on attempting an outbound registration if we receive a 408 Timeout.
(closes issue #12323)

........

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

11 years agoMerged revisions 115557 via svnmerge from
Russell Bryant [Thu, 8 May 2008 15:38:27 +0000 (15:38 +0000)]
Merged revisions 115557 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115557 | russell | 2008-05-08 10:37:49 -0500 (Thu, 08 May 2008) | 3 lines

remove postgres_cdr.sql, as the CDR schema is in realtime_pgsql.sql, as well
(closes issue #9676)

........

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

11 years agoMerged revisions 115554 via svnmerge from
Russell Bryant [Thu, 8 May 2008 15:32:48 +0000 (15:32 +0000)]
Merged revisions 115554 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115554 | russell | 2008-05-08 10:32:08 -0500 (Thu, 08 May 2008) | 3 lines

Don't exit the script if Asterisk is not running.
(closes issue #12611)

........

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

11 years agoMerged revisions 115551 via svnmerge from
Russell Bryant [Thu, 8 May 2008 15:26:49 +0000 (15:26 +0000)]
Merged revisions 115551 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115551 | russell | 2008-05-08 10:24:54 -0500 (Thu, 08 May 2008) | 4 lines

Don't use a channel before checking for channel allocation failure.
(closes issue #12609)
Reported by: edantie

........

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

11 years agoRemove unused code as well as demote an error message to a debug message
Matthew Fredrickson [Thu, 8 May 2008 15:04:45 +0000 (15:04 +0000)]
Remove unused code as well as demote an error message to a debug message

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

11 years agoMerged revisions 115545 via svnmerge from
Russell Bryant [Thu, 8 May 2008 14:41:12 +0000 (14:41 +0000)]
Merged revisions 115545 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115545 | russell | 2008-05-08 09:40:53 -0500 (Thu, 08 May 2008) | 4 lines

Use the same method for executing Asterisk as the rest of the script.
(closes issue #12611)
Reported by: b_plessis

........

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

11 years agoFix up a problem that was introduced into the scheduler when it was converted
Russell Bryant [Wed, 7 May 2008 21:11:33 +0000 (21:11 +0000)]
Fix up a problem that was introduced into the scheduler when it was converted
to use doubly linked lists.  The schedule() function had an optimization that
had it try to guess which direction would be better for the traversal to insert
the task into the scheduler queue.  However, if the code chose the path where
it traversed the queue in reverse, and the result was that the task should be
at the head of the queue, then the code would actually put it at the tail,
instead.

(Problem found by bbryant, debugged and fixed by bbryant and me)

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

11 years agoAdvance to next sounds release
Tilghman Lesher [Wed, 7 May 2008 20:22:09 +0000 (20:22 +0000)]
Advance to next sounds release

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

11 years agoDon't free the object on destroy, as astobj2 takes care of that for you
Tilghman Lesher [Wed, 7 May 2008 18:40:21 +0000 (18:40 +0000)]
Don't free the object on destroy, as astobj2 takes care of that for you

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

11 years agoOnly save a password if a username exists.
Russell Bryant [Wed, 7 May 2008 18:33:50 +0000 (18:33 +0000)]
Only save a password if a username exists.

(closes issue #12600)
Reported By: suretec
Patch by me

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

11 years agoUse the default that the log output claims will be used for the basedn
Russell Bryant [Wed, 7 May 2008 18:30:12 +0000 (18:30 +0000)]
Use the default that the log output claims will be used for the basedn

(closes issue #12599)
Reported by: suretec
Patches:
      12599.patch uploaded by juggie (license 24)

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

11 years agoLet chan_h323 build in dev mode
Russell Bryant [Wed, 7 May 2008 18:24:51 +0000 (18:24 +0000)]
Let chan_h323 build in dev mode

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

11 years agoBlocked revisions 115517 via svnmerge
Russell Bryant [Wed, 7 May 2008 18:17:43 +0000 (18:17 +0000)]
Blocked revisions 115517 via svnmerge

........
r115517 | russell | 2008-05-07 13:17:19 -0500 (Wed, 07 May 2008) | 5 lines

Track peer references when stored in the sip_pvt struct as the peer related to
a qualify ping or a subscription.  This fixes some realtime related crashes.
(closes issue #12588)
(closes issue #12555)

........

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

11 years agore-add dlinkedlists.h to trunk, oops!
Russell Bryant [Wed, 7 May 2008 17:38:36 +0000 (17:38 +0000)]
re-add dlinkedlists.h to trunk, oops!

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

11 years agoMerged revisions 115512 via svnmerge from
Russell Bryant [Wed, 7 May 2008 17:28:19 +0000 (17:28 +0000)]
Merged revisions 115512 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r115512 | russell | 2008-05-07 11:24:09 -0500 (Wed, 07 May 2008) | 11 lines

Merged revisions 115511 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r115511 | russell | 2008-05-07 11:22:49 -0500 (Wed, 07 May 2008) | 3 lines

Remove remnants of dlinkedlists.  I didn't actually use them in the final version
of my IAX2 improvements.

........

................

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

11 years agoUpdate typos in description fields
Tilghman Lesher [Wed, 7 May 2008 13:49:15 +0000 (13:49 +0000)]
Update typos in description fields
(closes issue #12598)
 Reported by: suretec
 Patches:
       asterisk_schema_changes.patch uploaded by suretec (license 70)

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

11 years agoRemove redundant header getting.
Joshua Colp [Wed, 7 May 2008 13:41:25 +0000 (13:41 +0000)]
Remove redundant header getting.
(closes issue #12597)
Reported by: hooi

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

11 years agoGet refcounter to build with LOW_MEMORY defined
Mark Michelson [Tue, 6 May 2008 20:15:02 +0000 (20:15 +0000)]
Get refcounter to build with LOW_MEMORY defined

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

11 years agoMerged revisions 115422 via svnmerge from
Jason Parker [Tue, 6 May 2008 19:55:45 +0000 (19:55 +0000)]
Merged revisions 115422 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r115422 | qwell | 2008-05-06 14:55:29 -0500 (Tue, 06 May 2008) | 15 lines

Merged revisions 115421 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r115421 | qwell | 2008-05-06 14:54:57 -0500 (Tue, 06 May 2008) | 7 lines

read requires an argument on some non-bash shells

(closes issue #12593)
Reported by: bkruse
Patches:
      getilbc.sh_12593_v1.diff uploaded by bkruse (license 132)

........

................

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

11 years agoMerged revisions 115418 via svnmerge from
Jason Parker [Tue, 6 May 2008 19:38:44 +0000 (19:38 +0000)]
Merged revisions 115418 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115418 | qwell | 2008-05-06 14:34:58 -0500 (Tue, 06 May 2008) | 7 lines

Switch to using ast_random() rather than just rand().
This does not fix the bug reported, but I believe it is correct.

(from issue #12446)
Patches:
      bug_12446.diff uploaded by snuffy (license 35)

........

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

11 years agoMerged revisions 115415 via svnmerge from
Tilghman Lesher [Tue, 6 May 2008 19:32:29 +0000 (19:32 +0000)]
Merged revisions 115415 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115415 | tilghman | 2008-05-06 14:31:39 -0500 (Tue, 06 May 2008) | 2 lines

Don't print the terminating NUL.  (Closes issue #12589)

........

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

11 years agoChange some NOTICE log messages to debug.
Russell Bryant [Tue, 6 May 2008 15:14:55 +0000 (15:14 +0000)]
Change some NOTICE log messages to debug.

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

11 years agoMerged revisions 115341 via svnmerge from
Joshua Colp [Tue, 6 May 2008 13:55:44 +0000 (13:55 +0000)]
Merged revisions 115341 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115341 | file | 2008-05-06 10:54:15 -0300 (Tue, 06 May 2008) | 2 lines

Add in missing argument.

........

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

11 years agoMerge refcounting of res_odbc
Tilghman Lesher [Mon, 5 May 2008 23:38:15 +0000 (23:38 +0000)]
Merge refcounting of res_odbc

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

11 years agoMerged revisions 115333 via svnmerge from
Tilghman Lesher [Mon, 5 May 2008 23:00:31 +0000 (23:00 +0000)]
Merged revisions 115333 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115333 | tilghman | 2008-05-05 17:50:31 -0500 (Mon, 05 May 2008) | 7 lines

Separate verbose output from CLI output, by using a preamble.
(closes issue #12402)
 Reported by: Corydon76
 Patches:
       20080410__no_verbose_in_rx_output.diff.txt uploaded by Corydon76 (license 14)
       20080501__no_verbose_in_rx_output__1.4.diff.txt uploaded by Corydon76 (license 14)

........

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

11 years ago#execing the same file multiple times led to warning messages saying that the same...
Mark Michelson [Mon, 5 May 2008 22:14:06 +0000 (22:14 +0000)]
#execing the same file multiple times led to warning messages saying that the same file was
being #included twice. This was due to the fact that #exec created a temporary file which
was then #included. The name of the temporary file was the name of the #exec'd file, with
the Unix timestamp and thread ID concatenated. The issue was that if multiple #exec statements
of the same file were reached in the same second, then the result was that the temporary files
would have duplicate names. To resolve this, the temporary file now has microsecond resolution
for the timestamp portion.

(closes issue #12574)
Reported by: jmls
Patches:
      12574.patch uploaded by putnopvut (license 60)
Tested by: jmls, putnopvut

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

11 years agoMerged revisions 115327 via svnmerge from
Joshua Colp [Mon, 5 May 2008 22:13:57 +0000 (22:13 +0000)]
Merged revisions 115327 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115327 | file | 2008-05-05 19:10:05 -0300 (Mon, 05 May 2008) | 2 lines

Make sure that either the main speex library contains preprocess functions or that speexdsp does. If both fail then speex stuff can not be built.

........

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

11 years agoSimplify code by using a taskprocessor for dispatching events in the Asterisk core.
Russell Bryant [Mon, 5 May 2008 22:01:56 +0000 (22:01 +0000)]
Simplify code by using a taskprocessor for dispatching events in the Asterisk core.

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

11 years agoMerged revisions 115320 via svnmerge from
Mark Michelson [Mon, 5 May 2008 21:43:21 +0000 (21:43 +0000)]
Merged revisions 115320 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115320 | mmichelson | 2008-05-05 16:41:34 -0500 (Mon, 05 May 2008) | 13 lines

Don't consider a caller "handled" until the caller is bridged with
a queue member. There was too much of an opportunity for the member
to hang up (either during a delay, announcement, or overly long
agi) between the time that he answered the phone and the time when
he actually was bridged with the caller. The consequence of this
was that if the member hung up in that interval, then proper
abandonment details would not be noted in the queue log if the caller
were to hang up at any point after the member hangup.

(closes issue #12561)
Reported by: ablackthorn

........

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

11 years agoRemove my rant, since I have now replaced the rant with code.
Russell Bryant [Mon, 5 May 2008 20:28:17 +0000 (20:28 +0000)]
Remove my rant, since I have now replaced the rant with code.

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

11 years agoMerged revisions 115312 via svnmerge from
Tilghman Lesher [Mon, 5 May 2008 20:22:08 +0000 (20:22 +0000)]
Merged revisions 115312 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115312 | tilghman | 2008-05-05 15:17:55 -0500 (Mon, 05 May 2008) | 2 lines

Reverse order, such that user configs override default selections

........

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

11 years agoMerged revisions 115308 via svnmerge from
Tilghman Lesher [Mon, 5 May 2008 19:57:28 +0000 (19:57 +0000)]
Merged revisions 115308 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115308 | tilghman | 2008-05-05 14:55:55 -0500 (Mon, 05 May 2008) | 2 lines

Err, the documentation on the return value of ast_odbc_backslash_is_escape is exactly backwards.

........

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

11 years agoMerged revisions 115304 via svnmerge from
Russell Bryant [Mon, 5 May 2008 19:50:24 +0000 (19:50 +0000)]
Merged revisions 115304 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115304 | russell | 2008-05-05 14:49:25 -0500 (Mon, 05 May 2008) | 5 lines

Avoid putting opaque="" in Digest authentication.  This patch came from switchvox.
It fixes authentication with Primus in Canada, and has been in use for a very long
time without causing problems with any other providers.
(closes issue AST-36)

........

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

11 years agoNote change for ExecIf syntax (caught by jmls on IRC)
Tilghman Lesher [Mon, 5 May 2008 19:42:36 +0000 (19:42 +0000)]
Note change for ExecIf syntax (caught by jmls on IRC)

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

11 years agoOptionally display the value of several variables within the Status command.
Tilghman Lesher [Mon, 5 May 2008 19:33:14 +0000 (19:33 +0000)]
Optionally display the value of several variables within the Status command.
(Closes issue AST-34)

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

11 years agoDocument the 'B' option of app_chanspy.
Joshua Colp [Mon, 5 May 2008 13:52:44 +0000 (13:52 +0000)]
Document the 'B' option of app_chanspy.
(closes issue #12582)
Reported by: IgorG
Patches:
      app_chanspy_B_option.diff uploaded by IgorG (license 20)

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

11 years agoclarify wording
Kevin P. Fleming [Mon, 5 May 2008 10:55:09 +0000 (10:55 +0000)]
clarify wording

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

11 years agoMerged revisions 115285 via svnmerge from
Tilghman Lesher [Mon, 5 May 2008 03:25:35 +0000 (03:25 +0000)]
Merged revisions 115285 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115285 | tilghman | 2008-05-04 22:22:25 -0500 (Sun, 04 May 2008) | 7 lines

When starting Asterisk, bug out if Asterisk is already running.
(closes issue #12525)
 Reported by: explidous
 Patches:
       20080428__bug12525.diff.txt uploaded by Corydon76 (license 14)
 Tested by: mvanbaak

........

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

11 years agoMerged revisions 115282 via svnmerge from
Joshua Colp [Sun, 4 May 2008 02:11:01 +0000 (02:11 +0000)]
Merged revisions 115282 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115282 | file | 2008-05-03 23:09:44 -0300 (Sat, 03 May 2008) | 2 lines

Expand the test function for GCC attributes so that more complex attributes are properly recognized.

........

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

11 years agoMerged revisions 115279 via svnmerge from
Joshua Colp [Sun, 4 May 2008 01:52:00 +0000 (01:52 +0000)]
Merged revisions 115279 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115279 | file | 2008-05-03 22:50:59 -0300 (Sat, 03 May 2008) | 2 lines

For my next trick I will make these work with what our autoconf header file gives us.

........

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

11 years agoMerged revisions 115276 via svnmerge from
Joshua Colp [Sun, 4 May 2008 01:45:21 +0000 (01:45 +0000)]
Merged revisions 115276 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115276 | file | 2008-05-03 22:43:26 -0300 (Sat, 03 May 2008) | 2 lines

Treat warnings as errors when checking if a GCC attribute exists. We have to do this as GCC will just ignore the attribute and pop up a warning, it won't actually fail to compile.

........

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

11 years agoapp_voicemail uses a taskprocessor for mwi notification subscriptions
Dwayne M. Hubbard [Sat, 3 May 2008 04:23:18 +0000 (04:23 +0000)]
app_voicemail uses a taskprocessor for mwi notification subscriptions

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

11 years agopbx uses a taskprocessor for device state changes
Dwayne M. Hubbard [Sat, 3 May 2008 04:12:54 +0000 (04:12 +0000)]
pbx uses a taskprocessor for device state changes

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

11 years agoapp_queue uses a taskprocessor for device state changes
Dwayne M. Hubbard [Sat, 3 May 2008 03:57:42 +0000 (03:57 +0000)]
app_queue uses a taskprocessor for device state changes

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

11 years agoA taskprocessor is an object that has a name, a task queue, and an event processing...
Dwayne M. Hubbard [Sat, 3 May 2008 03:40:32 +0000 (03:40 +0000)]
A taskprocessor is an object that has a name, a task queue, and an event processing thread.  Modules reference a taskprocessor, push tasks into the taskprocessor as needed, and unreference the taskprocessor when the taskprocessor is no longer needed.

A task wraps a callback function pointer and a data pointer and is managed internal to the taskprocessor subsystem.  The callback function is responsible for releasing task data.

Taskprocessor API
 * ast_taskprocessor_get(..) - returns a reference to a taskprocessor
 * ast_taskprocessor_unreference(..) - releases reference to a taskprocessor
 * ast_taskprocessor_push(..) - push a task into a taskprocessor queue

Check doxygen for more details

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

11 years agoBlocked revisions 115257 via svnmerge
Brett Bryant [Fri, 2 May 2008 20:26:00 +0000 (20:26 +0000)]
Blocked revisions 115257 via svnmerge

........
r115257 | bbryant | 2008-05-02 15:25:42 -0500 (Fri, 02 May 2008) | 2 lines

Add new "pri show version" command to show the libpri version for support reasons.

........

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

11 years agoMake res/snmp/agent.c build
Mark Michelson [Fri, 2 May 2008 14:51:59 +0000 (14:51 +0000)]
Make res/snmp/agent.c build

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

11 years agoMerged revisions 115196 via svnmerge from
Mark Michelson [Fri, 2 May 2008 14:28:55 +0000 (14:28 +0000)]
Merged revisions 115196 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115196 | mmichelson | 2008-05-02 09:28:19 -0500 (Fri, 02 May 2008) | 6 lines

Clarify a comment that was, well, just wrong. It turns out that
ignoring the way that macros expand. Instead, I have clarified in the
comment why the macro will work even if the scheduler id for the
task to be deleted changes during the execution of the macro.

........

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

11 years agoOkay, maybe FreeBSD will like this better.
Tilghman Lesher [Fri, 2 May 2008 02:56:39 +0000 (02:56 +0000)]
Okay, maybe FreeBSD will like this better.

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

11 years agoAdd attributes to various API calls, to help track down bugs (and remove a deprecated...
Tilghman Lesher [Fri, 2 May 2008 02:33:04 +0000 (02:33 +0000)]
Add attributes to various API calls, to help track down bugs (and remove a deprecated function)

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

11 years agoMerged revisions 115102 via svnmerge from
Tilghman Lesher [Thu, 1 May 2008 23:21:13 +0000 (23:21 +0000)]
Merged revisions 115102 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115102 | tilghman | 2008-05-01 18:20:25 -0500 (Thu, 01 May 2008) | 2 lines

Change the comment of deprecated to an actual compiler deprecation

........

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

11 years agoAdd two new console commands "pri show version" and "ss7 show version" that will...
Brett Bryant [Thu, 1 May 2008 23:09:08 +0000 (23:09 +0000)]
Add two new console commands "pri show version" and "ss7 show version" that will show the version of each library respectively.

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

11 years agoModify TIMEOUT() to be accurate down to the millisecond.
Tilghman Lesher [Thu, 1 May 2008 23:06:23 +0000 (23:06 +0000)]
Modify TIMEOUT() to be accurate down to the millisecond.
(closes issue #10540)
 Reported by: spendergrass
 Patches:
       20080417__bug10540.diff.txt uploaded by Corydon76 (license 14)
 Tested by: blitzrage

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

11 years agoMerge changes from team/russell/smdi-msg-searching
Russell Bryant [Thu, 1 May 2008 19:05:36 +0000 (19:05 +0000)]
Merge changes from team/russell/smdi-msg-searching

This commit adds some new features to the SMDI_MSG_RETRIEVE() dialplan function.
Previously, this function only allowed searching by the forwarding station.
I have added some options to allow you to also search for messages in the queue
by the message desk terminal ID, as well as the message desk number.

This originally came up as a suggestion on the asterisk-dev mailing list.

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

11 years agoMerged revisions 115017 via svnmerge from
Tilghman Lesher [Thu, 1 May 2008 19:00:18 +0000 (19:00 +0000)]
Merged revisions 115017 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115017 | tilghman | 2008-05-01 13:59:08 -0500 (Thu, 01 May 2008) | 6 lines

'#' is another reserved character for URIs that also needs to be escaped.
(closes issue #10543)
 Reported by: blitzrage
 Patches:
       20080418__bug10543.diff.txt uploaded by Corydon76 (license 14)

........

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

11 years agoAdd "read" capability to new libspeex functions in func_speex.c.
Brett Bryant [Thu, 1 May 2008 18:28:38 +0000 (18:28 +0000)]
Add "read" capability to new libspeex functions in func_speex.c.

func_speex.c is based on contributions from Switchvox.

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

11 years agoClarify the deprecation notice about Macro() to note that it will not be removed
Russell Bryant [Thu, 1 May 2008 17:28:25 +0000 (17:28 +0000)]
Clarify the deprecation notice about Macro() to note that it will not be removed
for the sake of backwards compatibility, since it is a non-trivial task to convert
existing large dialplans that depend on Macro() to use GoSub(), instead.

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

11 years agoAdd two new dialplan functions from libspeex for applying audio gain control
Brett Bryant [Thu, 1 May 2008 16:57:19 +0000 (16:57 +0000)]
Add two new dialplan functions from libspeex for applying audio gain control
and denoising to a channel, AGC() and DENOISE(). Also included, is a change
to the audiohook API to add a new function (ast_audiohook_remove) that can
remove an audiohook from a channel before it is detached.

This code is based on a contribution from Switchvox.

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

11 years agoAllow dringXrange to properly default to 10, as was done in 1.4.
Jason Parker [Thu, 1 May 2008 16:49:24 +0000 (16:49 +0000)]
Allow dringXrange to properly default to 10, as was done in 1.4.

dringXrange is a new feature that was added, and it attempted to default, but only when the option was specified.

(closes issue #12536)
Reported by: bjm
Patches:
      12536-dringXrange.diff uploaded by qwell (license 4)
Tested by: bjm

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

11 years agoAdd support for specifying the registration expiry on a per registration basis in...
Joshua Colp [Wed, 30 Apr 2008 20:51:17 +0000 (20:51 +0000)]
Add support for specifying the registration expiry on a per registration basis in the register line. This comes from a Switchvox patch. (issue AST-24)

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

11 years agoAdding new configuration options to app_queue. This adds two new values
Mark Michelson [Wed, 30 Apr 2008 19:30:41 +0000 (19:30 +0000)]
Adding new configuration options to app_queue. This adds two new values
to announce-position, "limit" and "more," as well as a new option,
announce-position-limit. For more information on the use of these options,
see CHANGES or configs/queues.conf.sample.

(closes issue #10991)
Reported by: slavon
Patches:
      app_q.diff uploaded by slavon (license 288)
Tested by: slavon, putnopvut

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

11 years agoLock around variables retrieved, and copy the values, if they stay persistent,
Tilghman Lesher [Wed, 30 Apr 2008 19:21:04 +0000 (19:21 +0000)]
Lock around variables retrieved, and copy the values, if they stay persistent,
since another thread could remove them.
(closes issue #12541)
 Reported by: snuffy
 Patches:
       bug_12156_apps.diff uploaded by snuffy (license 35)
       Several additional changes by me

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

11 years agoMerged revisions 114890 via svnmerge from
Olle Johansson [Wed, 30 Apr 2008 16:55:49 +0000 (16:55 +0000)]
Merged revisions 114890 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114890 | oej | 2008-04-30 18:23:17 +0200 (Ons, 30 Apr 2008) | 7 lines

Don't crash on bad SIP replys.
Fix created in Huntsville together with Mark M (putnopvut)

(closes issue #12363)
Reported by: jvandal
Tested by: putnopvut, oej

........

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

11 years agoMerged revisions 114891 via svnmerge from
Russell Bryant [Wed, 30 Apr 2008 16:34:24 +0000 (16:34 +0000)]
Merged revisions 114891 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114891 | russell | 2008-04-30 11:30:01 -0500 (Wed, 30 Apr 2008) | 28 lines

Merge changes from team/russell/iax2_find_callno and iax2_find_callno_1.4

These changes address a critical performance issue introduced in the latest
release.  The fix for the latest security issue included a change that made
Asterisk randomly choose call numbers to make them more difficult to guess by
attackers.  However, due to some inefficient (this is by far, an understatement)
code, when Asterisk chose high call numbers, chan_iax2 became unusable after
just a small number of calls.  On a small embedded platform, it would not be
able to handle a single call.  On my Intel Core 2 Duo @ 2.33 GHz, I couldn't
run more than about 16 IAX2 channels.  Ouch.

These changes address some performance issues of the find_callno() function
that have bothered me for a very long time.  On every incoming media frame,
it iterated through every possible call number trying to find a matching
active call.  This involved a mutex lock and unlock for each call number
checked.  So, if the random call number chosen was 20000, then every media
frame would cause 20000 locks and unlocks.  Previously, this problem was
not as obvious since Asterisk always chose the lowest call number it could.

A second container for IAX2 pvt structs has been added.  It is an astobj2
hash table.  When we know the remote side's call number, the pvt goes into
the hash table with a hash value of the remote side's call number.  Then,
lookups for incoming media frames are a very fast hash lookup instead of an
absolutely insane array traversal.

In a quick test, I was able to get more than 3600% more IAX2 channels
on my machine with these changes.

........

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

11 years agoFixes a bug where if a stream monitor thread was not created (caused from failure...
Jeff Peeler [Wed, 30 Apr 2008 16:14:43 +0000 (16:14 +0000)]
Fixes a bug where if a stream monitor thread was not created (caused from failure of opening or starting the stream) pthread_cancel was called with an invalid thread ID.

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

11 years agoMerged revisions 114880 via svnmerge from
Kevin P. Fleming [Wed, 30 Apr 2008 14:49:51 +0000 (14:49 +0000)]
Merged revisions 114880 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114880 | kpfleming | 2008-04-30 09:46:57 -0500 (Wed, 30 Apr 2008) | 2 lines

use the ARRAY_LEN macro for indexing through the iaxs/iaxsl arrays so that the size of the arrays can be adjusted in one place, and change the size of the arrays from 32768 calls to 2048 calls when LOW_MEMORY is defined

........

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

11 years agoMerged revisions 114875 via svnmerge from
Kevin P. Fleming [Wed, 30 Apr 2008 12:15:43 +0000 (12:15 +0000)]
Merged revisions 114875 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114875 | kpfleming | 2008-04-30 07:14:07 -0500 (Wed, 30 Apr 2008) | 2 lines

pay attention to *all* header files for dependency tracking, not just the local ones (inspired by r578 of asterisk-addons by tilghman)

........

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

11 years agoDocument the Incomplete application addition.
Tilghman Lesher [Wed, 30 Apr 2008 05:05:25 +0000 (05:05 +0000)]
Document the Incomplete application addition.

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

11 years agoFixes a problem where all the templates were marked as dead no matter what. The templ...
Jeff Peeler [Tue, 29 Apr 2008 22:54:14 +0000 (22:54 +0000)]
Fixes a problem where all the templates were marked as dead no matter what. The templates should only be marked as dead if a configuration file has been successfully loaded and has changes. Bug found while making API documentation for 1.6.0.

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

11 years agoPatching app_chanspy to jibe better with what is documented. This allows for
Mark Michelson [Tue, 29 Apr 2008 21:07:36 +0000 (21:07 +0000)]
Patching app_chanspy to jibe better with what is documented. This allows for
a colon-delimited list of spygroups to be specified when calling the ChanSpy application
with the 'g' option. Prior to this, you could only specify a single group when using the
'g' option.

I also have upped the maximum number of spygroups to 128 and added a #define so that this
can be easily increased or decreased later.

(closes issue #12497)
Reported by: jsmith
Patches:
      app_chanspy_multiple_groups_v2.patch uploaded by jsmith (license 15)
Tested by: atis, jvandal

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

11 years agoFix formatting
Jason Parker [Tue, 29 Apr 2008 20:05:48 +0000 (20:05 +0000)]
Fix formatting

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

11 years agoMerged revisions 114848 via svnmerge from
Mark Michelson [Tue, 29 Apr 2008 19:42:04 +0000 (19:42 +0000)]
Merged revisions 114848 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114848 | mmichelson | 2008-04-29 14:40:06 -0500 (Tue, 29 Apr 2008) | 14 lines

Use the MACRO_CONTEXT and MACRO_EXTEN channel variables instead of the channel's macrocontext
and macroexten fields. This is needed because if macros are daisy-chained, the incorrect
context and extension are placed on the new channel. I also added locking to the channel prior
to accessing these variables as noted in trunk's janitor project file.

(closes issue #12549)
Reported by: darren1713
Patches:
      app_queue.c.macroextenpatch uploaded by darren1713 (license 116)
       (with modifications from me)
Tested by: putnopvut

........

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

11 years agofix this logic to actually be correct... the fd can't be *both* -1 and an array index...
Kevin P. Fleming [Tue, 29 Apr 2008 18:58:48 +0000 (18:58 +0000)]
fix this logic to actually be correct... the fd can't be *both* -1 and an array index to be checked in rfds/efds (bug found by gcc-4.3)

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

11 years agoMake app_directory dependent on app_voicemail. This is because the function
Mark Michelson [Tue, 29 Apr 2008 18:48:26 +0000 (18:48 +0000)]
Make app_directory dependent on app_voicemail. This is because the function
which says the person's name is handled inside app_voicemail now.

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

11 years agoSince there is now a globally available function for saying someone's name, a LOT of
Mark Michelson [Tue, 29 Apr 2008 17:56:13 +0000 (17:56 +0000)]
Since there is now a globally available function for saying someone's name, a LOT of
functions in app_directory can be removed since the ODBC-specific lookups are accomplished
within app_voicemail. This change greatly reduces the amount of lines in app_directory that
were solely for the purpose of looking up a name when ODBC_STORAGE is specified for voicemail.

This commit also makes the name-saying interruptable via DTMF.

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

11 years agoFix a crash happening in app_directory. This crash would occur if a users.conf existed.
Mark Michelson [Tue, 29 Apr 2008 17:31:26 +0000 (17:31 +0000)]
Fix a crash happening in app_directory. This crash would occur if a users.conf existed.

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

11 years agoMerged revisions 114829 via svnmerge from
Jason Parker [Tue, 29 Apr 2008 17:10:55 +0000 (17:10 +0000)]
Merged revisions 114829 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114829 | qwell | 2008-04-29 12:08:55 -0500 (Tue, 29 Apr 2008) | 1 line

Change warning message to debug, since there are cases where 0 results is perfectly fine.
........

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

11 years agoMerged revisions 114823 via svnmerge from
Kevin P. Fleming [Tue, 29 Apr 2008 12:54:31 +0000 (12:54 +0000)]
Merged revisions 114823 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r114823 | kpfleming | 2008-04-29 07:53:12 -0500 (Tue, 29 Apr 2008) | 10 lines

Merged revisions 114822 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r114822 | kpfleming | 2008-04-29 07:52:32 -0500 (Tue, 29 Apr 2008) | 2 lines

stop script from appending source code if run multiple times

........

................

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

11 years agoAdding a new option 'n' to app_chanspy. This option allows for the name of the spied-on
Mark Michelson [Mon, 28 Apr 2008 22:38:07 +0000 (22:38 +0000)]
Adding a new option 'n' to app_chanspy. This option allows for the name of the spied-on
party to be spoken instead of the channel name or number.

This was accomplished by adding a new function pointer to point to a function in app_voicemail
which retrieves the name file and plays it. This makes for an easy way that applications may play
a user's name should it be necessary. app_directory, in particular, can be simplified greatly by
this change.

This change comes as a suggestion from Switchvox, which already has this feature. AST-23

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

11 years agoFix deadlock issue in chan_zap with libss7 due to channel variables being set with...
Matthew Fredrickson [Mon, 28 Apr 2008 17:00:38 +0000 (17:00 +0000)]
Fix deadlock issue in chan_zap with libss7 due to channel variables being set with the channel pvt lock being held. #12512

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