asterisk/asterisk.git
16 years agoMake REG_STATE_* enum
Olle Johansson [Fri, 31 Mar 2006 15:19:04 +0000 (15:19 +0000)]
Make REG_STATE_* enum

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

16 years agoDon't accept new INVITE if we already have one pending.
Olle Johansson [Fri, 31 Mar 2006 15:07:36 +0000 (15:07 +0000)]
Don't accept new INVITE if we already have one pending.

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

16 years agotrailing whitespace/ useless extern removal
Luigi Rizzo [Fri, 31 Mar 2006 15:02:52 +0000 (15:02 +0000)]
trailing whitespace/ useless extern removal

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

16 years ago Provide warning about current behavior of autofill = yes
BJ Weschke [Fri, 31 Mar 2006 13:51:37 +0000 (13:51 +0000)]
 Provide warning about current behavior of autofill = yes

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

16 years agomore trailing whitespace and extern removal
Luigi Rizzo [Fri, 31 Mar 2006 10:35:25 +0000 (10:35 +0000)]
more trailing whitespace and extern removal

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

16 years agoremoval of trailing whitespace and useless 'extern'
Luigi Rizzo [Fri, 31 Mar 2006 10:29:50 +0000 (10:29 +0000)]
removal of trailing whitespace and useless 'extern'

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

16 years agominor cleanup: localize a variable and replace i++; i++ with i +=2;
Luigi Rizzo [Fri, 31 Mar 2006 10:13:22 +0000 (10:13 +0000)]
minor cleanup: localize a variable and replace i++; i++ with i +=2;

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

16 years agouseless 'extern' and trailing whitespace removal
Luigi Rizzo [Fri, 31 Mar 2006 10:11:10 +0000 (10:11 +0000)]
useless 'extern' and trailing whitespace removal

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

16 years agoanother batch of whitespace removal
Luigi Rizzo [Fri, 31 Mar 2006 10:06:42 +0000 (10:06 +0000)]
another batch of whitespace removal
(trailing space-tabs, and useless 'extern')

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

16 years agoremove useless 'extern' and trailing whitespace.
Luigi Rizzo [Fri, 31 Mar 2006 10:02:52 +0000 (10:02 +0000)]
remove useless 'extern' and trailing whitespace.

(this is a whitespace-only change)

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

16 years agofix formatting
Luigi Rizzo [Fri, 31 Mar 2006 09:53:05 +0000 (09:53 +0000)]
fix formatting

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

16 years agominor code simplifications - no need to use temporary
Luigi Rizzo [Fri, 31 Mar 2006 09:50:54 +0000 (09:50 +0000)]
minor code simplifications - no need to use temporary
variables.

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

16 years agoDo not leave a thread in limbo if an error occurs, or if testing packet loss.
Joshua Colp [Fri, 31 Mar 2006 00:53:32 +0000 (00:53 +0000)]
Do not leave a thread in limbo if an error occurs, or if testing packet loss.

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

16 years agoIssue 5852 (casper) Code clean up, adding documentation on new switches. Thanks!
Olle Johansson [Fri, 31 Mar 2006 00:33:28 +0000 (00:33 +0000)]
Issue 5852 (casper) Code clean up, adding documentation on new switches. Thanks!

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

16 years ago- Change AST_INLINE_AP to AST_INLINE_API for non-386 systems :-)
Olle Johansson [Fri, 31 Mar 2006 00:25:50 +0000 (00:25 +0000)]
- Change AST_INLINE_AP to AST_INLINE_API for non-386 systems :-)
- Doxygen changes

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

16 years agoremove useless 'extern' in function declarations.
Luigi Rizzo [Fri, 31 Mar 2006 00:11:45 +0000 (00:11 +0000)]
remove useless 'extern' in function declarations.

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

16 years agoAdd NetBSD for credits for editline
Mark Spencer [Thu, 30 Mar 2006 23:42:57 +0000 (23:42 +0000)]
Add NetBSD for credits for editline

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

16 years agoinitial implementation of support for native atomic ops.
Luigi Rizzo [Thu, 30 Mar 2006 23:26:22 +0000 (23:26 +0000)]
initial implementation of support for native atomic ops.

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

16 years agoMerged revisions 16581 via svnmerge from
Tilghman Lesher [Thu, 30 Mar 2006 23:05:58 +0000 (23:05 +0000)]
Merged revisions 16581 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r16581 | tilghman | 2006-03-30 16:56:35 -0600 (Thu, 30 Mar 2006) | 2 lines

