asterisk/asterisk.git
14 years agofix the indentation of a large block
Russell Bryant [Sun, 30 Apr 2006 05:06:14 +0000 (05:06 +0000)]
fix the indentation of a large block

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

14 years agohandle a memory allocation failure immediately so the following large block
Russell Bryant [Sun, 30 Apr 2006 05:02:07 +0000 (05:02 +0000)]
handle a memory allocation failure immediately so the following large block
does not have to be indented

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

14 years ago- convert the list of dundi mappings to use the list macros
Russell Bryant [Sun, 30 Apr 2006 04:59:36 +0000 (04:59 +0000)]
- convert the list of dundi mappings to use the list macros
- change an instance of malloc+memset to use ast_calloc, instead

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

14 years agouse the INSTALL variable instead of "install" directly
Russell Bryant [Sun, 30 Apr 2006 04:34:04 +0000 (04:34 +0000)]
use the INSTALL variable instead of "install" directly

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

14 years agochange a list traversal to use a for loop
Russell Bryant [Sun, 30 Apr 2006 04:28:47 +0000 (04:28 +0000)]
change a list traversal to use a for loop

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

14 years agofix the indentation of a large block of code
Russell Bryant [Sun, 30 Apr 2006 04:26:11 +0000 (04:26 +0000)]
fix the indentation of a large block of code

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

14 years agoimmediately handle a memory allocation failure so the rest of the function
Russell Bryant [Sun, 30 Apr 2006 04:23:09 +0000 (04:23 +0000)]
immediately handle a memory allocation failure so the rest of the function
doesn't have to be indented (indentation still to be fixed)

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

14 years ago- convert some comments to doxygen format
Russell Bryant [Sun, 30 Apr 2006 04:20:20 +0000 (04:20 +0000)]
- convert some comments to doxygen format
- convert the list of dundi peers to use the list macros
- convert a use of malloc+memset to use ast_calloc

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

14 years agoadded an up-queue message mechanism to avoid buffer fillups in the kernel, also chang...
Christian Richter [Sat, 29 Apr 2006 22:56:00 +0000 (22:56 +0000)]
added an up-queue message mechanism to avoid buffer fillups in the kernel, also changed some strdups to ast_strdupa

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

14 years agorevert the last change to this Makefile which removed the rules to build
Russell Bryant [Sat, 29 Apr 2006 19:26:53 +0000 (19:26 +0000)]
revert the last change to this Makefile which removed the rules to build
app_apt.  These rules *are* needed beacause this module uses libtonezone,
so it needs this information from autoconf in case it is located in a
non-standard location.  Also, without it, app_rpt.so would not be linked
with libtonezone at all.

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

14 years agoremove now useless rule for app_rpt (bug 7059)
Luigi Rizzo [Sat, 29 Apr 2006 18:22:08 +0000 (18:22 +0000)]
remove now useless rule for app_rpt (bug 7059)

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

14 years agooops, i modified the Makefile isntead of Makefile.in
Russell Bryant [Sat, 29 Apr 2006 15:44:02 +0000 (15:44 +0000)]
oops, i modified the Makefile isntead of Makefile.in

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

14 years ago- the configure script should never be regenerated for mxml
Russell Bryant [Sat, 29 Apr 2006 15:34:33 +0000 (15:34 +0000)]
- the configure script should never be regenerated for mxml
- also remove an unneeded .cvsignore

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

14 years agoand now with the correct filenames
Kevin P. Fleming [Sat, 29 Apr 2006 15:31:45 +0000 (15:31 +0000)]
and now with the correct filenames
add basic support for checking for C compiler attribute support

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

14 years agoadd the other two files that should have been on this target... oops
Kevin P. Fleming [Sat, 29 Apr 2006 15:15:21 +0000 (15:15 +0000)]
add the other two files that should have been on this target... oops

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

14 years agoadd aelparse to svn:ignore
Russell Bryant [Sat, 29 Apr 2006 15:07:16 +0000 (15:07 +0000)]
add aelparse to svn:ignore

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

