Commit graph

1667 commits

Author SHA1 Message Date
Luigi Rizzo
2904c6956d remove unused variable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22655 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-26 22:45:37 +00:00
Matt O'Gorman
7212fa80ad 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
2006-04-26 22:04:42 +00:00
Matt O'Gorman
367de1a73d 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
2006-04-26 19:22:55 +00:00
Matt O'Gorman
d5892657fe 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
2006-04-26 18:49:07 +00:00
Tilghman Lesher
e3f569532f Deprecate prefixed options in voicemail
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22268 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-24 17:20:41 +00:00
Kevin P. Fleming
574e14cbea Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-24 17:11:45 +00:00
Jim Dixon
a83297d85f Added "Operator Services" connection mode for Zap channels, and the 'O' option
in app_dial to support the use of this mode.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22128 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-22 11:30:06 +00:00
Luigi Rizzo
b560433a36 convert to use ast_stream_and_wait
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-21 20:57:29 +00:00
Luigi Rizzo
d4eea1066b convert to use ast_strem_and_wait
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-21 20:51:55 +00:00
Luigi Rizzo
0dbf814a79 - use symbolic constants and macros to play with the debug flag
on the frame counters. Document it in the header file.
- provide a single exit point for a function;
- mark XXX some unclear parts of the code.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-21 14:49:21 +00:00
Luigi Rizzo
b5e6162359 more NULL "" equivalence in cid fields.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21849 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-21 11:05:54 +00:00
Luigi Rizzo
1a6572c4e6 more NULL "" equivalence,
mark a couple of inconsistencies (missing CallerIDnum,
"unknown" instead of "<unknown>") - there are more of the same.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21821 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-21 10:57:03 +00:00
Luigi Rizzo
965ff42bed more NULL "" equivalence in CID fields.
Mark a potentially missing item in managerevent



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-21 10:41:13 +00:00
Luigi Rizzo
b9f3e4e0f3 move a replicated block of code in the one place where it belongs.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 18:15:20 +00:00
Luigi Rizzo
bd01d66909 merge two nested 'if' which are really a single block.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 18:07:19 +00:00
Luigi Rizzo
9476cb356e fix indentation of a large block
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 18:00:32 +00:00
Luigi Rizzo
501c9e181c start sorting out the duplicated code in the privacy handler
for future removal



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21568 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 17:58:07 +00:00
Luigi Rizzo
b3343aecdf merge two nested 'if' which are really a single block.
(indentation still to be fixed)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 17:29:15 +00:00
Luigi Rizzo
73f2d344fb more localization and variable removal
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 16:54:04 +00:00
Luigi Rizzo
c9f669e56d more localization of variables
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21537 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 16:36:15 +00:00
Luigi Rizzo
c6a8784e95 localize one more variable;
use ast_strdup as it can handle the NULL argument well.
mark a dubious piece of code with XXX



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 16:19:52 +00:00
Luigi Rizzo
0f4a1bc9ac localize some variables
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21535 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 16:10:11 +00:00
Luigi Rizzo
2bdcaa4849 extract a common condition.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21508 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 15:15:03 +00:00
Luigi Rizzo
25eb0525d9 fix indentation of some large blocks after previous changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21481 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 14:53:18 +00:00
Luigi Rizzo
25c6ab22f9 more simplifications - use a local variable c instead of o->chan,
use S_OR as appropriate.

Still need to fix the indentation of some blocks.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21480 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 14:50:17 +00:00
Luigi Rizzo
acf0f038dc more simplifications
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 14:14:40 +00:00
Luigi Rizzo
3aaaa41609 start cleaning up this code so we can split the 900 lines function
into manageable chunks.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21468 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 14:02:49 +00:00
Luigi Rizzo
d93234c25b add experimental code for new-style "say" application.
The rules for spelling out numbers and dates are in the config
file "say.conf", which can be edited to implement national
or even local language rules.

The new code can be enabled through the cli command
'say load new'
while the old code can be restored with
'say load old'

Eventually, this code should go to a better place,
but for the time being we keep here as it provides
very similar functions.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 10:27:31 +00:00
Luigi Rizzo
c14427878a remove a line that was added by mistake
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21098 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-18 13:17:44 +00:00
Tilghman Lesher
8a066de957 Merged revisions 21037 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r21037 | tilghman | 2006-04-18 01:26:04 -0500 (Tue, 18 Apr 2006) | 2 lines

