dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

35 Commits

Author SHA1 Message Date
mmichelson 0eb1e5407a Merge Call completion support into trunk.
From Reviewboard:
CCSS stands for Call Completion Supplementary Services. An admittedly out-of-date
overview of the architecture can be found in the file doc/CCSS_architecture.pdf
in the CCSS branch. Off the top of my head, the big differences between what is
implemented and what is in the document are as follows:

1. We did not end up modifying the Hangup application at all.
2. The document states that a single call completion monitor may be used across
   multiple calls to the same device. This proved to not be such a good idea
   when implementing protocol-specific monitors, and so we ended up using one
   monitor per-device per-call.
3. There are some configuration options which were conceived after the document
   was written. These are documented in the ccss.conf.sample that is on this
   review request.
		      
For some basic understanding of terminology used throughout this code, see the
ccss.tex document that is on this review.

This implements CCBS and CCNR in several flavors.

First up is a "generic" implementation, which can work over any channel technology
provided that the channel technology can accurately report device state. Call
completion is requested using the dialplan application CallCompletionRequest and can
be canceled using CallCompletionCancel. Device state subscriptions are used in order
to monitor the state of called parties.

Next, there is a SIP-specific implementation of call completion. This method uses the
methods outlined in draft-ietf-bliss-call-completion-06 to implement call completion
using SIP signaling. There are a few things to note here:

* The agent/monitor terminology used throughout Asterisk sometimes is the reverse of
  what is defined in the referenced draft.

* Implementation of the draft required support for SIP PUBLISH. I attempted to write
  this in a generic-enough fashion such that if someone were to want to write PUBLISH
  support for other event packages, such as dialog-state or presence, most of the effort
  would be in writing callbacks specific to the event package.

* A subportion of supporting PUBLISH reception was that we had to implement a PIDF
  parser. The PIDF support added is a bit minimal. I first wrote a validation
  routine to ensure that the PIDF document is formatted properly. The rest of the
  PIDF reading is done in-line in the call-completion-specific PUBLISH-handling
  code. In other words, while there is PIDF support here, it is not in any state
  where it could easily be applied to other event packages as is.

Finally, there are a variety of ISDN-related call completion protocols supported. These
were written by Richard Mudgett, and as such I can't really say much about their
implementation. There are notes in the CHANGES file that indicate the ISDN protocols
over which call completion is supported.

Review: https://reviewboard.asterisk.org/r/523


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@256528 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-09 15:31:32 +00:00
jpeeler 3212543aeb Add new config option to control AMI alarm event reporting in chan_dahdi.
New config parameter "reportalarms" added in chan_dahdi.conf which supports the
following possible values:
"channels": report each channel alarms (current behavior, default for backward compatibility)
"spans": report an "SpanAlarm" event when the span of any configured channel is alarmed
"all": report channel and span alarms (aggregated behavior)
"none": do not report any alarms

