Kevin P. Fleming
9d3ee005b0
another checkpoint... chan_zap can now use the new ZT_ECHOCAN_PARAMS ioctl if it is present, but doesn't parse any supplied parameters yet
...
(this implementation is not very memory efficient as the parameters and their values will be duplicated for each channel that has the same settings, but we can worry about that later once it is working)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96019 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 21:51:37 +00:00
Kevin P. Fleming
29800b0540
clean up hwgain CLI command and improve docs for swgain CLI command
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 19:47:25 +00:00
Kevin P. Fleming
027cb522d9
umm... this did not compile on x86-64, and could not possibly have worked on any platform as it was passing string pointers to a function expecting ints
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95893 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 18:17:15 +00:00
Tilghman Lesher
c3fc2a76f5
Allow more spans than 32. Also, rearrange compiler flags so the most often
...
used flags appear closer to the top.
Reported by: tzafrir
Patch by: tzafrir,tilghman
(Closes issue #11528 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-26 22:38:02 +00:00
Tilghman Lesher
fc22a4a40e
Convert raw bits for callprogress bitfield to use constants, for greater code clarity
...
Reported by: dimas
Patch by: dimas
(Closes issue #11280 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94795 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-26 18:05:28 +00:00
Tilghman Lesher
27f8b5bc2d
Change the abbreviated TON from 'A' to 'V', since 'A' is a legitimate DTMF
...
character. Also, fix the documentation to match the code.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94772 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-25 03:34:09 +00:00
Matthew Fredrickson
a3b9e3e791
We should only clear this value if we have to
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-21 20:50:26 +00:00
Matthew Fredrickson
3ce9ec2e56
Commit non TCP transport part of #11506 . Includes numerous additional parameters, as well as RLT support for DMS type switches
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-21 20:48:15 +00:00
Russell Bryant
d607a29ddf
Merged revisions 94251 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r94251 | russell | 2007-12-20 14:08:42 -0600 (Thu, 20 Dec 2007) | 10 lines
Fix a deadlock in d-channel handling in chan_zap.
This deadlock was introduced by the fix to ensure that channels are properly
locked when handling channel variables. There were sections of this code where
the channel pvt was locked before the channel lock, when in fact it _must_ be
the other way around.
(closes issue #11582 )
Reported by: bugi
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94252 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-20 20:16:21 +00:00
Olle Johansson
f3471c1652
Merged revisions 93182 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r93182 | oej | 2007-12-17 08:15:13 +0100 (MÃ¥n, 17 Dec 2007) | 8 lines
Issue 11574: Add dependencies on res_monitor and res_features.
I wonder if Asterisk can run at all without res_features. My guess is that
there's propably a lot of more modules and the core that depends on it.
Reported by: caio1982
(closes issue #11574 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-17 21:12:24 +00:00
Joshua Colp
779af3faac
Merged revisions 93250 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r93250 | file | 2007-12-17 14:05:55 -0400 (Mon, 17 Dec 2007) | 6 lines
If a call is received with a called number IE containing nothing go to the 's' extension.
(closes issue #9099 )
Reported by: kb1_kanobe2
Patches:
20070906__9099.diff.txt uploaded by Corydon76 (license 14)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93252 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-17 18:07:26 +00:00
Tilghman Lesher
e6fea0b9b0
Merged revisions 92815 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r92815 | tilghman | 2007-12-13 15:28:39 -0600 (Thu, 13 Dec 2007) | 5 lines
Properly initialize polarity statuses, so that they are detected properly.
Reported by: julianjm
Patch by: julianjm
(Closes issue #10238 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92816 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-13 21:42:33 +00:00
Mark Michelson
6711a5d567
Trunk build would fail due to the nonexistence of zaptel hwgain
...
structures missing. Patched configure to check for this stuff and
put a #ifdef around the offending code in chan_zap. Thanks to file
for overseeing this.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-11 22:10:43 +00:00
Doug Bailey
93942979ff
Add CLI commands to dynamically set hw and sw gains
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92243 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-10 20:18:25 +00:00
Tilghman Lesher
258f3caf0f
Add a manager event for PRI events: this will help manager users detect when a D-channel goes down
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-06 23:47:07 +00:00
Matthew Fredrickson
12748fb027
Make sure we clear these flags when libpri is not installed
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-06 16:54:08 +00:00
Olle Johansson
39c8fc532d
Update ZapShowChannels so that you can specify one channel.
...
Action ZapShowChannels
Header changes
- Channel: -> ZapChannel
For active channels, the Channel: and Uniqueid: headers are added
You can now add a "ZapChannel: " argument to zapshowchannels actions
to only get information about one channel.
From the moremanager branch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91386 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-06 14:33:14 +00:00
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
2007-12-05 03:48:53 +00:00
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
2007-12-04 23:57:31 +00:00
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
2007-12-04 22:44:01 +00:00
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
2007-12-04 22:02:48 +00:00
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
2007-12-04 19:08:30 +00:00
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
2007-12-04 17:40:29 +00:00
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
2007-11-21 23:24:55 +00:00
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
2007-11-21 22:37:25 +00:00
Matthew Fredrickson
9f0859d19d
Take some debug code out :-)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89509 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-21 22:34:45 +00:00
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
2007-11-21 22:07:55 +00:00
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
2007-11-19 18:52:04 +00:00
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
2007-11-17 21:47:48 +00:00
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
2007-11-16 20:04:58 +00:00
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
2007-11-14 15:13:22 +00:00
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
2007-11-07 02:14:40 +00:00
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
2007-11-06 22:01:10 +00:00
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
2007-11-06 16:29:16 +00:00
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
2007-11-01 16:22:09 +00:00
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
2007-10-27 00:48:12 +00:00
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
2007-10-27 00:43:59 +00:00
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
2007-10-26 21:37:02 +00:00
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
2007-10-24 20:59:00 +00:00
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
2007-10-22 20:05:18 +00:00
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
2007-10-22 15:49:17 +00:00
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
2007-10-22 14:59:27 +00:00
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
2007-10-19 18:46:28 +00:00
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
2007-10-19 18:29:40 +00:00
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
2007-10-18 18:40:48 +00:00
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
2007-10-16 20:55:57 +00:00
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
2007-10-12 19:41:39 +00:00
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
2007-10-12 18:37:35 +00:00
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
2007-10-11 22:27:32 +00:00
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
2007-10-11 21:57:26 +00:00
Matthew Fredrickson
58598f733a
Add CCR test support #10916
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85474 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-11 20:49:04 +00:00
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
2007-10-11 17:17:58 +00:00
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
2007-10-11 17:09:31 +00:00
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
2007-10-05 16:49:16 +00:00
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
2007-10-04 21:38:22 +00:00
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
2007-09-26 18:43:23 +00:00
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
2007-09-21 19:55:03 +00:00
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
2007-09-19 23:16:51 +00:00
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
2007-09-18 16:10:48 +00:00
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
2007-09-17 22:59:36 +00:00
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
2007-09-14 17:51:22 +00:00
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
2007-09-13 16:58:59 +00:00
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
2007-09-11 23:07:49 +00:00
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
2007-09-06 16:38:54 +00:00
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
2007-08-30 23:52:32 +00:00
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
2007-08-24 18:05:11 +00:00
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
2007-08-23 17:18:29 +00:00
Joshua Colp
65e4c80d48
Fix random segfault issue when loading chan_zap. Trying to access a configuration structure that has already been destroyed is bad, mmmk?
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@80023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-20 14:15:30 +00:00
Tilghman Lesher
749b67bd1d
We weren't properly encapsulating the mtime ignores of config files (closes issue #10488 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79940 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-18 13:52:44 +00:00
Russell Bryant
57d5934e5d
Merged revisions 79912 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r79912 | russell | 2007-08-17 16:01:43 -0500 (Fri, 17 Aug 2007) | 4 lines
Avoid a crash in the handling of DTMF based Caller ID. It is valid for
ast_read to return NULL in the case that the channel has been hung up.
(crash reported by anonymouz666 on IRC in #asterisk-dev)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79913 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-17 21:04:33 +00:00
Joshua Colp
ecff1370fb
Fix building of chan_zap under development mode without libpri and libss7 installed.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79824 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-17 01:19:04 +00:00
Tilghman Lesher
56b9568164
Don't reload a configuration file if nothing has changed.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79747 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-16 21:09:46 +00:00
Steve Murphy
4f98b05cd5
Don't ask me why, but waitfordigit will immediately return a 1 on my system, unless the outfd is initialized to -1 before calling the nandfds func
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-14 13:46:58 +00:00
Joshua Colp
d5eda8709c
Merged revisions 79174 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r79174 | file | 2007-08-13 11:18:04 -0300 (Mon, 13 Aug 2007) | 4 lines
(closes issue #10437 )
Reported by: haklin
Don't set the callerid name and number a second time on a newly created channel. ast_channel_alloc itself already sets it and setting it twice would cause a memory leak.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-13 14:22:46 +00:00
Russell Bryant
9d1acad76b
Fix a problem that I had introduced into MWI handling. I had ignored
...
the mailbox context. Now, all related MWI event dealings pay attention
to the context as well.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78747 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-09 17:07:36 +00:00
Joshua Colp
22114b509d
Add support for using epoll instead of poll. This should increase scalability and is done in such a way that we should be able to add support for other poll() replacements.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-08 21:44:58 +00:00
Joshua Colp
063c747f3a
HAVEL_SS7 should be HAVE_SS7. Reported by kwallace.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78679 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-08 20:49:07 +00:00
Russell Bryant
eba344f498
Merged revisions 78371 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r78371 | russell | 2007-08-07 12:45:30 -0500 (Tue, 07 Aug 2007) | 12 lines
Merged revisions 78370 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r78370 | russell | 2007-08-07 12:44:04 -0500 (Tue, 07 Aug 2007) | 4 lines
Revert patch committed for issue #9660 . It broke E&M trunks.
(closes issue #10360 )
(closes issue #10364 )
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-07 17:46:00 +00:00
Joshua Colp
57769b9a53
Can't forget outsignaling!
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78347 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-07 16:17:08 +00:00
Joshua Colp
4684dd1761
Just for jsmith... make signaling a valid option that acts like signalling.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78346 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-07 16:09:27 +00:00
Russell Bryant
f8483a0d04
Do a massive conversion for using the ast_verb() macro
...
(closes issue #10277 , patches by mvanbaak)
Basically, this changes ...
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3, "Something\n");
to ...
ast_verb(3, "Something\n");
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-26 15:49:18 +00:00
Steve Murphy
30c771a9d7
Merged revisions 76983 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r76983 | murf | 2007-07-24 18:18:32 -0600 (Tue, 24 Jul 2007) | 9 lines
Merged revisions 76978 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r76978 | murf | 2007-07-24 18:07:24 -0600 (Tue, 24 Jul 2007) | 1 line
this fixes bug 10293, where the error message because defaultzone or loadzone was not defined was confusing
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76984 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-25 00:34:42 +00:00
Tilghman Lesher
81bc1d7af5
Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-18 19:47:20 +00:00
Russell Bryant
432a087ed9
Merged revisions 75053 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r75053 | russell | 2007-07-13 14:11:26 -0500 (Fri, 13 Jul 2007) | 20 lines
Merged revisions 75052 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r75052 | russell | 2007-07-13 14:10:00 -0500 (Fri, 13 Jul 2007) | 12 lines
(closes issue #9660 )
Reported by: mmacvicar
Patches submitted by: bbryant, russell
Tested by: mmacvicar, marco, arcivanov, jmhunter, explidous
When using a TDM400P (and probably other analog cards) there was a chance that
you could hang up and pick the phone back up where it has been long enough to
be not considered a flash hook, but too soon such that the device reports that
it is busy and the person on the phone will only hear silence. This patch
makes chan_zap more tolerant of this and gives the device a couple of seconds
to succeed so the person on the phone happily gets their dialtone.
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-13 19:19:51 +00:00
Jason Parker
d61b0cac84
Merged revisions 74159 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
Closes issue #9186
................
r74159 | qwell | 2007-07-09 15:19:28 -0500 (Mon, 09 Jul 2007) | 16 lines
Merged revisions 74158 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r74158 | qwell | 2007-07-09 15:18:15 -0500 (Mon, 09 Jul 2007) | 8 lines
Several chan_zap options were not working on reload because they were arbitrarily
disallowed when reloading some/most PRI options (such as signalling) was disallowed.
Options such as polarityonanswerdelay and answeronpolarityswitch can safely be changed on a reload.
This corrects that behavior.
Issue 9186, patch by tzafrir.
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74160 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-09 20:21:13 +00:00
Matthew Fredrickson
da124685f3
Fix bug where point code gets corrupted on CPG
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-28 16:35:38 +00:00
Matthew Fredrickson
7f233a8dc2
Let's NOT create a deadlock scenario here
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-27 21:44:13 +00:00
Kevin P. Fleming
86fcb89338
Merged revisions 72205 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r72205 | kpfleming | 2007-06-27 14:13:21 -0500 (Wed, 27 Jun 2007) | 2 lines
use the proper type for storing group number bits so that if someone specifies 'group=42' it will actually work instead of being silently ignored
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72207 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-27 19:13:54 +00:00
Matthew Fredrickson
8da2de3a6c
Remove deprecated function call
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@70769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-21 18:03:46 +00:00
Russell Bryant
a89e4c5083
Merged revisions 70397 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r70397 | russell | 2007-06-20 13:46:49 -0500 (Wed, 20 Jun 2007) | 13 lines
Merged revisions 70396 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r70396 | russell | 2007-06-20 13:45:38 -0500 (Wed, 20 Jun 2007) | 5 lines
Fix a problem where an established call would not be properly disconnected
when a PRI disconnect is received depending on which cause code was received.
(issue #9588 , original patch by softins, updated patch from jtexter3, and some
additional feedback from mhardeman)
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@70398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-20 18:48:34 +00:00
Olle Johansson
3aafb233f2
Show TDD status in "zap show channels"
...
Inspired by work at Omnitor in Sweden
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@70310 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-20 14:33:34 +00:00
Steve Murphy
c6ed12405f
These changes were submitted via bug 6683, to allow CID detection in India, with carriers that do Polarity/DTMF CID signalling.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@70001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-19 17:07:28 +00:00
Matthew Fredrickson
f408a5405a
Add support for setting nature of address, presentation, and other related SS7 number options ( #10000 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69943 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-19 15:14:23 +00:00
Russell Bryant
055d82cbce
Add a massive set of changes for converting to use the ast_debug() macro.
...
(issue #9957 , patches from mvanbaak, caio1982, critch, and dimas)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-14 19:39:12 +00:00
Matthew Fredrickson
60b029aa82
Clean up debug messages a little bit for ss7 linkset debugging
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-14 16:41:57 +00:00
Russell Bryant
d2a78872cc
Fix a couple of places that got missed in the conversion to using the new API
...
call for creating detached threads.
(issue #9915 , reported by elguro, fixed by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@68325 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-07 22:38:59 +00:00
Matthew Fredrickson
46e054c1af
Allow overlapdialing directions to be configurable. Bug #8554
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67920 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-06 23:12:58 +00:00
Tilghman Lesher
9d05ff8ed5
Issue 9869 - replace malloc and memset with ast_calloc, and other coding guidelines changes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-06 21:20:11 +00:00
Joshua Colp
ca529e58e6
When SS7 is enabled add w/SS7 to the end. (issue #9893 reported by Mike Anikienko)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-06 12:23:59 +00:00
Russell Bryant
d8fa6b0312
Merged revisions 67457 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r67457 | russell | 2007-06-05 14:48:02 -0500 (Tue, 05 Jun 2007) | 2 lines
Suppress a bunch of debug output unless option_debug is on
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67458 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-05 19:50:04 +00:00