asterisk/asterisk.git
12 years agoThe MeetmeJoin now has caller ID name and Caller ID number fields (like MeetMeLeave)
Olle Johansson [Thu, 6 Dec 2007 14:36:54 +0000 (14:36 +0000)]
The MeetmeJoin now has caller ID name and Caller ID number fields (like MeetMeLeave)

(Moremanager)

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

12 years agoUpdate ZapShowChannels so that you can specify one channel.
Olle Johansson [Thu, 6 Dec 2007 14:33:14 +0000 (14:33 +0000)]
Update ZapShowChannels so that you can specify one channel.

Action ZapShowChannels
        Header changes
        - Channel:      -> ZapChannel
        For active channels, the Channel: and Uniqueid: headers are added
        You can now add a "ZapChannel: " argument to zapshowchannels actions
        to only get information about one channel.

From the moremanager branch

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

12 years agoDoxygen updates
Olle Johansson [Thu, 6 Dec 2007 14:29:20 +0000 (14:29 +0000)]
Doxygen updates

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

12 years agoMerged revisions 91366 via svnmerge from
Olle Johansson [Thu, 6 Dec 2007 14:23:12 +0000 (14:23 +0000)]
Merged revisions 91366 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r91366 | oej | 2007-12-06 13:54:11 +0100 (Tor, 06 Dec 2007) | 4 lines

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/trunk@91384 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoChange description of new manager command
Olle Johansson [Thu, 6 Dec 2007 10:29:02 +0000 (10:29 +0000)]
Change description of new manager command

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

12 years agoAdd manager command for showing all current channels.
Olle Johansson [Thu, 6 Dec 2007 10:27:54 +0000 (10:27 +0000)]
Add manager command for showing all current channels.

Thanks, eliel, for writing the original patch. Modified by me to follow
other manager events and the new "moremanager" style.