(closes issue #16709)
Reported by: nahuelgreco
Patches: 
      chan_dahdi.c.reportalarms.patch uploaded by nahuelgreco (license 162)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@250392 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-03 17:37:30 +00:00
dvossel 3b12e80473 fixes adaptive jitterbuffer configuration
When configuring the adaptive jitterbuffer, the target_extra
value not only could not be set from the configuration, but was
not even being set to its proper default.  This value is required
in order for the adaptive jitterbuffer to work correctly.  To resolve
this a config option has been added to expose this value to the conf
files, and a default value is provided when no config specific value
is present.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@249893 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-02 19:08:38 +00:00
rmudgett 4ad439617d Add to chan_dahdi ISDN HOLD, Call deflection, and keypad facility support.
* Added handling of received HOLD/RETRIEVE messages and the optional ability
  to transfer a held call on disconnect similar to an analog phone.
* Added CallRerouting/CallDeflection support for Q.SIG, ETSI PTP, ETSI PTMP.
  Will reroute/deflect an outgoing call when receive the message.
  Can use the DAHDISendCallreroutingFacility to send the message for the
  supported switches.
* Added ability to send/receive keypad digits in the SETUP message.
  Send keypad digits in SETUP message: Dial(DAHDI/g1[/K<keypad_digits>][/extension])
  Access any received keypad digits in SETUP message by: ${CHANNEL(keypad_digits)}
* Added support for BRI PTMP NT mode.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@225692 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-23 16:57:33 +00:00
mnicholson c246fa7865 Add dynamic range compression support for analog channels.
(closes issue AST-29)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@224637 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-19 22:02:41 +00:00
dbailey 7f91f7becb chan_dahdi.conf.sample changes for DTMF CID detect
Explains new options for detecting DTMF CID on fxo lines

(issue #9096)
Reported by: fleed
Patches:
      chan_dahid_sample_config.patch uploaded by sum (license 766)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@224144 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-15 14:37:20 +00:00
rmudgett 9d636a0087 Made chan_dahdi able to ignore incoming calls that are not in a MSN list for ISDN PTMP CPE spans.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@215757 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-02 23:25:33 +00:00
rmudgett 10b88a1724 Minor punctuation change.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@214272 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-26 21:56:27 +00:00
jpeeler e814f9c94e Update some missing allowed options for overlapdial
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@207095 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-17 19:16:35 +00:00
jpeeler 366c1e8992 fix a typo in sample config file for option change
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@206603 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-14 20:38:56 +00:00
seanbright 0071975778 Support setting and receiving Reverse Charging Indication over ISDN PRI.
This is a continuation of revision 885 to LibPRI (Capture and expose the Reverse
Charging Indication IE on ISDN PRI) which added the ability to get/set Reverse
Charging Indication in LibPRI.  This patch adds the ability to specify RCI on
the outbound leg of a PRI call from within Asterisk, by prefixing the dialed
number with a capital 'C' like:

...,Dial(DAHDI/g1/C4445556666)

And to read it off an inbound channel:

exten => s,1,Set(RCI=${CHANNEL(reversecharge)})

Thanks again to rmudgett for the thorough review.

(closes issue #13760)
Reported by: mrgabu

Review: https://reviewboard.asterisk.org/r/303/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@204749 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-02 17:46:14 +00:00
jpeeler 19ad076d1d Remove some unnecessary code and update sample config file with respect to GR-303.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@203402 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-25 21:22:12 +00:00
moy ab1be795cd keep backwards compatible chan_dahdi with older openr2 versions by not using the new skip category feature unless supported
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@200799 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-16 02:24:30 +00:00
moy 1b34f1eff1 added openr2 to menuselect-deps.in, recent commit in menuselect made me realize this was never done but was working anyways
also added support for skip category request feature of openr2 and updated chan_dahdi.conf.sample


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@200477 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-14 06:13:48 +00:00
seanbright a22b4735e5 Remove a bunch of trailing whitespace in preparation for reformatting/cleanup.
Let's try that again, this time removing trailing whitespace and not leading
whitespace.  I can't believe no one noticed.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@197535 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-28 14:39:21 +00:00
seanbright 7f7cfd42e9 Remove a bunch of trailing whitespace in preparation for reformatting/cleanup.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@197528 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-28 14:32:03 +00:00
seanbright 867cbe2e77 Fix references to /etc/dahdi/system.conf and /etc/asterisk/chan_dahdi.conf in
the sample configuration files.

(closes issue #15207)
Reported by: seandarcy


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@197089 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-27 16:07:57 +00:00
jpeeler 24045a66ea Add service maintenance message support
This is the companion commit to libpri r732. Service messages are now supported
for switch types 4ess/5ess. A new option service_message_support has been added
to chan_dahdi.conf and is noted in the sample config file. The service message
support is turned off by default. The current implementation relies on AstDB
to keep track of channel state, which allows the statuses to be preserved
across Asterisk restarts. Below is a description of the storage format.

The state and reason for the service state are in the form <state>:<reason>,
where:
<state> ::= { 'O' }  // 'O' – Out Of Service
<reason> ::= { '0' | '1' | '2' | '3' }, where:
'0' – No reason (backwards compatibility)
'1' – NEAR END
'2' – FAR END
'3' – both NEAR and FAR END

The new CLI commands to handle channel service state are:
pri service disable channel <chan>
pri service enable channel <chan>

Many people contributed to the development of this functionality. Because I
entered at the very end I do not know the exact history. Special thanks to 
all who moved the bug forward one way or another:
cmaj, PCadach, markster, mattf, drmac, MikeJ, serge-v, murf, kanelbullar, Seb7,
tilghman, lmadsen, and especially dhubbard (he answered lots of my questions
and did a large portion of the work)

(closes issue #3450)
Reported by: cmaj



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@188342 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-14 15:54:16 +00:00
russell da10000f37 Add MFC/R2 support for chan_dahdi.
This commit introduces official support for R2 signaling in chan_dahdi.  The
modifications to chan_dahdi, and the supporting library, LibOpenR2, were both
written by Moises Silva.

Many users are using this code, or a variant of it, in Asterisk 1.2, 1.4 and 1.6
in Brazil, México and Argentina. An unknown number of users (but at least 1) 
are using it in each of the following countries: Colombia, Nepal, Thailand, 
Venezuela, Perú, and probably others.

To use this code, LibOpenR2 must be installed from http://www.libopenr2.org/.
Information about configuration can be found in configs/chan_dahdi.conf.sample.

The code committed is the most up to date version, which was being maintained
in svn/asterisk/team/moy/mfcr2/.

I would also like to include a Thank You to the many others that tested this
code beyond those listed in this commit message.  These are the names that I
could find in the mantis issue.

(closes issue #12509)
Reported by: moy
Patches:
      chan_zap-mfr2.patch uploaded by moy (license 222)
Tested by: moy, korihor, viniciusfontes, Skarmeth, loloski, asbestoshead, titogarrido, heliocoelhojr, konsultex, ncorrare, ecarruda, rtorresduque, PTorres, ychen

Review: http://reviewboard.digium.com/r/40/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@182355 f38db490-d61c-443f-a65b-d21fe96a405b
2009-03-16 20:35:58 +00:00
dhubbard 9e0c2cd342 Add dynamic fax buffer configuration option to chan_dahdi.conf
When the 'faxdetect' configuration option is used, one may also want to use
the 'faxbuffers' configuration option in chan_dahdi.conf.  This option will
dynamically use the configured 'faxbuffers' buffer policy on a channel for
the life of the call following the detection of fax tones.  The faxbuffers
buffer policy will be reverted during call teardown.

An example use of 'faxbuffers' is below.  This example would switch to using
6 buffers with a full buffer policy.

faxbuffers=>6,full


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@175411 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-13 00:13:38 +00:00
rmudgett 953f62cb29 channels/chan_dahdi.c
*  Added doxygen comments to the major dahdi structures.
*  Fixed PRI and SS7 using an incorrect string value if the extension
delimiter is not present in the Dial() function.
*  Fixed SS7 not checking if the dialed extension is at least as long
as the stripmsd option.
*  Fixed PRI not handling unknown TON/NPI prefix letters correctly.
*  Fixed some uninitialized string variables on FXS ports.

configs/chan_dahdi.conf.sample
*  Updated some documentation.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@172400 f38db490-d61c-443f-a65b-d21fe96a405b
2009-01-29 20:38:34 +00:00
dbailey 1205939d55 Add enhanced MWI generation to take advantage of new dahdi line reversal MWI ability.
(closes issue #14104)
Reported by: alecdavis
Patches:
      asttrunk-14104.diff2.txt uploaded by dbailey (license )
      chan_dahdi.rpas_and_fsk.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis, dbailey


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@169277 f38db490-d61c-443f-a65b-d21fe96a405b
2009-01-19 16:33:41 +00:00
dbailey a37d586b71 Add discriminator for when ring pulse alert signal is used to preface MWI spills
This prevents the situation when MWI messages are added to caller ID spills causing the channel to be hung up


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@169153 f38db490-d61c-443f-a65b-d21fe96a405b
2009-01-17 18:26:44 +00:00
tilghman a836c3d93b Add an option, waitfordialtone, for UK analog lines which do not end a call
until the originating line hangs up.
(closes issue #12382)
 Reported by: one47
 Patches: 
       zap-waitfordialtone-trunk.080901.patch uploaded by one47 (license 23)
       zap-waitfordialtone-bra-1.4.21.2.patch uploaded by fleed (license 463)
 Tested by: fleed


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159317 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25 22:45:59 +00:00
seanbright b8cd660cdd Fix this as well. Pointed out by tzafrir.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@155671 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-09 16:30:29 +00:00
seanbright b8fba0b833 Fix some spelling errors, and convert tabs to spaces.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@155637 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-09 03:34:28 +00:00
mattf f9bc0453df Merge in patch for #13454. Includes CallRereouting dialplan application, option for discard of remote hold messages, and using the alternate logical channel mapping in Q.SIG instead of the default physical channel mapping.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@150640 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-17 17:25:58 +00:00
russell d263308ab2 Merged revisions 135536 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r135536 | russell | 2008-08-04 15:15:03 -0500 (Mon, 04 Aug 2008) | 2 lines

fix a config sample typo

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135537 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-04 20:15:27 +00:00
russell 354a5c2325 Merged revisions 135473 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r135473 | russell | 2008-08-04 11:26:17 -0500 (Mon, 04 Aug 2008) | 2 lines

Add a minor clarification to the documentation of mohinterpret and mohsuggest

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135474 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-04 16:28:07 +00:00
tilghman 9573bd9402 Move implementation of an attended-transfer-complete sound from one channel
driver into a common place for multiple channel drivers.
(closes issue #13152)
 Reported by: caio1982
 Patches: 
       atxfer_complete_sound3.diff uploaded by caio1982 (license 22)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@134401 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-30 16:40:43 +00:00
kpfleming 255f52d647 remove remaining Zaptel references in various places
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@134086 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-28 16:42:00 +00:00
kpfleming 667b602f9a Merged revisions 132641 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132641 | kpfleming | 2008-07-22 14:49:11 -0500 (Tue, 22 Jul 2008) | 2 lines

use renamed libpri API call for controlling this feature (was improperly named before)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132643 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22 19:59:10 +00:00
kpfleming d0e4fac82b Merged revisions 130039 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130039 | kpfleming | 2008-07-11 10:41:56 -0500 (Fri, 11 Jul 2008) | 4 lines

add support for a configuration parameter for 'inband audio during RELEASE', which is currently mandatory in libpri-1.4.4 but will become configurable in libpri-1.4.5 later today

(related to issue #13042)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@130040 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-11 15:57:17 +00:00
mattf c102a4e3ba Add option to wait to be able to explicitly send ACM via the Proceeding() application in the dialplan. Also minor documentation update explaining how to setup multiple signalling links within a linkset
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@128122 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-05 03:26:42 +00:00
jpeeler ef05269034 rename zapata.conf.sample to chan_dahdi.conf.sample
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@126675 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-30 22:34:08 +00:00