Commit Graph

142 Commits

Author SHA1 Message Date
MelwareDE a054dff7ae Added patch to support Asterisk 13 from Michael Kuron. 2017-01-15 17:12:14 +00:00
MelwareDE ea23483041 CAPI specs (5th edition diagrams in section A.5) say that early B3 should
trigger on progress indication ("Progress tones available") and this is
how chan_capi actually worked before revision 101 (2005-09-04).

Q.931 (05.98) sections 5.1.2 and 5.4 also specify similar handling on lower
level (they also add "Call is not end-to-end ISDN; further call progress
information may be available in-band" as possible triggering indication).

This patch adds 't' option to dial string that allows switching chan_capi
to such mode of operation.
Without this option set chan_capi works as it did previously.

While we are at it also let's clean up handling of 'DISCONNECT' message
received via INFO_IND - 'case 2' had unnecessary dependency on 'doB3' variable
(only one value is possible by this point in code with i->outgoing being set),
'case 4' had unreachable branch and unnecessary predicates (which were always
true).
These changes should not cause any differences in operation.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
2016-07-11 14:32:43 +00:00
MelwareDE 955b02d460 Added changes from https://github.com/Ionic/chan_capi
Thanks to Mihai Moldovan
2015-02-28 16:35:31 +00:00
MelwareDE 37f2ff6580 This is not good to take a global lock and jump into the asterisk code. It looks like following situation appears: while held iflock and waiting for channels->lock in asterisk other thread which already held channels->lock jumps jumps some where iflock is required. 2012-04-11 09:45:19 +00:00
MelwareDE a195a39a55 Compaibility with asterisk 10.0 BETA1 2011-10-04 08:41:28 +00:00
MelwareDE 78fd7fb7e5 Only noise supression command should be sent to Data PLCI 2011-03-07 09:57:43 +00:00
MelwareDE 578b7005c7 Add module to write traces to Diva trace driver. Restore compilation with version 1.2 2011-02-04 17:18:05 +00:00
MelwareDE 58cf952292 Add sending of CALL PROCEEDING messages 2010-12-21 19:14:27 +00:00
MelwareDE 6decf34007 Group based conference, remove groups only if enture conference is in idle state, clean up 2010-12-14 16:28:18 +00:00
MelwareDE 47a34d4bb9 chat_connect connection was established only after next user joined the conference 2010-11-26 16:57:43 +00:00
MelwareDE a60f4cf67a Add chat_connect to interconnect two chat roouss using NULL PLCI 2010-11-24 17:08:11 +00:00
MelwareDE e0484c4db5 Reset EC if hold reported by netwwork 2010-11-10 14:07:51 +00:00
MelwareDE 894853c92d Extended CLI interface by 'capi exec' to apply capicommand commands using CLI. 2010-11-02 14:14:59 +00:00
MelwareDE 90557f5ced Moved CLI functionality to separate file. Clean up. 2010-10-29 18:54:15 +00:00
MelwareDE 17658c5edf Better call distribution algorithm 2010-10-26 22:22:25 +00:00
MelwareDE 8fb2018db7 Use information about hardware for distribution of media processing resources across CAPI controllers. Clean up. 2010-10-25 21:21:31 +00:00
MelwareDE e534562827 Use provided by Diva hardware status information for distribution of outgoing calls between CAPI controllers 2010-10-22 22:44:50 +00:00
MelwareDE 341d1a2d31 Clean up MWI code 2010-10-15 16:50:41 +00:00
MelwareDE 5076ada4c7 Add MWI Server 2010-10-13 23:17:33 +00:00
MelwareDE 14c3794527 Rollback to 160 Bytes. Better solution necessary. HD Voice still not released, better implementation follows 2010-10-11 07:37:02 +00:00
MelwareDE cba80e7f25 Allow "," as capicommand option separator (needed from asterisk 1.6) 2010-09-26 10:51:45 +00:00
MelwareDE 5a5bedc999 Allow to configure custom context,exten,priority to jump to
if a fax is detected.
2010-09-24 19:20:28 +00:00
MelwareDE 3e71cbcc24 Allow to select codecs for capicommand rresource. Clean up. 2010-09-20 11:05:58 +00:00
MelwareDE f9f8279d8c Use Diva resources for IP endpoints 2010-09-18 23:07:38 +00:00
MelwareDE 1d1fca7181 Add HD voice using G.722, Siren7, Siren14 and Slinear16. Add Slinear. 2010-09-16 13:13:03 +00:00
MelwareDE 26f850ef44 Clean up, made use of Diva QSIG abstraction configurable 2010-09-15 09:14:51 +00:00
MelwareDE 9d669bc5c3 Use Diva QSIG CAPI extensions for processing of Calling Party Name 2010-09-14 19:54:25 +00:00
MelwareDE e590876769 From CAPI thread locks are taken in the wrong order. The right ordr is ast_channel_lock followed by i->lock. But from CAPI thread
i->lock was taken firsst and ast_channel_lock after by call to one of asterisk functions (get variable, set variable).
As result CAPI thread was blocked in one deadlock condition and stopped the processing of CAPI messages.
The resulting behavior is reported by: http://www.ipphoneforum.eu/showthread.php?t=220051.
Timeouts for CONNECT_CONF and DISC with 'incompatible destination' for opposite side.

But this is still problem: this is delayed channel work which is done without ast_channel_lock held (or channel reference count increassed in
asterisk 1.8(). As result this iss still possible that channel is freed (by asterisk) before the delayed work is executed.
This should be addressed in the next time.
2010-09-12 08:52:18 +00:00
MelwareDE 6fda685af2 Cleanup, add support for Diva streaming to NULL PLCI 2010-08-23 12:14:03 +00:00
MelwareDE 32619ad1aa Use of EC on transit connections 2010-07-17 23:17:49 +00:00
MelwareDE 10df6415d3 removed unused defines 2010-07-16 06:38:01 +00:00
MelwareDE 77265e267b Diva streaming, rx 2010-05-07 22:28:56 +00:00
MelwareDE 325380b5e9 Diva Streaming 2010-04-08 22:10:54 +00:00
MelwareDE bf1eb50548 asterisk trunk API adaptions 2010-03-01 17:59:31 +00:00
MelwareDE c65f9424b7 Restore behavior of 'receivefax' to one provided by version 628 of chan_capi.c: Use fax T.30 extended for Diva hardware or if required by 'receivefax' option only. By default allow fine resolution for fax T.30 extended. 2009-08-05 22:25:53 +00:00
MelwareDE d315cb6105 Compatibility for new asterisk svn trunk. 2009-07-24 20:30:47 +00:00
MelwareDE b09d58c323 Use direct access to vocoder without RTP framing. Preserve implementation using RTP framing 2009-05-08 13:03:31 +00:00
MelwareDE ea4a234fec Add DTMF detection for NULL PLCI 2009-05-06 20:38:13 +00:00
MelwareDE 39f0b5ea1c Add echocancelpath configuration option 2009-04-15 13:39:57 +00:00
MelwareDE a0bf189dbc Add line PLCI of resource PLCI 2009-04-14 21:58:03 +00:00
MelwareDE 47d4849bab - minor fixes for verbose messages
- added missing brackets
- coding style
2009-04-10 07:23:20 +00:00
MelwareDE 979d0b7c64 Allow use of resource PLCI instead of NULL PLCI, initial test 2009-04-09 22:44:44 +00:00
MelwareDE 9ba91f794a Prepare use of resource PLCI instead of NULL PLCI 2009-04-09 21:12:07 +00:00
MelwareDE 7cdfac46a8 Add color fax for rx direction 2009-04-08 20:43:38 +00:00
MelwareDE 6cb7e6f083 typos and coding style changes 2009-02-14 20:56:14 +00:00
MelwareDE c2411cac82 Add media control commands. Add possibility to invoke media control commands by detected tone events in real time 2009-02-13 21:58:19 +00:00
MelwareDE 40015a959a Update copyright years. 2009-01-17 17:35:55 +00:00
MelwareDE a0976a0f3e - adapt to new Asterisk 1.6.1 changes. 2009-01-06 13:40:49 +00:00
MelwareDE 62dd326709 Support early line-interconnect (bridge) as soon as the b-channels are up. 2008-08-30 09:58:27 +00:00
MelwareDE d2b4bdd349 Added config option for subscriber number prefix. 2008-07-07 20:29:19 +00:00