14 years agoa bunch of conversion to ast_channel_*lock (issue #7058)
Russell Bryant [Sat, 29 Apr 2006 14:50:18 +0000 (14:50 +0000)]
a bunch of conversion to ast_channel_*lock (issue #7058)

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

14 years agofix up dependencies for aelparse so that bison/flex will not be run to rebuild source...
Kevin P. Fleming [Sat, 29 Apr 2006 14:48:32 +0000 (14:48 +0000)]
fix up dependencies for aelparse so that bison/flex will not be run to rebuild source files (that should _only_ be done manually)

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

14 years agoif the "action-if-found" is left empty, AC_CHECK_LIB will add a default result
Russell Bryant [Sat, 29 Apr 2006 13:32:38 +0000 (13:32 +0000)]
if the "action-if-found" is left empty, AC_CHECK_LIB will add a default result
instead which can break things in the rest of the script (issue #7043)

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

14 years ago- convert lists to use linked list macros
Russell Bryant [Sat, 29 Apr 2006 13:15:05 +0000 (13:15 +0000)]
- convert lists to use linked list macros
- instead of allocating a frame on the stack every time the music on hold
  generator is called, put a frame in the mohdata structure.  Also, initialize
  the parts of the frame that will never change when the mohdata struct is
  allocatted and only change the necessary parts in the generator function.

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

14 years agoMerged revisions 23305 via svnmerge from
Kevin P. Fleming [Sat, 29 Apr 2006 11:42:31 +0000 (11:42 +0000)]
Merged revisions 23305 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r23305 | kpfleming | 2006-04-29 06:40:04 -0500 (Sat, 29 Apr 2006) | 3 lines

do installation in subdirs as a separate target (so external modules can use the Makefile more easily)
generate final messages -after- running any post-install script that may be present

........

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

14 years ago- don't create duplicate log messages
Russell Bryant [Sat, 29 Apr 2006 05:02:17 +0000 (05:02 +0000)]
- don't create duplicate log messages
- note when the data part of the tech/data pair is missing not only when using
  the app version, but the exten version as well
- instead of logging syntax errors, just output them to the CLI

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

14 years agoadd reload() (bug 9981)
Luigi Rizzo [Sat, 29 Apr 2006 04:55:47 +0000 (04:55 +0000)]
add reload() (bug 9981)

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

14 years agopartial adaptation to the new module loading
Luigi Rizzo [Sat, 29 Apr 2006 04:54:05 +0000 (04:54 +0000)]
partial adaptation to the new module loading
(not sure if it compiles, partly inspired by #9981 but
with adaptations)

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

14 years agoadd a small optimization for deleting all the members of a list
Russell Bryant [Sat, 29 Apr 2006 04:13:07 +0000 (04:13 +0000)]
add a small optimization for deleting all the members of a list

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

14 years ago- convert the list of zones to use the list macros, and add locking (issue #7027...
Russell Bryant [Sat, 29 Apr 2006 01:05:13 +0000 (01:05 +0000)]
- convert the list of zones to use the list macros, and add locking (issue #7027, with mods)

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

14 years agomove the "show version" CLI command from cli.c to asterisk.c so that only one
Russell Bryant [Sat, 29 Apr 2006 00:15:28 +0000 (00:15 +0000)]
move the "show version" CLI command from cli.c to asterisk.c so that only one
file depends on version.h, and thus, only one file has to be rebuilt when
version.h gets regenerated (issue #6942)

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

14 years agosupport "make distclean" as well as "make dist-clean" for the picky people
Russell Bryant [Fri, 28 Apr 2006 17:39:54 +0000 (17:39 +0000)]
support "make distclean" as well as "make dist-clean" for the picky people

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

14 years agofix spelling typo -- what's a Diaplan?
Russell Bryant [Fri, 28 Apr 2006 17:17:46 +0000 (17:17 +0000)]
fix spelling typo -- what's a Diaplan?

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

14 years agofix sending the group numbers for a sip peer over the manager interface
Russell Bryant [Fri, 28 Apr 2006 16:50:32 +0000 (16:50 +0000)]
fix sending the group numbers for a sip peer over the manager interface
(issue #7046)

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

14 years agonote that group assignments must be from 0 to 63 (issue #7048)
Russell Bryant [Fri, 28 Apr 2006 16:42:42 +0000 (16:42 +0000)]
note that group assignments must be from 0 to 63 (issue #7048)

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

14 years agowhitespace - format the source in a more readable way;
Luigi Rizzo [Fri, 28 Apr 2006 16:39:25 +0000 (16:39 +0000)]
whitespace - format the source in a more readable way;
On passing, define the macros as do {... } while (0) to
be free of unwanted side effects.

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

14 years agomake the 'runtest' filter less strict on line numbers.
Luigi Rizzo [Fri, 28 Apr 2006 15:51:31 +0000 (15:51 +0000)]
make the 'runtest' filter less strict on line numbers.

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

14 years agosimplify handling of line numbers
Luigi Rizzo [Fri, 28 Apr 2006 15:42:13 +0000 (15:42 +0000)]
simplify handling of line numbers

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

14 years agofix last known bug in computing columb numbers in error messages
Luigi Rizzo [Fri, 28 Apr 2006 15:33:05 +0000 (15:33 +0000)]
fix last known bug in computing columb numbers in error messages

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

14 years agofix a bug in computing line numbers
Luigi Rizzo [Fri, 28 Apr 2006 15:24:30 +0000 (15:24 +0000)]
fix a bug in computing line numbers

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

14 years ago- fix miscalculation in column numbers when multiple tabs
Luigi Rizzo [Fri, 28 Apr 2006 14:17:03 +0000 (14:17 +0000)]
- fix miscalculation in column numbers when multiple tabs
  or empty lines are involved;
- change linku1() to return the head of the list (unused at the moment);
- ignore the source line number in runtests as they change with the
  source and cause mismatches in the comparison with the reference output.

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

14 years agolast batch of npval -> npval2 changes
Luigi Rizzo [Fri, 28 Apr 2006 11:20:21 +0000 (11:20 +0000)]
last batch of npval -> npval2 changes

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

14 years agomore npval -> npval2 changes
Luigi Rizzo [Fri, 28 Apr 2006 10:06:10 +0000 (10:06 +0000)]
more npval -> npval2 changes

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

14 years agominor cleanup
Luigi Rizzo [Fri, 28 Apr 2006 06:40:40 +0000 (06:40 +0000)]
minor cleanup

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

14 years agomore npval -> npval2 conversions
Luigi Rizzo [Fri, 28 Apr 2006 06:26:27 +0000 (06:26 +0000)]
more npval -> npval2 conversions

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

14 years agoremove this option for now, because it can only be enabled when
Russell Bryant [Fri, 28 Apr 2006 00:59:30 +0000 (00:59 +0000)]
remove this option for now, because it can only be enabled when
optimizations aren't being used

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

14 years agoadd STACK_BACKTRACES to the CFLAGS selectable in menuselect
Russell Bryant [Thu, 27 Apr 2006 21:26:24 +0000 (21:26 +0000)]
add STACK_BACKTRACES to the CFLAGS selectable in menuselect

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

14 years agofix destructor for pval objects (thanks to Steve Murphy);
Luigi Rizzo [Thu, 27 Apr 2006 21:09:52 +0000 (21:09 +0000)]
fix destructor for pval objects (thanks to Steve Murphy);
rearrange initial part of ael.flex for flexibility.

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

14 years agowhen doing the checks necessary for chan_phone, look for all of the linux
Russell Bryant [Thu, 27 Apr 2006 20:34:48 +0000 (20:34 +0000)]
when doing the checks necessary for chan_phone, look for all of the linux
headers it uses, not just ixjuser.h (issue #7049, different fix)

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

14 years agoalways call the destructor
Luigi Rizzo [Thu, 27 Apr 2006 20:23:49 +0000 (20:23 +0000)]
always call the destructor

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

14 years agodocument variable and options used.
Luigi Rizzo [Thu, 27 Apr 2006 20:08:42 +0000 (20:08 +0000)]
document variable and options used.

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

14 years agodocument options, move objects of the same type close to
Luigi Rizzo [Thu, 27 Apr 2006 19:51:59 +0000 (19:51 +0000)]
document options, move objects of the same type close to
each other so it is evident what they are.

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

14 years agoslightly restructure a block to reduce nesting,
Luigi Rizzo [Thu, 27 Apr 2006 19:29:14 +0000 (19:29 +0000)]
slightly restructure a block to reduce nesting,
mark some missing error checks

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

14 years agoBlocked revisions 22954 via svnmerge
Joshua Colp [Thu, 27 Apr 2006 19:14:59 +0000 (19:14 +0000)]
Blocked revisions 22954 via svnmerge

........
r22954 | file | 2006-04-27 16:11:47 -0300 (Thu, 27 Apr 2006) | 2 lines

Queue(somequeue,,,,) -> interpreted as Queue(somequeue,,,,0) (issue #7044 reported nathan fixed by jsmith - sort of)

........

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

14 years agoimore npval -> npval2 conversions
Luigi Rizzo [Thu, 27 Apr 2006 19:14:07 +0000 (19:14 +0000)]
imore npval -> npval2 conversions

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

14 years agodont free unallocated block ,and dont close a fd
Matt O'Gorman [Thu, 27 Apr 2006 18:57:45 +0000 (18:57 +0000)]
dont free unallocated block ,and dont close a fd
we never opened. bug #7045

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

14 years agoallows for chan_zap to have all channels reloaded
Matt O'Gorman [Thu, 27 Apr 2006 18:53:47 +0000 (18:53 +0000)]
allows for chan_zap to have all channels reloaded
via zap restart patch from bug 6955

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

14 years agoAdd option 'I' which allows you to record your name, but not review it. This rocks...
Joshua Colp [Thu, 27 Apr 2006 18:51:45 +0000 (18:51 +0000)]
Add option 'I' which allows you to record your name, but not review it. This rocks! (issue #7037 reported by jon with minor mods done by moi)

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

14 years agomore npval2 replacement, mark XXX dubious arguments
Luigi Rizzo [Thu, 27 Apr 2006 18:26:37 +0000 (18:26 +0000)]
more npval2 replacement, mark XXX dubious arguments

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

14 years agomore npval -> npval2 replacement, and a fix for a likely
Luigi Rizzo [Thu, 27 Apr 2006 18:18:12 +0000 (18:18 +0000)]
more npval -> npval2 replacement, and a fix for a likely
bug (marked XXX)

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

14 years agointroduce a simplified interface for npval and start using it
Luigi Rizzo [Thu, 27 Apr 2006 18:09:20 +0000 (18:09 +0000)]
introduce a simplified interface for npval and start using it

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

14 years agoformatting fixes
Luigi Rizzo [Thu, 27 Apr 2006 17:59:09 +0000 (17:59 +0000)]
formatting fixes

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

14 years agoChange channel locking to API, nifty janitor project. (issue #7039 reported by Mithraen)
Joshua Colp [Thu, 27 Apr 2006 17:53:52 +0000 (17:53 +0000)]
Change channel locking to API, nifty janitor project. (issue #7039 reported by Mithraen)

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

14 years ago- add missing IXJUSER to menuselect-deps.in
Russell Bryant [Thu, 27 Apr 2006 17:52:12 +0000 (17:52 +0000)]
- add missing IXJUSER to menuselect-deps.in
- don't check for a private function when looking for nbs
- fix the path to ixjuser.h

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

14 years agouse ast_calloc for memory allocations
Luigi Rizzo [Thu, 27 Apr 2006 17:43:49 +0000 (17:43 +0000)]
use ast_calloc for memory allocations

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

14 years agofix a couple of bugs in arguments to npval
Luigi Rizzo [Thu, 27 Apr 2006 17:39:55 +0000 (17:39 +0000)]
fix a couple of bugs in arguments to npval

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

14 years agoremove some commented-out code
Luigi Rizzo [Thu, 27 Apr 2006 17:16:41 +0000 (17:16 +0000)]
remove some commented-out code

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

14 years agofinish packing yylloc into macros
Luigi Rizzo [Thu, 27 Apr 2006 17:10:15 +0000 (17:10 +0000)]
finish packing yylloc into macros

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

14 years agoadd some comments to the code
Luigi Rizzo [Thu, 27 Apr 2006 17:00:09 +0000 (17:00 +0000)]
add some comments to the code

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

14 years agomore formatting cleanup
Luigi Rizzo [Thu, 27 Apr 2006 16:40:25 +0000 (16:40 +0000)]
more formatting cleanup

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

14 years agoMake sure we use the correct event type when we're moving channels around :-)
Matthew Fredrickson [Thu, 27 Apr 2006 16:20:39 +0000 (16:20 +0000)]
Make sure we use the correct event type when we're moving channels around :-)

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

14 years agomore dup removal
Luigi Rizzo [Thu, 27 Apr 2006 11:43:34 +0000 (11:43 +0000)]
more dup removal

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

14 years agomore duplicate removal
Luigi Rizzo [Thu, 27 Apr 2006 11:34:44 +0000 (11:34 +0000)]
more duplicate removal

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

14 years agoremove duplicated code
Luigi Rizzo [Thu, 27 Apr 2006 11:20:26 +0000 (11:20 +0000)]
remove duplicated code

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

14 years agostaticize c_prevword()
Luigi Rizzo [Thu, 27 Apr 2006 10:13:39 +0000 (10:13 +0000)]
staticize c_prevword()

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

14 years agomore indentation fixes
Luigi Rizzo [Thu, 27 Apr 2006 08:37:40 +0000 (08:37 +0000)]
more indentation fixes

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

14 years agouse asprintf instead of malloc
Luigi Rizzo [Thu, 27 Apr 2006 08:31:18 +0000 (08:31 +0000)]
use asprintf instead of malloc

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

14 years agomore formatting cleanup
Luigi Rizzo [Thu, 27 Apr 2006 08:24:00 +0000 (08:24 +0000)]
more formatting cleanup

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

14 years agoput the default misdn.trace to /var/log/asterisk/misdn.log for better integration...
Christian Richter [Thu, 27 Apr 2006 08:23:53 +0000 (08:23 +0000)]
put the default misdn.trace to /var/log/asterisk/misdn.log for better integration of existing log structure

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

14 years agomore indentation fixes
Luigi Rizzo [Thu, 27 Apr 2006 06:44:38 +0000 (06:44 +0000)]
more indentation fixes

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

14 years agomore formatting cleanup
Luigi Rizzo [Thu, 27 Apr 2006 02:29:32 +0000 (02:29 +0000)]
more formatting cleanup

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

14 years agocleanup formatting to emphsize common code blocks
Luigi Rizzo [Thu, 27 Apr 2006 02:00:35 +0000 (02:00 +0000)]
cleanup formatting to emphsize common code blocks

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

14 years agomove similar blocks close to each other to make similarities
Luigi Rizzo [Thu, 27 Apr 2006 01:35:52 +0000 (01:35 +0000)]
move similar blocks close to each other to make similarities
more evident

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

14 years agonormalize and simplify the code for keeping track of line and column number.
Luigi Rizzo [Thu, 27 Apr 2006 01:27:07 +0000 (01:27 +0000)]
normalize and simplify the code for keeping track of line and column number.

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

14 years agodefine some flex constants for character sets.
Luigi Rizzo [Thu, 27 Apr 2006 01:07:24 +0000 (01:07 +0000)]
define some flex constants for character sets.
partly fix indentation and normalize code layout.

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

14 years agoonly define HAVE_SOMELIB if somelib's header file was found as well
Russell Bryant [Thu, 27 Apr 2006 00:10:56 +0000 (00:10 +0000)]
only define HAVE_SOMELIB if somelib's header file was found as well

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

14 years agouncomment some functions in the flex code that were actually
Luigi Rizzo [Thu, 27 Apr 2006 00:05:05 +0000 (00:05 +0000)]
uncomment some functions in the flex code that were actually
used in the bison code - detected by making aelparse compile
again.

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

14 years agouse \t to indicate a tab, and fix indentation for
Luigi Rizzo [Wed, 26 Apr 2006 23:36:05 +0000 (23:36 +0000)]
use \t to indicate a tab, and fix indentation for
the whitespace-handling rules

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

14 years agoremove common blocks of code with a macro (waiting for a better
Luigi Rizzo [Wed, 26 Apr 2006 23:18:03 +0000 (23:18 +0000)]
remove common blocks of code with a macro (waiting for a better
solution).

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

14 years agostaticize some variables
Luigi Rizzo [Wed, 26 Apr 2006 23:08:47 +0000 (23:08 +0000)]
staticize some variables

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

14 years agocomment behaviour of pbcwhere in preparation for its use
Luigi Rizzo [Wed, 26 Apr 2006 22:56:18 +0000 (22:56 +0000)]
comment behaviour of pbcwhere in preparation for its use
in more places.

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

14 years agoremove unused variable
Luigi Rizzo [Wed, 26 Apr 2006 22:45:37 +0000 (22:45 +0000)]
remove unused variable

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

14 years agoinclude/asterisk/ael_structs.h:
Luigi Rizzo [Wed, 26 Apr 2006 22:41:16 +0000 (22:41 +0000)]
include/asterisk/ael_structs.h:
  - protect against multiple includes of ael_structs.h
  - remove prototypes for unused or undeclared functions

pbx/ael/ael.y
  - staticize functions as appropriate
  - constify arguments
  - remove useless extern

pbx/ael/ael.flex
  - ifdef out unused functions

pbx/pbx_ael.c
  - constify some variables and arguments
  - ifdef out unused functions
  - staticize functions as appropriate

update generated files accordingly

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

14 years agoadds new function QUEUE_WAITING_COUNT and a few
Matt O'Gorman [Wed, 26 Apr 2006 22:04:42 +0000 (22:04 +0000)]
adds new function QUEUE_WAITING_COUNT and a few
warnings if the queue you are looking for in this
function and other queue functions is not found.
patch from 7036

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

14 years agomore janitor work, patch from bug 6975.
Matt O'Gorman [Wed, 26 Apr 2006 21:44:25 +0000 (21:44 +0000)]
more janitor work, patch from bug 6975.

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

14 years agoMerged revisions 22596 via svnmerge from
Matt O'Gorman [Wed, 26 Apr 2006 19:22:55 +0000 (19:22 +0000)]
Merged revisions 22596 via svnmerge from
https://svn.digium.com/svn/asterisk/branches/1.2

........
r22596 | mogorman | 2006-04-26 14:18:55 -0500 (Wed, 26 Apr 2006) | 3 lines

do not allow for users to forward voicemail to
themselves, patch from 7001

........

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

14 years agoadds two new applications, exitwhile, and continuewhile
Matt O'Gorman [Wed, 26 Apr 2006 18:49:07 +0000 (18:49 +0000)]
adds two new applications, exitwhile, and continuewhile
patch from bug 6994.

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

14 years agowhitespace-only change:
Luigi Rizzo [Wed, 26 Apr 2006 18:43:29 +0000 (18:43 +0000)]
whitespace-only change:
partly fix indentation/formatting of the bison source,
and of the generated file

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

14 years agowhitespace-only change:
Luigi Rizzo [Wed, 26 Apr 2006 18:40:09 +0000 (18:40 +0000)]
whitespace-only change:
fix formatting and indentation of the flex file,
and regenerate the ael_lex.c

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

14 years agoFacility decoding doesn't work proper yet
Christian Richter [Wed, 26 Apr 2006 14:51:32 +0000 (14:51 +0000)]
Facility decoding doesn't work proper yet

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

14 years agoadd the missing prototype for the included asprintf
Russell Bryant [Wed, 26 Apr 2006 13:18:32 +0000 (13:18 +0000)]
add the missing prototype for the included asprintf

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

14 years agoanother Solaris compatability fix - this makes sure u_int64_t is defined
Russell Bryant [Wed, 26 Apr 2006 02:16:30 +0000 (02:16 +0000)]
another Solaris compatability fix - this makes sure u_int64_t is defined

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

14 years agoBug 7032 - Remove deprecated use of ${CALLERIDNUM}
Tilghman Lesher [Tue, 25 Apr 2006 22:38:31 +0000 (22:38 +0000)]
Bug 7032 - Remove deprecated use of ${CALLERIDNUM}

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

14 years agoAEL is no longer considered experimental :)
Russell Bryant [Tue, 25 Apr 2006 20:51:55 +0000 (20:51 +0000)]
AEL is no longer considered experimental  :)

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