Archived
14
0
Fork 0
Commit graph

236 commits

Author SHA1 Message Date
jdixon
c4e93002d6 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: http://svn.digium.com/svn/asterisk/trunk@22128 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-22 11:30:06 +00:00
rizzo
3bb9782c4d more NULL "" equivalence in CID fields.
Mark a potentially missing item in managerevent



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21818 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 10:41:13 +00:00
rizzo
6260677f40 move a replicated block of code in the one place where it belongs.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21596 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 18:15:20 +00:00
rizzo
87ebbc8741 merge two nested 'if' which are really a single block.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21595 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 18:07:19 +00:00
rizzo
666223ee12 fix indentation of a large block
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21572 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 18:00:32 +00:00
rizzo
518e82afed start sorting out the duplicated code in the privacy handler
for future removal



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21568 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 17:58:07 +00:00
rizzo
b741dee519 merge two nested 'if' which are really a single block.
(indentation still to be fixed)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21566 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 17:29:15 +00:00
rizzo
d9253cdc8e more localization and variable removal
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21538 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 16:54:04 +00:00
rizzo
f29e1b1964 more localization of variables
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21537 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 16:36:15 +00:00
rizzo
a4532658d7 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: http://svn.digium.com/svn/asterisk/trunk@21536 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 16:19:52 +00:00
rizzo
7ee16ede87 localize some variables
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21535 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 16:10:11 +00:00
rizzo
14d3d9ccee extract a common condition.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21508 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 15:15:03 +00:00
rizzo
fa37f7b8c6 fix indentation of some large blocks after previous changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21481 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 14:53:18 +00:00
rizzo
0de7e5711d 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: http://svn.digium.com/svn/asterisk/trunk@21480 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 14:50:17 +00:00
rizzo
f1040ec28d more simplifications
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21479 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 14:14:40 +00:00
rizzo
5e2602c190 start cleaning up this code so we can split the 900 lines function
into manageable chunks.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21468 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 14:02:49 +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
tilghman
8318acbef1 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: http://svn.digium.com/svn/asterisk/trunk@19398 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11 22:51:10 +00:00
kpfleming
fb65069ee5 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: http://svn.digium.com/svn/asterisk/trunk@19302 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11 20:11:36 +00:00
bweschke
65817479e8 Minor cleanups and error handling for app_dial #6935 (casper)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19253 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11 16:15:11 +00:00
rizzo
80782b1b45 normalize code preparing for loader changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19220 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11 15:19:34 +00:00
kpfleming
31b2a51bfb remove support for BYEXTENSION (which nobody even knows about anymore)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18977 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10 23:01:22 +00:00
kpfleming
e4880150b1 since the module API is changing, it's a good time to const-ify the description() and key() return values
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18552 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-08 22:01:19 +00:00
oej
3c9910c57e 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: http://svn.digium.com/svn/asterisk/trunk@18369 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-07 19:11:22 +00:00
rizzo
f229a1fc56 convert a couple of applications to the new module style
(STATIC_MODULE) to show what needs to be changed.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17791 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06 09:24:02 +00:00
rizzo
c977f70f81 as discussed with Mark a few weeks ago, the 'newstack' argument
in pbx_exec is always 1 so it can be removed.

This change also takes away ast_exec_extension(), and lets all
switch functions (exists, canmatch, exec, matchmore) all use the same
prototype, which makes the code a bit cleaner.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16558 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30 21:29:39 +00:00
mogorman
7f2b0a39ea Janitor work converting !ast_strlen_zero(a)?a:b
to S_OR functions. from bug note 6805 with minor
modifications.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15283 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-27 19:31:54 +00:00
russell
cb6a690b28 Merged revisions 13550 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r13550 | russell | 2006-03-19 04:59:55 -0500 (Sun, 19 Mar 2006) | 4 lines

