asterisk/asterisk.git
15 years agoIssue #6580 - Unify directory definitions to one section of Makefile (casper)
Olle Johansson [Fri, 7 Apr 2006 07:04:05 +0000 (07:04 +0000)]
Issue #6580 - Unify directory definitions to one section of Makefile (casper)
- Maybe we should define proper directories for OS/X too?
- Should OpenBSD and NetBSD follow the FreeBSD rules?

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

15 years agoMerged revisions 18087 via svnmerge from
Kevin P. Fleming [Thu, 6 Apr 2006 22:16:23 +0000 (22:16 +0000)]
Merged revisions 18087 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r18087 | kpfleming | 2006-04-06 17:04:58 -0500 (Thu, 06 Apr 2006) | 3 lines

don't try to support 'i' or 'r' options if chan_zap is not loaded, and warn the user when they attempt to use them (issue #6675)
update application help text to more clearly define when Zaptel and chan_zap are required

........

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

15 years agoCosmetic update for outbound REFERs
Olle Johansson [Thu, 6 Apr 2006 21:49:24 +0000 (21:49 +0000)]
Cosmetic update for outbound REFERs

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

15 years agoAdd "NewChan" event to history to track the birth of a new ast_chan from a
Olle Johansson [Thu, 6 Apr 2006 21:33:39 +0000 (21:33 +0000)]
Add "NewChan" event to history to track the birth of a new ast_chan from a
SIP invite

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

15 years agoImproved handling of 491 responses
Olle Johansson [Thu, 6 Apr 2006 21:29:54 +0000 (21:29 +0000)]
Improved handling of 491 responses

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

15 years agoSmall changes to parse_sip_options
Olle Johansson [Thu, 6 Apr 2006 21:18:12 +0000 (21:18 +0000)]
Small changes to parse_sip_options

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

15 years agoSmall fixes to handle_request_invite
Olle Johansson [Thu, 6 Apr 2006 21:13:32 +0000 (21:13 +0000)]
Small fixes to handle_request_invite

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

15 years ago- Don't change channel direction on re-invites
Olle Johansson [Thu, 6 Apr 2006 21:01:06 +0000 (21:01 +0000)]
- Don't change channel direction on re-invites
- Don't re-initialize initreq on re-invites

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

15 years ago More code optimizations. Thanks kpfleming!
BJ Weschke [Thu, 6 Apr 2006 20:37:29 +0000 (20:37 +0000)]
 More code optimizations. Thanks kpfleming!

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

15 years ago- Implement handle_request_notify to handle incoming NOTIFY requests
Olle Johansson [Thu, 6 Apr 2006 20:36:25 +0000 (20:36 +0000)]
- Implement handle_request_notify to handle incoming NOTIFY requests
  and respond properly to them.

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

15 years ago Fix a problem where if the channel was hungup during detection, the application...
BJ Weschke [Thu, 6 Apr 2006 20:23:18 +0000 (20:23 +0000)]
 Fix a problem where if the channel was hungup during detection, the application wouldn't block indefinitely looking for another frame from that channel. Don't try to do frame size analysis on a frame that isn't voice, only report DEBUG and VERBOSE msgs to the logger channels when the DEBUG and VERBOSE settings are high enough to require it, and some other minor cleanups.

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

15 years agoImplement a handle_response_refer function to take care of responses
Olle Johansson [Thu, 6 Apr 2006 20:16:08 +0000 (20:16 +0000)]
Implement a handle_response_refer function to take care of responses
to outbound REFERS. Not that common, but still needed.

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

15 years agoChange transmit_notify_sipfrag to handle other messages than 200 OK, needed for
Olle Johansson [Thu, 6 Apr 2006 19:59:21 +0000 (19:59 +0000)]
Change transmit_notify_sipfrag to handle other messages than 200 OK, needed for
SIPtransfer improvement

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

15 years ago- doxygen
Olle Johansson [Thu, 6 Apr 2006 19:39:27 +0000 (19:39 +0000)]
- doxygen
- debug message control

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

