dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

850 Commits

Author SHA1 Message Date
kpfleming 3b7a68b182 major reliability and performance improvement in VWMI monitoring for FXO ports (code by markster, me and dbailey)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98990 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-17 16:17:52 +00:00
kpfleming cdf9ce4cb9 Add 'zap set dnd' CLI command, and ensure that the AMI DNDState event always gets generated.
(closes issue #11212)
Reported by: tzafrir
Patches:
      zap_dnd.diff uploaded by tzafrir (modified by me) (license 46)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98488 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-12 00:20:55 +00:00
kpfleming e63414ec96 Add 'auto' signalling mode for Zaptel channels.
(closes issue #11690)
Reported by: tzafrir
Patches:
      signaling_to_signalling.diff uploaded by tzafrir (license 46)
      signalling_cleanup.diff uploaded by tzafrir (license 46)
      zap_auto_default.diff uploaded by tzafrir (license 46)
      zap_no_default_sig.diff uploaded by tzafrir (license 46)
      zap_signal_auto.diff uploaded by tzafrir (license 46)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98436 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 23:10:57 +00:00
kpfleming 1f3f02b465 Merged revisions 97448 via svnmerge from
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: http://svn.digium.com/svn/asterisk/trunk@97449 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-09 15:45:34 +00:00
kpfleming a1a41b71a0 Merged revisions 97410 via svnmerge from
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: http://svn.digium.com/svn/asterisk/trunk@97421 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-09 15:31:56 +00:00
kpfleming cea2f98c6d [commit message]
(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: http://svn.digium.com/svn/asterisk/trunk@96500 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-04 17:21:25 +00:00
russell 993aecf160 Merged revisions 96449 via svnmerge from
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: http://svn.digium.com/svn/asterisk/trunk@96450 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-04 16:21:08 +00:00
kpfleming bcc9a193e3 actually parse and store echocan parameters from zapata.conf... this *should* work <G>
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96073 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 22:41:23 +00:00
mmichelson d58696d360 Add curly braces around a compound if statement so that trunk will build properly
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96028 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 22:29:15 +00:00
kpfleming 3b9ff99221 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: http://svn.digium.com/svn/asterisk/trunk@96019 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 21:51:37 +00:00
kpfleming e6a8f95f77 clean up hwgain CLI command and improve docs for swgain CLI command
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95939 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 19:47:25 +00:00
kpfleming a7c4d3677c 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: http://svn.digium.com/svn/asterisk/trunk@95893 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 18:17:15 +00:00
tilghman 254edbf055 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: http://svn.digium.com/svn/asterisk/trunk@94818 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 22:38:02 +00:00
tilghman 14fc36c09d 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: http://svn.digium.com/svn/asterisk/trunk@94795 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 18:05:28 +00:00
tilghman f05ce0bb95 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: http://svn.digium.com/svn/asterisk/trunk@94772 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-25 03:34:09 +00:00
mattf 83a89cc17e We should only clear this value if we have to
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94551 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-21 20:50:26 +00:00
mattf 1e66fcde41 Commit non TCP transport part of #11506. Includes numerous additional parameters, as well as RLT support for DMS type switches
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94549 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-21 20:48:15 +00:00
russell fefd98bdca 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: http://svn.digium.com/svn/asterisk/trunk@94252 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-20 20:16:21 +00:00
oej 005b4c4aa2 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: http://svn.digium.com/svn/asterisk/trunk@93335 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-17 21:12:24 +00:00
file 249d52a921 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: http://svn.digium.com/svn/asterisk/trunk@93252 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-17 18:07:26 +00:00
tilghman efde89dea6 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: http://svn.digium.com/svn/asterisk/trunk@92816 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-13 21:42:33 +00:00
mmichelson bf3d4cdd5e 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: http://svn.digium.com/svn/asterisk/trunk@92422 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-11 22:10:43 +00:00
dbailey 23e1e5c3fb Add CLI commands to dynamically set hw and sw gains
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92243 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-10 20:18:25 +00:00
tilghman bb15c2571f Add a manager event for PRI events: this will help manager users detect when a D-channel goes down
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91618 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 23:47:07 +00:00
mattf e80ac8df81 Make sure we clear these flags when libpri is not installed
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91472 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 16:54:08 +00:00
oej 05ba99e36b 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: http://svn.digium.com/svn/asterisk/trunk@91386 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 14:33:14 +00:00
kpfleming bb78883d21 revert part of my changes from earlier today since this code is no longer dependent on libpri.h
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91133 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 03:48:53 +00:00
russell 6a7486f4e3 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: http://svn.digium.com/svn/asterisk/trunk@91069 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 23:57:31 +00:00
mattf d2783f534e 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: http://svn.digium.com/svn/asterisk/trunk@91012 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 22:44:01 +00:00
russell 55e37207a1 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: http://svn.digium.com/svn/asterisk/trunk@91010 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 22:02:48 +00:00
russell bdd896e7be 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: http://svn.digium.com/svn/asterisk/trunk@90949 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 19:08:30 +00:00
kpfleming 9e4649bf40 fix build of this module when libpri and/or libss7 are or are not present
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90880 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 17:40:29 +00:00
rizzo 150b2c22ef remove another set of redundant #include "asterisk/options.h"
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89512 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 23:24:55 +00:00
mattf 805ba568c6 Remove unneccessary explicit case for BRI
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89510 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 22:37:25 +00:00
mattf 84849d3f6f Take some debug code out :-)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89509 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 22:34:45 +00:00
mattf d3b3d6d193 Add BRI support to chan_zap
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89507 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 22:07:55 +00:00
rizzo 9cf442d7f7 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: http://svn.digium.com/svn/asterisk/trunk@89424 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 18:52:04 +00:00
mattf 92145c34ba Add SS7 Generic address support (#11156)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89393 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-17 21:47:48 +00:00
rizzo 883346d64a 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: http://svn.digium.com/svn/asterisk/trunk@89333 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16 20:04:58 +00:00
tilghman 22206839a4 One more typo in config.c; and missed conversions due to the constifying of ast_variable_new parameters
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89270 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-14 15:13:22 +00:00
tilghman 44d62ad360 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: http://svn.digium.com/svn/asterisk/trunk@89078 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-07 02:14:40 +00:00
mattf cec6b85091 Add some more locking as well as API update for libss7 for new transport types
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89067 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 22:01:10 +00:00
file 523fa9cb07 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: http://svn.digium.com/svn/asterisk/trunk@88995 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 16:29:16 +00:00
qwell 29e524f0b8 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: http://svn.digium.com/svn/asterisk/trunk@88079 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-01 16:22:09 +00:00
mattf 39afbccd81 Add Circuit Group Queury message code
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87232 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-27 00:48:12 +00:00
mattf 744b434989 Make sure we turn on the DSP when we answer the call
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87231 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-27 00:43:59 +00:00
qwell ecd7ce6f49 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: http://svn.digium.com/svn/asterisk/trunk@87202 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-26 21:37:02 +00:00
qwell 46cd8cbfc5 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: http://svn.digium.com/svn/asterisk/trunk@86983 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-24 20:59:00 +00:00
qwell 7756b987a0 Switch from AST_CLI (formerly NEW_CLI) to AST_CLI_DEFINE, since the former didn't make much sense
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86820 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-22 20:05:18 +00:00
russell ed6b2d36eb There is a really fun game that you can play before committing code,
and it's called "make".  :)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86749 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-22 15:49:17 +00:00