Kevin P. Fleming
ddbea09940
revert part of my changes from earlier today since this code is no longer dependent on libpri.h
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Russell Bryant
a040ff199b
Fix mwimonitornotify on reload ... again. This option was only read at startup
...
so a reload would erase it and not reset it. (pointed out by tzafrir)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91069 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
d4e10c0957
Don't error when we don't have libpri installed with libss7 support. Also, print the debug message anyway if we can't find the right PRI
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Russell Bryant
77ed96a473
Fix resetting mwimonitornotify on reload. I guess I only added this line in my head.
...
(thanks to tzafrir for pointing it out)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Russell Bryant
f15be28fb0
Add support for monitoring MWI on FXO lines.
...
This introduces two new options for zapata.conf: mwimonitor and mwimonitornotify.
The mwimonitor option enables MWI monitoring. When the MWI state on a line changes,
then the script specified by mwimonitornotify will be executed for custom handling
of the state change, similar to the externnotify option of voicemail.conf.
Also, when the MWI state on an FXO line changes, an internal Asterisk event is
generated to indicate the new state of the associated mailbox. That may, any
module that cares about MWI information will get notified and can handle it
just as if app_voicemail had sent this notification.
(BE-253, original patch from markster, with some minor modifications by me to
add comments, documentation, and internal event support)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Kevin P. Fleming
e8b053c2d8
fix build of this module when libpri and/or libss7 are or are not present
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Luigi Rizzo
7e8835e0d7
remove another set of redundant #include "asterisk/options.h"
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
27dc9e7c70
Remove unneccessary explicit case for BRI
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89510 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
9f0859d19d
Take some debug code out :-)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89509 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
0643a7ccff
Add BRI support to chan_zap
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Luigi Rizzo
0595b5e2aa
include "logger.h" and errno.h from asterisk.h - usage shows that they
...
were included almost everywhere.
Remove some of the instances.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89424 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
19460802ef
Add SS7 Generic address support ( #11156 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89393 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Luigi Rizzo
fdb7f7ba3d
Start untangling header inclusion in a way that does not affect
...
build times - tested, there is no measureable difference before and
after this commit.
In this change:
use asterisk/compat.h to include a small set of system headers:
inttypes.h, unistd.h, stddef.h, stddint.h, sys/types.h, stdarg.h,
stdlib.h, alloca.h, stdio.h
Where available, the inclusion is conditional on HAVE_FOO_H as determined
by autoconf.
Normally, source files should not include any of the above system headers,
and instead use either "asterisk.h" or "asterisk/compat.h" which does it
better.
For the time being I have left alone second-level directories
(main/db1-ast, etc.).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89333 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Tilghman Lesher
0f6892419e
One more typo in config.c; and missed conversions due to the constifying of ast_variable_new parameters
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Tilghman Lesher
37166d9a1a
Provide the ability to directly manipulate the TON/NPI bits in the dialstring.
...
Reported by: thetatag
Patch by: thetatag/stevens/tilghman
Closes issue #5331
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
ebf9f0bc0e
Add some more locking as well as API update for libss7 for new transport types
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Joshua Colp
e9e78af981
Merged revisions 88994 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r88994 | file | 2007-11-06 12:24:56 -0400 (Tue, 06 Nov 2007) | 6 lines
Fix improbable but possible memory leaks in chan_zap.
(closes issue #11166 )
Reported by: eliel
Patches:
chan_zap.c.patch uploaded by eliel (license 64)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88995 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Jason Parker
9a7ce542bc
Merged revisions 88078 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r88078 | qwell | 2007-11-01 11:21:22 -0500 (Thu, 01 Nov 2007) | 4 lines
Make sure we set the poll fds to NULL after free()ing it.
Part of issue 11017, patch by tzafrir.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88079 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
db88298c18
Add Circuit Group Queury message code
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87232 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
6c452a6408
Make sure we turn on the DSP when we answer the call
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Jason Parker
c472a68a8a
Correctly use defined return values in (some) load_module functions.
...
(issue #11096 )
Patches:
chan_agent.c.patch uploaded by eliel (license 64)
chan_local.c.patch uploaded by eliel (license 64)
chan_features.c.patch uploaded by eliel (license 64)
chan_zap.c.patch uploaded by eliel (license 64)
res_monitor.c.patch uploaded by eliel (license 64)
res_realtime.c.patch uploaded by eliel (license 64)
res_crypto.c.patch uploaded by eliel (license 64)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Jason Parker
6c757caeca
Merged revisions 86982 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
(closes issue #11079 )
........
r86982 | qwell | 2007-10-24 15:56:47 -0500 (Wed, 24 Oct 2007) | 5 lines
Correctly respect hidecalleridname configuration option.
Simplify code slightly in the process.
Issue 11079, reported by ddv2005
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86983 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Jason Parker
ebe4050128
Switch from AST_CLI (formerly NEW_CLI) to AST_CLI_DEFINE, since the former didn't make much sense
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Russell Bryant
17b2e62a57
There is a really fun game that you can play before committing code,
...
and it's called "make". :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86749 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Kevin P. Fleming
0c14c47523
resetinterval defaulting to something other than 'never' doesn't seem to accomplish any good and causes problems for plenty of people...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86697 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
d30564fe86
Add better support for blocking and unblocking of CICs ( #10965 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Jason Parker
b0f3e6097e
Convert NEW_CLI to AST_CLI.
...
Closes issue #11039 , as suggested by seanbright.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Mark Michelson
9cf5937b43
Fixing a segfault from tab-completing a "zap restart" CLI command.
...
(patch made by seanbright, pointed out in #asterisk-dev on IRC)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
b5a162a746
Don't hangup the call for SS7 if we get an alarm
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85957 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
24e2567e2d
Trying to finish the last of the charge_number patch up #10916
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85526 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
d11d2ad834
Add support for receive charge number in dialplan #10916
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85525 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
dba36a81e6
Make sure we set the ANI2 field for PRI
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85497 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
b01a87c3db
Add SS7 ANI2 support tx and rx. #10916
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85485 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
58598f733a
Add CCR test support #10916
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85474 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
8a52c88988
Let's hard code this until I fix it
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85444 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
14730c0ce4
Make sure we are clean to build without libpri
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Russell Bryant
feb8f6f38b
Merged revisions 84783 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r84783 | russell | 2007-10-05 11:44:21 -0500 (Fri, 05 Oct 2007) | 4 lines
Do deadlock avoidance in a couple more places. You can't lock two channels
at the same time without doing extra work to make sure it succeeds.
(closes issue #10895 , patch by me)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@84784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Kevin P. Fleming
fd5783657e
Merged revisions 84690 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r84690 | kpfleming | 2007-10-04 16:36:56 -0500 (Thu, 04 Oct 2007) | 2 lines
callers of sig2str already add the word 'signalling' in the appropriate place, so don't duplicate it
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@84691 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Tilghman Lesher
afebefc763
Merged revisions 83879 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r83879 | tilghman | 2007-09-26 13:35:56 -0500 (Wed, 26 Sep 2007) | 2 lines
Remove unused 4k of memory on the program stack (closes issue #10827 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@83880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Russell Bryant
0b0c36ff6a
Fix compilation errors in CLI command updates to SS7 CLI commands
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@83500 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Jason Parker
ac5332c674
More conversions to NEW_CLI
...
(issue #10724 )
Patches:
chan_zap.c.patch uploaded by moy (license 222)
app_queue.c.patch uploaded by eliel (license 64)
app_voicemail.c.patch uploaded by eliel (license 64)
app_meetme.c.patch uploaded by eliel (license 64)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@83213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Russell Bryant
96f4079dac
Don't use ast_channel_lock_both() here, it only exists in one of my branches.
...
This is theoretically a potential deadlock, but it's the way it was before so
I'm going to leave it this way for now.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82776 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Russell Bryant
ded76a8988
convert various places that access the channel lock directly to use the channel lock wrappers
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82728 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Jason Parker
7fa9eebd99
Merged revisions 82394 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r82394 | qwell | 2007-09-14 12:48:05 -0500 (Fri, 14 Sep 2007) | 5 lines
If a channel does not have an owner, do not try to set a channel variable.
This will end up making the channel variable global, which is not right.
Closes issue #10720 , patch by flefoll.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82395 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Joshua Colp
5460e72015
Add setvar support to chan_zap. Just like you can in chan_sip and chan_iax2 you can now use it with zaptel channels. (done while in Montreal at the Asterisk bootcamp!)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
d3504cd159
Fix to make sure we don't hangup a call when getting a RLC without sending REL. Found making sure we are Q.784 (the SS7 test specification) compliant
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
c61d954422
Patch on 10575. Add support for unequipped CIC (UCIC) message as well as improve some of our CIC flags in chan_zap
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81742 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Tilghman Lesher
acb51ca5c2
Add new queryable fields from zaptel to 'zap show status'
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81400 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Matthew Fredrickson
3616eb166f
Add VMWI chan_zap support #9909
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@80778 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Kevin P. Fleming
b16f018d96
Merged revisions 80501 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r80501 | kpfleming | 2007-08-23 12:08:25 -0500 (Thu, 23 Aug 2007) | 2 lines
report the actual channel number that was unregistered, instead of assuming that the interface list consists of channels 1 through <x> with no gaps in the sequence
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@80508 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago