asterisk/asterisk.git
13 years ago- use the atomic operations for incrementing the unique int
Russell Bryant [Mon, 21 Aug 2006 19:35:28 +0000 (19:35 +0000)]
- use the atomic operations for incrementing the unique int
- free the string fields allocation if ast_create_channel() failes to open the
  alert pipe
- formatting tweaks

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

13 years agoAllow an offset for SIP_HEADER so you can get more then 1 header of the same name...
Joshua Colp [Mon, 21 Aug 2006 19:33:42 +0000 (19:33 +0000)]
Allow an offset for SIP_HEADER so you can get more then 1 header of the same name if they exist. Why someone would want to grab something like Via headers from dialplan I don't exactly know, but okay. (issue #7563 reported by Corydon76)

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

13 years agovarious cleanups, including ...
Russell Bryant [Mon, 21 Aug 2006 19:18:09 +0000 (19:18 +0000)]
various cleanups, including ...
- Create an astmm_log() macro that logs the same message to both stderr as well
  as the mmlog file if it is open instead of duplicating the code everywhere.
- Use for loops for list traversals instead of while loops
- reduce nesting
- ensure locking isn't put around more than is necessary
- localize a struct definition
- change the limit of the path to the mmlog to PATH_MAX instead of 80

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

13 years ago- use a common error message in all of the memory allocation macros
Russell Bryant [Mon, 21 Aug 2006 17:22:24 +0000 (17:22 +0000)]
- use a common error message in all of the memory allocation macros
- add ast_asprintf() and ast_vasprintf()
- tweak doxygen comments
- simplify the definition of a flag macro

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

13 years agobuild muted by default, since there is no Makefile target for it anymore
Kevin P. Fleming [Mon, 21 Aug 2006 14:45:58 +0000 (14:45 +0000)]
build muted by default, since there is no Makefile target for it anymore

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

13 years agouse a safer process for checking if a module wants to export symbols into the global...
Kevin P. Fleming [Mon, 21 Aug 2006 14:42:03 +0000 (14:42 +0000)]
use a safer process for checking if a module wants to export symbols into the global namespace

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

13 years agoreplace a couple of bare 'make' with $(MAKE)
Kevin P. Fleming [Mon, 21 Aug 2006 13:47:45 +0000 (13:47 +0000)]
replace a couple of bare 'make' with $(MAKE)

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

13 years agoswap module macro arguments to proper order
Kevin P. Fleming [Mon, 21 Aug 2006 11:48:08 +0000 (11:48 +0000)]
swap module macro arguments to proper order

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

13 years agoFix a potential integer signedness problem.
Jason Parker [Mon, 21 Aug 2006 07:34:59 +0000 (07:34 +0000)]
Fix a potential integer signedness problem.
Also fix some locking issues I found at the same time.

Issue 7770, original patch by alamantia

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

13 years agoensure that 'make' after 'svn update' that includes a configure script change won...
Kevin P. Fleming [Mon, 21 Aug 2006 03:58:02 +0000 (03:58 +0000)]
ensure that 'make' after 'svn update' that includes a configure script change won't run without making the user run configure first

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

13 years agodon't declare these variables unless needed
Kevin P. Fleming [Mon, 21 Aug 2006 03:06:41 +0000 (03:06 +0000)]
don't declare these variables unless needed

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

13 years agodocument Makefile target changes
Kevin P. Fleming [Mon, 21 Aug 2006 02:54:05 +0000 (02:54 +0000)]
document Makefile target changes

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

13 years agocould have sworn i committed this change already...
Kevin P. Fleming [Mon, 21 Aug 2006 02:46:47 +0000 (02:46 +0000)]
could have sworn i committed this change already...

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

13 years agomain subdirectory is not dependencies for menuselect input
Kevin P. Fleming [Mon, 21 Aug 2006 02:31:01 +0000 (02:31 +0000)]
main subdirectory is not dependencies for menuselect input

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

13 years agooops... no pattern rules for bison/flex
Kevin P. Fleming [Mon, 21 Aug 2006 02:26:51 +0000 (02:26 +0000)]
oops... no pattern rules for bison/flex

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

