Commit Graph

510 Commits

Author SHA1 Message Date
MelwareDE b09d58c323 Use direct access to vocoder without RTP framing. Preserve implementation using RTP framing 2009-05-08 13:03:31 +00:00
MelwareDE 170b200474 Do not activate DTMF detection for line side of resource PLCI 2009-05-07 09:41:43 +00:00
MelwareDE ea4a234fec Add DTMF detection for NULL PLCI 2009-05-06 20:38:13 +00:00
MelwareDE 671c814ffd removed wrong mutex unlock 2009-05-06 08:03:16 +00:00
MelwareDE ad4b6abc2f Add clear channel fax 2009-05-02 13:21:17 +00:00
MelwareDE 7fe17bac31 Add dynamic half duplex conference 2009-05-01 10:21:14 +00:00
MelwareDE aca519ad3b Don't wait for DISCONNECT_CONF on active hangup. This can cause
race condition and wrong pointer of i if DISCONNECT_IND comes first.
2009-04-27 20:02:46 +00:00
MelwareDE ebc988a4cc Resource PLCI, suppress shown while activating line plci error message 2009-04-15 21:39:00 +00:00
MelwareDE 39f0b5ea1c Add echocancelpath configuration option 2009-04-15 13:39:57 +00:00
MelwareDE 865a974063 Resource PLCI, add support for media commands, clean up 2009-04-15 12:28:40 +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 4c82a964e3 Prepare use of resource PLCI instead of NULL PLCI 2009-04-09 21:13:43 +00:00
MelwareDE 3437c6cbd2 Adjust NULL PLCI LI paths 2009-04-09 13:45:52 +00:00
MelwareDE 5904d40121 Add extension for FAX paper formats and resolutions 2009-04-09 11:02:48 +00:00
MelwareDE 71d2a85b7f sendfax add options, color fax, fax format autodetection, receivefas add support for Fine resolution 2009-04-08 22:44:14 +00:00
MelwareDE 7cdfac46a8 Add color fax for rx direction 2009-04-08 20:43:38 +00:00
MelwareDE 4c42d3fe26 Added variable CAPI_CIP 2009-03-25 12:38:46 +00:00
MelwareDE ffcf6757d6 Runtime optimization 2009-03-12 15:56:20 +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 eb7496a92b - added capicommand to set CAPI application id into asterisk dialplan variable. 2009-01-06 14:15:47 +00:00
MelwareDE a0976a0f3e - adapt to new Asterisk 1.6.1 changes. 2009-01-06 13:40:49 +00:00
MelwareDE 57621e34ab Don't try to send DID digits if there are none. 2008-12-11 09:43:02 +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 54ca760357 Allow capicommand(progress) "early-B3" for non-NT-mode incoming channels too. 2008-08-29 11:03:54 +00:00
MelwareDE c9291ed2ff Don't signal hangup too early in sendfax mode. 2008-08-12 08:30:27 +00:00
MelwareDE 08bea712d4 Hopefully fixed better counting of active b-channels. 2008-08-08 08:13:29 +00:00
MelwareDE d2b4bdd349 Added config option for subscriber number prefix. 2008-07-07 20:29:19 +00:00
MelwareDE b45e940762 Added 'faxdetecttime' config setting. 2008-06-29 11:33:46 +00:00
MelwareDE c3304ad188 Fixed check for asterisk 1.6 beta versions and adapted to
changes in asterisk trunk.
2008-04-05 20:44:02 +00:00
MelwareDE a835372f49 - fixed controller count when creating NULL-PLCI interface and
simplified check for unused controller.
2008-03-23 13:04:30 +00:00
MelwareDE e09aaa69d2 - be more verbose if fax extension is not found 2008-03-19 18:29:37 +00:00
MelwareDE cb12234f83 String conversion of debug/verbose messages to use external changes. 2008-02-24 12:57:52 +00:00
MelwareDE 523d570e2d Added additional debug output for capi header. 2008-02-20 11:02:09 +00:00
MelwareDE e47d614996 if immedіate=yes is set in DID mode, accept calls to empty DNID (needed for Austrian lines) 2008-02-07 09:02:22 +00:00
MelwareDE 25966a7046 updated copyright 2008-02-05 11:16:25 +00:00
MelwareDE 5ee344040d New Diva name branding. 2008-02-05 10:57:54 +00:00
MelwareDE 3cc0813e1e Fixed reading capi profile on big-endian. 2008-01-21 10:40:42 +00:00
MelwareDE bde5812980 - Adapt to new asterisk 1.6 API
- fix compilation for asterisk 1.2
2008-01-19 22:24:44 +00:00
MelwareDE 66a3ad0ede Fixed handling of sending_complete in pbx_capi_call() when overlap dialing
is activated.
2008-01-14 13:23:58 +00:00
MelwareDE 84550afacf QSIG:
- code cleanup
  - some minor bugfixes
  - bugfix in LEG_INFO2 code - caused a asterisk crash
  - adapted some macros from libpri, to make code more readable
  - started code for outbound CCNR requests
