dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

468 Commits

Author SHA1 Message Date
file 1c7d723a5b Incorrect log statement when playing transfer sounds (issue #7008 reported and fixed by nathan)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25444 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 11:22:00 +00:00
russell dfaf45ecc8 move ast_carefulwrite from manager.c to utils.c so that cli.c and
res_agi.c no longer depend on manager.h (issue #6397, casper)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25026 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-05 21:01:39 +00:00
bweschke efada3b700 Correct call parking behavior when there is no courtesytone specified. #6306 (murf)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24605 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 21:39:24 +00:00
tilghman 11ac93dfa1 Merged revisions 24019 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r24019 | tilghman | 2006-05-01 15:44:24 -0500 (Mon, 01 May 2006) | 2 lines

Bug 6864 - drop realtime priority on ALL external processes

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24053 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01 21:48:30 +00:00
kpfleming d58d0a1f88 remove macro defined that is no longer needed
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23737 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30 17:53:37 +00:00
russell 06fbbd1989 a bunch of conversion to ast_channel_*lock (issue #7058)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23355 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-29 14:50:18 +00:00
russell c9833020fc - 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: http://svn.digium.com/svn/asterisk/trunk@23334 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-29 13:15:05 +00:00
russell 31a8ac0fd5 - 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: http://svn.digium.com/svn/asterisk/trunk@23284 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-29 05:02:17 +00:00
rizzo 40a5624b85 add reload() (bug 9981)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23273 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-29 04:55:47 +00:00
kpfleming 29f496ef12 Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22267 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-24 17:11:45 +00:00
rizzo fd45704e44 move wait_and_stream to ast_wait_and_stream() because equivalent
code is replicated in way too many places not to have a global
function for that.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22075 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 20:28:32 +00:00
rizzo 476c6e351d more strncpy/ast_copy_string replacement.
On passing, simplify code by using strsep() as appropriate



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22045 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 18:26:54 +00:00
rizzo a89ea8a93a more strncpy/ast_copy_string replacement
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22044 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 18:13:21 +00:00
rizzo ff4e44ae7c comment a possible memory leak
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21988 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 16:18:12 +00:00
rizzo 165f152886 merge some common code into a function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21986 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 16:04:25 +00:00
rizzo 3b87fbc500 more NULL "" equivalence in cid fields.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21835 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 11:02:28 +00:00
rizzo 7096ffbc6a more NULL / "" equivalence for CID fields.
Mark an inconsistency in empty string handling.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21819 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 10:47:07 +00:00
russell 184bfd1c04 update res_odbc to support pooled connections
(from tilghman's developer branch, res_odbc_rewrite)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21181 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 18:16:32 +00:00
rizzo a07c757961 simplify the flow of builtin_atxfer().
There is still a lot of similarity with builtin_blindtransfer()
which should be removed by definining functions for the common
pieces of code (eg in the first part).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21097 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 13:05:48 +00:00
tilghman b55a1f4981 Merged revisions 20966 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r20966 | tilghman | 2006-04-17 12:00:16 -0500 (Mon, 17 Apr 2006) | 2 lines

Bug 6544 - when we remove a music class, the thread servicing it should die

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21002 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-17 17:17:41 +00:00
oej b26611b4e7 - Doxygen formatting
Please place a Doxygen todo marker before things that needs to be checked up later
  by someone - it's like /*! \todo We really need to implement this in C++ */

- option_debug checking before logging to DEBUG channel


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20790 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-17 04:31:21 +00:00
rizzo 371effe8a5 preparation for reduction of the nesting of a large function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20733 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16 23:05:42 +00:00
rizzo 621179716d more usages of stream_and_wait
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20707 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16 22:46:00 +00:00
rizzo b73e7e70aa more usages of function 'finishup()'
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20705 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16 22:22:53 +00:00
rizzo cfbd3b7b4e one more instance of stream_and_wait, and remove an extra
'error = 1' line put in by miustake



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20693 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16 22:02:30 +00:00
rizzo fbcb026822 more replaceemnt of dup code with functions.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20678 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16 21:41:06 +00:00
rizzo 7604fe591b localize several variables, and simplify the last part of park_exec()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20653 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16 20:32:14 +00:00
rizzo 9d774b6494 more formatting cleanup including removal of a useless check
for f == NULL



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20652 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16 20:09:01 +00:00
rizzo 0f3b9d81dd rename a variable same as used in a very similar function,
to reduce code differences.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20627 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16 19:56:08 +00:00
rizzo a616844355 s/pu->chan/chan in a few places;
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20626 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16 19:41:12 +00:00
rizzo 1a6e1ef989 put some common code into functions (still more instances to be replaced)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20625 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16 19:26:57 +00:00
rizzo ce29951c27 properly reindent a large block.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20624 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16 19:12:51 +00:00
rizzo c06844cf06 more readability fixes - localize some variables and invert
a condition in an 'if' statement to reduce the nesting depth.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20623 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16 19:05:19 +00:00
rizzo 2cfc3be9ff introduce a function to set context, extension and priority
replacing some common blocks of code (there are still a few
instances where it can be used)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20598 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16 18:49:46 +00:00
rizzo 1bb80944bc minor readability fixes in preparation for more work on this file:
- replace nested 'if' with '&&'
- fix indentation
- annotate the end brace of some huge block
- remove useless parentheses



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20597 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16 18:37:01 +00:00
file db5a6fcfc3 We are shaking up trunk tonight! allow data dir to be specified (issue #6967 reported by tzafrir)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20330 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-15 22:53:53 +00:00
rizzo e055b3f202 - normalize for() loops to navigate through variables,
removing replicated var = var->next;
- remove a potential infinite loop and document the problem
- remove useless checks and document why
- mark XXX a possible bug (to be investigated)
- use ast_strlen_zero() instead of expanding it inline
- fix indentation in one place   
- replace a nested 'if' with '&&'



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20223 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-15 00:05:08 +00:00
rizzo 3b962c0937 - remove some unnecessary casts and braces;
- add braces around a nested 'if'
- use S_OR and '?' to remove some duplicated function calls;
- replace nested 'if' with &&
- move out a common term in a sequence of 'if'
- add a comment on a potentially dangerous string manipulation



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20196 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14 23:20:29 +00:00
rizzo fae6856ca5 constification and code simplifications
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20165 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14 22:02:19 +00:00
rizzo 527113c4d0 partial fix of the module API to use the new method.
Still not complete as we need to take care of the usecount stuff.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20104 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14 19:35:37 +00:00
rizzo 607b2b6a47 fix another svn merge bug
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20076 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14 18:45:08 +00:00
rizzo 3664249356 This rather large commit changes the way modules are loaded.
As partly documented in loader.c and include/asterisk/module.h,
modules are now expected to return all of their methods and flags
into a structure 'mod_data', and are normally loaded with RTLD_NOW
| RTLD_LOCAL, so symbols are resolved immediately and conflicts
should be less likely.  Only in a small number of cases (res_*,
typically) modules are loaded RTLD_GLOBAL, so they can export
symbols.
 
The core of the change is only the two files loader.c and
include/asterisk/module.h, all the rest is simply adaptation of the
existing modules to the new API, a rather mechanical (but believe
me, time and finger-consuming!) process whose detail you can figure
out by svn diff'ing any single module.

Expect some minor compilation issue after this change, please
report it on mantis http://bugs.digium.com/view.php?id=6968
so we collect all the feedback in one place.

I am just sorry that this change missed SVN version number 20000!



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20003 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14 14:08:19 +00:00
file f51c79cc26 Updates to speech recognition API and dialplan utilities. Moved to using dialplan functions, and some other misc things.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19645 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-13 00:18:52 +00:00
rizzo f699b62383 normalize code in preparation to module changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19189 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11 10:01:00 +00:00
file 483e826311 Presenting a revised data stores and oh my, a generic speech recognition API! I wonder what we can do with this now...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18979 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10 23:29:50 +00:00
bweschke 5cc0c9ed74 Merged revisions 18866 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r18866 | bweschke | 2006-04-10 12:29:51 -0500 (Mon, 10 Apr 2006) | 2 lines

 Don't say that we can pass an 'exten' argument in the documentation of Park() when we really cannot. #6902 (opsys)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18867 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10 17:32:29 +00:00
russell 2161a93e6e remove a couple more unnecessary "out of memory" error messages
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18723 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10 02:19:58 +00:00
russell b9253231be use ast_*alloc and don't create duplicated error messages.
... as stated in the coding guidelines.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10 02:15:47 +00:00
russell a06d9b22bc Instead of using strncpy, use ast_copy_string. Also, in the case of copying a
constant string into a buffer that we know is big enough, don't use a length
limited copy at all, use strcpy.

... as stated in the coding guidelines.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18721 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10 02:05:59 +00:00
russell 70f8d1c38b run the module through indent to fix the formatting issues that violate the
coding guidelines


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18704 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10 02:01:39 +00:00