13 years agomerge new_loader_completion branch, including (at least):
Kevin P. Fleming [Mon, 21 Aug 2006 02:11:39 +0000 (02:11 +0000)]
merge new_loader_completion branch, including (at least):
  - restructured build tree and makefiles to eliminate recursion problems
  - support for embedded modules
  - support for static builds
  - simpler cross-compilation support
  - simpler module/loader interface (no exported symbols)

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

13 years agoMerged revisions 40692 via svnmerge from
Tilghman Lesher [Sun, 20 Aug 2006 22:12:50 +0000 (22:12 +0000)]
Merged revisions 40692 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r40692 | tilghman | 2006-08-20 17:09:57 -0500 (Sun, 20 Aug 2006) | 2 lines

Reformat to match the contribution style of other contributors

........

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

13 years agoThis is just step 1 in taking over the world.
Jason Parker [Sun, 20 Aug 2006 18:03:24 +0000 (18:03 +0000)]
This is just step 1 in taking over the world.

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

13 years agoConvert func_odbc to use the prepare_and_execute callback, which helps with a databas...
Tilghman Lesher [Sun, 20 Aug 2006 15:46:00 +0000 (15:46 +0000)]
Convert func_odbc to use the prepare_and_execute callback, which helps with a database reconnection issue (bug 7693)

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

13 years agoBlocked revisions 40601 via svnmerge
Joshua Colp [Sun, 20 Aug 2006 04:51:06 +0000 (04:51 +0000)]
Blocked revisions 40601 via svnmerge

........
r40601 | file | 2006-08-20 00:49:48 -0400 (Sun, 20 Aug 2006) | 2 lines