15 years agostructures can be copied with the '=' operators, no need to
Luigi Rizzo [Thu, 6 Apr 2006 19:31:59 +0000 (19:31 +0000)]
structures can be copied with the '=' operators, no need to
use memcpy.

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

15 years agogit-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17946 65c4cc65-6c06-0410...
Russell Bryant [Thu, 6 Apr 2006 17:25:34 +0000 (17:25 +0000)]
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17946 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agovarious cleanups to the Makefile
Russell Bryant [Thu, 6 Apr 2006 17:13:00 +0000 (17:13 +0000)]
various cleanups to the Makefile
- remove unused OSREV varibale
- move various CROSS_COMPILE variables to the top and group them together
- move various PROC definitions to the top as a group
- remove usused MARCH variable
(issue #6892)

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

15 years agonormalize some for() loops.
Luigi Rizzo [Thu, 6 Apr 2006 17:09:00 +0000 (17:09 +0000)]
normalize some for() loops.

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

15 years agoMerged revisions 17905 via svnmerge from
Joshua Colp [Thu, 6 Apr 2006 17:01:47 +0000 (17:01 +0000)]
Merged revisions 17905 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r17905 | file | 2006-04-06 14:00:10 -0300 (Thu, 06 Apr 2006) | 2 lines

Update email address to my Digium one

........

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

15 years agoskinny debug/verbose cleanup.
North Antara [Thu, 6 Apr 2006 16:50:33 +0000 (16:50 +0000)]
skinny debug/verbose cleanup.

Thanks casper!

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

15 years agominor formatting changes again
Luigi Rizzo [Thu, 6 Apr 2006 16:44:31 +0000 (16:44 +0000)]
minor formatting changes again

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

15 years agonormalize repeated instances of code as follows:
Luigi Rizzo [Thu, 6 Apr 2006 16:17:04 +0000 (16:17 +0000)]
normalize repeated instances of code as follows:

-       if (res >= 0)
-               return RESULT_SUCCESS;
-       else
-               return RESULT_FAILURE;
+       return (res >= 0) ? RESULT_SUCCESS : RESULT_FAILURE;

(we should probably create a macro for this,

#define RET(r) ((r) >= 0) ? RESULT_SUCCESS : RESULT_FAILURE)

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

15 years agooptimize move_variables() so that two lists can be created
Luigi Rizzo [Thu, 6 Apr 2006 16:06:57 +0000 (16:06 +0000)]
optimize move_variables() so that two lists can be created
in constant time instead of scanning the entire list.

On passing, minor formatting fixes.

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

15 years ago+ create function cdr_get_tv to replace several duplicated
Luigi Rizzo [Thu, 6 Apr 2006 16:01:56 +0000 (16:01 +0000)]
+ create function cdr_get_tv to replace several duplicated
  instances of the same code to generate a time entry in
  raw or localtime format;

+ create functions check_post() and check_start() to check whether
  a record has been already posted or started, replacing
  several duplicated instances of the same code;

+ localize some variables;

+ normalize some for() loops

Especially the former two changes should make the code a lot
more consistent and easier to read.

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

15 years agominor code cleanup
Luigi Rizzo [Thu, 6 Apr 2006 15:55:15 +0000 (15:55 +0000)]
minor code cleanup

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

15 years agoconvert one more file...
Luigi Rizzo [Thu, 6 Apr 2006 15:48:06 +0000 (15:48 +0000)]
convert one more file...

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

15 years agoremove traces of previously merged files
Luigi Rizzo [Thu, 6 Apr 2006 15:43:06 +0000 (15:43 +0000)]
remove traces of previously merged files

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

15 years agoFormatting fixes
Olle Johansson [Thu, 6 Apr 2006 15:41:37 +0000 (15:41 +0000)]
Formatting fixes

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

15 years agominor formatting cleanup and removal of trailing whitespace.
Luigi Rizzo [Thu, 6 Apr 2006 15:40:12 +0000 (15:40 +0000)]
minor formatting cleanup and removal of trailing whitespace.

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

15 years agoFormatting fixes
Olle Johansson [Thu, 6 Apr 2006 15:25:56 +0000 (15:25 +0000)]
Formatting fixes

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

15 years agoFormatting fixes
Olle Johansson [Thu, 6 Apr 2006 15:23:14 +0000 (15:23 +0000)]
Formatting fixes

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

15 years agouse the new module interface for this module, but make it
Luigi Rizzo [Thu, 6 Apr 2006 15:10:29 +0000 (15:10 +0000)]
use the new module interface for this module, but make it
of type MOD_0 as it exports symbols so it should be loaded as RTLD_GLOBAL.

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

15 years agomake sure that file calls other than OPEN work on all formats
Luigi Rizzo [Thu, 6 Apr 2006 15:08:31 +0000 (15:08 +0000)]
make sure that file calls other than OPEN work on all formats
if called with a NULL 'fmt' argument.
(SVN 6898)

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

15 years agoMake "show http" CLI command follow new guidelines - now "http show status"
Olle Johansson [Thu, 6 Apr 2006 14:43:06 +0000 (14:43 +0000)]
Make "show http" CLI command follow new guidelines - now "http show status"

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

15 years agowhitespace and formatting fix postponed from last commit:
Luigi Rizzo [Thu, 6 Apr 2006 14:40:47 +0000 (14:40 +0000)]
whitespace and formatting fix postponed from last commit:
fix indentation of a large function, localize some variables
and add/remove whitespace where needed.

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

15 years agosplit pbx_load_module so we can reduce the indentation depth.
Luigi Rizzo [Thu, 6 Apr 2006 14:23:37 +0000 (14:23 +0000)]
split pbx_load_module so we can reduce the indentation depth.
Also convert to MOD_1 style.

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

15 years agouse FREE instead of free as pointer to the destructor function.
Luigi Rizzo [Thu, 6 Apr 2006 14:02:19 +0000 (14:02 +0000)]
use FREE instead of free as pointer to the destructor function.
This way the MALLOC_DEBUG code will always get the correct argument.

(bug introduced in SVN15818)

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

15 years agoconvert a couple of applications to the new module style
Luigi Rizzo [Thu, 6 Apr 2006 09:24:02 +0000 (09:24 +0000)]
convert a couple of applications to the new module style
(STATIC_MODULE) to show what needs to be changed.

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

15 years agosmall cleanups to module.h and loader.c to start playing with
Luigi Rizzo [Thu, 6 Apr 2006 09:10:31 +0000 (09:10 +0000)]
small cleanups to module.h and loader.c to start playing with
new-style modules using static symbols.

Everything will still work as before, but new-style modules
can now be defined by putting a '#define STATIC_MODULE' somewhere
before including module.h, then declaring STATIC_MODULE the
various methods (load, unload, key...) that the module is
supposed to supply, and adding a 'STD_MOD(MOD_1, reload_fn, NULL, NULL)'
macro call at the end.
A module compiled in this way will be loaded RTLD_NOW|RTLD_LOCAL
so symbol pollution is reduced, and symbols are resolved immediately.
Removing just the '#define STATIC_MODULE' will restore the old
behaviour.

In order for a module to be loaded RTLD_NOW|RTLD_LOCAL, it must not
export any symbol[1], and all the modules it depends on (e.g. res_*)
must be loaded already.

[1] Mechanisms are in place, and will be enabled later, to still
allow such modules to 'export' symbols and resolving the dependencies
irrespective of the load order.

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

15 years agothe fix for bug #6399 makes sense. thanks wrmem for the report.
Luigi Rizzo [Thu, 6 Apr 2006 08:02:35 +0000 (08:02 +0000)]
the fix for bug #6399 makes sense. thanks wrmem for the report.

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

15 years agoIssue #6893 - Compiler warnings for PostgreSQL ARA driver
Olle Johansson [Thu, 6 Apr 2006 06:55:38 +0000 (06:55 +0000)]
Issue #6893 - Compiler warnings for PostgreSQL ARA driver

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

15 years agoIssue #6610 - build on Intel Mac
Olle Johansson [Wed, 5 Apr 2006 20:14:51 +0000 (20:14 +0000)]
Issue #6610 - build on Intel Mac
(Wish I could try this at home :-)

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

15 years agoMerged revisions 17702 via svnmerge from
Joshua Colp [Wed, 5 Apr 2006 20:05:09 +0000 (20:05 +0000)]
Merged revisions 17702 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r17702 | file | 2006-04-05 17:01:19 -0300 (Wed, 05 Apr 2006) | 2 lines

Unlock channel on failure so that ast_mutex_destroy doesn't throw a fit (issue #6647 reported by casper)

........

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

15 years ago- Doxygen fixes
Olle Johansson [Wed, 5 Apr 2006 19:32:40 +0000 (19:32 +0000)]
- Doxygen fixes
- Typos corrected

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

15 years agoUnbreak res/Makefile (issue #6891 as reported by casper)
Joshua Colp [Wed, 5 Apr 2006 18:37:29 +0000 (18:37 +0000)]
Unbreak res/Makefile (issue #6891 as reported by casper)

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

15 years agoIssue #5637 - Realtime driver for PostgreSQL (mguesdon)
Olle Johansson [Wed, 5 Apr 2006 17:46:09 +0000 (17:46 +0000)]
Issue #5637 - Realtime driver for PostgreSQL (mguesdon)

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

15 years agoBug 6873 - Finish moving from the non-threadsafe (and poor randomness) rand() to...
Tilghman Lesher [Wed, 5 Apr 2006 17:44:44 +0000 (17:44 +0000)]
Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) rand() to threadsafe ast_random()

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

15 years agoBug 6508 - if priority was a number, then findlabel fails
Tilghman Lesher [Wed, 5 Apr 2006 17:03:30 +0000 (17:03 +0000)]
Bug 6508 - if priority was a number, then findlabel fails

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

15 years agosome final fixes for cpn
Christian Richter [Wed, 5 Apr 2006 15:54:15 +0000 (15:54 +0000)]
some final fixes for cpn

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

15 years ago* advanced the error Handling routine for wrong frames from mISDN
Christian Richter [Wed, 5 Apr 2006 14:51:48 +0000 (14:51 +0000)]
* advanced the error Handling routine for wrong frames from mISDN
* added more code for connected party number handling
* fixed the portinfo program, it can now be used to test mISDN again

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

15 years agoAdd some documentation and a todo for enum.c
Olle Johansson [Wed, 5 Apr 2006 13:53:06 +0000 (13:53 +0000)]
Add some documentation and a todo for enum.c

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

15 years agoIssue #6654: Enum crash on ADDRESS record, possibly bad record, but still a crash...
Olle Johansson [Wed, 5 Apr 2006 06:52:41 +0000 (06:52 +0000)]
Issue #6654: Enum crash on ADDRESS record, possibly bad record, but still a crash (imported from 1.2)

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

15 years agoAdd reference pointers to RFCs
Olle Johansson [Wed, 5 Apr 2006 06:43:14 +0000 (06:43 +0000)]
Add reference pointers to RFCs

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

15 years agoBug 6886 - Add application TryExec, which does mostly the same thing, but returns...
Tilghman Lesher [Wed, 5 Apr 2006 03:53:41 +0000 (03:53 +0000)]
Bug 6886 - Add application TryExec, which does mostly the same thing, but returns differently

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

15 years agoFix formatting
Olle Johansson [Tue, 4 Apr 2006 19:48:42 +0000 (19:48 +0000)]
Fix formatting

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

15 years ago fixed some essential segfaults happening under heavy load. Added a bit more error...
Christian Richter [Tue, 4 Apr 2006 19:09:26 +0000 (19:09 +0000)]
 fixed some essential segfaults happening under heavy load. Added a bit more error handling if we receive wrong data form mISDN (e.g. if we crashed before => handle_err() ). Added first steps to implement the parseing of the connected party number.

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

15 years agoIssue #6884 - manager.c formatting (casper)
Olle Johansson [Tue, 4 Apr 2006 19:03:12 +0000 (19:03 +0000)]
Issue #6884 - manager.c formatting (casper)

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

15 years agoFormatting cleanup
Olle Johansson [Tue, 4 Apr 2006 18:34:21 +0000 (18:34 +0000)]
Formatting cleanup

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

15 years agoBlock 17367 from trunk, since it's already fixed (me bad)
Olle Johansson [Tue, 4 Apr 2006 18:30:31 +0000 (18:30 +0000)]
Block 17367 from trunk, since it's already fixed (me bad)

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

15 years agoIssue #6878 - Manager event DNDstate hidden under verbose option (casper)
Olle Johansson [Tue, 4 Apr 2006 18:26:24 +0000 (18:26 +0000)]
Issue #6878 - Manager event DNDstate hidden under verbose option (casper)

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

15 years ago- Don't return AST_DEVICE_UNKNOWN to devicestate engine, since this will
Olle Johansson [Tue, 4 Apr 2006 18:24:41 +0000 (18:24 +0000)]
- Don't return AST_DEVICE_UNKNOWN to devicestate engine, since this will
  cause a channel walk...
- Doxygen fixed for devicestate.c

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

15 years agoIssue #6882
Olle Johansson [Tue, 4 Apr 2006 18:02:40 +0000 (18:02 +0000)]
Issue #6882
- move "res=-1" out of verbose block.
- minor code cleanup
Imported from 1.2 branch

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

15 years agothese files are now unused, corresponding functions are merged
Luigi Rizzo [Tue, 4 Apr 2006 17:13:37 +0000 (17:13 +0000)]
these files are now unused, corresponding functions are merged
into format_pcm.c

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

15 years agoremove an unused function.
Luigi Rizzo [Tue, 4 Apr 2006 17:12:35 +0000 (17:12 +0000)]
remove an unused function.
Funny enough, compiling with -O6 gives no warning, whereas -O2 gives
a warning for an unused function declared static.

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

15 years agochan_iax2 cleanups and optimizations (#6858)
Matthew Fredrickson [Tue, 4 Apr 2006 17:05:01 +0000 (17:05 +0000)]
chan_iax2 cleanups and optimizations (#6858)

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

15 years agominor code clean up from 6880
Matt O'Gorman [Tue, 4 Apr 2006 16:59:27 +0000 (16:59 +0000)]
minor code clean up from 6880

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

15 years agoadds manager event when an iax2 peer loses registration.
Matt O'Gorman [Tue, 4 Apr 2006 16:15:40 +0000 (16:15 +0000)]
adds manager event when an iax2 peer loses registration.
also some minor code clean up. patch from 6868 with minor
changes.

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

15 years agoogg_vorbis now compiles so put it back in.
Luigi Rizzo [Tue, 4 Apr 2006 15:40:47 +0000 (15:40 +0000)]
ogg_vorbis now compiles so put it back in.

On passing, remove an unnecessary initializazion in format_sln.c

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

15 years agoMerged revisions 17283 via svnmerge from
Matt O'Gorman [Tue, 4 Apr 2006 15:27:47 +0000 (15:27 +0000)]
Merged revisions 17283 via svnmerge from
https://svn.digium.com/svn/asterisk/branches/1.2

........
r17283 | mogorman | 2006-04-04 10:24:50 -0500 (Tue, 04 Apr 2006) | 3 lines

Adds documentation to show what the w flag.
Patch from Ian Kinner at Digium.

........

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

15 years agotemporarily disconnect ogg_vorbis from the build while i update it
Luigi Rizzo [Tue, 4 Apr 2006 14:39:22 +0000 (14:39 +0000)]
temporarily disconnect ogg_vorbis from the build while i update it
(should be a matter of a couple of hours).

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

15 years agoLargely simplify format handlers (for file copy etc.)
Luigi Rizzo [Tue, 4 Apr 2006 12:59:25 +0000 (12:59 +0000)]
Largely simplify format handlers (for file copy etc.)
collecting common functions in a single place and removing
them from the individual handlers.
The full description is on mantis,
http://bugs.digium.com/view.php?id=6375
and only the ogg_vorbis handler needs to be converted to
the new structure.

As a result of this change, format_au.c and format_pcm_alaw.c
should go away (in a separate commit) as their functionality
(trivial) has been merged in another file.

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

15 years agosome fields are const
Luigi Rizzo [Tue, 4 Apr 2006 10:57:31 +0000 (10:57 +0000)]
some fields are const

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

15 years agoAdded information on call-limit and realtime
Olle Johansson [Tue, 4 Apr 2006 08:01:46 +0000 (08:01 +0000)]
Added information on call-limit and realtime

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

15 years agoClarify syntax of new manager events that reports a status.
Olle Johansson [Tue, 4 Apr 2006 07:59:02 +0000 (07:59 +0000)]
Clarify syntax of new manager events that reports a status.
We do not longer approve "ThisEventOn" and "ThisEventOff" named events,
they need to be named "ThisEvent" with a status header showing the
current status.
(Approved by Mark)
Old events won't be changed to keep backwards compatibility,
until we have a revision plan for the AMI.

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

15 years agoDoes nobody know how to write a linked list properly? I mean seriously!
Mark Spencer [Tue, 4 Apr 2006 05:53:48 +0000 (05:53 +0000)]
Does nobody know how to write a linked list properly? I mean seriously!

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

15 years agoClarify the need for numeric parking positions (imported from 1.2)
Olle Johansson [Mon, 3 Apr 2006 20:45:45 +0000 (20:45 +0000)]
Clarify the need for numeric parking positions (imported from 1.2)

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

15 years agoAdd tag to NOTIFY headers (imported from 1.2)
Olle Johansson [Mon, 3 Apr 2006 20:40:08 +0000 (20:40 +0000)]
Add tag to NOTIFY headers (imported from 1.2)

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

15 years agoupdating cleancount to coincide with 17130
Matt O'Gorman [Mon, 3 Apr 2006 20:23:46 +0000 (20:23 +0000)]
updating cleancount to coincide with 17130
didnt know you are supposed to update that. now i do

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

15 years agolist word cant be used with g++ and causes problems
Matt O'Gorman [Mon, 3 Apr 2006 19:42:26 +0000 (19:42 +0000)]
list word cant be used with g++ and causes problems
with h323.  patch from bug 6446, renames list to chan_list

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

15 years ago* removed unneeded bc->state field
Christian Richter [Mon, 3 Apr 2006 19:17:59 +0000 (19:17 +0000)]
* removed unneeded bc->state field
* added statefullness for bchannel activation/deactivation
* fixed a lot PCM bridging issues
* some debugging logs are now on a higher loglevel

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

15 years agoAdd misdn.txt to doxygen docs
Olle Johansson [Mon, 3 Apr 2006 18:42:58 +0000 (18:42 +0000)]
Add misdn.txt to doxygen docs

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

15 years ago- Doxygen additions
Olle Johansson [Mon, 3 Apr 2006 18:38:28 +0000 (18:38 +0000)]
- Doxygen additions
- Formatting fixes (read guidelines :-) )
- Removing compilation warnings

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

15 years agobug updates chan_h323 to some api changes it
Matt O'Gorman [Mon, 3 Apr 2006 18:36:30 +0000 (18:36 +0000)]
bug updates chan_h323 to some api changes it
also allows for it to compile once more patch
taken from 6446 with minor mods, similar bugs 6521
and 6560

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

15 years agoDon't add hangup cause on non-final responses. (Imported from 1.2)
Olle Johansson [Mon, 3 Apr 2006 17:52:11 +0000 (17:52 +0000)]
Don't add hangup cause on non-final responses. (Imported from 1.2)

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

15 years agoIssue #6848 - Accept MWI subscriptions with no Accept: header
Olle Johansson [Mon, 3 Apr 2006 10:50:56 +0000 (10:50 +0000)]
Issue #6848 - Accept MWI subscriptions with no Accept: header

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

15 years agoInclude new README files in index
Olle Johansson [Mon, 3 Apr 2006 07:44:29 +0000 (07:44 +0000)]
Include new README files in index

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

15 years agoBug 6861 - Routine should use the specified writetimeout, rather than the default
Tilghman Lesher [Mon, 3 Apr 2006 07:34:40 +0000 (07:34 +0000)]
Bug 6861 - Routine should use the specified writetimeout, rather than the default

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

15 years agoBug 6862 - No need to initialize memory to zero twice
Tilghman Lesher [Mon, 3 Apr 2006 07:30:07 +0000 (07:30 +0000)]
Bug 6862 - No need to initialize memory to zero twice

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

15 years agoMinor demo cleanups
Mark Spencer [Mon, 3 Apr 2006 01:48:59 +0000 (01:48 +0000)]
Minor demo cleanups

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

15 years agoCleanup URI (when none is specified) and make sure threads are stand alone
Mark Spencer [Sun, 2 Apr 2006 23:55:15 +0000 (23:55 +0000)]
Cleanup URI (when none is specified) and make sure threads are stand alone

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

15 years agoMinor cleanup in wakeup logic
Mark Spencer [Sun, 2 Apr 2006 20:11:55 +0000 (20:11 +0000)]
Minor cleanup in wakeup logic

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

15 years agoUnify manager behind a single event queue
Mark Spencer [Sun, 2 Apr 2006 19:59:55 +0000 (19:59 +0000)]
Unify manager behind a single event queue

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

15 years agoProperly handle empty prefix
Mark Spencer [Sun, 2 Apr 2006 09:10:43 +0000 (09:10 +0000)]
Properly handle empty prefix

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

15 years agoReduce debugging messages from WARNING to DEBUG
Tilghman Lesher [Sun, 2 Apr 2006 06:27:54 +0000 (06:27 +0000)]
Reduce debugging messages from WARNING to DEBUG

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

15 years agoFix formatting of the frog code
Tilghman Lesher [Sun, 2 Apr 2006 06:17:47 +0000 (06:17 +0000)]
Fix formatting of the frog code

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

15 years agoMake excessive debug optional
Mark Spencer [Sat, 1 Apr 2006 20:39:33 +0000 (20:39 +0000)]
Make excessive debug optional

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

15 years agofix style and printf format errors in the frog command.
Luigi Rizzo [Sat, 1 Apr 2006 18:18:20 +0000 (18:18 +0000)]
fix style and printf format errors in the frog command.
(it's april first i guess...)

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

15 years agoRemoved "frog" command (so it could be moved to cli.c)
Jim Dixon [Sat, 1 Apr 2006 12:56:50 +0000 (12:56 +0000)]
Removed "frog" command (so it could be moved to cli.c)

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

15 years agoAdded "frog" CLI command, which performs frog-in-a-blender calculations.
Jim Dixon [Sat, 1 Apr 2006 12:54:04 +0000 (12:54 +0000)]
Added "frog" CLI command, which performs frog-in-a-blender calculations.

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

15 years agoFlesh out the remainder of the manager + http changes and create a sample application...
Mark Spencer [Sat, 1 Apr 2006 08:49:54 +0000 (08:49 +0000)]
Flesh out the remainder of the manager + http changes and create a sample application to partially
demonstrate the capability of manager over http.

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