]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
18 years agoAdd a new module flag to indicate that a build sum is present. Modules built
Russell Bryant [Thu, 6 Dec 2007 19:11:35 +0000 (19:11 +0000)] 
Add a new module flag to indicate that a build sum is present.  Modules built
against older Asterisk 1.4 headers will now load properly with just a warning
indicating that they are old and may cause problems.
(patch by paravoid)

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

18 years agoFix various in the udptl implementation. It could return empty modem frames, have...
Joshua Colp [Thu, 6 Dec 2007 16:49:42 +0000 (16:49 +0000)] 
Fix various in the udptl implementation. It could return empty modem frames, have an incorrect sequence number on packets, and display the wrong sequence number in the debug messages.
(closes issue #11228)
Reported by: Cache
Patches:
      udptl-4.patch uploaded by dimas (license 88)

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

18 years agoAdd support for accepting and sending T.38 in the initial INVITE.
Joshua Colp [Thu, 6 Dec 2007 16:14:26 +0000 (16:14 +0000)] 
Add support for accepting and sending T.38 in the initial INVITE.
(closes issue #9402)
Reported by: thdei

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

18 years agoMake sure logger is reloaded at general reload in the cli.
Olle Johansson [Thu, 6 Dec 2007 12:54:11 +0000 (12:54 +0000)] 
Make sure logger is reloaded at general reload in the cli.

(Discovered during Asterisk training in Portugal)

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

18 years agoReverting extra stuff I didn't mean to commit
Mark Michelson [Wed, 5 Dec 2007 22:57:13 +0000 (22:57 +0000)] 
Reverting extra stuff I didn't mean to commit

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

18 years agoThe 'G' option for Dial() did not properly handle the case where only a label was
Mark Michelson [Wed, 5 Dec 2007 22:35:52 +0000 (22:35 +0000)] 
The 'G' option for Dial() did not properly handle the case where only a label was
provided. This was due to the fact that the answering channel did not have an extension
set, so ast_parseable_goto would fail. This fix eliminates the call to ast_parseable_goto
on the answering channel since it is a wasteful call. The answering channel and the calling
channel are both directed to the same extension and context, just different priorities, so
we can just copy the values from the calling channel to the answering channel and increment
the answering channel's priority.

(closes issue #11382, reported by jon, patch by me with correction by jon)

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

18 years agoUpgrade to the latest version of extra sounds
Tilghman Lesher [Wed, 5 Dec 2007 21:38:13 +0000 (21:38 +0000)] 
Upgrade to the latest version of extra sounds

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

18 years agoMake the lock in the threadstorage debugging code untracked to avoid a deadlock
Russell Bryant [Wed, 5 Dec 2007 17:31:42 +0000 (17:31 +0000)] 
Make the lock in the threadstorage debugging code untracked to avoid a deadlock
on thread destruction.

(closes issue #11207)
Reported by: ys
Patches:
      threadstorage.c.diff uploaded by ys (license 281)

Also fixes an open bug report: (closes issue #11446)

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

18 years agoWhen DEBUG_THREADS is enabled, we only have the details about who is holding
Russell Bryant [Wed, 5 Dec 2007 00:48:47 +0000 (00:48 +0000)] 
When DEBUG_THREADS is enabled, we only have the details about who is holding
a lock that we are waiting on for a mutex, not rwlocks.  This should fix the
problem where people have reported "core show locks" crashing sometimes.

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

18 years agoFix some crashes in chan_iax2 that were reported as happening on Mac systems.
Russell Bryant [Wed, 5 Dec 2007 00:35:31 +0000 (00:35 +0000)] 
Fix some crashes in chan_iax2 that were reported as happening on Mac systems.
It turns out that the problem was the Mac version of the ast_atomic_fetchadd_int()
function.  The Mac atomic add function returns the _new_ value, while this function
is supposed to return the old value.  So, the crashes happened on unreferencing
objects.  If the reference count was decreased to 1, ao2_ref() thought that it
had been decreased to zero, and called the destructor.  However, there was still
an outstanding reference around.

(closes issue #11176)
(closes issue #11289)

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

18 years agoModify file.h to maintain API compatibility with earlier versions. If a recent
Russell Bryant [Tue, 4 Dec 2007 23:46:40 +0000 (23:46 +0000)] 
Modify file.h to maintain API compatibility with earlier versions.  If a recent
compiler is being used, then a warning will show up for any modules still using
the old name "private" instead of "_private".
(patch suggested by paravoid)

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

18 years agoMake some changes to some additions I made recently for doing channel autoservice
Russell Bryant [Tue, 4 Dec 2007 19:57:39 +0000 (19:57 +0000)] 
Make some changes to some additions I made recently for doing channel autoservice
when looking up extensions.  This code was added to handle the case where a
dialplan switch was in use that could block for a long time.  However, the way
that I added it, it did this for all extension lookups.  However, lookups in the
in-memory tree of extensions should _not_ take long enough to matter.  So, move
the autoservice stuff to be only around executing a switch.

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

18 years agoIf we fail to create a channel after allocating a timing fd, we need to make sure...
Jason Parker [Tue, 4 Dec 2007 17:28:08 +0000 (17:28 +0000)] 
If we fail to create a channel after allocating a timing fd, we need to make sure to close it.

Issue 11454, patch by eliel.

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

18 years agoFix build issue on the build cluster.
Joshua Colp [Tue, 4 Dec 2007 05:29:33 +0000 (05:29 +0000)] 
Fix build issue on the build cluster.

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

18 years agoSolaris requires the inclusion of sys/loadavg.h for getloadavg().
Tilghman Lesher [Mon, 3 Dec 2007 23:50:51 +0000 (23:50 +0000)] 
Solaris requires the inclusion of sys/loadavg.h for getloadavg().
Reported by: snuffy
Patch by: snuffy,tilghman
(Closes issue #11430)

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

18 years agoIf both dbhost and dbsock were not set, a NULL deref could result
Tilghman Lesher [Mon, 3 Dec 2007 23:23:55 +0000 (23:23 +0000)] 
If both dbhost and dbsock were not set, a NULL deref could result
Reported by: xrg
Patch by: tilghman
(Closes issue #11387)

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

18 years agoA big one...
Mark Michelson [Mon, 3 Dec 2007 23:12:17 +0000 (23:12 +0000)] 
A big one...

This is the merge of the forward-loop branch. The main change here is that call-forwards can no longer loop.
This is accomplished by creating a datastore on the calling channel which has a linked list of all devices
dialed. If a forward happens, then the local channel which is created inherits the datastore. If, through this
progression of forwards and datastore inheritance, a device is attempted to be dialed a second time, it will simply
be skipped and a warning message will be printed to the CLI. After the dialing has been completed, the datastore
is detached from the channel and destroyed.

This change also introduces some side effects to the code which I shall enumerate here:

1. Datastore inheritance has been backported from trunk into 1.4
2. A large chunk of code has been removed from app_dial. This chunk is the section of code
   which handles the call forward case after the channel has been requested but before it has
   been called. This was removed because call-forwarding still works fine without it, it makes the
   code less error-prone should it need changing, and it made this set of changes much less painful
   to just have the forwarding handled in one place in each module.
3. Two new files, global_datastores.h and .c have been added. These are necessary since the datastore
   which is attached to the channel may be created and attached in either app_dial or app_queue, so they
   need a common place to find the datastore info. This approach was taken in case similar datastores are
   needed in the future, there will be a common place to add them.

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

18 years agoMake sure we always close the conference fd if we have an open one.
Jason Parker [Mon, 3 Dec 2007 22:06:36 +0000 (22:06 +0000)] 
Make sure we always close the conference fd if we have an open one.

Issue 11383, reported by markmhy, patch by eliel.

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

18 years agoChanging some bad logic when calculating the interdigit timeout.
Mark Michelson [Mon, 3 Dec 2007 20:59:51 +0000 (20:59 +0000)] 
Changing some bad logic when calculating the interdigit timeout.

(closes issue #11402, reported and patched by eferro)

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

18 years agoFix crash in ParkAndAnnounce application.
Jason Parker [Mon, 3 Dec 2007 20:51:17 +0000 (20:51 +0000)] 
Fix crash in ParkAndAnnounce application.

Issue #11436, reported by lytledd, patch by eliel.

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

18 years agoDo not create a smoother for G723.1 frames, they need to be left alone to their nativ...
Joshua Colp [Mon, 3 Dec 2007 20:05:42 +0000 (20:05 +0000)] 
Do not create a smoother for G723.1 frames, they need to be left alone to their native 20/24 byte size.

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

18 years agoPreserve the indication currently playing on a channel when a masquerade operation...
Joshua Colp [Mon, 3 Dec 2007 18:40:56 +0000 (18:40 +0000)] 
Preserve the indication currently playing on a channel when a masquerade operation happens. (issue #BE-88)

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

18 years agoOnly log debug messages if debug is enabled.
Jason Parker [Mon, 3 Dec 2007 18:20:49 +0000 (18:20 +0000)] 
Only log debug messages if debug is enabled.

Closes issue #11416, patch by casper.

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

18 years agoThe other day when I went through making changes as a result of the ao2_link()
Russell Bryant [Sun, 2 Dec 2007 18:18:52 +0000 (18:18 +0000)] 
The other day when I went through making changes as a result of the ao2_link()
change, I added some code to set pointers to NULL after they were unreferenced.
This pointed out that in this place, the object was unreferenced before the
code was done using it.  So, move the unref down a little bit.
(crash reported by jmls on IRC)

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

18 years agoClarify the return value on autoservice. Specifically, if you started
Tilghman Lesher [Sun, 2 Dec 2007 09:34:23 +0000 (09:34 +0000)] 
Clarify the return value on autoservice.  Specifically, if you started
autoservice and autoservice was already on, it would erroneously return an
error.
Reported by: adiemus
Patch by: dimas
(Closes issue #11433)

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

18 years agoChange the behavior of ao2_link(). Previously, in inherited a reference.
Russell Bryant [Fri, 30 Nov 2007 19:26:04 +0000 (19:26 +0000)] 
Change the behavior of ao2_link().  Previously, in inherited a reference.
Now, it automatically increases the reference count to reflect the reference
that is now held by the container.

This was done to be more consistent with ao2_unlink(), which automatically
releases the reference held by the container.  It also makes it so it is
no longer possible for a pointer to be invalid after ao2_link() returns.

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

18 years agoAdd some notes on the behavior of ao2_unlink() after a discussion with Tilghman
Russell Bryant [Fri, 30 Nov 2007 18:46:46 +0000 (18:46 +0000)] 
Add some notes on the behavior of ao2_unlink() after a discussion with Tilghman

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

18 years agoFix locking issues under one legged replaces scenarios.
Joshua Colp [Fri, 30 Nov 2007 14:43:15 +0000 (14:43 +0000)] 
Fix locking issues under one legged replaces scenarios.
(closes issue #11420)
Reported by: irroot
Patches:
      chan_sip_oneleg.patch uploaded by irroot (license 52)

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

18 years agoClear the DTMF buffer if the call times out.
Mark Michelson [Fri, 30 Nov 2007 00:16:04 +0000 (00:16 +0000)] 
Clear the DTMF buffer if the call times out.

(closes issue #11418, reported and patched by eferro)

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

18 years agoProperly escape cdr->src and cdr->dst and ensure we use thread-safe escaping
Tilghman Lesher [Thu, 29 Nov 2007 19:48:10 +0000 (19:48 +0000)] 
Properly escape cdr->src and cdr->dst and ensure we use thread-safe escaping
(Fixes AST-2007-026)

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

18 years agoThis patch handles the case where a queue member with a negative penalty is added
Mark Michelson [Thu, 29 Nov 2007 19:38:39 +0000 (19:38 +0000)] 
This patch handles the case where a queue member with a negative penalty is added
via the manager. If a negative value is submitted for a member penalty, we set it to 0.

(closes issue #11411, reported and patched by Laureano)

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

18 years agoProperly escape input buffers (Fixes AST-2007-025)
Tilghman Lesher [Thu, 29 Nov 2007 19:24:11 +0000 (19:24 +0000)] 
Properly escape input buffers (Fixes AST-2007-025)

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

18 years agoUse of "private" as a field name in a header file messes with C++ projects
Tilghman Lesher [Thu, 29 Nov 2007 17:29:59 +0000 (17:29 +0000)] 
Use of "private" as a field name in a header file messes with C++ projects
Reported by: chewbacca
Patch by: casper
(Closes issue #11401)

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

18 years agoUpgrade the core sounds release version
Tilghman Lesher [Thu, 29 Nov 2007 17:18:09 +0000 (17:18 +0000)] 
Upgrade the core sounds release version

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

18 years agofix some formatting i accidentally changed
Russell Bryant [Thu, 29 Nov 2007 00:36:59 +0000 (00:36 +0000)] 
fix some formatting i accidentally changed

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

18 years agoThis set of changes is to make some callerID handling thread-safe.
Russell Bryant [Thu, 29 Nov 2007 00:20:34 +0000 (00:20 +0000)] 
This set of changes is to make some callerID handling thread-safe.
The ast_set_callerid() function needed to lock the channel.  Also, the handlers
for the CALLERID() dialplan function needed to lock the channel when reading
or writing callerid values directly on the channel structure.

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

18 years agoMerge a change from team/russell/chan_refcount ...
Russell Bryant [Thu, 29 Nov 2007 00:06:08 +0000 (00:06 +0000)] 
Merge a change from team/russell/chan_refcount ...

This makes ast_stopstream() thread-safe.

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

18 years agoFix a few memory leaks.
Joshua Colp [Wed, 28 Nov 2007 22:59:28 +0000 (22:59 +0000)] 
Fix a few memory leaks.
(closes issue #11405)
Reported by: eliel
Patches:
      load_realtime.patch uploaded by eliel (license 64)

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

18 years agoit is impossible to set permissions for manager accounts created by users.conf (repor...
Kevin P. Fleming [Wed, 28 Nov 2007 22:30:46 +0000 (22:30 +0000)] 
it is impossible to set permissions for manager accounts created by users.conf (reported internally, patched by me)

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

18 years agoRemoving some seemingly pointless code. This sets a channel variable for every priority
Mark Michelson [Wed, 28 Nov 2007 22:08:50 +0000 (22:08 +0000)] 
Removing some seemingly pointless code. This sets a channel variable for every priority
executed in the dialplan if you have debug set to anything non-zero. This seems pointless
due to the fact that these channel variables are not referenced anywhere else in the code and
their names are esoteric enough that they would not be practical to reference in the dialplan. Plus
the fact that this behavior isn't documented anywhere means that the change is not likely to cause
any disruption. If anything, this may actually cause a slight performance increase if running with
debug on.

The motivating influence for this code change is the eventwhencalled option for queues. If set to
vars, all channel variables will be output to the manager. These unnecessary channel variables make
the output a lot more difficult to deal with.

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

18 years agoRecording greetings when using IMAP storage was causing zero-length files to be stored.
Mark Michelson [Wed, 28 Nov 2007 17:30:47 +0000 (17:30 +0000)] 
Recording greetings when using IMAP storage was causing zero-length files to be stored.
Since greetings are not retrieved from IMAP anyway, it is pointless to attempt storing them there.

(closes issue #11359, reported by spditner, patched by me)

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

18 years ago - update documentation for some of the goto functions to note that they
Russell Bryant [Wed, 28 Nov 2007 00:20:13 +0000 (00:20 +0000)] 
 - update documentation for some of the goto functions to note that they
   handle locking the channel as needed
 - update ast_explicit_goto() to lock the channel as needed

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

18 years agoDon't do frame processing if ast_read() returned NULL.
Russell Bryant [Tue, 27 Nov 2007 23:47:28 +0000 (23:47 +0000)] 
Don't do frame processing if ast_read() returned NULL.

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

18 years agoInstead of depending on the return value of ast_true(), explicitly set the
Russell Bryant [Tue, 27 Nov 2007 23:21:13 +0000 (23:21 +0000)] 
Instead of depending on the return value of ast_true(), explicitly set the
eventwhencalled variable to 1.

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

18 years agoDon't start/stop autoservice in pbx_extension_helper() unless a channel exists
Russell Bryant [Tue, 27 Nov 2007 23:16:00 +0000 (23:16 +0000)] 
Don't start/stop autoservice in pbx_extension_helper() unless a channel exists

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

18 years agoTwo changes with regards to the 'eventwhencalled' option of queues.conf
Mark Michelson [Tue, 27 Nov 2007 23:10:05 +0000 (23:10 +0000)] 
Two changes with regards to the 'eventwhencalled' option of queues.conf

1) Due to some signed vs. unsigned silliness, setting 'eventwhencalled' to
   'vars' or 'yes' did exactly the same thing. Thus the sign change of the
   ast_true call.

2) The vars2manager function overwrote a \n for every channel variable it parsed, resulting
   in bizarre output for the channel variables. This patch remedies this.

(related to issue #11385, however I'm not sure if this will actually be enough to close it)

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

18 years agoMerge changes from team/russell/autoservice_1.4
Russell Bryant [Tue, 27 Nov 2007 21:45:51 +0000 (21:45 +0000)] 
Merge changes from team/russell/autoservice_1.4

This set of changes fixes an issue that was reported to me on IRC yesterday.
The user, d1mas, was using chan_zap for incoming calls and was having DTMF
recognition issues in some situations.  Specifically, he noticed that the
problem occurred when using DISA or WaitExten.  He also noticed that when
using Read, the problem did not occur.  His system also used DUNDi for
dialplan lookups.

So, he theorized that if the DUNDi lookups blocked for some period of time,
that audio from the zap channel could get lost.  If the audio got lost, then
it wouldn't be run through the DTMF detector, and digits could get lost.
He was correct, and the following set of changes fixes the problem.  However,
the changes go a little bit further than what was necessary to fix this exact
problem.

1) I updated pbx_extension_helper() to autoservice the associated channel to
   handle cases where extension lookups may take a long time.  This would
   normally be a dialplan switch that does some lookup over the network, such
   as the DUNDi or IAX2 switches.

   This ensures that even while a DUNDi lookup is blocking, the channel will be
   continuously serviced.

2) I made a change to the autoservice code.  This is actually something that
   has bothered me for a long time.  When a channel is in autoservice, _all_
   frames get thrown away.  However, some frames really shouldn't be thrown
   away.  The most notable examples are signalling (CONTROL) frames, and DTMF.

   So, this patch queues up important frames while a channel is in autoservice.
   When autoservice is stopped on the channel, the queued up frames get stuck
   back on the channel so that they can get processed instead of thrown away.

3) I made another change to the autoservice code to handle the case where
   autoservice is started on channels recursively.

   Previously, you could call ast_autoservice_start() multiple times on a
   channel, and it would stop the first time ast_autoservice_stop() gets
   called.  Now, it will ensure that autoservice doesn't actually stop until
   the final call to ast_autoservice_stop().

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

18 years agoChanging some calls from free() to ast_free() since they were allocated with
Mark Michelson [Tue, 27 Nov 2007 20:22:59 +0000 (20:22 +0000)] 
Changing some calls from free() to ast_free() since they were allocated with
ast_calloc().

(closes issue #11390, reported and patched by Laureano)

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

18 years agoon second thought... revert all the other changes i've made in app options parsing...
Kevin P. Fleming [Tue, 27 Nov 2007 20:16:56 +0000 (20:16 +0000)] 
on second thought... revert all the other changes i've made in app options parsing leaving only one: if an empty argument is supplied for an option, set that argument pointer to point to an empty string rather than NULL, so that the application can do normal checks on it without worrying about it being NULL

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

18 years agogenerate a warning when an application option that requires an argument is ignored...
Kevin P. Fleming [Tue, 27 Nov 2007 19:36:55 +0000 (19:36 +0000)] 
generate a warning when an application option that requires an argument is ignored due to lack of an argument

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

18 years agoAdd a note to the sample voicemail config noting that when using IMAP storage,
Russell Bryant [Tue, 27 Nov 2007 16:12:33 +0000 (16:12 +0000)] 
Add a note to the sample voicemail config noting that when using IMAP storage,
only the first format specified will be attached to the message.

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

18 years agoDefault result of STAT should be "0" not "".
Tilghman Lesher [Tue, 27 Nov 2007 15:38:03 +0000 (15:38 +0000)] 
Default result of STAT should be "0" not "".
Reported via the -users mailing list, fixed by me.

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

18 years agoIf we get a codec offer using a well-known payload type, but using it for another
Olle Johansson [Tue, 27 Nov 2007 15:23:17 +0000 (15:23 +0000)] 
If we get a codec offer using a well-known payload type, but using it for another
codec that we don't know, Asterisk did not remove that codec from the list.

With this patch, we remove the codec from audio and video rtp objects and
deny it ever existed. Thanks to lasse for testing.

(closes issue #11376)
Reported by: lasse
Patches:
      bug11376.txt uploaded by oej (license 306)
Tested by: lasse

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

18 years agoClarify limitonpeers=yes
Olle Johansson [Tue, 27 Nov 2007 07:34:19 +0000 (07:34 +0000)] 
Clarify limitonpeers=yes

(closes issue #11304)
Reported by: pj

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

18 years agocloses issue #11379; OK, this is an attempt to make both sides happy. To the cdr...
Steve Murphy [Tue, 27 Nov 2007 06:24:02 +0000 (06:24 +0000)] 
closes issue #11379; OK, this is an attempt to make both sides happy. To the cdr.conf file, I added the option 'unanswered', which defaults to 'no'. In this mode, you will see a cdr for a call, whether it was answered or not. The disposition will be NO ANSWER or ANSWERED, as appropriate. The src is as you'd expect, the destination channel will be one of the channels from the Dial() call, usually the last in the list if more than one chan was specified. With unanswered set to 'yes', you will still see this cdr entry in both cases. But in the case where the dial timed out, you will also see a cdr for each line attempted, marked NO ANSWER, with no destination channel name. The new option defaults to 'no', so you don't see the pesky extra cdr's by default, and you will not see the irritating 'not posted' messages.

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

18 years agoAfter issuing a "say load new", if a caller hangs up during the middle of playback...
Mark Michelson [Mon, 26 Nov 2007 23:10:49 +0000 (23:10 +0000)] 
After issuing a "say load new", if a caller hangs up during the middle of playback of a number,
app_playback will continue to try to play the remaining files. With this change, no more files will
be played back upon hangup.

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

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

18 years agoAfter issuing a "say load new" tons of warning messages are printed
Mark Michelson [Mon, 26 Nov 2007 23:02:30 +0000 (23:02 +0000)] 
After issuing a "say load new" tons of warning messages are printed
out to the CLI every time do_say in app_playback is called. Removing these
warnings

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

18 years agoFix issues with async dialing with an application executing. The application has...
Joshua Colp [Mon, 26 Nov 2007 21:10:29 +0000 (21:10 +0000)] 
Fix issues with async dialing with an application executing. The application has to be terminated and control returned to the thread before hanging things up. (issue #BE-252)

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

18 years agoAdd module counting removal for error conditions.
Joshua Colp [Mon, 26 Nov 2007 18:02:56 +0000 (18:02 +0000)] 
Add module counting removal for error conditions.
(closes issue #11333)
Reported by: Laureano
Patches:
      res_features_v2.c.patch uploaded by Laureano (license 265)

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

18 years agoAdd channel locking to a function that needed to be doing it. This is just a
Russell Bryant [Mon, 26 Nov 2007 17:41:04 +0000 (17:41 +0000)] 
Add channel locking to a function that needed to be doing it.  This is just a
little something I noticed while working on a completely unrelated issue.

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

18 years agoUse ast_free to free memory, or else we shall implode if MALLOC_DEBUG is enabled.
Joshua Colp [Mon, 26 Nov 2007 17:36:45 +0000 (17:36 +0000)] 
Use ast_free to free memory, or else we shall implode if MALLOC_DEBUG is enabled.
(closes issue #11347)
Reported by: ys
Patches:
      pbx.pbx_config.c.diff uploaded by ys (license 281)

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

18 years agoClose the audio file before sending it to the post processing application.
Joshua Colp [Mon, 26 Nov 2007 17:20:58 +0000 (17:20 +0000)] 
Close the audio file before sending it to the post processing application.
(closes issue #11357)
Reported by: reformed
Patches:
      mixmonitor.patch uploaded by reformed (license 330)

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

18 years agowhen parsing application options that take arguments, don't indicate that the option...
Kevin P. Fleming [Mon, 26 Nov 2007 17:20:36 +0000 (17:20 +0000)] 
when parsing application options that take arguments, don't indicate that the option was supplied unless a non-zero-length argument was found for it

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

18 years agoRevert vmu->email back to an empty string if it was empty when imap_store_file
Mark Michelson [Mon, 26 Nov 2007 15:48:06 +0000 (15:48 +0000)] 
Revert vmu->email back to an empty string if it was empty when imap_store_file
was called. This prevents sending a duplicate e-mail.

(closes issue #11204, reported by spditner, patched by me)

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

18 years agoIf channel allocation fails because the alert pipe could not be created also free...
Joshua Colp [Mon, 26 Nov 2007 15:34:38 +0000 (15:34 +0000)] 
If channel allocation fails because the alert pipe could not be created also free the scheduler context.
(closes issue #11355)
Reported by: eliel
Patches:
      main.channel.c.patch uploaded by eliel (license 64)

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

18 years agoWhen unloading app_meetme destroy any auto created contexts created by SLA.
Joshua Colp [Mon, 26 Nov 2007 14:41:03 +0000 (14:41 +0000)] 
When unloading app_meetme destroy any auto created contexts created by SLA.
(closes issue #11367)
Reported by: eliel

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

18 years agoWe previously attempted to use the ESCAPE clause to set the escape delimiter to
Tilghman Lesher [Sun, 25 Nov 2007 17:17:10 +0000 (17:17 +0000)] 
We previously attempted to use the ESCAPE clause to set the escape delimiter to
a backslash.  Unfortunately, this does not universally work on all databases,
since on databases which natively use the backslash as a delimiter, the
backslash itself needs to be delimited, but on other databases that have no
delimiter, backslashing the backslash causes an error.

So the only solution that I can come up with is to create an option in res_odbc
that explicitly specifies whether or not backslash is a native delimiter.  If
it is, we use it natively; if not, we use the ESCAPE clause to make it one.

Reported by: elguero
Patch by: tilghman
(Closes issue #11364)

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

18 years agoFree some frames that would otherwise leak on error.
Tilghman Lesher [Sat, 24 Nov 2007 16:59:59 +0000 (16:59 +0000)] 
Free some frames that would otherwise leak on error.
Reported by: Laureano
Patch by: Laureano,tilghman
(Closes issue #11351)

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

18 years agoCurrently, zero-length voicemail messages cause a hangup in VoicemailMain.
Tilghman Lesher [Sat, 24 Nov 2007 06:19:23 +0000 (06:19 +0000)] 
Currently, zero-length voicemail messages cause a hangup in VoicemailMain.
This change fixes the problem, with a multi-faceted approach.  First, we
do our best to avoid these messages from being created in the first place,
and second, if that fails, we detect when the voicemail message is
zero-length and avoid exiting at that point.
Reported by: dtyoo
Patch by: gkloepfer,tilghman
(Closes issue #11083)

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

18 years agoUp until this point, the XML output of the manager has been technically
Tilghman Lesher [Fri, 23 Nov 2007 17:18:26 +0000 (17:18 +0000)] 
Up until this point, the XML output of the manager has been technically
invalid, due to the repetition of certain parameters in a single event.
This caused various issues for XML parsers, some of which refused to parse
at all, given the invalidity of the rendered XML.  So this commit fixes
the XML output, ensuring that each entity parameter has a unique name, thus
ensuring valid XML.
Reported by: msetim
Patch by: tilghman
(Closes issue #10220)

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

18 years agoUse ESCAPE clause for the first parameter, not just 2nd-Nth parameters.
Tilghman Lesher [Fri, 23 Nov 2007 17:05:10 +0000 (17:05 +0000)] 
Use ESCAPE clause for the first parameter, not just 2nd-Nth parameters.
Reported by: apsaras
Patch by: tilghman
(Closes issue #11353)

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

18 years agomvanbaak pointed out a spelling error in this sample configuration file. While
Russell Bryant [Thu, 22 Nov 2007 17:29:41 +0000 (17:29 +0000)] 
mvanbaak pointed out a spelling error in this sample configuration file.  While
I was at it, I went ahead and tweaked it a little bit more.

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

18 years agoFix a small error I made in my previous commit
Mark Michelson [Wed, 21 Nov 2007 19:27:51 +0000 (19:27 +0000)] 
Fix a small error I made in my previous commit

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

18 years agoChanging an inaccurate debug message to be less inaccurate. Under the circumstances...
Mark Michelson [Wed, 21 Nov 2007 19:24:22 +0000 (19:24 +0000)] 
Changing an inaccurate debug message to be less inaccurate. Under the circumstances, this
message would always report that there were 0 members available, even though that may not be true.

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

18 years agoIf a channel gets masqueraded in the middle of a park, don't play the
Terry Wilson [Wed, 21 Nov 2007 18:59:27 +0000 (18:59 +0000)] 
If a channel gets masqueraded in the middle of a park, don't play the
announcement to the masqueraded channel, and dial back to the original
channel on timeout.

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

18 years agore-doxygen some comments
Kevin P. Fleming [Tue, 20 Nov 2007 19:16:24 +0000 (19:16 +0000)] 
re-doxygen some comments

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

18 years agobring back compile-option checking when loading modules, only this time use a string...
Kevin P. Fleming [Tue, 20 Nov 2007 19:12:52 +0000 (19:12 +0000)] 
bring back compile-option checking when loading modules, only this time use a string-based storage and comparison mechanism because it is easier to support on other platforms

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

18 years agoAccording to comments in main/pbx.c, it is essential that if we are going to lock
Mark Michelson [Tue, 20 Nov 2007 17:50:31 +0000 (17:50 +0000)] 
According to comments in main/pbx.c, it is essential that if we are going to lock
the conlock as well as the hints lock, it must be locked in that respective order.
In order to prevent a potential deadlock, we need to lock the conlock prior to
locking the hints lock in ast_hint_state_changed (see the call stack example on
issue #11323 for how this can happen).

(closes issue #11323, reported  by eelcob, suggestion for patch by eelcob, patch by me)

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

18 years agocloses issue #11324; break statements missing in switch cases.
Steve Murphy [Tue, 20 Nov 2007 15:22:08 +0000 (15:22 +0000)] 
closes issue #11324; break statements missing in switch cases.

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

18 years agoadded RR patch from iroot #10908, thanks.
Christian Richter [Tue, 20 Nov 2007 13:40:55 +0000 (13:40 +0000)] 
added RR patch from iroot #10908, thanks.

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

18 years agoPrint out the correct filename (features.conf) in the log message when parkpos option...
Joshua Colp [Mon, 19 Nov 2007 15:53:32 +0000 (15:53 +0000)] 
Print out the correct filename (features.conf) in the log message when parkpos options are incorrect.
(closes issue #11295)
Reported by: Laureano
Patches:
      res_features.c.patch uploaded by Laureano (license 265)

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

18 years agoClarify documentation a bit, include that a frame has to pass through the core in...
Joshua Colp [Mon, 19 Nov 2007 15:24:12 +0000 (15:24 +0000)] 
Clarify documentation a bit, include that a frame has to pass through the core in order for the Local channel optimization to happen.
(closes issue #11246)
Reported by: jon

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

18 years agoTemporarily revert revision 89325, which added md5 magic for keeping track of
Russell Bryant [Fri, 16 Nov 2007 22:26:44 +0000 (22:26 +0000)] 
Temporarily revert revision 89325, which added md5 magic for keeping track of
what build options were used.  We agreed that we should remove this before
making a 1.4 release, and then we can put it back in.  Then, we can take a
month or so to play around with it to get it how we want it.

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

18 years agoTo help combat problems where people build external modules (asterisk-addons or other...
Kevin P. Fleming [Fri, 16 Nov 2007 16:47:46 +0000 (16:47 +0000)] 
To help combat problems where people build external modules (asterisk-addons or others) and then change the build options of the Asterisk build in a way that makes the incompatible without warning, this commit introduces an MD5 signature of the important build-time options and includes that signature into modules when they are built. When the loader loads one of these modules and notices the problem, it will emit a warning to console and refuse to initialize the module, as doing so could cause the system to be unstable or even crash.

If you upgrade to this version of Asterisk, you must rebuild *all* of your modules that came from other sources before trying to run this version. If you are using Digium's G.729 binary codec module, you will need v33 or newer.

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

18 years agoMake realtime queues accessible from the QUEUE_MEMBER_COUNT function.
Mark Michelson [Fri, 16 Nov 2007 15:28:22 +0000 (15:28 +0000)] 
Make realtime queues accessible from the QUEUE_MEMBER_COUNT function.

(closes issue #11271, reported and patched by atis, with small modifications from me)

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

18 years agoStart Asterisk in Debian at a more reasonable time (since zaptel is at level 20)
Tilghman Lesher [Thu, 15 Nov 2007 18:37:38 +0000 (18:37 +0000)] 
Start Asterisk in Debian at a more reasonable time (since zaptel is at level 20)

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

18 years agoFix an uninitialized memory read found by valgrind
Tilghman Lesher [Thu, 15 Nov 2007 18:23:14 +0000 (18:23 +0000)] 
Fix an uninitialized memory read found by valgrind

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

18 years agoYet another memory corruption issue.
Tilghman Lesher [Thu, 15 Nov 2007 18:05:56 +0000 (18:05 +0000)] 
Yet another memory corruption issue.
Reported by: atis
Patch by: tilghman
Fixes issue #10923

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

18 years agoUpdate the SLAStation application to account for the case where the SLA thread
Russell Bryant [Thu, 15 Nov 2007 17:19:28 +0000 (17:19 +0000)] 
Update the SLAStation application to account for the case where the SLA thread
has a call out to the station,  but the user has pressed a line button to answer
the call instead of picking up the handset.  If they do, the phone sends out a
new INVITE.  So, the SLAStation app must check to see if it is picking up a
ringing trunk, and ensure that the other stations stop ringing.

(reported internally, patched by me, tested by mogorman)

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

18 years agoUndoing previous commit since I realize it was wrong
Mark Michelson [Thu, 15 Nov 2007 14:57:28 +0000 (14:57 +0000)] 
Undoing previous commit since I realize it was wrong

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

18 years agoAdding a missing mutex unlock.
Mark Michelson [Thu, 15 Nov 2007 14:54:10 +0000 (14:54 +0000)] 
Adding a missing mutex unlock.

(closes issue 11256, reported and patched by ys)

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

18 years agoDon't send re-invites during pending INVITE transactions.
Olle Johansson [Thu, 15 Nov 2007 11:26:22 +0000 (11:26 +0000)] 
Don't send re-invites during pending INVITE transactions.

Patch by one47 - thanks!

Closes issue #9305

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

18 years agoImprove support for multipart messages. Code by gasparz, changes
Olle Johansson [Thu, 15 Nov 2007 11:15:09 +0000 (11:15 +0000)] 
Improve support for multipart messages. Code by gasparz, changes
by me (mostly formatting). Thanks, gasparz!

Closes issue #10947

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

18 years agoWhen a recording ends with '#', we are improperly trimming an extra 200ms from the...
Tilghman Lesher [Wed, 14 Nov 2007 23:23:58 +0000 (23:23 +0000)] 
When a recording ends with '#', we are improperly trimming an extra 200ms from the recording.
Reported by: sim
Patch by: tilghman
Closes issue #11247

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

18 years agoReturn the proper value when the srv_callback function executes properly.
Joshua Colp [Wed, 14 Nov 2007 01:15:12 +0000 (01:15 +0000)] 
Return the proper value when the srv_callback function executes properly.
(closes issue #11240)
Reported by: jtodd

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

18 years agoFix building on newer systems which require a third arg to open() when using O_CREAT.
Jason Parker [Tue, 13 Nov 2007 21:07:08 +0000 (21:07 +0000)] 
Fix building on newer systems which require a third arg to open() when using O_CREAT.

Issue 11238, reported by puzzled.

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

18 years agoRevert change from revision 67064.
Jason Parker [Tue, 13 Nov 2007 19:47:45 +0000 (19:47 +0000)] 
Revert change from revision 67064.
It is documented behavior that if a parking extension already exists while using PARKINGEXTEN,
 dialplan execution will continue.  If blind transferring to a Park with PARKINGEXTEN, you
 must keep this in mind, and handle the failure yourself.

Issue 11237, reported by jon.

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

18 years agoIf we set a value for qualify, we should actually pay attention to it, instead of...
Tilghman Lesher [Tue, 13 Nov 2007 17:34:11 +0000 (17:34 +0000)] 
If we set a value for qualify, we should actually pay attention to it, instead of overriding the value

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

18 years agoReverting commit made in revision 89205 since it is unnecessary.
Mark Michelson [Tue, 13 Nov 2007 16:02:02 +0000 (16:02 +0000)] 
Reverting commit made in revision 89205 since it is unnecessary.

Thanks to Kevin for pointing this out

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

18 years agoDebugging is running into the 16-lock limit. Increase to avoid.
Tilghman Lesher [Tue, 13 Nov 2007 13:51:53 +0000 (13:51 +0000)] 
Debugging is running into the 16-lock limit.  Increase to avoid.
(This define is only effective when debugging is turned on, so there's
no effect for most installations.)

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