Bug 6853 - Manager fixes: 1) extra ActionID, 2) missing colon

........

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

16 years agoMerged revisions 16579 via svnmerge from
Tilghman Lesher [Thu, 30 Mar 2006 22:47:11 +0000 (22:47 +0000)]
Merged revisions 16579 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r16579 | tilghman | 2006-03-30 16:46:06 -0600 (Thu, 30 Mar 2006) | 2 lines

Bug 6849 - trivial typo fix

........

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

16 years agoAdd more 64-bit detection goodness (issue #6850 reported by evilbunny)
Joshua Colp [Thu, 30 Mar 2006 21:57:49 +0000 (21:57 +0000)]
Add more 64-bit detection goodness (issue #6850 reported by evilbunny)

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

16 years agoBlock 1.2 fix for amd64, trunk version coming soon
Joshua Colp [Thu, 30 Mar 2006 21:52:04 +0000 (21:52 +0000)]
Block 1.2 fix for amd64, trunk version coming soon

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

16 years agolocalize a variable
Luigi Rizzo [Thu, 30 Mar 2006 21:49:24 +0000 (21:49 +0000)]
localize a variable

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

16 years agouse ast_strdup instead of strdup
Luigi Rizzo [Thu, 30 Mar 2006 21:47:22 +0000 (21:47 +0000)]
use ast_strdup instead of strdup

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

16 years agodon't use 8000, use DEFAULT_SAMPLE_RATE
Luigi Rizzo [Thu, 30 Mar 2006 21:45:43 +0000 (21:45 +0000)]
don't use 8000, use DEFAULT_SAMPLE_RATE

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

16 years agoas discussed with Mark a few weeks ago, the 'newstack' argument
Luigi Rizzo [Thu, 30 Mar 2006 21:29:39 +0000 (21:29 +0000)]
as discussed with Mark a few weeks ago, the 'newstack' argument
in pbx_exec is always 1 so it can be removed.

This change also takes away ast_exec_extension(), and lets all
switch functions (exists, canmatch, exec, matchmore) all use the same
prototype, which makes the code a bit cleaner.

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

16 years agoDoxygen doc updates
Olle Johansson [Thu, 30 Mar 2006 19:05:00 +0000 (19:05 +0000)]
Doxygen doc updates

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

16 years agodeprecate insecure=very and insecure=yes, since we have more explicit versions availa...
Kevin P. Fleming [Thu, 30 Mar 2006 18:17:36 +0000 (18:17 +0000)]
deprecate insecure=very and insecure=yes, since we have more explicit versions available now

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

16 years agoMerged revisions 16534 via svnmerge from
Joshua Colp [Thu, 30 Mar 2006 17:58:16 +0000 (17:58 +0000)]
Merged revisions 16534 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r16534 | file | 2006-03-30 13:55:28 -0400 (Thu, 30 Mar 2006) | 2 lines

Do not exceed the array size for maximum allowed moh files. (issue #6842)

........

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

16 years agoremove AST_MUTEX_DEFINE_EXPORTED, which now has no more clients.
Luigi Rizzo [Thu, 30 Mar 2006 17:11:49 +0000 (17:11 +0000)]
remove AST_MUTEX_DEFINE_EXPORTED, which now has no more clients.

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

16 years agodo not export the tzlock and the list head, and introduce a new method,
Luigi Rizzo [Thu, 30 Mar 2006 17:10:11 +0000 (17:10 +0000)]
do not export the tzlock and the list head, and introduce a new method,
ast_walk_indications(), to walk through the list of indications.
The new method returns an unlocked record, which is no different from the
behaviour of other existing methods in indications.c
(i.e. they all need to be fixed, with refcounts or some similar
method).

Note that ast_walk_indications() uses the pointer argument only as a
search key, so its implementation is completely safe.

In turn, this change allows the removal of AST_MUTEX_DEFINE_EXPORTED.

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

16 years agodocument why there are so many versions of the mutex functions,
Luigi Rizzo [Thu, 30 Mar 2006 16:09:23 +0000 (16:09 +0000)]
document why there are so many versions of the mutex functions,
with their pros and cons, and that we should converge to a single method.

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

16 years agobe more careful when merging in a branch with automerge properties :-(
Kevin P. Fleming [Thu, 30 Mar 2006 14:19:25 +0000 (14:19 +0000)]
be more careful when merging in a branch with automerge properties :-(

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

16 years agoconvert internal timing to be stored as a flag in the ast_options flags
Russell Bryant [Thu, 30 Mar 2006 06:26:16 +0000 (06:26 +0000)]
convert internal timing to be stored as a flag in the ast_options flags

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

16 years agoIssue #5374 - Enable internal timing of generators (cmantunes)
Olle Johansson [Thu, 30 Mar 2006 06:07:04 +0000 (06:07 +0000)]
Issue #5374 - Enable internal timing of generators (cmantunes)

Thanks everyone involved for hard work, testing and testing!

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

16 years agoIssue #6450 - Don't remove characters from SIP uri's when not needed
Olle Johansson [Thu, 30 Mar 2006 04:16:38 +0000 (04:16 +0000)]
Issue #6450 - Don't remove characters from SIP uri's when not needed
  Patch by jcomellas, heavily modified by oej

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

16 years agoFix IAX2 multithreaded scheduling (issue #6840)
Joshua Colp [Thu, 30 Mar 2006 03:16:09 +0000 (03:16 +0000)]
Fix IAX2 multithreaded scheduling (issue #6840)

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

16 years agoSet default value of adsipark (import from 1.2)
Olle Johansson [Thu, 30 Mar 2006 01:35:56 +0000 (01:35 +0000)]
Set default value of adsipark (import from 1.2)

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

16 years agoBlock patch on app_groupcount.c from 1.2
Olle Johansson [Thu, 30 Mar 2006 01:30:15 +0000 (01:30 +0000)]
Block patch on app_groupcount.c from 1.2

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

16 years agoTypo
Olle Johansson [Thu, 30 Mar 2006 00:32:01 +0000 (00:32 +0000)]
Typo

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

16 years agoFormatting fix.
Olle Johansson [Thu, 30 Mar 2006 00:30:49 +0000 (00:30 +0000)]
Formatting fix.

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

16 years agowhitespace "fixes", and general cleanup
North Antara [Wed, 29 Mar 2006 21:08:13 +0000 (21:08 +0000)]
whitespace "fixes", and general cleanup

It's nice to have consistency in sample configs too.

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

16 years agothe comment character is ';' not '#' ...
Luigi Rizzo [Wed, 29 Mar 2006 20:09:10 +0000 (20:09 +0000)]
the comment character is ';' not '#' ...

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

16 years agoWhitespace fix forgotten by someone who added a note about needing to fix this...
Olle Johansson [Wed, 29 Mar 2006 20:08:14 +0000 (20:08 +0000)]
Whitespace fix forgotten by someone who added a note about needing to fix this...

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

16 years agoconvert calloc and malloc+memset to ast_calloc and remove duplicate error messages
Russell Bryant [Wed, 29 Mar 2006 19:54:41 +0000 (19:54 +0000)]
convert calloc and malloc+memset to ast_calloc and remove duplicate error messages

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

16 years agoMerged revisions 16192 via svnmerge from
Tilghman Lesher [Wed, 29 Mar 2006 19:30:57 +0000 (19:30 +0000)]
Merged revisions 16192 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r16192 | tilghman | 2006-03-29 13:11:18 -0600 (Wed, 29 Mar 2006) | 2 lines

Bug 6830 - Let GosubIf work with the same conditions as a GotoIf (change in API approved by Russell)

........

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

16 years agoUpdate to code documentation and developer guidelines.
Olle Johansson [Wed, 29 Mar 2006 17:09:33 +0000 (17:09 +0000)]
Update to code documentation and developer guidelines.

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

16 years agoanother batch of cli simplifications.
Luigi Rizzo [Wed, 29 Mar 2006 16:51:51 +0000 (16:51 +0000)]
another batch of cli simplifications.

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

16 years agomention issues with the protection of the list used in indications.c
Luigi Rizzo [Wed, 29 Mar 2006 16:00:51 +0000 (16:00 +0000)]
mention issues with the protection of the list used in indications.c

(part of work done to figure out what is used and what is not in lock.h)

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

16 years agofixed no dtmf detect on 64 bit
Christian Richter [Wed, 29 Mar 2006 14:26:43 +0000 (14:26 +0000)]
fixed no dtmf detect on 64 bit

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

16 years agoMerged revisions 16082 via svnmerge from
Tilghman Lesher [Wed, 29 Mar 2006 14:24:30 +0000 (14:24 +0000)]
Merged revisions 16082 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r16082 | tilghman | 2006-03-29 08:10:23 -0600 (Wed, 29 Mar 2006) | 2 lines

Bug 6835 - Updates to GotoIf help text

........

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

16 years agoFix build of asterisk again (ahem, committers!)
Mark Spencer [Wed, 29 Mar 2006 05:12:24 +0000 (05:12 +0000)]
Fix build of asterisk again (ahem, committers!)

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

16 years agoDoxygen updates
Olle Johansson [Wed, 29 Mar 2006 04:42:07 +0000 (04:42 +0000)]
Doxygen updates

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

16 years ago- Formatting fixes
Olle Johansson [Wed, 29 Mar 2006 04:34:55 +0000 (04:34 +0000)]
- Formatting fixes
- Doxygen

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

16 years agooops! :)
Russell Bryant [Wed, 29 Mar 2006 04:19:23 +0000 (04:19 +0000)]
oops!  :)

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

17 years agogit-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16009 65c4cc65-6c06-0410...
Russell Bryant [Wed, 29 Mar 2006 04:16:09 +0000 (04:16 +0000)]
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16009 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agofix the provided unsetenv for solaris to return an int like it's supposed to
Russell Bryant [Wed, 29 Mar 2006 04:14:12 +0000 (04:14 +0000)]
fix the provided unsetenv for solaris to return an int like it's supposed to

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

17 years agoconversion from malloc to ast_malloc
Russell Bryant [Wed, 29 Mar 2006 04:09:31 +0000 (04:09 +0000)]
conversion from malloc to ast_malloc

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

17 years agoIntroduce an utility macro to set base, offset and
Luigi Rizzo [Wed, 29 Mar 2006 02:14:38 +0000 (02:14 +0000)]
Introduce an utility macro to set base, offset and
datalen of a frame, which is a very common operation.

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

17 years agoAdd two widely used constants
Luigi Rizzo [Wed, 29 Mar 2006 02:12:31 +0000 (02:12 +0000)]
Add two widely used constants

#define DEFAULT_SAMPLE_RATE 8000
#define DEFAULT_SAMPLES_PER_MS  ((DEFAULT_SAMPLE_RATE)/1000)

to the main header, and remove equivalent ones from plc.[ch]

This will simplify the cleanup of the codec/ and formats/ files.

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

17 years agoAdded more "valid" phone types to skinny sample config.
North Antara [Wed, 29 Mar 2006 01:08:01 +0000 (01:08 +0000)]
Added more "valid" phone types to skinny sample config.

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

17 years agoIssue #6823 - Registration and port numbers. (from 1.2)
Olle Johansson [Wed, 29 Mar 2006 01:01:09 +0000 (01:01 +0000)]
Issue #6823 - Registration and port numbers. (from 1.2)

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

17 years agoMerged revisions 15896 via svnmerge from
Kevin P. Fleming [Wed, 29 Mar 2006 00:32:52 +0000 (00:32 +0000)]
Merged revisions 15896 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r15896 | kpfleming | 2006-03-28 18:32:10 -0600 (Tue, 28 Mar 2006) | 2 lines

ensure that list traversal loops which skip entries properly update the 'previous entry' pointer so when entries _are_ removed the list does not get damaged

........

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

17 years agoNormalize some cli completion code.
Luigi Rizzo [Wed, 29 Mar 2006 00:30:29 +0000 (00:30 +0000)]
Normalize some cli completion code.
On passing, replace strdup with ast_strdup() and remove
the now useless checks for NULL since ast_strdup() can handle
it correctly.

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

17 years agoDoxygen fixes
Olle Johansson [Tue, 28 Mar 2006 23:55:52 +0000 (23:55 +0000)]
Doxygen fixes

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

17 years agomore command completion normalization.
Luigi Rizzo [Tue, 28 Mar 2006 23:52:21 +0000 (23:52 +0000)]
more command completion normalization.
also change some explicit constant with sizeof()

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

17 years agomore command completion normalization
Luigi Rizzo [Tue, 28 Mar 2006 23:40:28 +0000 (23:40 +0000)]
more command completion normalization

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

17 years agoanother batch of cli simplifications
Luigi Rizzo [Tue, 28 Mar 2006 23:33:02 +0000 (23:33 +0000)]
another batch of cli simplifications

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

17 years agonormalize/simplify a bit of the command completion code.
Luigi Rizzo [Tue, 28 Mar 2006 23:20:13 +0000 (23:20 +0000)]
normalize/simplify a bit of the command completion code.

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

17 years agouse ast_cli_complete() to largely simplify the command completion code.
Luigi Rizzo [Tue, 28 Mar 2006 23:06:46 +0000 (23:06 +0000)]
use ast_cli_complete() to largely simplify the command completion code.

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

17 years agoblack magic to make sure we recompile things after the changes to cli.c
Luigi Rizzo [Tue, 28 Mar 2006 22:59:34 +0000 (22:59 +0000)]
black magic to make sure we recompile things after the changes to cli.c

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

17 years agomake 'sip show subscriptions' include context for subscribed hints
Kevin P. Fleming [Tue, 28 Mar 2006 22:47:02 +0000 (22:47 +0000)]
make 'sip show subscriptions' include context for subscribed hints

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

17 years agoas reported in mantis #6066, fix a bunch of cli bugs and
Luigi Rizzo [Tue, 28 Mar 2006 22:44:55 +0000 (22:44 +0000)]
as reported in mantis #6066, fix a bunch of cli bugs and
inconsistencies.

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

17 years agobring in the code that was discussed on Mantis #6068,
Luigi Rizzo [Tue, 28 Mar 2006 22:25:08 +0000 (22:25 +0000)]
bring in the code that was discussed on Mantis #6068,
which is the basis for several simplifications and fixes
to the CLI interfaces.

The core is in cli.c, some documentation on a new function
to help command completion is in cli.h, and one line of
glue code in the other two files.

Next step is to bring in the patches described in #6066 and
other simplifications.

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

17 years agolet's format that output sanely instead :-(
Kevin P. Fleming [Tue, 28 Mar 2006 22:14:50 +0000 (22:14 +0000)]
let's format that output sanely instead :-(

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

17 years agomake 'show hints' CLI command show context name for each hint
Kevin P. Fleming [Tue, 28 Mar 2006 22:09:38 +0000 (22:09 +0000)]
make 'show hints' CLI command show context name for each hint

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

17 years agoThe condition to check the zaptel version was too strict.
Luigi Rizzo [Tue, 28 Mar 2006 21:24:48 +0000 (21:24 +0000)]
The condition to check the zaptel version was too strict.
If you are compiling with WITHOUT_ZAPTEL=1, you can also
work with older version of zaptel, and there is no reason
not to allow that.

This should help various people mentioning on the -dev
list that there were issues with newer zaptel versions
on FreeBSD, and so they had to use older version.
(This includes me, btw!)

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

17 years agoBring in the new loader code as described in mantis #4377
Luigi Rizzo [Tue, 28 Mar 2006 21:15:10 +0000 (21:15 +0000)]
Bring in the new loader code as described in mantis #4377
and updated to today's version.

The core of the patch is only two files, loader.c
and include/asterisk/module.h, with the other files
touched only to adapt non-standard usages of the
reference counts and localuser lists.

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

17 years agogit-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15745 65c4cc65-6c06-0410...
Russell Bryant [Tue, 28 Mar 2006 20:24:08 +0000 (20:24 +0000)]
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15745 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agofix a bug introduced in 15187 that scrambled the flags and
Luigi Rizzo [Tue, 28 Mar 2006 20:22:25 +0000 (20:22 +0000)]
fix a bug introduced in 15187 that scrambled the flags and
among other things prevented proper handling of NAT.
Don't think it exist in 1.2 but be careful if 15187 is merged.

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

17 years agoMerged revisions 15703 via svnmerge from
Russell Bryant [Tue, 28 Mar 2006 19:49:30 +0000 (19:49 +0000)]
Merged revisions 15703 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r15703 | russell | 2006-03-28 14:47:03 -0500 (Tue, 28 Mar 2006) | 2 lines

fix Bus Error on sparc (issue #6354)

........

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

17 years agoonly display a debug message if iaxdebug is enabled as well (issue #6673)
Russell Bryant [Tue, 28 Mar 2006 19:31:41 +0000 (19:31 +0000)]
only display a debug message if iaxdebug is enabled as well (issue #6673)

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

17 years agoFix NAT support breakage for peers with qualify=yes (imported from 1.2)
Olle Johansson [Tue, 28 Mar 2006 19:09:51 +0000 (19:09 +0000)]
Fix NAT support breakage for peers with qualify=yes (imported from 1.2)
- Blame KLM, still jetlagged :-)

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

17 years agoensure that 'zap show channel' will indicate that the echo canceler has been disabled...
Kevin P. Fleming [Tue, 28 Mar 2006 19:00:21 +0000 (19:00 +0000)]
ensure that 'zap show channel' will indicate that the echo canceler has been disabled when CED has been detected on the channel

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

17 years agoMerged revisions 15658 via svnmerge from
Russell Bryant [Tue, 28 Mar 2006 18:13:53 +0000 (18:13 +0000)]
Merged revisions 15658 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r15658 | russell | 2006-03-28 13:09:05 -0500 (Tue, 28 Mar 2006) | 2 lines

fix the order in which for loops are expanded (issue #6810)

........

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

17 years agostore f->callno in a local var (issue #6818)
Russell Bryant [Tue, 28 Mar 2006 18:00:05 +0000 (18:00 +0000)]
store f->callno in a local var (issue #6818)

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

17 years agooops :-(
Kevin P. Fleming [Tue, 28 Mar 2006 17:53:27 +0000 (17:53 +0000)]
oops :-(

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

17 years agoconversions to S_OR (issue #6817)
Russell Bryant [Tue, 28 Mar 2006 17:52:50 +0000 (17:52 +0000)]
conversions to S_OR (issue #6817)

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

17 years agoMerged revisions 15615 via svnmerge from
Tilghman Lesher [Tue, 28 Mar 2006 17:49:39 +0000 (17:49 +0000)]
Merged revisions 15615 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r15615 | tilghman | 2006-03-28 11:48:18 -0600 (Tue, 28 Mar 2006) | 2 lines

Bug 6815 - Adding quotes to make bash happy

........

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

17 years agoFix typo (thanks, North) and update docs for IP-tos settings
Olle Johansson [Tue, 28 Mar 2006 17:18:02 +0000 (17:18 +0000)]
Fix typo (thanks, North) and update docs for IP-tos settings

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

17 years ago- remove an unnecessary cast and recomputation of (timeout - now);
Luigi Rizzo [Tue, 28 Mar 2006 15:19:32 +0000 (15:19 +0000)]
- remove an unnecessary cast and recomputation of (timeout - now);
- remove useless recomputations of strlen(word) in a loop, and
  normalize the form of complete_peer_helper();
- move LOCAL_USER_ADD() to after the verification of arguments,
  thus removing the need for one LOCAL_USER_REMOVE() call.

The three chunks of the patch are fully disjoint.

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

17 years agoremove a few unneeded calls to strlen, and replace a while()
Luigi Rizzo [Tue, 28 Mar 2006 14:30:31 +0000 (14:30 +0000)]
remove a few unneeded calls to strlen, and replace a while()
loop with the equivalent function strchr()

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

17 years agoUse the standard macros to manipulate usecount.
Luigi Rizzo [Tue, 28 Mar 2006 14:15:13 +0000 (14:15 +0000)]
Use the standard macros to manipulate usecount.
This is in preparation to the import of the new loader.

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

17 years agoupdate example file
Luigi Rizzo [Tue, 28 Mar 2006 14:04:27 +0000 (14:04 +0000)]
update example file

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

17 years agoremove trailing whitespace
Luigi Rizzo [Tue, 28 Mar 2006 13:58:34 +0000 (13:58 +0000)]
remove trailing whitespace

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

17 years agodisable the http server by default at the request of people on IRC
Russell Bryant [Tue, 28 Mar 2006 13:52:57 +0000 (13:52 +0000)]
disable the http server by default at the request of people on IRC

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

17 years agoremove the long since unused STANDARD_LOCAL_USERS macro
Luigi Rizzo [Tue, 28 Mar 2006 13:52:04 +0000 (13:52 +0000)]
remove the long since unused STANDARD_LOCAL_USERS macro
so that new apps will not try to use it by mistake.

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

17 years agooptimize a bit name completion by avoiding repeated calls to
Luigi Rizzo [Tue, 28 Mar 2006 13:46:04 +0000 (13:46 +0000)]
optimize a bit name completion by avoiding repeated calls to
strlen(word), localize variables and normalize the test
for finding the candidate string.

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

17 years agofix documentation
Luigi Rizzo [Tue, 28 Mar 2006 13:23:05 +0000 (13:23 +0000)]
fix documentation

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

17 years agosupport subscription-based MWI, and use proper Call-ID on NOTIFY messages (issue...
Kevin P. Fleming [Tue, 28 Mar 2006 04:21:21 +0000 (04:21 +0000)]
support subscription-based MWI, and use proper Call-ID on NOTIFY messages (issue #6390)

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