2007-12-06 19:07:28 +00:00
MelwareDE 1f87f1d416 sending-complete with ALERT_REQ doesn't work as expected, the other
party doesn't hear ringing tone.
2007-10-22 13:25:10 +00:00
MelwareDE 1bf477e35d If the device for devicestate is not known, 'invalid' is not
the correct answer.
2007-10-22 08:59:54 +00:00
MelwareDE bdbc804322 Renamed thread. 2007-10-21 16:00:18 +00:00
MelwareDE a1c472295f Fixed check for keypad digits when updating channel name. 2007-10-21 15:08:50 +00:00
MelwareDE fb7189f483 Make devicestates asterisk 1.2 compatible. 2007-10-21 11:19:33 +00:00
MelwareDE 4432223953 Removed wrong return: really go on with transfer if both
channels were on hold.
2007-10-20 18:49:13 +00:00
MelwareDE dbcb09c244 Fixed sending-complete value and added it for ALERT_REQ. 2007-10-20 18:36:01 +00:00
MelwareDE cbb8bc5011 On bridge-transfer, if both channels on hold, retrieve the second one. 2007-10-20 18:20:52 +00:00
MelwareDE 63526d731a Don't block early-B3 tone generation in NT-mode. 2007-10-20 16:02:34 +00:00
MelwareDE 4c1ebe93fa Added devicestate option. 2007-10-20 14:07:01 +00:00
MelwareDE 9eac4f7df4 Set sending-complete if overlap dialing is not used. 2007-10-20 13:30:35 +00:00
MelwareDE b0aa88eab0 type of connected number is actually unknown. 2007-10-20 12:47:28 +00:00
MelwareDE 090192346b Set the 'connected number' to correct type and
numbering plan.
2007-10-20 12:38:40 +00:00
MelwareDE cb35b4aad2 Hopefully fixed 'transfer on bridge', but it works with
asterisk 1.4 only and holdtype=hold is needed for that.
2007-10-20 12:05:26 +00:00
MelwareDE 442186050c PR#15: Send DATE/TIME to device on CONNECT when in NT-mode. 2007-10-20 08:22:53 +00:00
MelwareDE ce3e2d7017 Wait for ECT indication before returning to asterisk. 2007-10-01 16:10:37 +00:00
MelwareDE 0708150113 Fixed ECT usage on bridge. 2007-10-01 15:36:04 +00:00
MelwareDE f9799f6eb6 Added transfergroup config option. Prepared transfer on bridge feature. 2007-09-30 21:09:15 +00:00
MelwareDE 755ba51b12 Don't try to answer a disconnected call. 2007-09-26 20:03:14 +00:00
MelwareDE 0423263179 Fix NULL pointer in KEYPAD structure. 2007-09-20 13:15:27 +00:00
MelwareDE 4474fba4a3 Get correct b-channel info. 2007-09-03 19:41:40 +00:00
MelwareDE 0a8aa91742 Allow incoming KEYPAD digits on NT-mode port. 2007-09-02 15:41:06 +00:00
MelwareDE a54f9e462e Send some Q.931 notifications back to calling NT-mode channel. 2007-09-01 22:11:48 +00:00
MelwareDE a5b21aaf06 Progress in NT-mode now also send 'in-band info available'. 2007-09-01 20:55:52 +00:00
MelwareDE 411ad13361 Nicer solution for 64bit support. 2007-08-23 13:30:05 +00:00
MelwareDE d3e1e87183 Fix for 64bit applications. 2007-08-23 12:43:15 +00:00
MelwareDE aa385b1bca No double lock when retrieve is called from indications. 2007-08-16 09:30:43 +00:00
MelwareDE 3875d666f1 QSIG:
- code cleanup
 - major bugfix on called name and connected name (caused an crash)
2007-08-09 07:53:12 +00:00
MelwareDE 8ec9a8f46a Evaluate return value of send dtmf function. 2007-07-22 15:16:14 +00:00
MelwareDE e8059e664b More verbose debug for send_digit dtmf. 2007-07-21 14:34:18 +00:00
MelwareDE 6748df728f Send digits as DTMF, if PROGRESS already arrived. 2007-07-20 11:52:40 +00:00
MelwareDE e483f336c0 Added verbose output for send_digit function. 2007-07-16 19:18:56 +00:00
MelwareDE 82c0e32f8a QSIG:
- bug fixed CONNECTEDNAME & CALLEDNAME for non-QSIG
2007-07-10 17:58:58 +00:00
MelwareDE 03cb7d3048 QSIG:
- support for CALLEDNAME
 - support for CONNECTEDNAME
 - startet some code for sendtext, still disabled - i've to find an trick to implement this
2007-07-10 17:44:09 +00:00
MelwareDE 9ae64305da QSIG:
- more work on addressing data elements
 - completed CallTransfer handling with inbound bridging
 - first outbound Path Replacement support for inbound bridging
    Code isn't first class yet. There may be some errors still there.
2007-07-05 19:48:19 +00:00
MelwareDE 04e1dab784 QSIG:
- added code for QSIG number handling
 - cleanup code for CallTransfer - more some more cleanup has to follow
 - deactivated pathReplacementon on call transfer - there's a bug somewhere
2007-06-12 20:02:36 +00:00
MelwareDE bb3bbe31d3 QSIG:
- implemented support for decoding Call Transfer event - have clean up the code early
   Makes atm only debugging output of feature.
 - moved some code out of chan_capi.c
2007-06-07 19:24:32 +00:00
MelwareDE cae2b60cd4 - corrected an wrong condition in bridging code (should be a very rare case)
QSIG:
 - enabled automatic call transfer and path replacement on bridge attempt
 - nicer output of debugging informations
 - removed wrong data from SendingComplete CAPI struct (usage of sendf)
2007-06-04 18:37:12 +00:00
MelwareDE 7d31b498d0 - softdtmf=on lets asterisk generate DTMF tones
QSIG:
 - added some debugging output for APDU type
2007-05-31 20:28:03 +00:00
MelwareDE de60f52c59 QSIG:
- moved QSIG initialation out of chan_capi.c
2007-05-28 19:30:20 +00:00
MelwareDE 00f2d3e198 - Try early B3 when the switch signals an available channel. 2007-05-28 08:46:01 +00:00
MelwareDE e013fdd7f5 QSIG:
- some code cleanups
 - enhanced debugging output (Object Identifier Decoder)
 - prepared name handling for call transfer
   this code would also allow to send an CONNECTED NAME facility
2007-05-27 18:14:24 +00:00
MelwareDE 4d614104eb - set caller number plan on outgoing interface too. 2007-05-26 19:46:24 +00:00
MelwareDE e120f854f0 - don't send DISCONNECT_REQ without PLCI. 2007-05-14 10:08:15 +00:00
MelwareDE 4136d39be1 - changed chat parameters to specify more than one controller
- fixed FACILITY_RESP SELECTOR value.
2007-05-13 11:30:34 +00:00
MelwareDE 8c558fc202 - Use out-of-lock task to clean NULL-PLCI interface. 2007-05-11 06:32:50 +00:00
MelwareDE 5680639492 - fixed null-interface cleanup. 2007-05-08 16:30:03 +00:00
MelwareDE d87ba28a66 - NULL-PLCI needs base line-interconnect to have a virtual channel. 2007-05-05 11:33:41 +00:00
MelwareDE 5d8a77361f - show real thread id and use asterisk internal log command for capi thread 2007-05-03 09:52:07 +00:00
MelwareDE 67d2ac23ae - added log message when capi thread is started. 2007-05-03 09:28:32 +00:00
MelwareDE b222057cf2 - a little bit more verbose in chat. 2007-05-01 16:05:09 +00:00
MelwareDE d02004dabc - a little bit cleanup. The internal capi functions shall not use
the asterisk channel structure.
2007-05-01 14:26:39 +00:00
MelwareDE 4c9b279ed0 - more init of null-plci interface. 2007-04-30 15:19:28 +00:00
MelwareDE 1b4680f969 - added description and CLI command for 'chat'. 2007-04-30 14:02:22 +00:00
MelwareDE 1b50367e34 - more restructuring
- chat handle null-plci voice frames
2007-04-29 22:28:30 +00:00
MelwareDE 1b125d4d7e - correct interface cleanup for null-plci.- correct interface cleanup
for null-plci.- correct interface cleanup for null-plci.- correct
  interface cleanup for null-plci.- correct interface cleanup for
  null-plci.- correct interface cleanup for null-plci.- correct
  interface cleanup for null-plci.- correct interface cleanup for
  null-plci.- correct interface cleanup for null-plci.
2007-04-29 15:54:38 +00:00
MelwareDE 2a56d9bf59 - fix NULL-PLCI handling for chat. 2007-04-29 14:00:32 +00:00
MelwareDE 9e7210d1de - removed _capi_put_cmsg(), sending capi messages is now done
with capi_sendf() only.
2007-04-28 20:59:44 +00:00
MelwareDE 47b9b750f1 - added basic null-plci handling for chat.
- moved more CAPI requests for sendf use.
2007-04-28 16:48:00 +00:00
MelwareDE 0c80e2361f answer call before entering chat 2007-04-28 10:09:58 +00:00
MelwareDE 025d7c827c - don't show error if capi_read has no message.
- supplementary should not export internal structure
- added preliminary capicommand(chat)
2007-04-27 23:02:27 +00:00
MelwareDE 117ae4eb13 Finalized CCBS implementation. 2007-04-24 20:21:04 +00:00
MelwareDE 892b24eb2a In case of INFO_IND(DISC) in stay-online mode, wait a little bit
for further infos like CCBS retain info before sending HANGUP to
Asterisk.
2007-04-24 11:45:54 +00:00
MelwareDE 2b907882eb - fixed peerlink verbose message.
- added version info to CLI command 'capi info'.
2007-04-24 08:35:44 +00:00
MelwareDE 625b1b6205 On CCBS callback, create a new channel event on given
context/exten/priority.
2007-04-23 22:18:36 +00:00
MelwareDE e5b84d2052 Introduce new Dial option 's' for stay-online mode to postpone the
DISCONNECT_REQ.
capicommand(hangup) or a timeout will then really disconnect the line.
This is needed for CCBS activation.
2007-04-23 18:47:49 +00:00
MelwareDE 767dd90bed - hopefully fixed ECT channel hang
- added option 'x' to ect for real explicit call transfer
2007-04-22 11:24:25 +00:00
MelwareDE 14abf19bb2 Cleanup all CCBS/CCNR/peerlink IDs correctly. 2007-04-22 10:03:52 +00:00
MelwareDE 246e5b21cb Added command to deactivate CCBS. 2007-04-21 20:32:27 +00:00
MelwareDE 60f76b3c70 - ccbsnr struct is now allocated, no static array any more.
- added command to set the local party to 'busy' or 'free' status.
2007-04-21 07:19:44 +00:00
MelwareDE 131740cb89 Added more CCBS message handling (not working yet). 2007-04-20 16:42:20 +00:00
MelwareDE e4e1beff0b Wait for _CONF on HOLD/RETRIEVE too. 2007-04-20 08:22:04 +00:00
MelwareDE ab87b13548 Moved more functions to use capi_sendf and changed capi_sendf
to wait for the _CONF too.
2007-04-20 08:17:29 +00:00
MelwareDE 92f26bd38b Use common find_interface_by_plci() function, no duplicates. 2007-04-19 20:31:42 +00:00
MelwareDE e9d1bbe5c5 Introduce capi_sendf() for easy capi message creation. 2007-04-19 20:24:15 +00:00
MelwareDE 9d4968ab3a QSIG:
- moved more code from chan_capi.c to qsig_core
 - make Call Transfer on alerting state working (wrong number will be displayed on target number at the moment)