Turn media level c= parsing on by default (issue #7725 reported by psm)

........

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

13 years agoConverted device2str and control2str to use thread local storage.
Jason Parker [Sun, 20 Aug 2006 04:39:57 +0000 (04:39 +0000)]
Converted device2str and control2str to use thread local storage.

Thanks Russell.

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

13 years agoProperly check to see if parkingnum is a number (issue #7762 reported by robf)
Joshua Colp [Sun, 20 Aug 2006 04:25:28 +0000 (04:25 +0000)]
Properly check to see if parkingnum is a number (issue #7762 reported by robf)

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

13 years agokpfleming didn't break trunk, it was the aliens. (fix it so that the Makefile referen...
Joshua Colp [Sun, 20 Aug 2006 01:42:41 +0000 (01:42 +0000)]
kpfleming didn't break trunk, it was the aliens. (fix it so that the Makefile references the new name for the XML tree, menuselect-tree)

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

13 years agoMake the CIPC device string useful
Jason Parker [Sun, 20 Aug 2006 01:27:24 +0000 (01:27 +0000)]
Make the CIPC device string useful

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

13 years agoFix minor display issues in "skinny show devices".
Jason Parker [Sun, 20 Aug 2006 01:25:02 +0000 (01:25 +0000)]
Fix minor display issues in "skinny show devices".

Patch by wedhorn with minor modifications by me.

Issue 7766

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

13 years agodeprecate chan_agent callback mode
Kevin P. Fleming [Sat, 19 Aug 2006 17:05:43 +0000 (17:05 +0000)]
deprecate chan_agent callback mode

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

13 years agosuppress warnings introduced by putting states in an enum
Russell Bryant [Sat, 19 Aug 2006 03:50:15 +0000 (03:50 +0000)]
suppress warnings introduced by putting states in an enum

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

13 years agoBlocking 1.2 rev 40446 from merging to trunk
Jason Parker [Sat, 19 Aug 2006 01:06:53 +0000 (01:06 +0000)]
Blocking 1.2 rev 40446 from merging to trunk

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

13 years agoFix a bug with app_voicemail when trying to use app_directory to leave messages
Jason Parker [Sat, 19 Aug 2006 00:53:54 +0000 (00:53 +0000)]
Fix a bug with app_voicemail when trying to use app_directory to leave messages
to another user (options 3, 5, 2).

If the context/extension didn't exist in the dialplan (and why should it have to?),
it would fail, saying that it's an "invalid extension".

(issue BE-71)

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

13 years agoconvert lists of constants in channel.h to enums instead of #defines
Russell Bryant [Sat, 19 Aug 2006 00:33:44 +0000 (00:33 +0000)]
convert lists of constants in channel.h to enums instead of #defines

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

13 years agoMake a zttest of 20 seconds part of the autosupport script (issue #7752 reported...
Joshua Colp [Fri, 18 Aug 2006 19:22:33 +0000 (19:22 +0000)]
Make a zttest of 20 seconds part of the autosupport script (issue #7752 reported by kshumard)

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

13 years agoMerged revisions 40392 via svnmerge from
Kevin P. Fleming [Fri, 18 Aug 2006 19:11:34 +0000 (19:11 +0000)]
Merged revisions 40392 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r40392 | kpfleming | 2006-08-18 14:10:51 -0500 (Fri, 18 Aug 2006) | 2 lines

make a feeble attempt to avoid the 'how do I enable my hardware echo canceler' questions

........

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

13 years agoUpdated this as per wishes of Kevin Fleming. Needs review. Any mistakes/misconception...
Steve Murphy [Fri, 18 Aug 2006 02:31:12 +0000 (02:31 +0000)]
Updated this as per wishes of Kevin Fleming. Needs review. Any mistakes/misconceptions/glaring errors?

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

13 years agoupdating configure script and putting comments in the docs
Matt O'Gorman [Thu, 17 Aug 2006 22:52:07 +0000 (22:52 +0000)]
updating configure script and putting comments in the docs
in english. yay!

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

13 years agochanges to configure to support older c-client than the
Matt O'Gorman [Thu, 17 Aug 2006 22:39:48 +0000 (22:39 +0000)]
changes to configure to support older c-client than the
2004 version.

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

13 years agoUse OSAtomicAdd instead of OSAtomicDecrement to decrement the value by 1.
Joshua Colp [Thu, 17 Aug 2006 21:14:03 +0000 (21:14 +0000)]
Use OSAtomicAdd instead of OSAtomicDecrement to decrement the value by 1.

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

13 years agoupdate configure script to reflect change to make version check
Russell Bryant [Thu, 17 Aug 2006 21:10:16 +0000 (21:10 +0000)]
update configure script to reflect change to make version check

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

13 years agoa lot of systems use GNU Make 3.81beta4, so only consider the first two characters
Russell Bryant [Thu, 17 Aug 2006 19:38:15 +0000 (19:38 +0000)]
a lot of systems use GNU Make 3.81beta4, so only consider the first two characters
in the minor part of the version string

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

13 years agofix the use of an uninitialized variable (issue #7746, pointed out by garyhai)
Russell Bryant [Thu, 17 Aug 2006 19:14:20 +0000 (19:14 +0000)]
fix the use of an uninitialized variable (issue #7746, pointed out by garyhai)

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

13 years agorename to more clearly state what this file shows how to do
Kevin P. Fleming [Thu, 17 Aug 2006 18:33:24 +0000 (18:33 +0000)]
rename to more clearly state what this file shows how to do

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

13 years agotypo
Kevin P. Fleming [Thu, 17 Aug 2006 18:32:47 +0000 (18:32 +0000)]
typo

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

13 years agofix a little typo in the config file name
Russell Bryant [Thu, 17 Aug 2006 18:16:22 +0000 (18:16 +0000)]
fix a little typo in the config file name

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

13 years agoadd Steve Murphy's guide on setting up call queues using dynamic queue members,
Russell Bryant [Thu, 17 Aug 2006 18:09:59 +0000 (18:09 +0000)]
add Steve Murphy's guide on setting up call queues using dynamic queue members,
including examples in AEL.

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

13 years agoMerged revisions 40227 via svnmerge from
Russell Bryant [Thu, 17 Aug 2006 16:37:39 +0000 (16:37 +0000)]
Merged revisions 40227 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r40227 | russell | 2006-08-17 12:36:21 -0400 (Thu, 17 Aug 2006) | 3 lines

revert bogus change to attempt to fix bug 7506 which actually causes half of
the channels not to get "Newchannel" events at all (issue #7745)

........

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

13 years agoAdd 'l' option to CDR dialplan function which will cause it to pass the last CDR...
Joshua Colp [Thu, 17 Aug 2006 16:29:44 +0000 (16:29 +0000)]
Add 'l' option to CDR dialplan function which will cause it to pass the last CDR record to getvar instead of the first. (issue #7689 reported by voipgate)

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

13 years agoBlocked revisions 40223 via svnmerge
Joshua Colp [Thu, 17 Aug 2006 16:19:26 +0000 (16:19 +0000)]
Blocked revisions 40223 via svnmerge

........
r40223 | file | 2006-08-17 12:18:08 -0400 (Thu, 17 Aug 2006) | 2 lines

Make app_macro compile again

........

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

13 years agoBlocking 40220, because I've already made the mod in trunk, and it might have collisi...
Steve Murphy [Thu, 17 Aug 2006 16:10:49 +0000 (16:10 +0000)]
Blocking 40220, because I've already made the mod in trunk, and it might have collisioned...

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

13 years agoIn app_macro, changed the previously changed upper recursion depth limit to a variabl...
Steve Murphy [Thu, 17 Aug 2006 15:48:49 +0000 (15:48 +0000)]
In app_macro, changed the previously changed upper recursion depth limit to a variable, default of the original val of 7. MACRO_RECURSION is a channel variable that will override the limit, but until I can understand and fix why this limit is neccessary, I am not advertising this variable in the docs.

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

13 years agofixing the 64bit issue with misdn_l1_task.
Nadi Sarrar [Thu, 17 Aug 2006 09:14:01 +0000 (09:14 +0000)]
fixing the 64bit issue with misdn_l1_task.

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

13 years agotabs to spaces to fix alignment ...
Russell Bryant [Thu, 17 Aug 2006 06:18:42 +0000 (06:18 +0000)]
tabs to spaces to fix alignment ...

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

13 years agoprint a warning at the end of the configure script if the version of GNU Make
Russell Bryant [Thu, 17 Aug 2006 06:16:00 +0000 (06:16 +0000)]
print a warning at the end of the configure script if the version of GNU Make
in use is a version earlier than 3.81

This is for file :)

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

13 years agoFix cookie parsing for Internet Explorer (issue #7454, jeff)
Russell Bryant [Thu, 17 Aug 2006 04:26:28 +0000 (04:26 +0000)]
Fix cookie parsing for Internet Explorer (issue #7454, jeff)

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

13 years agofix include of tonezone.h to reflect new location (issue #7741, Mithraen)
Russell Bryant [Thu, 17 Aug 2006 04:05:03 +0000 (04:05 +0000)]
fix include of tonezone.h to reflect new location (issue #7741, Mithraen)

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

13 years agofixed imap bug and updated syntax.
Matt O'Gorman [Wed, 16 Aug 2006 20:32:19 +0000 (20:32 +0000)]
fixed imap bug and updated syntax.

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

13 years agoadded patch from #7709
Christian Richter [Wed, 16 Aug 2006 19:13:47 +0000 (19:13 +0000)]
added patch from #7709

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

13 years agoMerged revisions 40057 via svnmerge from
Kevin P. Fleming [Wed, 16 Aug 2006 18:58:43 +0000 (18:58 +0000)]
Merged revisions 40057 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r40057 | kpfleming | 2006-08-16 13:57:44 -0500 (Wed, 16 Aug 2006) | 2 lines

don't allow AUEP responses to overflow the stack during a string copy (reported by Mu Security)

........

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

13 years agofix some minor stuff
Kevin P. Fleming [Wed, 16 Aug 2006 18:26:04 +0000 (18:26 +0000)]
fix some minor stuff

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

13 years agoRemove the old ODBC_STORAGE and make EXTENDED_ODBC_STORAGE the one to use. This means...
Joshua Colp [Wed, 16 Aug 2006 16:22:13 +0000 (16:22 +0000)]
Remove the old ODBC_STORAGE and make EXTENDED_ODBC_STORAGE the one to use. This means that if you're using this and upgrade to the revision where this was committed, you will need to update your table to the schema provided in doc/odbcstorage.txt

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

13 years agoinstead of a for loop and ast_cli_(un)register, use ast_cli_(un)register_multiple()
Russell Bryant [Wed, 16 Aug 2006 16:06:19 +0000 (16:06 +0000)]
instead of a for loop and ast_cli_(un)register, use ast_cli_(un)register_multiple()

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

13 years agoMove things around a bit more for onhold support, and add a check to only decrement...
Joshua Colp [Wed, 16 Aug 2006 15:34:50 +0000 (15:34 +0000)]
Move things around a bit more for onhold support, and add a check to only decrement the onhold variable if it's greater then 0. (issue #7740 reported by AuPix)

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

13 years agoa static array now holds the cli_entry structs
Nadi Sarrar [Wed, 16 Aug 2006 15:03:09 +0000 (15:03 +0000)]
a static array now holds the cli_entry structs

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

13 years agoadding support for AOCD facility messages.
Nadi Sarrar [Wed, 16 Aug 2006 13:19:54 +0000 (13:19 +0000)]
adding support for AOCD facility messages.

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

13 years agoFix formatting of "show codecs" CLI command.
Jason Parker [Wed, 16 Aug 2006 03:48:36 +0000 (03:48 +0000)]
Fix formatting of "show codecs" CLI command.
Make "show translations" CLI command have dynamic widths.

Also display g726 codec in both commands.
There are probably other places where "11" is hardcoded...

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

13 years agomove the calls to ast_jb_configure() to before the PBX thread is started on the
Russell Bryant [Wed, 16 Aug 2006 03:43:47 +0000 (03:43 +0000)]
move the calls to ast_jb_configure() to before the PBX thread is started on the
channel to remove the theoretical race condition that the channel could get
bridged before the channel's jitterbuffer gets configured.  This was pointed
out by PCadach on IRC.  Thanks!

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

13 years agoMerged revisions 39935 via svnmerge from
Russell Bryant [Tue, 15 Aug 2006 22:51:49 +0000 (22:51 +0000)]
Merged revisions 39935 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r39935 | russell | 2006-08-15 18:49:41 -0400 (Tue, 15 Aug 2006) | 3 lines

use pbx_builtin_getvar_helper() so that GET VARIABLE can retrieve global
variables (issue #7609)

........

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

13 years agoblock the indicated 1.2 branch from being merged into trunk; it's already here.
Steve Murphy [Tue, 15 Aug 2006 22:37:33 +0000 (22:37 +0000)]
block the indicated 1.2 branch from being merged into trunk; it's already here.

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

13 years agoprint a more user friendly error message with the text representation of codecs
Russell Bryant [Tue, 15 Aug 2006 22:28:38 +0000 (22:28 +0000)]
print a more user friendly error message with the text representation of codecs
(issue #7233, Mithraen)

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

13 years agoreduce duplicated code by using print_codec_to_cli in sip_show_user as it is
Russell Bryant [Tue, 15 Aug 2006 22:17:38 +0000 (22:17 +0000)]
reduce duplicated code by using print_codec_to_cli in sip_show_user as it is
already used in sip_show_peer (issue #7739, DEA)

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

13 years agoThis change fixes bug 7731, macros not executing more than one level deep in a hung...
Steve Murphy [Tue, 15 Aug 2006 21:25:19 +0000 (21:25 +0000)]
This change fixes bug 7731, macros not executing more than one level deep in a hung-up situation; also increased maximum recursion depth from 7 to 20, to keep serious coders from painful toe-stubbings

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

13 years agoMake tonepair generated through fixed point
Mark Spencer [Tue, 15 Aug 2006 20:25:13 +0000 (20:25 +0000)]
Make tonepair generated through fixed point

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

13 years agoremoved libbnec dependencies.
Christian Richter [Tue, 15 Aug 2006 19:41:14 +0000 (19:41 +0000)]
removed libbnec dependencies.

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

13 years agocomplete the coding style changes for these frame structures
Kevin P. Fleming [Tue, 15 Aug 2006 17:14:20 +0000 (17:14 +0000)]
complete the coding style changes for these frame structures

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

13 years agomoved the asn1 and facility portions of code to mISDNuser, so removing the files...
Nadi Sarrar [Tue, 15 Aug 2006 16:49:26 +0000 (16:49 +0000)]
moved the asn1 and facility portions of code to mISDNuser, so removing the files here.

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

13 years agoMade "style" change requested by Kevin Fleming... used initializer in declaration,
Steve Murphy [Tue, 15 Aug 2006 16:35:06 +0000 (16:35 +0000)]
Made "style" change requested by Kevin Fleming... used initializer in declaration,
brought decl down to block where the variable is used, got rid of memset.

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

13 years agoOn behalf of PCadach, " IMHO that was last deadlock in chan_h323..."
Steve Murphy [Tue, 15 Aug 2006 14:55:30 +0000 (14:55 +0000)]
On behalf of PCadach, " IMHO that was last deadlock in chan_h323..."

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

13 years agoSMDI documentation fix (issue #7732 reported by mnicholson)
Joshua Colp [Tue, 15 Aug 2006 14:08:39 +0000 (14:08 +0000)]
SMDI documentation fix (issue #7732 reported by mnicholson)

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

13 years agofix a typo and a very minor formatting change
North Antara [Mon, 14 Aug 2006 22:38:52 +0000 (22:38 +0000)]
fix a typo and a very minor formatting change

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

13 years agoFix for uninitialized workspace in ast_cdr_getvar, pointed out by sergee
Joshua Colp [Mon, 14 Aug 2006 18:07:21 +0000 (18:07 +0000)]
Fix for uninitialized workspace in ast_cdr_getvar, pointed out by sergee

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

13 years agodon't try to ignore the contents of a quoted string in ast_separate_app_args()
Russell Bryant [Mon, 14 Aug 2006 04:25:13 +0000 (04:25 +0000)]
don't try to ignore the contents of a quoted string in ast_separate_app_args()
if the delimeter is actually the quotation mark (fixes issue #7622)

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

13 years agoresolve some compiler warnings ...
Russell Bryant [Mon, 14 Aug 2006 03:34:16 +0000 (03:34 +0000)]
resolve some compiler warnings ...

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

13 years agoadd the doc file about the MacroExclusive app (issue #7366, Steve Davies)
Russell Bryant [Mon, 14 Aug 2006 03:26:02 +0000 (03:26 +0000)]
add the doc file about the MacroExclusive app (issue #7366, Steve Davies)

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

13 years agoadd MacroExclusive application, a Macro that only one call can executed at
Russell Bryant [Mon, 14 Aug 2006 03:24:06 +0000 (03:24 +0000)]
add MacroExclusive application, a Macro that only one call can executed at
a time (issue #7366, Steve Davies, with mods by me as discussed in the report)

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

13 years agoWhen taking a substring and a negative length is provided, instead of just
Russell Bryant [Mon, 14 Aug 2006 02:14:14 +0000 (02:14 +0000)]
When taking a substring and a negative length is provided, instead of just
ignoring it, allow this to mean that we want that many characters off of
the end of the string so that ${EXTEN:0:$[${LEN(${EXTEN}) - 1]} can become
${EXTEN:0:-1}.  (issue #7586, Corydon)

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

13 years agodon't include files that cause additional targets to get executed if the target
Russell Bryant [Mon, 14 Aug 2006 02:00:28 +0000 (02:00 +0000)]
don't include files that cause additional targets to get executed if the target
called was clean, distclean, or update

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

13 years ago- unregister SLA apps on module unload and add sample config (issue #7701, junky)
Russell Bryant [Mon, 14 Aug 2006 01:32:46 +0000 (01:32 +0000)]
- unregister SLA apps on module unload and add sample config (issue #7701, junky)
- rename SLAS to SLAStation, and SLAT to SLATrunk

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

13 years agoadd the ability to run an arbitrary command if asterisk crashes
Russell Bryant [Mon, 14 Aug 2006 01:13:32 +0000 (01:13 +0000)]
add the ability to run an arbitrary command if asterisk crashes
(inspired by issue #7698, which was res_segfault by anthm)

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

13 years agosupport ./configure --silent
Russell Bryant [Mon, 14 Aug 2006 00:08:35 +0000 (00:08 +0000)]
support ./configure --silent

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

13 years agoincrease the maximum length of the mohinterpret/mohsuggest options (issue #7696)
Russell Bryant [Sun, 13 Aug 2006 23:26:06 +0000 (23:26 +0000)]
increase the maximum length of the mohinterpret/mohsuggest options (issue #7696)

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

13 years agoThis commit merges the contents of 7721, as it applied to the trunk version. Added...
Steve Murphy [Sat, 12 Aug 2006 19:28:33 +0000 (19:28 +0000)]
This commit merges the contents of 7721, as it applied to the trunk version. Added the item that would previously trigger a false error to test1.

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

13 years agoadded a -q for quiet, option to aelparse
Steve Murphy [Fri, 11 Aug 2006 21:30:03 +0000 (21:30 +0000)]
added a -q for quiet, option to aelparse

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

13 years ago Increase the size of the variable space for writing/reading persistent queue member...
BJ Weschke [Fri, 11 Aug 2006 17:49:35 +0000 (17:49 +0000)]
 Increase the size of the variable space for writing/reading persistent queue member data to allow for larger queues of members. (Matthew Roth #7703)

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

13 years agoMove STD_MOD declaration to end of file as per the norm of everything else (issue...
Joshua Colp [Fri, 11 Aug 2006 15:05:19 +0000 (15:05 +0000)]
Move STD_MOD declaration to end of file as per the norm of everything else (issue #7711 reported by Mithraen)

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

13 years agoDon't completely error out if a config file for chan_phone was not found. (issue...
Joshua Colp [Fri, 11 Aug 2006 13:54:58 +0000 (13:54 +0000)]
Don't completely error out if a config file for chan_phone was not found. (issue #7710 reported by Mithraen)

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

13 years agoMake res_snmp fit general coding style (issue #7192 reported by Mithraen)
Joshua Colp [Fri, 11 Aug 2006 13:42:49 +0000 (13:42 +0000)]
Make res_snmp fit general coding style (issue #7192 reported by Mithraen)

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

13 years agoAdd support to see if a peer has someone on hold, and fix a small bug with getting...
Joshua Colp [Thu, 10 Aug 2006 02:41:20 +0000 (02:41 +0000)]
Add support to see if a peer has someone on hold, and fix a small bug with getting the state name. This one goes out to you mog!

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

13 years agofixing compile warnings, renaming config option "overlap_dial" to "overlapdial"
Nadi Sarrar [Wed, 9 Aug 2006 09:24:21 +0000 (09:24 +0000)]
fixing compile warnings, renaming config option "overlap_dial" to "overlapdial"

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

13 years agoThis bug existed in one extra place that is not also in 1.2 ... So, fix it!
Russell Bryant [Wed, 9 Aug 2006 04:12:10 +0000 (04:12 +0000)]
This bug existed in one extra place that is not also in 1.2 ... So, fix it!

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

13 years agoThis commit adds the enhancemnt per bug 7606, adding
Steve Murphy [Wed, 9 Aug 2006 01:17:47 +0000 (01:17 +0000)]
This commit adds the enhancemnt per bug 7606, adding
the -w option to aelparse.

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

13 years agoThis bug adds enhancement as per bug 7606, the -w
Steve Murphy [Wed, 9 Aug 2006 01:16:37 +0000 (01:16 +0000)]
This bug adds enhancement as per bug 7606, the -w
option to aelparse.

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

13 years agosupport for imap in app_voicemail as well as some
Matt O'Gorman [Tue, 8 Aug 2006 20:35:59 +0000 (20:35 +0000)]
support for imap in app_voicemail as well as some
credits fixed.

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