Bug 6984 - off by one error in Random()

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-18 06:29:30 +00:00
Joshua Colp
e8a94a71e2 Allow the attachment format to be specified differently for different mailboxes (issue #6961 reported by the ever fabulous Corydon76)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-15 23:05:18 +00:00
Luigi Rizzo
ca9e77fe46 code simplifications
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-14 22:32:13 +00:00
Luigi Rizzo
8977378288 use ast_strdup instead of strdup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20167 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-14 22:22:13 +00:00
Luigi Rizzo
62712ea668 constification and code simplifications
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20165 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-14 22:02:19 +00:00
Luigi Rizzo
e43bc6634d 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: https://origsvn.digium.com/svn/asterisk/trunk@20003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-14 14:08:19 +00:00
Tilghman Lesher
492e68dab3 Merged revisions 19891 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19891 | tilghman | 2006-04-13 15:37:50 -0500 (Thu, 13 Apr 2006) | 2 lines

Bug 6947 - Allow vm broadcasts to more than 256 characters worth of mailboxes

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19892 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-13 20:40:23 +00:00
Kevin P. Fleming
70bf3715a6 Merged revisions 19812 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19812 | kpfleming | 2006-04-13 12:40:21 -0500 (Thu, 13 Apr 2006) | 2 lines

oops... let's not set a variable and then immediately overwrite it while assuming its old value will magically return

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-13 17:41:43 +00:00
Joshua Colp
5e43f18529 Updates to speech recognition API and dialplan utilities. Moved to using dialplan functions, and some other misc things.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19645 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-13 00:18:52 +00:00
Joshua Colp
416cd5d8a0 Add ability to see if the person calling said anything or not.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-12 19:57:21 +00:00
Tilghman Lesher
020305fb58 Merged revisions 19397 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19397 | tilghman | 2006-04-11 17:39:59 -0500 (Tue, 11 Apr 2006) | 2 lines

Bug 6490 - telco intercept should report NOANSWER instead of CHANUNAVAIL

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-11 22:51:10 +00:00
Tilghman Lesher
e5bb12ac83 Merged revisions 19394 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19394 | tilghman | 2006-04-11 17:24:46 -0500 (Tue, 11 Apr 2006) | 2 lines

Bug 6061 - Fix ODBC storage of VM on PGSQL and MSSQL

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19395 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-11 22:25:57 +00:00
Kevin P. Fleming
1e9ac855d3 Merged revisions 19348 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19348 | kpfleming | 2006-04-11 16:50:18 -0500 (Tue, 11 Apr 2006) | 2 lines

don't call the originating device as part of the Page() operation (issue #6932)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-11 21:51:17 +00:00
Kevin P. Fleming
77e998a20d Merged revisions 19301 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19301 | kpfleming | 2006-04-11 15:11:01 -0500 (Tue, 11 Apr 2006) | 2 lines

handle call time limit properly when warning is requested _after_ call would hae already ended (issue #6356)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-11 20:11:36 +00:00
BJ Weschke
0b438958df Minor cleanups and error handling for app_dial #6935 (casper)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19253 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-11 16:15:11 +00:00
BJ Weschke
d2480538d2 Provide the ability to read extension number after name #6938 (delink)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-11 15:38:17 +00:00
Luigi Rizzo
7ba1b92a04 normalize code preparing for loader changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19220 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-11 15:19:34 +00:00
BJ Weschke
44b98afdcd Merged revisions 19008 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19008 | bweschke | 2006-04-10 20:05:01 -0500 (Mon, 10 Apr 2006) | 3 lines

 When using the silence detector in ast_play_and_record() and ast_play_and_prepend(), the truncation code never gets called to remove the detected silence, because the value of res is zero when control gets to that point. #6903 w/some mods (softins)


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19009 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-11 01:12:13 +00:00
Joshua Colp
e4811a8248 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: https://origsvn.digium.com/svn/asterisk/trunk@18979 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10 23:29:50 +00:00
Kevin P. Fleming
cf15740eaf remove support for BYEXTENSION (which nobody even knows about anymore)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18977 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10 23:01:22 +00:00
Olle Johansson
6843c5ddc6 Issue 6919 - clarify error message
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-09 18:53:46 +00:00