2007-04-19 18:18:42 +00:00
MelwareDE 04d4580bc4 Moved qsig cleanup code to qsig core file. 2007-04-19 06:55:44 +00:00
MelwareDE cc90f574e6 Make sure peer link is removed on hangup. 2007-04-19 06:51:54 +00:00
MelwareDE b53dc5ad06 Fixed compilation with current asterisk-trunk.
This should fix PR#29.
2007-04-18 21:04:49 +00:00
MelwareDE 3204ffe743 Moved qsig capicommand functions into qsig core file (iflock is not
needed here I think, because list is read only).
Added preliminary ccbs command.
2007-04-18 11:48:07 +00:00
MelwareDE a9c2413461 Added linkage id handling for CCBS/CCNR. 2007-04-17 21:04:42 +00:00
MelwareDE cd18383e0e Moved more utilities into own files. 2007-04-15 20:29:12 +00:00
MelwareDE 5d65ee3566 - first step for cleanup to move some functions into specific files. 2007-04-15 19:39:49 +00:00
MelwareDE 703088c8d6 - cleanup of FACILITY_IND handling
- prepared CCBS/CCNR call linkage id retrieval
2007-04-15 18:25:29 +00:00
MelwareDE aae199cb8c QSIG:
- more code cleanup
 - removed some major bugs
 - added support for Call Transfer feature [working, but not complete - feature will be changed later]
 - decoding of path replacement added [only decoding, no action yet]
 - enhanced QSIG dialstring
2007-04-15 17:41:36 +00:00
MelwareDE b13f9e3f29 Prepared version 1.0.1 2007-04-14 22:34:18 +00:00
MelwareDE d9d3efeee1 Unregister from CAPI after new register is done.
This hopefully fixes PR#28, which caused Fritz driver not to work.
2007-04-08 21:31:23 +00:00
MelwareDE b21b7aacf7 Moved call to ast_async_goto() out of interface lock. 2007-04-08 21:20:47 +00:00
MelwareDE 5685a6950e Added variable setting of REDIRECTIONNUMBER on outgoing call. 2007-04-06 23:00:41 +00:00
MelwareDE 84a99f0eda Listen to supplementary services too. 2007-04-05 22:27:27 +00:00
MelwareDE 4025bdf491 Added b-channel number to channel-name for better identification. 2007-04-05 20:39:41 +00:00
MelwareDE 26f621aa78 Added option 'k' (keep bad fax) to capicommand(receivefax) to
not delete the fax file if reception was not successful.
2007-04-05 19:33:01 +00:00
MelwareDE cbd0547249 - don't send more DATA_B3 messages than allowed by CAPI_MAX_B3_BLOCKS. 2007-03-30 16:21:58 +00:00
MelwareDE 0b76a06672 - Don't send SELECT_B_PROTOCOL_REQ more than once if progress is
requested.
2007-03-30 15:53:39 +00:00
MelwareDE f50bb3fd2d QSIG:
- Implementation of Simple Call Transfer
2007-03-28 19:24:55 +00:00
MelwareDE 6bba2bbfc6 QSIG:
- added support for rerouting informations on incoming calls
2007-03-25 17:03:19 +00:00
MelwareDE 3b730f1042 - added missing value of maxlogicalchannels on CAPI register. 2007-03-24 12:41:33 +00:00
MelwareDE 8c812cee0c - don't send faxdata if NCCI is zero. 2007-03-15 10:16:41 +00:00
MelwareDE 8c79f0d18a QSIG:
- many bugfixes on name presentation handling
 - added support for different qsig variants
 - added support for rerouting informations on incoming calls
 - code cleanup
2007-03-10 14:23:20 +00:00
MelwareDE 0208255abd - register at CAPI with needed amount of maxChannels instead of fixed 120. 2007-03-05 20:00:35 +00:00
MelwareDE d469965446 - fixed compilation. 2007-02-11 16:04:58 +00:00
MelwareDE 6c19246b9d - Added QSIG patch from Mario Goegel. 2007-02-11 16:01:32 +00:00
MelwareDE 92c3f4afc6 Bumped copyright. 2007-02-11 14:51:30 +00:00
MelwareDE 096bacf541 - fixed compiler warning with Asterisk 1.4.0
- added music-on-hold on HOLD request for Asterisk 1.4
2007-02-11 14:34:10 +00:00
MelwareDE d4d4ba020d - added missing capicommand description. 2007-02-11 12:37:53 +00:00
MelwareDE 8ab15c6d47 added lost '}' 2007-02-10 23:23:03 +00:00