(closes issue #11478)
Reported by: eliel
Patches:
      manager.c.patch uploaded by eliel (license 64)

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

12 years agoInstead of iterating through the entire epoll events array just look at the ones...
Joshua Colp [Thu, 6 Dec 2007 04:37:36 +0000 (04:37 +0000)]
Instead of iterating through the entire epoll events array just look at the ones that will actually contain data. (props to eliel on IRC for this)

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

12 years agoMerged revisions 91292 via svnmerge from
Mark Michelson [Wed, 5 Dec 2007 22:57:57 +0000 (22:57 +0000)]
Merged revisions 91292 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r91292 | mmichelson | 2007-12-05 16:57:13 -0600 (Wed, 05 Dec 2007) | 3 lines

Reverting extra stuff I didn't mean to commit

........

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

12 years agoMerged revisions 91273 via svnmerge from
Mark Michelson [Wed, 5 Dec 2007 22:55:49 +0000 (22:55 +0000)]
Merged revisions 91273 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r91273 | mmichelson | 2007-12-05 16:35:52 -0600 (Wed, 05 Dec 2007) | 11 lines

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/trunk@91291 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 91237 via svnmerge from
Tilghman Lesher [Wed, 5 Dec 2007 21:46:42 +0000 (21:46 +0000)]
Merged revisions 91237 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r91237 | tilghman | 2007-12-05 15:38:13 -0600 (Wed, 05 Dec 2007) | 2 lines

Upgrade to the latest version of extra sounds

........

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

12 years agoMerged revisions 91192 via svnmerge from
Russell Bryant [Wed, 5 Dec 2007 17:49:03 +0000 (17:49 +0000)]
Merged revisions 91192 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r91192 | russell | 2007-12-05 11:31:42 -0600 (Wed, 05 Dec 2007) | 10 lines

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/trunk@91197 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoResolve compiler warnings.
Russell Bryant [Wed, 5 Dec 2007 17:44:59 +0000 (17:44 +0000)]
Resolve compiler warnings.

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

12 years agoChange cdr_manager to use a "CDR" level, rather than the (overcrowded) "call" level.
Tilghman Lesher [Wed, 5 Dec 2007 16:46:47 +0000 (16:46 +0000)]
Change cdr_manager to use a "CDR" level, rather than the (overcrowded) "call" level.
(Closes issue #11015)

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

12 years agoAdded multiple name listing. (Closes issue #10413)
Tilghman Lesher [Wed, 5 Dec 2007 16:25:52 +0000 (16:25 +0000)]
Added multiple name listing. (Closes issue #10413)

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

12 years agoRemove second prefix line. Only need it documented once in the same file.
Joshua Colp [Wed, 5 Dec 2007 16:14:06 +0000 (16:14 +0000)]
Remove second prefix line. Only need it documented once in the same file.
(closes issue #11472)
Reported by: eserra
Patches:
      http.conf.sample.diff uploaded by eserra (license 45)

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

12 years agoRename "username" to "defaultuser" to match with "defaultip".
Olle Johansson [Wed, 5 Dec 2007 13:09:47 +0000 (13:09 +0000)]
Rename "username" to "defaultuser" to match with "defaultip".
"Username" still works, but is deprecated.

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

12 years agoRemove the cseqs from "sip show channel" and make more place for the call ID.
Olle Johansson [Wed, 5 Dec 2007 12:58:12 +0000 (12:58 +0000)]
Remove the cseqs from "sip show channel" and make more place for the call ID.

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

12 years agorevert part of my changes from earlier today since this code is no longer dependent...
Kevin P. Fleming [Wed, 5 Dec 2007 03:48:53 +0000 (03:48 +0000)]
revert part of my changes from earlier today since this code is no longer dependent on libpri.h

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

12 years agoUse ast_free() instead of free().
Russell Bryant [Wed, 5 Dec 2007 03:34:51 +0000 (03:34 +0000)]
Use ast_free() instead of free().

(closes issue #11309)
Reported by: Laureano
Patches:
      res_odbc.c.patch uploaded by Laureano (license 265)

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

12 years agoMerged revisions 91070 via svnmerge from
Russell Bryant [Wed, 5 Dec 2007 01:59:32 +0000 (01:59 +0000)]
Merged revisions 91070 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r91070 | russell | 2007-12-04 18:35:31 -0600 (Tue, 04 Dec 2007) | 11 lines

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/trunk@91114 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 91074 via svnmerge from
Russell Bryant [Wed, 5 Dec 2007 00:49:19 +0000 (00:49 +0000)]
Merged revisions 91074 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r91074 | russell | 2007-12-04 18:48:47 -0600 (Tue, 04 Dec 2007) | 4 lines

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/trunk@91077 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoFix mwimonitornotify on reload ... again. This option was only read at startup
Russell Bryant [Tue, 4 Dec 2007 23:57:31 +0000 (23:57 +0000)]
Fix mwimonitornotify on reload ... again.  This option was only read at startup
so a reload would erase it and not reset it.  (pointed out by tzafrir)

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

12 years agoBlocked revisions 91032 via svnmerge
Russell Bryant [Tue, 4 Dec 2007 23:47:28 +0000 (23:47 +0000)]
Blocked revisions 91032 via svnmerge

........
r91032 | russell | 2007-12-04 17:46:40 -0600 (Tue, 04 Dec 2007) | 5 lines

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/trunk@91033 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoFix the build of astman. Any file that includes any asterisk sub-headers
Russell Bryant [Tue, 4 Dec 2007 23:01:15 +0000 (23:01 +0000)]
Fix the build of astman.  Any file that includes any asterisk sub-headers
needs to first include asterisk.h.
(closes issue #11394)

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

12 years agoDon't error when we don't have libpri installed with libss7 support. Also, print...
Matthew Fredrickson [Tue, 4 Dec 2007 22:44:01 +0000 (22:44 +0000)]
Don't error when we don't have libpri installed with libss7 support.  Also, print the debug message anyway if we can't find the right PRI

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

12 years agoMerged revisions 90967 via svnmerge from
Russell Bryant [Tue, 4 Dec 2007 22:07:35 +0000 (22:07 +0000)]
Merged revisions 90967 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90967 | russell | 2007-12-04 13:57:39 -0600 (Tue, 04 Dec 2007) | 7 lines

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/trunk@91011 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoFix resetting mwimonitornotify on reload. I guess I only added this line in my head.
Russell Bryant [Tue, 4 Dec 2007 22:02:48 +0000 (22:02 +0000)]
Fix resetting mwimonitornotify on reload.  I guess I only added this line in my head.
(thanks to tzafrir for pointing it out)

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

12 years agoCoding guidelines fixups
Tilghman Lesher [Tue, 4 Dec 2007 21:46:27 +0000 (21:46 +0000)]
Coding guidelines fixups
(Closes issue #11412)

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

12 years agoAdd manager action 'sipshowregistry'.
Jason Parker [Tue, 4 Dec 2007 21:23:30 +0000 (21:23 +0000)]
Add manager action 'sipshowregistry'.

Closes issue #11464, patch by eliel.

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

12 years agoAdd support for monitoring MWI on FXO lines.
Russell Bryant [Tue, 4 Dec 2007 19:08:30 +0000 (19:08 +0000)]
Add support for monitoring MWI on FXO lines.

This introduces two new options for zapata.conf: mwimonitor and mwimonitornotify.
The mwimonitor option enables MWI monitoring.  When the MWI state on a line changes,
then the script specified by mwimonitornotify will be executed for custom handling
of the state change, similar to the externnotify option of voicemail.conf.

Also, when the MWI state on an FXO line changes, an internal Asterisk event is
generated to indicate the new state of the associated mailbox.  That may, any
module that cares about MWI information will get notified and can handle it
just as if app_voicemail had sent this notification.

(BE-253, original patch from markster, with some minor modifications by me to
 add comments, documentation, and internal event support)

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

12 years agoKevin suggested doing the reverse of my last commit, since imap_retrieve_file
Mark Michelson [Tue, 4 Dec 2007 18:29:35 +0000 (18:29 +0000)]
Kevin suggested doing the reverse of my last commit, since imap_retrieve_file
does not modify the contents of the "mailbox" string. In other words, I'm changing
the imap_retrieve_file function to take a const char* as the third argument so that I
don't need to cast const char*'s as char*'s to suppress compiler warnings.

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

12 years agoAdd Makefile alias target 'pdf' which does the same thing as asterisk.pdf.
Jason Parker [Tue, 4 Dec 2007 18:15:17 +0000 (18:15 +0000)]
Add Makefile alias target 'pdf' which does the same thing as asterisk.pdf.

Issue 11452, reported by blitzrage.

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

12 years agoSuppress a compiler warning due to discarding a "const" qualifier
Mark Michelson [Tue, 4 Dec 2007 18:14:08 +0000 (18:14 +0000)]
Suppress a compiler warning due to discarding a "const" qualifier

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

12 years agoFix build, that some people aren't seeing for some reason.
Jason Parker [Tue, 4 Dec 2007 18:09:28 +0000 (18:09 +0000)]
Fix build, that some people aren't seeing for some reason.

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

12 years agoWrong locking style got merged from 1.4 to trunk. My mistake.
Mark Michelson [Tue, 4 Dec 2007 17:51:59 +0000 (17:51 +0000)]
Wrong locking style got merged from 1.4 to trunk. My mistake.

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

12 years agofix build of this module when libpri and/or libss7 are or are not present
Kevin P. Fleming [Tue, 4 Dec 2007 17:40:29 +0000 (17:40 +0000)]
fix build of this module when libpri and/or libss7 are or are not present

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

12 years agoMerged revisions 90876 via svnmerge from
Jason Parker [Tue, 4 Dec 2007 17:38:51 +0000 (17:38 +0000)]
Merged revisions 90876 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #11454)
........
r90876 | qwell | 2007-12-04 11:28:08 -0600 (Tue, 04 Dec 2007) | 4 lines

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/trunk@90879 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoFix a silly little typo :)
Russell Bryant [Tue, 4 Dec 2007 17:36:59 +0000 (17:36 +0000)]
Fix a silly little typo :)

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

12 years agoFix build in trunk. This was fixed in 1.4, but blocked in trunk since this hadn...
Jason Parker [Tue, 4 Dec 2007 17:35:40 +0000 (17:35 +0000)]
Fix build in trunk.  This was fixed in 1.4, but blocked in trunk since this hadn't been merged yet.

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

12 years agoMerged revisions 90735 via svnmerge from
Mark Michelson [Tue, 4 Dec 2007 17:08:36 +0000 (17:08 +0000)]
Merged revisions 90735 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90735 | mmichelson | 2007-12-03 17:12:17 -0600 (Mon, 03 Dec 2007) | 22 lines

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/trunk@90873 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years ago(closes issue #11431)
Olle Johansson [Tue, 4 Dec 2007 15:16:03 +0000 (15:16 +0000)]
(closes issue #11431)
Reported by: Laureano
Patches:
      app_queue.c.patch uploaded by Laureano (license 265)

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

12 years ago(closes issue #11422)
Olle Johansson [Tue, 4 Dec 2007 15:07:53 +0000 (15:07 +0000)]
(closes issue #11422)
Reported by: eliel
Patches:
      core.show.hint.patch uploaded by eliel (license 64)

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

12 years ago(closes issue #11462)
Olle Johansson [Tue, 4 Dec 2007 15:02:48 +0000 (15:02 +0000)]
(closes issue #11462)
Reported by: eliel
Patches:
      CHANGES.patch uploaded by eliel (license 64)

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

12 years agoPass the Asterisk version to AGI scripts as part of the initial dump of info
Tilghman Lesher [Tue, 4 Dec 2007 15:01:57 +0000 (15:01 +0000)]
Pass the Asterisk version to AGI scripts as part of the initial dump of info
Reported by: acunningham
Patch by: acunningham
(Closes issue #11398)

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

12 years agofix build on cygwin
Luigi Rizzo [Tue, 4 Dec 2007 11:50:05 +0000 (11:50 +0000)]
fix build on cygwin

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

12 years agoBlocked revisions 90798 via svnmerge
Joshua Colp [Tue, 4 Dec 2007 05:31:00 +0000 (05:31 +0000)]
Blocked revisions 90798 via svnmerge

........
r90798 | file | 2007-12-04 01:29:33 -0400 (Tue, 04 Dec 2007) | 2 lines

Fix build issue on the build cluster.

........

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

12 years agoMerged revisions 90753 via svnmerge from
Tilghman Lesher [Mon, 3 Dec 2007 23:52:23 +0000 (23:52 +0000)]
Merged revisions 90753 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90753 | tilghman | 2007-12-03 17:50:51 -0600 (Mon, 03 Dec 2007) | 5 lines

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/trunk@90760 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoA small fix from snuffy
Steve Murphy [Mon, 3 Dec 2007 23:49:40 +0000 (23:49 +0000)]
A small fix from snuffy

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

12 years agoAdd manager events for when a monitor is started or stopped.
Jason Parker [Mon, 3 Dec 2007 23:48:04 +0000 (23:48 +0000)]
Add manager events for when a monitor is started or stopped.

Closes issue #10191, patch by dgradecak.

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

12 years agoMerged revisions 90736 via svnmerge from
Tilghman Lesher [Mon, 3 Dec 2007 23:29:57 +0000 (23:29 +0000)]
Merged revisions 90736 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90736 | tilghman | 2007-12-03 17:23:55 -0600 (Mon, 03 Dec 2007) | 5 lines

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/trunk@90737 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 90696 via svnmerge from
Jason Parker [Mon, 3 Dec 2007 22:07:57 +0000 (22:07 +0000)]
Merged revisions 90696 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(Closes issue #11383)
........
r90696 | qwell | 2007-12-03 16:06:36 -0600 (Mon, 03 Dec 2007) | 4 lines

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/trunk@90697 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoReplacing some calls to free() with ast_free().
Mark Michelson [Mon, 3 Dec 2007 21:24:56 +0000 (21:24 +0000)]
Replacing some calls to free() with ast_free().

(closes issue #11448, reported and patched by jaroth)

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

12 years agoAdd AGI commands for speech recognition. These mirror the dialplan applications mostl...
Joshua Colp [Mon, 3 Dec 2007 21:03:05 +0000 (21:03 +0000)]
Add AGI commands for speech recognition. These mirror the dialplan applications mostly but present the information in a nicer fashion. The SPEECH RECOGNIZE command for example will return the results instead of having to query the dialplan functions.

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

12 years agoMerged revisions 90639 via svnmerge from
Mark Michelson [Mon, 3 Dec 2007 21:00:44 +0000 (21:00 +0000)]
Merged revisions 90639 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90639 | mmichelson | 2007-12-03 14:59:51 -0600 (Mon, 03 Dec 2007) | 5 lines

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/trunk@90644 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 90607 via svnmerge from
Jason Parker [Mon, 3 Dec 2007 20:58:26 +0000 (20:58 +0000)]
Merged revisions 90607 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(Closes issue #11436)
........
r90607 | qwell | 2007-12-03 14:51:17 -0600 (Mon, 03 Dec 2007) | 4 lines

Fix crash in ParkAndAnnounce application.

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

........

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

12 years agoAvoid an additional function call. Reported by: eliel Patch by: eliel (Closes issue...
Tilghman Lesher [Mon, 3 Dec 2007 20:30:02 +0000 (20:30 +0000)]
Avoid an additional function call.  Reported by: eliel Patch by: eliel (Closes issue #11438)

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

12 years agoMerged revisions 90588 via svnmerge from
Joshua Colp [Mon, 3 Dec 2007 20:07:34 +0000 (20:07 +0000)]
Merged revisions 90588 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90588 | file | 2007-12-03 16:05:42 -0400 (Mon, 03 Dec 2007) | 2 lines

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/trunk@90589 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 90548 via svnmerge from
Joshua Colp [Mon, 3 Dec 2007 18:44:16 +0000 (18:44 +0000)]
Merged revisions 90548 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90548 | file | 2007-12-03 14:40:56 -0400 (Mon, 03 Dec 2007) | 2 lines

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/trunk@90550 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoBlocked revisions 90546 via svnmerge
Jason Parker [Mon, 3 Dec 2007 18:21:49 +0000 (18:21 +0000)]
Blocked revisions 90546 via svnmerge

........
r90546 | qwell | 2007-12-03 12:20:49 -0600 (Mon, 03 Dec 2007) | 4 lines

Only log debug messages if debug is enabled.

Closes issue #11416, patch by casper.

........

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

12 years agoUpdating sample queues.conf file to show how multiple periodic announcements
Mark Michelson [Mon, 3 Dec 2007 16:46:01 +0000 (16:46 +0000)]
Updating sample queues.conf file to show how multiple periodic announcements
may be specified since this was not documented previously

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

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

12 years agoRemove the file descriptors from the main poll channel when the channel is hung up...
Joshua Colp [Mon, 3 Dec 2007 14:14:43 +0000 (14:14 +0000)]
Remove the file descriptors from the main poll channel when the channel is hung up during the dialing attempt, and make sure a channel exists before trying to remove it at the end.
(closes issue #11441)
Reported by: blitzrage

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

12 years agoMerged revisions 90470 via svnmerge from
Russell Bryant [Sun, 2 Dec 2007 18:20:13 +0000 (18:20 +0000)]
Merged revisions 90470 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90470 | russell | 2007-12-02 12:18:52 -0600 (Sun, 02 Dec 2007) | 6 lines

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/trunk@90471 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 90432 via svnmerge from
Tilghman Lesher [Sun, 2 Dec 2007 09:42:48 +0000 (09:42 +0000)]
Merged revisions 90432 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90432 | tilghman | 2007-12-02 03:34:23 -0600 (Sun, 02 Dec 2007) | 7 lines

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/trunk@90433 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoOnly reload if the config file has changed.
Jason Parker [Sat, 1 Dec 2007 01:37:50 +0000 (01:37 +0000)]
Only reload if the config file has changed.

Closes issue #11281, patch by eliel.

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

12 years agoAdding support for the "automixmonitor" dial and queue options.
Mark Michelson [Fri, 30 Nov 2007 21:19:57 +0000 (21:19 +0000)]
Adding support for the "automixmonitor" dial and queue options.

This works in much the same way as the automonitor, except that instead of using the monitor
app, it uses the mixmonitor app. By providing an 'x' or 'X' as a dial or queue option, a DTMF
sequence may be entered (as defined in features.conf) to start the one-touch mixmonitor.

This patch also introduces some new API calls to the audiohooks code for searching for an audiohook
by type and for searching for a running audiohook by type.

Big thanks to joetester for writing the initial patch, testing it and patiently waiting for it to
be committed.

(closes issue #10185, reported and patched by xmarksthespot)

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

12 years agoMerged revisions 90348 via svnmerge from
Russell Bryant [Fri, 30 Nov 2007 19:34:47 +0000 (19:34 +0000)]
Merged revisions 90348 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90348 | russell | 2007-11-30 13:26:04 -0600 (Fri, 30 Nov 2007) | 8 lines

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/trunk@90351 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 90310 via svnmerge from
Russell Bryant [Fri, 30 Nov 2007 18:47:14 +0000 (18:47 +0000)]
Merged revisions 90310 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90310 | russell | 2007-11-30 12:46:46 -0600 (Fri, 30 Nov 2007) | 2 lines

Add some notes on the behavior of ao2_unlink() after a discussion with Tilghman

........

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

12 years agoMerged revisions 90269 via svnmerge from
Joshua Colp [Fri, 30 Nov 2007 14:45:36 +0000 (14:45 +0000)]
Merged revisions 90269 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90269 | file | 2007-11-30 10:43:15 -0400 (Fri, 30 Nov 2007) | 6 lines

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/trunk@90270 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 90231 via svnmerge from
Mark Michelson [Fri, 30 Nov 2007 00:16:45 +0000 (00:16 +0000)]
Merged revisions 90231 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90231 | mmichelson | 2007-11-29 18:16:04 -0600 (Thu, 29 Nov 2007) | 5 lines

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/trunk@90232 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 90163 via svnmerge from
Mark Michelson [Thu, 29 Nov 2007 19:39:31 +0000 (19:39 +0000)]
Merged revisions 90163 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90163 | mmichelson | 2007-11-29 13:38:39 -0600 (Thu, 29 Nov 2007) | 6 lines

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/trunk@90164 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 90160 via svnmerge from
Tilghman Lesher [Thu, 29 Nov 2007 19:35:49 +0000 (19:35 +0000)]
Merged revisions 90160 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90160 | tilghman | 2007-11-29 13:24:11 -0600 (Thu, 29 Nov 2007) | 2 lines

Properly escape input buffers (Fixes AST-2007-025)

........

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

12 years agoMerged revisions 90155 via svnmerge from
Tilghman Lesher [Thu, 29 Nov 2007 17:50:44 +0000 (17:50 +0000)]
Merged revisions 90155 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90155 | tilghman | 2007-11-29 11:29:59 -0600 (Thu, 29 Nov 2007) | 5 lines

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/trunk@90158 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoFix build of trunk
Tilghman Lesher [Thu, 29 Nov 2007 17:42:21 +0000 (17:42 +0000)]
Fix build of trunk

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

12 years agoMerged revisions 90154 via svnmerge from
Tilghman Lesher [Thu, 29 Nov 2007 17:31:35 +0000 (17:31 +0000)]
Merged revisions 90154 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90154 | tilghman | 2007-11-29 11:18:09 -0600 (Thu, 29 Nov 2007) | 2 lines

Upgrade the core sounds release version

........

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

12 years agolet's try this again... *all* compilation and linking in Asterisk should be done...
Kevin P. Fleming [Thu, 29 Nov 2007 13:38:11 +0000 (13:38 +0000)]
let's try this again... *all* compilation and linking in Asterisk should be done using the standard compilation rules, not manually created ones. changing hashtest.c to use these rules caused the compiler to notice a large number of coding guidelines violations, so those are fixed too.

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

12 years agorestore behavior from the 1.4 branch... manager users created via users.conf should...
Kevin P. Fleming [Thu, 29 Nov 2007 13:30:50 +0000 (13:30 +0000)]
restore behavior from the 1.4 branch... manager users created via users.conf should default to *all* permissions, not none

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

12 years agoBlocked revisions 90147 via svnmerge
Russell Bryant [Thu, 29 Nov 2007 00:37:22 +0000 (00:37 +0000)]
Blocked revisions 90147 via svnmerge

........
r90147 | russell | 2007-11-28 18:36:59 -0600 (Wed, 28 Nov 2007) | 1 line

fix some formatting i accidentally changed
........

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

12 years agoMerged revisions 90145 via svnmerge from
Russell Bryant [Thu, 29 Nov 2007 00:28:10 +0000 (00:28 +0000)]
Merged revisions 90145 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90145 | russell | 2007-11-28 18:20:34 -0600 (Wed, 28 Nov 2007) | 5 lines

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/trunk@90146 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 90142 via svnmerge from
Russell Bryant [Thu, 29 Nov 2007 00:07:32 +0000 (00:07 +0000)]
Merged revisions 90142 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90142 | russell | 2007-11-28 18:06:08 -0600 (Wed, 28 Nov 2007) | 4 lines

Merge a change from team/russell/chan_refcount ...

This makes ast_stopstream() thread-safe.

........

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

12 years agoMerge another small doxygen change from team/russell/chan_refcount to indicate
Russell Bryant [Wed, 28 Nov 2007 23:57:30 +0000 (23:57 +0000)]
Merge another small doxygen change from team/russell/chan_refcount to indicate
that a channel doesn't need to be locked before calling a certain function.

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

12 years agoMerge some channel.h doxygen updates from team/russell/chan_refcount
Russell Bryant [Wed, 28 Nov 2007 23:47:26 +0000 (23:47 +0000)]
Merge some channel.h doxygen updates from team/russell/chan_refcount

This was mostly to note whether a channel needed to be locked or not before
calling these functions.  However, I added some other things, too.

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

12 years agoMerged revisions 90101 via svnmerge from
Joshua Colp [Wed, 28 Nov 2007 23:03:09 +0000 (23:03 +0000)]
Merged revisions 90101 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90101 | file | 2007-11-28 18:59:28 -0400 (Wed, 28 Nov 2007) | 6 lines

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/trunk@90102 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 90098 via svnmerge from
Kevin P. Fleming [Wed, 28 Nov 2007 22:44:38 +0000 (22:44 +0000)]
Merged revisions 90098 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90098 | kpfleming | 2007-11-28 16:30:46 -0600 (Wed, 28 Nov 2007) | 2 lines

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/trunk@90100 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agofile says... compile before you commit!
Joshua Colp [Wed, 28 Nov 2007 22:32:57 +0000 (22:32 +0000)]
file says... compile before you commit!

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

12 years agoRemoving a pointless check of option_debug
Mark Michelson [Wed, 28 Nov 2007 22:17:38 +0000 (22:17 +0000)]
Removing a pointless check of option_debug

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

12 years agoMerged revisions 90059 via svnmerge from
Mark Michelson [Wed, 28 Nov 2007 22:10:36 +0000 (22:10 +0000)]
Merged revisions 90059 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90059 | mmichelson | 2007-11-28 16:08:50 -0600 (Wed, 28 Nov 2007) | 13 lines

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/trunk@90060 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMade expr2 parser 8-bit transparent
Steve Murphy [Wed, 28 Nov 2007 20:33:21 +0000 (20:33 +0000)]
Made expr2 parser 8-bit transparent

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

12 years agoRemove "old"-style CLI handler, since nothing uses it anymore.
Jason Parker [Wed, 28 Nov 2007 20:27:40 +0000 (20:27 +0000)]
Remove "old"-style CLI handler, since nothing uses it anymore.

Closes issue #11403, patch by eliel.  This also completes the janitor project.

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

12 years agoBlocked revisions 89999 via svnmerge
Mark Michelson [Wed, 28 Nov 2007 17:37:18 +0000 (17:37 +0000)]
Blocked revisions 89999 via svnmerge

........
r89999 | mmichelson | 2007-11-28 11:30:47 -0600 (Wed, 28 Nov 2007) | 6 lines

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/trunk@90000 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoHide CLI commands starting with _ from tab completion as was done previously.
Joshua Colp [Wed, 28 Nov 2007 15:48:00 +0000 (15:48 +0000)]
Hide CLI commands starting with _ from tab completion as was done previously.
(closes issue #11395)
Reported by: eliel
Patches:
      cli.c.patch uploaded by eliel (license 64)

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

12 years agoFix a few log messages.
Joshua Colp [Wed, 28 Nov 2007 15:38:03 +0000 (15:38 +0000)]
Fix a few log messages.
(closes issue #11396)
Reported by: IgorG
Patches:
      spell.v1.diff uploaded by IgorG (license 20)

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

12 years agoMerge some little changes from team/russell/chan_refcount to help reduce
Russell Bryant [Wed, 28 Nov 2007 00:49:55 +0000 (00:49 +0000)]
Merge some little changes from team/russell/chan_refcount to help reduce
the diff to trunk.

This just removes some checks on the return value of alloca(), as behavior
is undefined if it runs out of stack space, and we don't check it anywhere else.

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

12 years agoAdding support for realtime music on hold. The following are the main points:
Mark Michelson [Wed, 28 Nov 2007 00:47:22 +0000 (00:47 +0000)]
Adding support for realtime music on hold. The following are the main points:

1. When moh is started, we search first in memory to find the class. If we do not
   find it in memory, we search realtime instead.

2. When moh is restarted (as in, it had been started on this particular channel, stopped,
   and now we're starting it again), if using the "files" mode, then realtime will always
   be rechecked. If you are using other modes, however, we will simply reattach to the external
   running process which was playing moh earlier in the call. This is a necessary compromise so that
   we don't end up with too many background processes.

3. musiconhold.conf has a general section now. It has one option: cachertclasses. If set to yes,
   then moh classes found in realtime will be added to the in-memory list. This has the advantage
   of not requiring database lookups each time moh is started, but it has the disadvantage of not
   truly being realtime.

I have tested this for functionality, and it passes. I also tested this under valgrind and there
are no memory problems reported under typical use.

Special thanks to Sergee for implementing this feature and enduring my complaints on the bugtracker!

(closes issue #11196, reported and patched by sergee)

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

12 years agoMerged revisions 89893 via svnmerge from
Russell Bryant [Wed, 28 Nov 2007 00:24:19 +0000 (00:24 +0000)]
Merged revisions 89893 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89893 | russell | 2007-11-27 18:20:13 -0600 (Tue, 27 Nov 2007) | 4 lines

 - 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/trunk@89915 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoDocument that the channel is not locked when the send_digit_begin and end
Russell Bryant [Tue, 27 Nov 2007 23:56:45 +0000 (23:56 +0000)]
Document that the channel is not locked when the send_digit_begin and end
callbacks get called.

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

12 years agoMerged revisions 89886 via svnmerge from
Russell Bryant [Tue, 27 Nov 2007 23:50:58 +0000 (23:50 +0000)]
Merged revisions 89886 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89886 | russell | 2007-11-27 17:47:28 -0600 (Tue, 27 Nov 2007) | 2 lines

Don't do frame processing if ast_read() returned NULL.

........

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

12 years agoMerge changes from team/russell/iax2_frame_queue
Russell Bryant [Tue, 27 Nov 2007 23:50:25 +0000 (23:50 +0000)]
Merge changes from team/russell/iax2_frame_queue

This patch is an optimization for chan_iax2.  This module is now heavily
multi-threaded.  However, there is still a good number of globally shared
resources that prevent things from happen asynchronously.  One of those things
was the global IAX frame queue.  This queue was used to hold frames that have
been deferred for transmitting by another thread, and frames that may need to
get retransmitted.

I changed the frame queue to be per-call, since almost all of the frame queue
handling only cares about frames specific to a call number.

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

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

........
r89844 | russell | 2007-11-27 17:21:13 -0600 (Tue, 27 Nov 2007) | 3 lines

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/trunk@89847 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 89839 via svnmerge from
Russell Bryant [Tue, 27 Nov 2007 23:17:36 +0000 (23:17 +0000)]
Merged revisions 89839 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89839 | russell | 2007-11-27 17:16:00 -0600 (Tue, 27 Nov 2007) | 2 lines

Don't start/stop autoservice in pbx_extension_helper() unless a channel exists

........

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

12 years agoMerged revisions 89837 via svnmerge from
Mark Michelson [Tue, 27 Nov 2007 23:11:12 +0000 (23:11 +0000)]
Merged revisions 89837 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89837 | mmichelson | 2007-11-27 17:10:05 -0600 (Tue, 27 Nov 2007) | 12 lines

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/trunk@89838 65c4cc65-6c06-0410-ace0-fbb531ad65f3