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
Kevin P. Fleming
f10f427d49
since the module API is changing, it's a good time to const-ify the description() and key() return values
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-08 22:01:19 +00:00
Tilghman Lesher
1481e53ba8
Merged revisions 18494 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r18494 | tilghman | 2006-04-08 14:20:45 -0500 (Sat, 08 Apr 2006) | 2 lines
Bug 6914 - .txt file fails to rename on operator out
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-08 19:22:29 +00:00
Russell Bryant
e27f756be4
remove traces of "look", something that does not exist in the tree
...
(issue #6904 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18492 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-08 19:13:37 +00:00
Olle Johansson
7089dc1341
Issue #6899 - remove OSP support code from chan_sip.c and app_dial.c
...
- implement all functions through internal APIs in res_osp.c and app_osplookup.c
(homesick)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07 19:11:22 +00:00
Kevin P. Fleming
65e9dce01f
Merged revisions 18087 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r18087 | kpfleming | 2006-04-06 17:04:58 -0500 (Thu, 06 Apr 2006) | 3 lines
don't try to support 'i' or 'r' options if chan_zap is not loaded, and warn the user when they attempt to use them (issue #6675 )
update application help text to more clearly define when Zaptel and chan_zap are required
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 22:16:23 +00:00
BJ Weschke
3b89edc066
More code optimizations. Thanks kpfleming!
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18025 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 20:37:29 +00:00
BJ Weschke
d42357fae1
Fix a problem where if the channel was hungup during detection, the application wouldn't block indefinitely looking for another frame from that channel. Don't try to do frame size analysis on a frame that isn't voice, only report DEBUG and VERBOSE msgs to the logger channels when the DEBUG and VERBOSE settings are high enough to require it, and some other minor cleanups.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 20:23:18 +00:00
Joshua Colp
1749971753
Merged revisions 17905 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r17905 | file | 2006-04-06 14:00:10 -0300 (Thu, 06 Apr 2006) | 2 lines
Update email address to my Digium one
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17914 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 17:01:47 +00:00
Luigi Rizzo
e9b428e121
convert one more file...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 15:48:06 +00:00
Luigi Rizzo
1fd898bd84
convert a couple of applications to the new module style
...
(STATIC_MODULE) to show what needs to be changed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 09:24:02 +00:00
Tilghman Lesher
756c7cbb12
Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) rand() to threadsafe ast_random()
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17627 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-05 17:44:44 +00:00
Tilghman Lesher
701b49027d
Bug 6508 - if priority was a number, then findlabel fails
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17626 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-05 17:03:30 +00:00
Tilghman Lesher
e019a106c7
Bug 6886 - Add application TryExec, which does mostly the same thing, but returns differently
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17454 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-05 03:53:41 +00:00
Olle Johansson
982a66a93a
Issue #6882
...
- move "res=-1" out of verbose block.
- minor code cleanup
Imported from 1.2 branch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-04 18:02:40 +00:00