asterisk/asterisk.git
11 years agoChange the name of config file entries for keypad regions
Luigi Rizzo [Sat, 22 Dec 2007 22:44:31 +0000 (22:44 +0000)]
Change the name of config file entries for keypad regions
from 'keypad_entry' to 'region'. Fix the example file accordingly.
Also make some fixes in the code do reset entries on reload of the keypad.

The recently committed kpad2.jpg has the correct names.

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

11 years agoadd a sample keypad (with annotations) for console video
Luigi Rizzo [Sat, 22 Dec 2007 22:39:55 +0000 (22:39 +0000)]
add a sample keypad (with annotations) for console video

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

11 years agoBuild console_video support by linking in, as opposed to including,
Luigi Rizzo [Sat, 22 Dec 2007 18:28:40 +0000 (18:28 +0000)]
Build console_video support by linking in, as opposed to including,
console_video.c

This will ease the task of splitting console_video.c into its components
(V4L and X11 grabbers, various video codecs and packetizers, SDL),
as well as ease future extensions (e.g. additional video sources,
codecs and rendering engines).

For the time being nothing changes for users: video support is off by
default, and requires -DHAVE_VIDEO_CONSOLE on the command line to be included
(if SDL and FFMPEG are available).

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

11 years agoSomething I've been itching to do for a while now. A minor optimization in app_voicemail.
Mark Michelson [Fri, 21 Dec 2007 21:19:19 +0000 (21:19 +0000)]
Something I've been itching to do for a while now. A minor optimization in app_voicemail.
Since the dtable in base_encode always gets populated with the same values every time and never
changes, make it static and const and only initialize it once. Also, there's no reason to
define BASEMAXINLINE twice, so remove the redundant #define.

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

11 years agoWe should only clear this value if we have to
Matthew Fredrickson [Fri, 21 Dec 2007 20:50:26 +0000 (20:50 +0000)]
We should only clear this value if we have to

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

11 years agoCommit non TCP transport part of #11506. Includes numerous additional parameters...
Matthew Fredrickson [Fri, 21 Dec 2007 20:48:15 +0000 (20:48 +0000)]
Commit non TCP transport part of #11506.  Includes numerous additional parameters, as well as RLT support for DMS type switches

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

11 years agoStore dates using local time instead of UTC
Mark Michelson [Fri, 21 Dec 2007 20:38:18 +0000 (20:38 +0000)]
Store dates using local time instead of UTC