revert the change made in revision 12927 in favor of keeping the original
behavior of the option.  The documentation has now been updated to reflect
the actual behavior.  (issue #6523)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@13587 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-19 10:11:29 +00:00
russell
c2e686055b Merged revisions 12927 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r12927 | russell | 2006-03-14 13:41:05 -0500 (Tue, 14 Mar 2006) | 3 lines

when using the G() option to Dial, fix sending the called channel to 1 priority
beyond what was specified (issue #6523)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12928 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-14 18:42:56 +00:00
russell
c72e5e1b38 remove the uses of the deprecated STANDARD_LOCAL_USER
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10241 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15 20:11:56 +00:00
kpfleming
21d21f89c0 use string fields for some stuff in ast_channel
const-ify some more APIs
remove 'type' field from ast_channel, in favor of the one in the channel's tech structure
allow string field module users to specify the 'chunk size' for pool allocations
update chan_alsa to be compatible with recent const-ification patches


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9060 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-01 23:05:28 +00:00
russell
b1ab7f9752 don't redefine the localuser struct for additional use specific to the module (issue #6216)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8742 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-26 20:28:52 +00:00
kpfleming
3b24709d4d Merged revisions 8608 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r8608 | kpfleming | 2006-01-24 19:50:52 -0600 (Tue, 24 Jan 2006) | 2 lines

ensure hangup cause code is handled properly when channel does not return a frame (issue #6346)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8609 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-25 01:52:58 +00:00
russell
252fb982f4 on this pass, only remove duplicate log messages
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8403 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 20:57:06 +00:00
russell
b14bdc5a12 revert my pass through the tree to remove checks of the result of ast_strdupa
(revisions 8378 through 8381)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8387 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 17:50:04 +00:00
russell
3f2c7248c6 remove lots of useless checks of the result of ast_strdupa
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8379 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 08:13:12 +00:00
kpfleming
66461f4cc9 suppress compiler warning
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8148 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-17 20:49:39 +00:00
oej
f9a9b74151 - Logging clean up
- Whitespace removed and added, formatting fixed


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8136 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-17 18:54:56 +00:00
mogorman
3615d91f38 Added forward context option from 5497
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8066 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13 19:09:05 +00:00
russell
9909f9bd4d conversions to memory allocation wrappers (issue #6210)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7991 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-11 22:41:34 +00:00
russell
e0a380cdbf Merged revisions 7957 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7957 | russell | 2006-01-10 22:12:44 -0500 (Tue, 10 Jan 2006) | 2 lines

fix a little typo

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7958 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-11 03:13:45 +00:00
russell
ab6566173e update doxygen docs to specify authors
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7682 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-30 21:18:06 +00:00
markster
37635ecfdd Major RTP fixes for using inbound SDP on outbound connection, get rid of
old local rtp stuff...


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7551 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-20 17:52:31 +00:00
kpfleming
7c789eb820 Merged revisions 7448-7449,7451,7453 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7448 | kpfleming | 2005-12-12 22:25:14 -0600 (Mon, 12 Dec 2005) | 2 lines

use the stream's current point when pausing/unpausing, instead of elapsed time (which doesn't work when the stream has been skipped forward or backward) (issue #5897)

........
r7449 | kpfleming | 2005-12-12 22:43:38 -0600 (Mon, 12 Dec 2005) | 2 lines

only report AGENT_IDLE for callback mode agents when they are actually idle (issue #5902)

........
r7451 | kpfleming | 2005-12-12 23:14:27 -0600 (Mon, 12 Dec 2005) | 2 lines

ensure that hangups while incoming calls are in early state are handled properly (issue #5919)

........
r7453 | kpfleming | 2005-12-12 23:53:00 -0600 (Mon, 12 Dec 2005) | 2 lines

restore ability of caller to hangup calls that are still ringing (issue #5839)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7457 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-13 06:00:17 +00:00
russell
cfb1ef4712 convert most of the option_*'s to a single ast_flags structure. Also, fix some
formatting, remove some unnecessary casts, and other little code cleanups.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7331 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-04 20:40:46 +00:00
kpfleming
24c1e3c222 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7221 f38db490-d61c-443f-a65b-d21fe96a405b 2005-11-29 18:24:39 +00:00
markster
1c4a890242 Record DIALEDTIME on incomplete calls, update description (bug #5862)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7198 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-25 19:59:46 +00:00
russell
3d4721b2ae issue #5850
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7195 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-25 14:13:54 +00:00
russell
2e1332e69c fix a typo in the RetryDial description
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7095 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-14 10:24:59 +00:00
kpfleming
25b3076477 issue #5720
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7083 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-12 01:33:10 +00:00