summaryrefslogtreecommitdiff
path: root/channels/chan_zap.c
AgeCommit message (Collapse)Author
2008-01-09Merged revisions 97448 via svnmerge from Kevin P. Fleming
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r97448 | kpfleming | 2008-01-09 09:43:19 -0600 (Wed, 09 Jan 2008) | 2 lines pass the right variable to get an error string... oops ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97449 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09Merged revisions 97410 via svnmerge from Kevin P. Fleming
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r97410 | kpfleming | 2008-01-09 09:26:23 -0600 (Wed, 09 Jan 2008) | 2 lines add error number output to ioctl failure messages to help with debugging ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-04[commit message]Kevin P. Fleming
(closes issue #10393) Reported by: tzafrir Patches: chan_alarm_asterisk.diff uploaded by tzafrir (license 46) (modified by me and added configure script support) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96500 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-04Merged revisions 96449 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r96449 | russell | 2008-01-04 10:19:22 -0600 (Fri, 04 Jan 2008) | 7 lines Make use of the temporary channel pointer while the pvt is unlocked. (closes issue #11675) Reported by: flefoll Patches: chan_zap.c.patch-store-owner-before-unlock uploaded by flefoll (license 244) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96450 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02actually parse and store echocan parameters from zapata.conf... this ↵Kevin P. Fleming
*should* work <G> git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96073 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02Add curly braces around a compound if statement so that trunk will build ↵Mark Michelson
properly git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02another checkpoint... chan_zap can now use the new ZT_ECHOCAN_PARAMS ioctl ↵Kevin P. Fleming
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-02clean up hwgain CLI command and improve docs for swgain CLI commandKevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02umm... this did not compile on x86-64, and could not possibly have worked on ↵Kevin P. Fleming
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
2007-12-26Allow more spans than 32. Also, rearrange compiler flags so the most oftenTilghman Lesher
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-26Convert raw bits for callprogress bitfield to use constants, for greater ↵Tilghman Lesher
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-25Change the abbreviated TON from 'A' to 'V', since 'A' is a legitimate DTMFTilghman Lesher
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-21We should only clear this value if we have toMatthew Fredrickson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-21Commit non TCP transport part of #11506. Includes numerous additional ↵Matthew Fredrickson
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-20Merged revisions 94251 via svnmerge from Russell Bryant
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-17Merged revisions 93182 via svnmerge from Olle Johansson
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-17Merged revisions 93250 via svnmerge from Joshua Colp
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-13Merged revisions 92815 via svnmerge from Tilghman Lesher
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-11Trunk build would fail due to the nonexistence of zaptel hwgainMark Michelson
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-10Add CLI commands to dynamically set hw and sw gainsDoug Bailey
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92243 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-06Add a manager event for PRI events: this will help manager users detect ↵Tilghman Lesher
when a D-channel goes down git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-06Make sure we clear these flags when libpri is not installedMatthew Fredrickson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-06Update ZapShowChannels so that you can specify one channel.Olle Johansson
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-05revert part of my changes from earlier today since this code is no longer ↵Kevin P. Fleming
dependent on libpri.h git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-04Fix mwimonitornotify on reload ... again. This option was only read at startupRussell Bryant
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-04Don't error when we don't have libpri installed with libss7 support. Also, ↵Matthew Fredrickson
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-04Fix resetting mwimonitornotify on reload. I guess I only added this line in ↵Russell Bryant
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-04Add support for monitoring MWI on FXO lines.Russell Bryant
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-04fix build of this module when libpri and/or libss7 are or are not presentKevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-21remove another set of redundant #include "asterisk/options.h"Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-21Remove unneccessary explicit case for BRIMatthew Fredrickson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89510 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-21Take some debug code out :-)Matthew Fredrickson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89509 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-21Add BRI support to chan_zapMatthew Fredrickson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-19include "logger.h" and errno.h from asterisk.h - usage shows that theyLuigi Rizzo
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-17Add SS7 Generic address support (#11156)Matthew Fredrickson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89393 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-16Start untangling header inclusion in a way that does not affectLuigi Rizzo
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-14One more typo in config.c; and missed conversions due to the constifying of ↵Tilghman Lesher
ast_variable_new parameters git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-07Provide the ability to directly manipulate the TON/NPI bits in the dialstring.Tilghman Lesher
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-06Add some more locking as well as API update for libss7 for new transport typesMatthew Fredrickson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-06Merged revisions 88994 via svnmerge from Joshua Colp
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-01Merged revisions 88078 via svnmerge from Jason Parker
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-10-27Add Circuit Group Queury message codeMatthew Fredrickson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87232 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-27Make sure we turn on the DSP when we answer the callMatthew Fredrickson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-26Correctly use defined return values in (some) load_module functions.Jason Parker
(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-24Merged revisions 86982 via svnmerge from Jason Parker
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-22Switch from AST_CLI (formerly NEW_CLI) to AST_CLI_DEFINE, since the former ↵Jason Parker
didn't make much sense git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-22There is a really fun game that you can play before committing code,Russell Bryant
and it's called "make". :) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86749 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-22resetinterval defaulting to something other than 'never' doesn't seem to ↵Kevin P. Fleming
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-19Add better support for blocking and unblocking of CICs (#10965)Matthew Fredrickson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-19Convert NEW_CLI to AST_CLI.Jason Parker
Closes issue #11039, as suggested by seanbright. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86536 65c4cc65-6c06-0410-ace0-fbb531ad65f3