(closes issue #11610, reported and patched by rbraun_performatique)

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

11 years agoFix a memory leak when reloading queue rules.
Mark Michelson [Fri, 21 Dec 2007 20:30:05 +0000 (20:30 +0000)]
Fix a memory leak when reloading queue rules.

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

11 years agoThe one documentation source I forgot to update after the merge of the queue-penalty...
Mark Michelson [Fri, 21 Dec 2007 20:28:04 +0000 (20:28 +0000)]
The one documentation source I forgot to update after the merge of the queue-penalty branch
was the CHANGES file. No longer!

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

11 years agoLots of coding guidelines cleanup.
Mark Michelson [Fri, 21 Dec 2007 20:24:24 +0000 (20:24 +0000)]
Lots of coding guidelines cleanup.

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

11 years agoBlocked revisions 94543 via svnmerge
Mark Michelson [Fri, 21 Dec 2007 20:22:52 +0000 (20:22 +0000)]
Blocked revisions 94543 via svnmerge

........
r94543 | mmichelson | 2007-12-21 14:21:59 -0600 (Fri, 21 Dec 2007) | 3 lines

Bunch of coding guidelines cleanup

........

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

11 years agoMerged revisions 94540 via svnmerge from
Mark Michelson [Fri, 21 Dec 2007 20:18:26 +0000 (20:18 +0000)]
Merged revisions 94540 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94540 | mmichelson | 2007-12-21 14:11:34 -0600 (Fri, 21 Dec 2007) | 8 lines

Better quota support for using IMAP storage voicemail

(closes issue #11415, reported by jaroth)
(closes issue #11152, reported by selsky)

Patch provided by jaroth

........

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

11 years agocodecs.conf really shouldn't be mandatory.. it never had been before, so let's go...
Jason Parker [Fri, 21 Dec 2007 20:12:50 +0000 (20:12 +0000)]
codecs.conf really shouldn't be mandatory..  it never had been before, so let's go back to being optional.
A big "thank you" to pnlarsson on IRC for allowing me access to his system to debug this.

Closes issue #11584.

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

11 years agoMerged revisions 94538 via svnmerge from
Mark Michelson [Fri, 21 Dec 2007 20:01:10 +0000 (20:01 +0000)]
Merged revisions 94538 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94538 | mmichelson | 2007-12-21 13:59:45 -0600 (Fri, 21 Dec 2007) | 5 lines

The mail_copy c-client function does not expect a full imap mailbox string, just the name of the mailbox.

(closes issue #11419, reported and patched by jaroth, with additional patchwork from me)

........

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

11 years agoAST_LIST_REMOVE_CURRENT only takes one argument in trunk
Mark Michelson [Fri, 21 Dec 2007 17:40:44 +0000 (17:40 +0000)]
AST_LIST_REMOVE_CURRENT only takes one argument in trunk

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

11 years agoMerged revisions 94468 via svnmerge from
Mark Michelson [Fri, 21 Dec 2007 16:52:04 +0000 (16:52 +0000)]
Merged revisions 94468 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94468 | mmichelson | 2007-12-21 10:49:35 -0600 (Fri, 21 Dec 2007) | 6 lines

Since we are freeing list elements within a list traversal, we need to use the safe
traversal and remove the item from the list before freeing it.

(closes issue 11612, reported by dtyoo)

........

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

11 years agoBlocked revisions 94466 via svnmerge
Russell Bryant [Fri, 21 Dec 2007 16:42:52 +0000 (16:42 +0000)]
Blocked revisions 94466 via svnmerge

........
r94466 | russell | 2007-12-21 10:37:47 -0600 (Fri, 21 Dec 2007) | 6 lines

Convert the contexts lock to a read/write lock to resolve a deadlock.  This
has a nice side benefit of improving performance.  :)

(closes issue #11609)
(closes issue #11080)

........

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

11 years agoMerged revisions 94464 via svnmerge from
Mark Michelson [Fri, 21 Dec 2007 16:12:14 +0000 (16:12 +0000)]
Merged revisions 94464 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94464 | mmichelson | 2007-12-21 10:11:44 -0600 (Fri, 21 Dec 2007) | 3 lines

Removing a debug message I accidentally just committed

........

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

11 years agoMerged revisions 94420 via svnmerge from
Mark Michelson [Fri, 21 Dec 2007 16:10:21 +0000 (16:10 +0000)]
Merged revisions 94420 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94420 | mmichelson | 2007-12-21 09:45:14 -0600 (Fri, 21 Dec 2007) | 5 lines

Fixing Portuguese syntax for saying dates and times. Also some coding guidelines cleanup.

(closes issue #11599, reported and patched by caio1982, coding guidelines cleanup by me)

........

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

11 years agoMerged revisions 94418 via svnmerge from
Tilghman Lesher [Fri, 21 Dec 2007 15:14:52 +0000 (15:14 +0000)]
Merged revisions 94418 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94418 | tilghman | 2007-12-21 09:07:42 -0600 (Fri, 21 Dec 2007) | 2 lines

Fix for restart-as-user problem reported via the -dev list

........

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

11 years agoMoved the update of the queue_ent's rule list to just before we try to call
Mark Michelson [Fri, 21 Dec 2007 01:14:32 +0000 (01:14 +0000)]
Moved the update of the queue_ent's rule list to just before we try to call
queue members. This allows for the change in penalty levels to be executed at
the most logical time frame.

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

11 years agoMerging the queue-penalty branch. In short, this allows one to dynamically adjust
Mark Michelson [Fri, 21 Dec 2007 00:44:17 +0000 (00:44 +0000)]
Merging the queue-penalty branch. In short, this allows one to dynamically adjust
the QUEUE_MAX_PENALTY and the newly introduced QUEUE_MIN_PENALTY during a call depending
on the amount of time passed. The purpose is to allow the call to open up to more (or maybe
just different) members without the caller's losing his place in the queue. See
configs/queuerules.conf.sample for an example of how to set up queue rules and configs/queues.conf.sample
for how to associate a rule with a queue.

Along with the functional changes, new CLI and manager commands exist to show the rules defined and
there is an additional CLI command to reload the queue rules.

Future enhancements that may be made: support for realtime queue rules and support for dynamically adding
a rule through the manager or CLI. Also a manager command to reload the queue rules (I'll probably write
this myself very soon).

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

11 years agoThe changes to header inclusion in trunk broke compilation of app_voicemail when...
Mark Michelson [Thu, 20 Dec 2007 23:43:24 +0000 (23:43 +0000)]
The changes to header inclusion in trunk broke compilation of app_voicemail when using
IMAP storage. The reason is that c-client has its own definitions for LOG_WARNING
and LOG_DEBUG, so we need to be sure to include asterisk's definitions last so that
we use the proper values in app_voicemail.

(closes issue #11437, reported by blitzrage, patch suggested by blitzrage)

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

11 years agoAdd a bit more to the description of the "mwimonitor" option.
Russell Bryant [Thu, 20 Dec 2007 22:39:39 +0000 (22:39 +0000)]
Add a bit more to the description of the "mwimonitor" option.

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

11 years agocloses issue #11287; thanks to snuffy for this fix, which will surely make all solari...
Steve Murphy [Thu, 20 Dec 2007 22:28:35 +0000 (22:28 +0000)]
closes issue #11287; thanks to snuffy for this fix, which will surely make all solaris owners shout praises to his name.

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

11 years agoMerged revisions 94256 via svnmerge from
Russell Bryant [Thu, 20 Dec 2007 20:25:05 +0000 (20:25 +0000)]
Merged revisions 94256 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r94256 | russell | 2007-12-20 14:22:22 -0600 (Thu, 20 Dec 2007) | 13 lines

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

........
r94255 | russell | 2007-12-20 14:21:41 -0600 (Thu, 20 Dec 2007) | 5 lines

Fix another potential seg fault ...

(closes issue #11606)
Reported by: dimas

........

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

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

11 years agoMerged revisions 94251 via svnmerge from
Russell Bryant [Thu, 20 Dec 2007 20:16:21 +0000 (20:16 +0000)]
Merged revisions 94251 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94251 | russell | 2007-12-20 14:08:42 -0600 (Thu, 20 Dec 2007) | 10 lines

Fix a deadlock in d-channel handling in chan_zap.

This deadlock was introduced by the fix to ensure that channels are properly
locked when handling channel variables.  There were sections of this code where
the channel pvt was locked before the channel lock, when in fact it _must_ be
the other way around.

(closes issue #11582)
Reported by: bugi

........

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

11 years agoadd some macros to simplify parsing the config file,
Luigi Rizzo [Thu, 20 Dec 2007 12:56:07 +0000 (12:56 +0000)]
add some macros to simplify parsing the config file,
see description in config.h .

They are a variant of the set of macros i used in chan_oss.c,
structured in a way to be more robust to the presence of
spurious ';' - basically, they define wrappers for 'do {'
and '} while (0)', plus some helper functions to deal with simple
cases such as ast_copy_string, ast_malloc, strtoul, ast_true ...

The prefix (CV_ as 'Config Variable') tries to be easy to remember
and has been chosen to not conflict with other existing macros in the tree.

For the time being, I have only updated the three source files in the
tree that used the old M_* macros. Hopefully, more files will be
converted.

NOTE:

    I understand that inventing my own dialect of C is generally wrong;
    however, the lack of adequate support in the language encourages
    lazy programming practices (such as ignoring errors, bounds, etc.)
    and this increases the chance of vulnerability in the code, especially
    because we are parsing user input here.
    Hopefully, these macros and the use of ast_parse_arg (in config.h)
    should encourage the programmer to write more robust code.

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

11 years agomodify http://svn.digium.com/view/asterisk?view=rev&rev=93603
Luigi Rizzo [Thu, 20 Dec 2007 09:55:05 +0000 (09:55 +0000)]
modify svn.digium.com/view/asterisk?view=rev&rev=93603
so that paths and filename are writable by asterisk.c without
causing segfaults.

This involves defining the variables as const char *,
and having them point to as static, writable buffer
defined in asterisk.c

On passing, fix some errors in using these variables
in some files in utils/ , and in res/snmp/agent.c
which was redefining a variable without using paths.h

(not applicable to 1.4)

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

11 years ago1. Unify the check for a penalty < 0 into the set_member_penalty code.
Mark Michelson [Wed, 19 Dec 2007 23:17:42 +0000 (23:17 +0000)]
1. Unify the check for a penalty < 0 into the set_member_penalty code.
2. Fix an error when checking the CLI command for setting a member's penalty.
3. Fix a logging error if the incorrect parameter was the queue name or interface.

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

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

11 years agoMerged revisions 94122 via svnmerge from
Mark Michelson [Wed, 19 Dec 2007 23:04:32 +0000 (23:04 +0000)]
Merged revisions 94122 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94122 | mmichelson | 2007-12-19 17:02:22 -0600 (Wed, 19 Dec 2007) | 6 lines

Sox versions 13.0.0 and newer do not have "soxmix" and instead use sox -m. res_monitor
needs to use this if the user does not have soxmix.

(closes issue #11589, reported by amessina, patch inspired by amessina but with a flourish from me)

........

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

11 years agoMerged revisions 94077 via svnmerge from
Russell Bryant [Wed, 19 Dec 2007 22:51:03 +0000 (22:51 +0000)]
Merged revisions 94077 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94077 | russell | 2007-12-19 16:48:48 -0600 (Wed, 19 Dec 2007) | 4 lines

Check for the existence of the soxmix application on the target platform and have
the result available in autoconfig.h.
(part of issue #11589)

........

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

11 years agoAdd 'voicemail reload' command.
Tilghman Lesher [Wed, 19 Dec 2007 20:20:55 +0000 (20:20 +0000)]
Add 'voicemail reload' command.
Reported by: eliel
Patch by: eliel
(Closes issue #11365)

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

11 years agoAdd contributed WaitUntil app.
Tilghman Lesher [Wed, 19 Dec 2007 20:06:23 +0000 (20:06 +0000)]
Add contributed WaitUntil app.
Original code by pprindeville, updated for trunk by tilghman.
(Closes issue #11487)

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

11 years agoAdd a couple of new time API calls - ast_tvdiff_sec and ast_tvdiff_usec
Russell Bryant [Wed, 19 Dec 2007 19:29:14 +0000 (19:29 +0000)]
Add a couple of new time API calls - ast_tvdiff_sec and ast_tvdiff_usec

(closes issue #11270)
Reported by: dimas
Patches:
      tvdiff_us-4.patch uploaded by dimas (license 88)

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

11 years agoAdd instructions on how to generate your own font.
Luigi Rizzo [Wed, 19 Dec 2007 17:58:39 +0000 (17:58 +0000)]
Add instructions on how to generate your own font.

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

11 years agoMerged revisions 93955 via svnmerge from
Joshua Colp [Wed, 19 Dec 2007 17:31:29 +0000 (17:31 +0000)]
Merged revisions 93955 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r93955 | file | 2007-12-19 13:29:20 -0400 (Wed, 19 Dec 2007) | 2 lines

Make the 1.4 builders happy, ensure var is NULL.

........

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

11 years agoMerged revisions 93949 via svnmerge from
Tilghman Lesher [Wed, 19 Dec 2007 17:13:06 +0000 (17:13 +0000)]
Merged revisions 93949 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r93949 | tilghman | 2007-12-19 11:04:13 -0600 (Wed, 19 Dec 2007) | 3 lines

Avoid segfault in chan_iax when peer isn't defined
(Closes issue #11602)

........

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

11 years agoAdd a new API function, written at least twice in app_voicemail.c
Luigi Rizzo [Wed, 19 Dec 2007 17:09:01 +0000 (17:09 +0000)]
Add a new API function, written at least twice in app_voicemail.c
and likely in other places too.

This is quite useful when placing mail/html stuff in config files.

 /*!
   \brief Convert some C escape sequences (\b\f\n\r\t) into the
        equivalent characters.
   \brief s The string to be converted (will be modified).
   \return The converted string.
  */
 char *ast_unescape_c(char *s);

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

11 years agoadd support for PARSE_DOUBLE, and remove identifiers for
Luigi Rizzo [Wed, 19 Dec 2007 15:15:03 +0000 (15:15 +0000)]
add support for PARSE_DOUBLE, and remove identifiers for
types not supported (INT16 and UINT16)

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

11 years agoReorganize CHANGES a bit. The "misc" section grew too large...
Olle Johansson [Wed, 19 Dec 2007 09:20:37 +0000 (09:20 +0000)]
Reorganize CHANGES a bit. The "misc" section grew too large...

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

11 years agoProperly document AST_EXT_TOOL_CHECK() and use it to check for
Luigi Rizzo [Wed, 19 Dec 2007 08:57:45 +0000 (08:57 +0000)]
Properly document AST_EXT_TOOL_CHECK() and use it to check for
NETSMP and GTK (GTK is not used thoug).

AST_EXT_TOOL_CHECK() could be used for checking curl status
as well, perhaps with a small addition because we currently seem
to require a curl version greater than X.Y.Z

Add a NETSMP_INCLUDE entry in makeopts.in

We don't have yet any macros for using pkg-config to check
for a specific package (right now there is only gtk2+
in the category).

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

11 years agoAdding the ability to specify the To: header in an outbound INVITE
Olle Johansson [Wed, 19 Dec 2007 08:57:45 +0000 (08:57 +0000)]
Adding the ability to specify the To: header in an outbound INVITE
by adding an exclamation mark to the dial string.

This patch also exists for 1.4 in the fixtoheader-1.4 branch
and has been in production for quite some time.

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

11 years agomake netsmp build under AST_DEVMODE. Description, included in the source,
Luigi Rizzo [Wed, 19 Dec 2007 08:12:33 +0000 (08:12 +0000)]
make netsmp build under AST_DEVMODE. Description, included in the source,
is below. I should note that the PACKAGE_* macros that asterisk
defines in autoconfig.h are not used anywhere in the tree so
they should just be removed.

 /*
  * There is some collision collision between netsmp and asterisk names,
  * causing build under AST_DEVMODE to fail.
  *
  * The following PACKAGE_* macros are one place.
  * Also netsnmp has an improper check for HAVE_DMALLOC_H, using
  *    #if HAVE_DMALLOC_H   instead of #ifdef HAVE_DMALLOC_H
  * As a countermeasure we define it to 0, however this will fail
  * when the proper check is implemented.
  */

No

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

11 years agoAdd option for starting remote Asterisk by naming the actual runtime socket instead...
Olle Johansson [Wed, 19 Dec 2007 07:01:40 +0000 (07:01 +0000)]
Add option for starting remote Asterisk by naming the actual runtime socket instead of pointing
to configuration file with -C

Reported by: sobomax
Patches:
      asterisk.c.diff.trunk uploaded by sobomax (license 359)
      doc changes by committer
(closes issue #11598)

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

11 years agoadd missing header file
Dwayne M. Hubbard [Wed, 19 Dec 2007 00:09:05 +0000 (00:09 +0000)]
add missing header file

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

11 years agoMaking the canary error message a little more obvious.
Tilghman Lesher [Tue, 18 Dec 2007 23:38:30 +0000 (23:38 +0000)]
Making the canary error message a little more obvious.

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

11 years agoAdd a canary process, for high priority mode (asterisk -p) to ensure that if
Tilghman Lesher [Tue, 18 Dec 2007 23:06:05 +0000 (23:06 +0000)]
Add a canary process, for high priority mode (asterisk -p) to ensure that if
Asterisk goes into a busy loop, the machine will be recoverable.  We'd still
need to do a restart to put Asterisk back into high priority mode, but at
least a reboot won't be required. (Closes issue #11559)

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

11 years agoBlocked revisions 93764 via svnmerge
Jason Parker [Tue, 18 Dec 2007 22:44:14 +0000 (22:44 +0000)]
Blocked revisions 93764 via svnmerge

........
r93764 | qwell | 2007-12-18 16:42:41 -0600 (Tue, 18 Dec 2007) | 4 lines

FreeBSD also does not have byte swap functions.

Issue 11586, patch by sobomax.

........

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

11 years agoMove some warnings away to debug since some devices send a packet with a silly
Olle Johansson [Tue, 18 Dec 2007 21:13:28 +0000 (21:13 +0000)]
Move some warnings away to debug since some devices send a packet with a silly
string as a NAT keepalive packet.

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

11 years agoMerged revisions 93668 via svnmerge from
Tilghman Lesher [Tue, 18 Dec 2007 18:39:25 +0000 (18:39 +0000)]
Merged revisions 93668 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r93668 | tilghman | 2007-12-18 12:29:39 -0600 (Tue, 18 Dec 2007) | 10 lines

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

........
r93667 | tilghman | 2007-12-18 12:23:06 -0600 (Tue, 18 Dec 2007) | 2 lines

Fixing AST-2007-027 (Closes issue #11119)

........

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

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

11 years agoremove a leftover line with only a '#' (wonder why
Luigi Rizzo [Tue, 18 Dec 2007 18:20:06 +0000 (18:20 +0000)]
remove a leftover line with only a '#' (wonder why
the compiler does not complain!) and variables that
are only used in asterisk.c

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

11 years agoMerged revisions 93625 via svnmerge from
Mark Michelson [Tue, 18 Dec 2007 17:05:19 +0000 (17:05 +0000)]
Merged revisions 93625 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r93625 | mmichelson | 2007-12-18 11:02:48 -0600 (Tue, 18 Dec 2007) | 6 lines

Rework deadlock avoidance used in ast_write, since it meant that agent channels which were being monitored
had one audio file recorded and one empty audio file saved.

(closes issue #11529, reported by atis patched by me)

........

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

11 years agomake configuration variable const so they are not accidentally
Luigi Rizzo [Tue, 18 Dec 2007 10:24:58 +0000 (10:24 +0000)]
make configuration variable const so they are not accidentally
modified.
This requires casting the strings in asterisk.c when writing to
them, so we do it through a macro to do it consistently.

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

11 years agoremove unnecessary (char *) casts for ast_config_AST_* variables.
Luigi Rizzo [Tue, 18 Dec 2007 09:46:18 +0000 (09:46 +0000)]
remove unnecessary (char *) casts for ast_config_AST_* variables.

There are some left in the .flex files, left to the maintainer...

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

11 years agoRename the macros in defaults.h - they are not meant to be
Luigi Rizzo [Tue, 18 Dec 2007 09:26:03 +0000 (09:26 +0000)]
Rename the macros in defaults.h - they are not meant to be
globally visible.

Document the fact that DEFAULT_TMP_DIR cannot be overridden
from the default configuration (this needs to be fixed, as you
could have a totally different spooldir configured at runtime,
and yet DEFAULT_TMP_DIR keeps the compile-time default).

Remove two unused entries for sounds and images.

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

11 years agomake the code match documentation - now you can specify multiple
Luigi Rizzo [Tue, 18 Dec 2007 08:56:16 +0000 (08:56 +0000)]
make the code match documentation - now you can specify multiple
words in MODULE_PREFIX.

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

11 years agoName the people responsible for some recent contributions to the tree.
Luigi Rizzo [Tue, 18 Dec 2007 08:30:31 +0000 (08:30 +0000)]
Name the people responsible for some recent contributions to the tree.

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

11 years agoTwo small changes:
Luigi Rizzo [Tue, 18 Dec 2007 08:20:17 +0000 (08:20 +0000)]
Two small changes:
+ document the difference between "A=foo make ..." and "make A=foo ..."
  and suggest using COPTS/LDOPTS if you need to use the second form to
  pass compiler and loader flags;

+ define only in one place the environment used to build stuff in menuselect/

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

11 years agoA minor update, caused by a recent bug report ;-)
Olle Johansson [Tue, 18 Dec 2007 07:56:29 +0000 (07:56 +0000)]
A minor update, caused by a recent bug report ;-)

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

11 years agosmall documentation update (nothing important).
Luigi Rizzo [Tue, 18 Dec 2007 07:22:26 +0000 (07:22 +0000)]
small documentation update (nothing important).

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

11 years agoYou... will... build! I say so and therefore you will.
Joshua Colp [Tue, 18 Dec 2007 02:57:26 +0000 (02:57 +0000)]
You... will... build! I say so and therefore you will.

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

11 years agominor cleanups
Kevin P. Fleming [Tue, 18 Dec 2007 02:42:44 +0000 (02:42 +0000)]
minor cleanups

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

11 years agofix building under cygwin.
Luigi Rizzo [Mon, 17 Dec 2007 23:10:35 +0000 (23:10 +0000)]
fix building under cygwin.

At this point WINARCH should go away.

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

11 years agoBlocked revisions 93420 via svnmerge
Jason Parker [Mon, 17 Dec 2007 22:57:41 +0000 (22:57 +0000)]
Blocked revisions 93420 via svnmerge

........
r93420 | qwell | 2007-12-17 16:56:58 -0600 (Mon, 17 Dec 2007) | 1 line

Missed a spot..
........

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

11 years agoremove some unnecessary includes
Luigi Rizzo [Mon, 17 Dec 2007 22:54:00 +0000 (22:54 +0000)]
remove some unnecessary includes

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

11 years agoMerged revisions 93381 via svnmerge from
Jason Parker [Mon, 17 Dec 2007 22:50:49 +0000 (22:50 +0000)]
Merged revisions 93381 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r93381 | qwell | 2007-12-17 16:45:57 -0600 (Mon, 17 Dec 2007) | 4 lines

What was I thinking when I wrote this masterpiece?

-1 + 1 = 0..  who woulda thunk it?.

........

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

11 years agosurprising as it may be, chan_oss compiles correctly under cygwin as well,
Luigi Rizzo [Mon, 17 Dec 2007 22:38:48 +0000 (22:38 +0000)]
surprising as it may be, chan_oss compiles correctly under cygwin as well,
provided you look for soundcard.h in the right place...

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

11 years agoMerged revisions 93377 via svnmerge from
Joshua Colp [Mon, 17 Dec 2007 22:29:56 +0000 (22:29 +0000)]
Merged revisions 93377 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r93377 | file | 2007-12-17 18:28:09 -0400 (Mon, 17 Dec 2007) | 7 lines

Do not try to access information about a lock when printing out a trylock attempt. It is possible for the lock that it references to no longer be valid. This would have caused segfaults or deadlocks.
(issue #BE-263)
(closes issue #11080)
Reported by: callguy
(closes issue #11100)
Reported by: callguy

........

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

11 years agoMerged revisions 93336 via svnmerge from
Tilghman Lesher [Mon, 17 Dec 2007 21:14:45 +0000 (21:14 +0000)]
Merged revisions 93336 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r93336 | tilghman | 2007-12-17 15:12:42 -0600 (Mon, 17 Dec 2007) | 6 lines

Today is tomorrow's yesterday, and yesterday's tomorrow is today, and
tomorrow's tomorrow is the day after tomorrow, so who cares if you
recycle anyway?

If this confuses you, that's nothing compared to what this fixes. ;-)

........

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

11 years agoMerged revisions 93182 via svnmerge from
Olle Johansson [Mon, 17 Dec 2007 21:12:24 +0000 (21:12 +0000)]
Merged revisions 93182 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r93182 | oej | 2007-12-17 08:15:13 +0100 (MÃ¥n, 17 Dec 2007) | 8 lines

Issue 11574: Add dependencies on res_monitor and res_features.

I wonder if Asterisk can run at all without res_features. My guess is that
there's propably a lot of more modules and the core that depends on it.

Reported by: caio1982
(closes issue #11574)

........

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

11 years agoRemoving some leftover debug messages from a while back.
Mark Michelson [Mon, 17 Dec 2007 20:42:08 +0000 (20:42 +0000)]
Removing some leftover debug messages from a while back.

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

11 years agoMerged revisions 93291 via svnmerge from
Mark Michelson [Mon, 17 Dec 2007 20:20:32 +0000 (20:20 +0000)]
Merged revisions 93291 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r93291 | mmichelson | 2007-12-17 13:53:48 -0600 (Mon, 17 Dec 2007) | 6 lines

We need to create the directory for a voicemail user even if they are using IMAP storage
since greetings are stored in the filesystem.

(closes issue #11388, reported by spditner, patch by me inspired by a patch by spditner)

........

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

11 years agoMerged revisions 93250 via svnmerge from
Joshua Colp [Mon, 17 Dec 2007 18:07:26 +0000 (18:07 +0000)]
Merged revisions 93250 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r93250 | file | 2007-12-17 14:05:55 -0400 (Mon, 17 Dec 2007) | 6 lines

If a call is received with a called number IE containing nothing go to the 's' extension.
(closes issue #9099)
Reported by: kb1_kanobe2
Patches:
      20070906__9099.diff.txt uploaded by Corydon76 (license 14)

........

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

11 years agoall created files need to be listed in the ignore property
Kevin P. Fleming [Mon, 17 Dec 2007 17:16:03 +0000 (17:16 +0000)]
all created files need to be listed in the ignore property

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

11 years agomake the configure script detect that it is running on a Windows platform, and report...
Kevin P. Fleming [Mon, 17 Dec 2007 17:11:06 +0000 (17:11 +0000)]
make the configure script detect that it is running on a Windows platform, and report that information so that menuselect can use it (all information that is used to decide whether to build modules or not must be fed to menuselect so the user knows what will be built and why... don't make module build decisions in the makefiles, please)

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

11 years agomake using PRINT_DIR a little easier
Kevin P. Fleming [Mon, 17 Dec 2007 16:48:01 +0000 (16:48 +0000)]
make using PRINT_DIR a little easier

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

11 years agoFix usage of rtptimeout. It can be used without rtpkeepalive, and the value can not...
Joshua Colp [Mon, 17 Dec 2007 15:18:58 +0000 (15:18 +0000)]
Fix usage of rtptimeout. It can be used without rtpkeepalive, and the value can not be accessed directly in the SIP pvt structure. All RTP related timeouts have to be retrieved using the ast_rtp_* function calls.
(closes issue #11562)
Reported by: ibc

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

11 years agoIf no timezone is available use the default message.
Joshua Colp [Mon, 17 Dec 2007 13:39:53 +0000 (13:39 +0000)]
If no timezone is available use the default message.
(closes issue #11576)
Reported by: junky

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

11 years agoMake chan_unistim actually be able to unload. When creating a thread that you want...
Joshua Colp [Mon, 17 Dec 2007 13:34:03 +0000 (13:34 +0000)]
Make chan_unistim actually be able to unload. When creating a thread that you want to pthread_join you have to explicitly create it as joinable, and also if using pthread_cancel you have to have a pthread_testcancel to see if it has been called.

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

11 years agoBlocked revisions 93183 via svnmerge
Kevin P. Fleming [Mon, 17 Dec 2007 07:27:36 +0000 (07:27 +0000)]
Blocked revisions 93183 via svnmerge

........
r93183 | kpfleming | 2007-12-16 23:21:08 -0800 (Sun, 16 Dec 2007) | 2 lines

fix some copy-and-paste leftovers

........

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

11 years agoMerged revisions 93180 via svnmerge from
Kevin P. Fleming [Mon, 17 Dec 2007 07:25:35 +0000 (07:25 +0000)]
Merged revisions 93180 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r93180 | kpfleming | 2007-12-16 22:44:51 -0800 (Sun, 16 Dec 2007) | 23 lines

In http://lists.digium.com/pipermail/asterisk-dev/2007-December/031145.html,
rizzo brought up some issues related to the way that the metadata required
for menuselect and the rest of the build system is extracted from the source
files. Since I had a few hours to kill on an airplane today, I decided to
improve this situation... so now the system caches the extracted metadata
and uses it to build the menuselect 'tree' as much as it can. The result
of this is that when a single source file is changed, only the metadata for
that file needs to be extracted again, and the rest is used from the cache
files. I also reduced the number of forked processes required to do the
metadata extraction; it was actually possible to do most of what we needed
in the Makefiles themselves without using any shell scripts at all! On my
laptop, these changes resulted in an 80% decrease in the time required
for the 'menuselect.makeopts' automatic check to occur after editing a single
source file.

While doing this work I also cleaned up a few minor things in the Makefiles,
adding a check for 'awk' to the configure script and changed all remaining
places we use 'grep' or 'awk' to use the ones found by the configure script,
and changed the 'prep_tarball' script to build the menuselect metadata so
that tarballs of Asterisk will include it and won't require the user to
wait while it is extracted after unpacking.

........

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

11 years agomenuselect.makeopts is not a .PHONY target
Luigi Rizzo [Sun, 16 Dec 2007 19:06:31 +0000 (19:06 +0000)]
menuselect.makeopts is not a .PHONY target

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

11 years agoConvert from LOG_DEBUG etc to ast_debug. Thanks, dimas!
Olle Johansson [Sun, 16 Dec 2007 13:38:25 +0000 (13:38 +0000)]
Convert from LOG_DEBUG etc to ast_debug. Thanks, dimas!

(closes issue #11572)
Reported by: dimas
Patches:
      dundilog-trunk.patch uploaded by dimas (license 88)

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

11 years agoAdding a new CLI command for "manager reload", which is important now that
Olle Johansson [Sun, 16 Dec 2007 13:35:09 +0000 (13:35 +0000)]
Adding a new CLI command for "manager reload", which is important now that
you need to reload after changes. Thanks YS.

Reported by: ys
Patches:
      trunk93163_manager_reload.c.diff uploaded by ys (license 281)
(related to issue #11414)

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

11 years agoChange manager so that registered accounts are stored in memory. This opens for a
Olle Johansson [Sun, 16 Dec 2007 13:32:48 +0000 (13:32 +0000)]
Change manager so that registered accounts are stored in memory. This opens for a
manager realtime implementation.

If you change accounts in manager.conf, you now need to reload to activate the
changes (deletions, additions). This was not the case with 1.4.

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

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

11 years agoAdding console_video to CHANGES. It's important that we keep this file up to date,
Olle Johansson [Sun, 16 Dec 2007 13:21:11 +0000 (13:21 +0000)]
Adding console_video to CHANGES. It's important that we keep this file up to date,
even with experimental stuff.

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

11 years agoHUGE improvements to QoS/CoS handling by IgorG
Olle Johansson [Sun, 16 Dec 2007 10:51:53 +0000 (10:51 +0000)]
HUGE improvements to QoS/CoS handling by IgorG

- Refer to the proper documentation
- Implement separate signalling/media QoS/CoS in many channels using RTP
- Improve warnings and verbose messages
- Deprecate some old settings

Minor modifications by me, a big effort from IgorG.
Thanks!

Reported by: IgorG
Patches:
      qoscleanup-89394-4-trunk.patch uploaded by IgorG (license 20)
Tested by: IgorG
(closes issue #11145)

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

11 years agouse a simpler idiom for 'cmp -s ...'
Luigi Rizzo [Sun, 16 Dec 2007 10:34:55 +0000 (10:34 +0000)]
use a simpler idiom for 'cmp -s ...'

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

11 years agoDon't drop the first character randomly in long listings in the CLI.
Olle Johansson [Sun, 16 Dec 2007 09:37:41 +0000 (09:37 +0000)]
Don't drop the first character randomly in long listings in the CLI.

Reported by: slavon
Patches:
      asterisk-consolerefresh2.diff.txt uploaded by jamesgolovich (license 176)
Tested by: eliel
(closes issue #9325)

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

11 years agoUpdate documentation
Olle Johansson [Sun, 16 Dec 2007 08:19:38 +0000 (08:19 +0000)]
Update documentation

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

11 years agoMake more timers settable in SIP so that we can force timeout earlier on non-responsi...
Olle Johansson [Sun, 16 Dec 2007 08:15:31 +0000 (08:15 +0000)]
Make more timers settable in SIP so that we can force timeout earlier on non-responsive SIP servers.
Thanks, jcmoore, for the patch!

Reported by: jcmoore
Patches:
      peer_t1_timerb_trunk_v3.patch.txt uploaded by jcmoore (license 9)
(closes issue #9771)

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

11 years agoTypo fixed earlier, that wasn't a typo after all.
Olle Johansson [Sat, 15 Dec 2007 11:34:33 +0000 (11:34 +0000)]
Typo fixed earlier, that wasn't a typo after all.
Didn't a clever guy once say "Compile before you commit" ?

:-)

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

11 years ago fix a typo from revision 93138
Russell Bryant [Sat, 15 Dec 2007 08:10:32 +0000 (08:10 +0000)]
 fix a typo from revision 93138

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

11 years agoconfiguration options related to video support.
Luigi Rizzo [Sat, 15 Dec 2007 00:44:34 +0000 (00:44 +0000)]
configuration options related to video support.

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

11 years agoBring in video console support for chan_oss (and later chan_alsa too).
Luigi Rizzo [Sat, 15 Dec 2007 00:30:15 +0000 (00:30 +0000)]
Bring in video console support for chan_oss (and later chan_alsa too).
This is disabled in the default build, you need to explicitly enable it
compiling with

make COPTS=-DHAVE_VIDEO_CONSOLE

In return, you will be able to do a video call with chan_oss, using
the webcam (or X11 grabbing) as local source, and rendering the
incoming stream on your screen. Currently supported formats are
h261, h263, h263+, h264, mpeg4 (all through the avcodec lib, part
of ffmpeg).

Incoming video is on the left, outgoing video is on the right,
while the center displays a keypad (if configured so).

Right clicking on the video windows increases the size,
center clicking reduces the size.
Dragging the mouse (with the left key) on the right window
while the X11 grabber is active moves the grab area.

This is the result of work by Sergio Fadda, Marta Carbone
and myself, all properly disclaimed to digium.

Note, there is a lot of work left to do in this module,
including adding support for Video4LinuxV2 (I have patches
from Matteo Brancaleoni which should be integrated),
and making the GUI a lot more friendly than it is now
(e.g. supporting merging or switching among multiple sources,
a text window, and more).

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

11 years agoremove some redundant headers
Luigi Rizzo [Sat, 15 Dec 2007 00:11:04 +0000 (00:11 +0000)]
remove some redundant headers

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

11 years agoinclude mmap header if detected by configure
Luigi Rizzo [Fri, 14 Dec 2007 23:33:24 +0000 (23:33 +0000)]
include mmap header if detected by configure

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

11 years agoResolve a compiler warning
Mark Michelson [Fri, 14 Dec 2007 22:02:18 +0000 (22:02 +0000)]
Resolve a compiler warning

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

11 years agoChange places where the name "INBOX" was hardcoded to use the imapfolder
Mark Michelson [Fri, 14 Dec 2007 21:40:34 +0000 (21:40 +0000)]
Change places where the name "INBOX" was hardcoded to use the imapfolder
setting from voicemail.conf instead. This commit will help to get issue
#11415 moving towards commitment.

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