Commit Graph

510 Commits

Author SHA1 Message Date
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
MelwareDE 24081da912 - Added Asterisk 1.4 jitterbuffer usage. 2007-02-10 23:18:57 +00:00
MelwareDE 0b90a71fbc - reset PLCI on DISCONNECT_IND to avoid race if asterisk is too slow
with hangup command.
2007-01-28 13:51:58 +00:00
MelwareDE 220db2555e - don't wait for DISCONNECT_B3_CONF in activehangup. 2007-01-23 19:27:01 +00:00
MelwareDE 81939e875d - fixed gain and echosquelch use according to transfercapability. 2007-01-23 19:11:21 +00:00
MelwareDE 6bd7dad3ec - remove possible race condition in with hangup and DISCONNECT_IND. 2007-01-23 14:39:33 +00:00
MelwareDE 7cda4d76bc - fixed callerid on incoming call with Asterisk 1.4 (PR#25) 2007-01-21 17:19:43 +00:00
MelwareDE 33b4cb4691 - fix compiler warning 2007-01-21 17:04:39 +00:00
MelwareDE 5443bea1d9 - Allow echo-cancel even with old capi configuration bit for
echo-cancel.
2007-01-21 14:14:16 +00:00
MelwareDE ec95d2e680 - Added 3PTY patch by Simon Peter. 2006-12-18 19:09:52 +00:00
MelwareDE 9838ab6143 - don't error on invalid controller in capi.conf, just ignore it. 2006-12-17 14:22:05 +00:00
MelwareDE 676d8a428e - Added progress when in faxmode to wakeup asterisk-1.2.
(needed for e.g. auto-hangup on timeout)
2006-12-10 16:26:37 +00:00
MelwareDE 997ea1885e - read the channel frames during wait for fax finish. 2006-12-02 12:35:30 +00:00
MelwareDE f33a143924 - Make capicommand(echocancel) setting non-permanent.
Setting is restored after hangup.
2006-11-25 16:13:40 +00:00
MelwareDE 4914a97d30 - Adapted to new ast_channel_alloc from asterisk trunk. 2006-11-19 14:45:32 +00:00
MelwareDE a7b1c76d41 Adapted to new Asterisk version 1.4
Bug PR#20
2006-11-11 20:07:19 +00:00
MelwareDE c84efdbce3 - check for fax connection when in receivefax mode before writing data
to file.
2006-10-10 11:57:37 +00:00
MelwareDE a1b595d7a7 - added preliminary handling of MANUFACTURER_IND. 2006-09-24 10:44:40 +00:00
MelwareDE 57a5315566 - Set FAXREASONTEXT to "OK" instead of empty string.
Thanks to Ole Pahl.
2006-09-24 10:01:21 +00:00
MelwareDE 0c3801d3d3 - Disconnect reason 0x3400 is treated as 'successful' in faxmode. 2006-09-24 09:50:47 +00:00
MelwareDE 505ac93981 - use CIP speech as default if transfercapability is unkown. 2006-08-31 13:21:17 +00:00
MelwareDE e7b931df5b - set correct channel/cdr status in fax mode too. 2006-08-12 15:40:32 +00:00
MelwareDE 8b5ff59671 - Use correct interface to wait on for ECT facility. 2006-08-12 14:30:04 +00:00
MelwareDE e16c543423 - don't wait for CONNECT_CONF in capi_call,
wait for PLCI in hangup() when needed.
2006-08-07 13:11:59 +00:00
MelwareDE 6e2e06ed21 - don't use ast_set_callerid to avoid wrong manager-event. 2006-08-06 18:44:56 +00:00
MelwareDE 3ee93f995d - enhanced application capicommand description, thanks to Thomas Niesel. 2006-07-10 17:40:03 +00:00
MelwareDE 6e8a72ebe5 - use cond variable for wait on b3 up. 2006-07-09 14:18:53 +00:00
MelwareDE 5db1d9d1fe - fixed deadlock in ECT
- use cond variable for waiting on B3/Fax actions.
2006-07-09 13:30:47 +00:00
MelwareDE 06135eb7dc Added AMA flags 2006-07-08 22:13:47 +00:00
MelwareDE ca207a4ded - wait for answered line on fax action 2006-07-08 20:22:15 +00:00
MelwareDE d8c24f23e9 - use ast_set_callerid() 2006-07-08 19:28:10 +00:00
MelwareDE e9b36aa1af - handle errors in CONNECT_CONF correctly 2006-07-08 18:40:20 +00:00
MelwareDE c7ce547983 - make pickupexten work and added pickupgroup to capi.conf 2006-07-08 16:29:27 +00:00
MelwareDE f0c812644d - better handling of state pbx-active. 2006-07-05 12:23:58 +00:00
MelwareDE 5212533427 - set state to RINGING when we got ALERTING 2006-06-27 20:29:15 +00:00
MelwareDE 8a0d8977be - Added sendfax feature and enhanced result/status variables after
FAX actions.
2006-06-27 14:54:03 +00:00
MelwareDE 25dceb2571 - fixed null pointer: channel cleanup must be done at end of hangup 2006-06-27 08:20:19 +00:00
MelwareDE 2f3a449f5b - changed locking in hangup which might caused race-condition 2006-06-26 20:45:25 +00:00
MelwareDE 8365b305c5 - added hold/retrieve notification info 2006-06-26 12:11:31 +00:00
MelwareDE 1d00abbdfc - use flag for dtmf-detect activation/deactivation 2006-06-24 16:20:27 +00:00
MelwareDE 218782c4f8 - don't change softdtmf settings, leave them like the user
has configured.
2006-06-24 15:17:01 +00:00
MelwareDE 96364f485d - cleanup controller number handling 2006-06-24 14:49:13 +00:00
MelwareDE 32e06de3b8 Dropped compatibility stuff for older Asterisk versions.
You need at least Asterisk 1.2.x now.
2006-06-24 11:53:47 +00:00
MelwareDE 658b23282d - better values for RTP B2 configuration
- self fix for wrong asterisk rtp timestamp
2006-06-23 18:07:31 +00:00
MelwareDE 28b28e7eeb - better voice frame handling 2006-06-22 18:17:37 +00:00
MelwareDE eed0604798 - increase verbose level value for info messages 2006-06-20 16:03:36 +00:00
MelwareDE c6d777d26a - allow one controller number per specified interface only. 2006-06-18 20:57:56 +00:00
MelwareDE 881ff2c02b - add verbose message when the cond-event was triggered. 2006-06-18 20:42:06 +00:00
MelwareDE 5ef8dd4426 - move ast_set_state outside of i->lock. 2006-06-18 20:29:33 +00:00
MelwareDE 1d6156f52f - don't clean up interface on call-error, the PBX will trigger that. 2006-06-18 20:21:58 +00:00
MelwareDE 3a6f500ccc - set vad variable to NULL after freeing memory of it. 2006-06-18 20:06:54 +00:00
MelwareDE 66529db156 - show state when hanging up. 2006-06-18 16:48:17 +00:00
MelwareDE ddee6aff05 - better output for ast_frame_dump() 2006-06-18 16:45:37 +00:00
MelwareDE dbde64eb4d - channel name with b-channel number in verbose messages 2006-06-18 16:32:32 +00:00
MelwareDE 091f8c63df - really signal hangup when DISCONNECT IE came after successful call. 2006-06-18 13:04:30 +00:00
MelwareDE c861a2676b - removed double lock. 2006-06-13 06:18:47 +00:00
MelwareDE 763dc2ec31 - fixed receivefax, removed lock out of select_b3 2006-06-13 04:52:50 +00:00
MelwareDE 705e0e5d84 - fixed rtp with smoother 2006-06-12 10:22:31 +00:00
MelwareDE d3b162066a - use interface parameter for capi_handle_dtmf_fax()
this should also fix PR#14
2006-06-11 13:15:18 +00:00
MelwareDE b7f8b51ae0 - don't wait in answer and remove the i->lock 2006-06-10 14:16:36 +00:00
MelwareDE 21cd8a4c91 - fixed data buf pipe transfer 2006-06-10 13:54:13 +00:00
MelwareDE 87e61975cc - use local pipe instead of alert-pipe queue. 2006-06-10 11:58:50 +00:00
MelwareDE 57e9fb7e44 - separate name prefixes for capi/pbx functions 2006-06-09 21:48:24 +00:00
MelwareDE fa80b541a7 - rename of some functions 2006-06-09 21:25:49 +00:00
MelwareDE 465651bf11 - avoid deadlock in queue hangup 2006-06-09 05:15:32 +00:00
MelwareDE 939cf7615b - show error text message when capi message couldn't be sent. 2006-05-31 15:31:53 +00:00
MelwareDE dcfcefc4ab - don't produce warning when ALERT_CONF has info=0x0003 (already sent by
another application)
2006-05-30 09:48:16 +00:00
MelwareDE 63ea97c952 - fixed format adaption in rtp mode 2006-05-28 16:10:28 +00:00
MelwareDE 5a720165ff - create own function for post work in capi thread 2006-05-27 15:01:17 +00:00
MelwareDE 172eb91fb0 - check for smoother after rtp call 2006-05-27 13:22:09 +00:00
MelwareDE c56504fd7b - better use of fax state variables and added configuration for
faxdetection. Attention: default is now 'off'.
2006-05-27 12:49:57 +00:00
MelwareDE 25852cfcf5 - introduced condition variable to synchonize state of waiting
for a _CONF.
2006-05-22 19:13:19 +00:00
MelwareDE 407e678cb4 - make sure digital data connections are handled correctly without RTP 2006-05-22 11:04:33 +00:00
MelwareDE f4fe1dc73f - destroy interface lock on unload 2006-05-21 14:42:17 +00:00
MelwareDE c3cc336d96 - added verbose output when echo-cancel status is not changed 2006-05-21 13:13:16 +00:00
MelwareDE f1318438d3 - added capicommand(echocancel|on/off) to dynamically en/disable CAPI
echo-chancel.
2006-05-21 12:10:53 +00:00
MelwareDE 0447547c55 - use better RTP jitterbuffer settings
- improved answer/hangup capi race conditions
2006-05-20 22:01:26 +00:00
MelwareDE 254f20521e - fixed echo-cancel profile check, thanks to HPS for pointing out. 2006-05-19 09:51:45 +00:00
MelwareDE badd38d9a2 - use 'trans' instead of 'voice' for bproto desc.
- don't use RTP in digital mode
2006-05-18 14:36:09 +00:00
MelwareDE 3d4e19f50c - just use char instead of unsigned char for verbose line buffer 2006-05-12 16:48:09 +00:00
MelwareDE 4f14c385ae - added first step to compat with newer versions of asterisk 2006-05-12 16:43:30 +00:00
MelwareDE d1f147ffe8 - don't use smoother in RTP mode and make sure not to
send too may DATA_B3_REQs
2006-05-08 16:48:57 +00:00
MelwareDE e9bc5965a4 - don't setup echo-cancel in digital connections 2006-05-08 15:51:08 +00:00
MelwareDE 286435c900 - fixed wrong offset of info word in facility_conf for LI, thanks to HPS 2006-05-08 15:30:05 +00:00
MelwareDE dafad9727e - don't send voice to pbx when we are about to disconnect 2006-05-08 15:10:22 +00:00
MelwareDE 6780755b7c - moved deflect function from INFO_REQ to FACILITY_REQ 2006-05-07 20:06:01 +00:00
MelwareDE e2da85d7fe Don't drop the connection if voice frames are incompatible,
just output the error and drop the frame.
2006-04-26 12:53:09 +00:00
MelwareDE 316eebf9ee - if there is no data in a voice frame, it is not really an error. 2006-04-04 12:43:31 +00:00
MelwareDE 059bdfe0df - added more info shown with CLI command 'capi show channels' 2006-04-03 20:44:08 +00:00
MelwareDE 1742806313 - removed pipe code, use queue_frame instead 2006-04-03 20:02:01 +00:00
MelwareDE 192b57024b - added test to not use pipes for frame delivery. 2006-04-01 17:00:57 +00:00
MelwareDE 944a643786 - better default setting for echo-cancel
- added non-linear-processing option for echo-cancel
2006-04-01 16:29:50 +00:00
MelwareDE 1aecef90dc - added new cli 'capi show channels' with a little bit channel info 2006-04-01 15:39:31 +00:00
MelwareDE bacf848e77 - cleaning up bridge code, moving to 'transparent mode' is not
necessary when bridging in RTP, we just drop the incoming frames then.
2006-04-01 13:31:56 +00:00
MelwareDE 9671c6df5c - removed custom function VANITYNUMBER, this does not belong
into a channel driver.
2006-04-01 11:37:02 +00:00
MelwareDE a662db2864 - fixed call-deflect if the number is too long.
PR#5
2006-04-01 11:20:55 +00:00
MelwareDE 8080bf65ac - removed getting ASTERISKVERSION (we don't need that).
- reverted change for set NCCI in CONNECT_B3_ACTIVE_IND, because
  CONNECT_B3_IND assigned the NCCI.
- reverted change for setting 'ton' in capi_new(), because I don't see
  the fix here and it breaks the feature anyway.
2006-03-07 21:17:58 +00:00
MelwareDE c522111bf3 removed CC_NEW_CODEC_FORMATS, because it is not used in any
asterisk version and breaks compilation anyway.
2006-03-07 21:02:59 +00:00
MelwareDE 68686fc241 Allow CAPI controller to enable/disable B3 by sending DISCONNECT_B3_IND followed by CONNECT_B3_ACTIVE_IND. This happens if the CAPI controller is running NT-mode and the TE-side puts the call on hold/retrive. 2006-03-06 12:38:59 +00:00
MelwareDE 27b01dea2d Avoid double prefixing of calling party number, by setting 'cid_ton' equal to zero. 2006-03-06 12:29:22 +00:00
MelwareDE 74d8763401 - removed compiler warning 2006-02-18 14:30:00 +00:00
MelwareDE 3d316a8ab5 - make the voice buffer a little bit bigger and use the definitions. 2006-02-13 15:18:56 +00:00
MelwareDE 6a50aeb45e - cosmetic/indent changes (tabs are tabs, no spaces!) 2006-02-13 15:11:56 +00:00
MelwareDE 57207fb2bd Remove unused 'waitcount'. 2006-02-12 21:28:54 +00:00
MelwareDE 7f8662840f Update chan_capi according to issue 0004825. 2006-02-12 21:27:20 +00:00
MelwareDE db0382894a Set hangupcause in case there is no 'cause' information element. 2006-02-12 21:04:54 +00:00
MelwareDE 602aa043aa Couple strdup() with free(). 2006-02-12 20:58:02 +00:00
MelwareDE 07ef86e3f4 Updated capi20_register() for ISDN4BSD. Defined unused CAPI application ID to 0xffffffff. 2006-02-06 20:00:56 +00:00
MelwareDE f16608c7eb - a little bit more restructuring of b-state handling
- fixed RTP activation
2006-02-06 19:21:38 +00:00
MelwareDE 1a9d34ed47 - make it compilable with latest asterisk HEAD changes. 2006-02-04 12:48:10 +00:00
MelwareDE ce15487de7 - don't do echo-squelch or gain if transfercapability is non-voice 2006-01-31 20:34:28 +00:00
MelwareDE c828da398a - added better compatibility for OpenPBX code creation.
- added first code for RTP over CAPI for Eicon DIVA Server cards.
2006-01-30 23:40:28 +00:00
MelwareDE b18c166ecf - fix deadlock when changing to fax mode 2006-01-29 12:01:08 +00:00
MelwareDE 7cf9ec0839 - don't start early B3 on PROCEEDING
- but do PROGRESS on ALERTING, if not done before
2006-01-28 20:22:52 +00:00
MelwareDE b307540b1d Sync with V0_6 2006-01-28 19:42:44 +00:00
MelwareDE 2c08548968 - removed compiler warnings with new trunk version 2006-01-23 21:00:21 +00:00
MelwareDE bdb37f1df9 - fix ECT (use implicit ECT) 2006-01-16 21:33:42 +00:00
MelwareDE 00b57d574b - fixed setting language for each interface 2006-01-14 13:54:47 +00:00
MelwareDE 3f5395c6d9 Fix problems with zero message numbers, and make sure that the interface message number gets set to zero when it is not in use. 2006-01-13 02:38:26 +00:00
MelwareDE 2ecb9846cb Fix possible memory leak. 2006-01-13 02:17:32 +00:00
MelwareDE 8cc530b42c Fix possible deadlock. 2006-01-13 02:03:32 +00:00
MelwareDE 63ff8d3039 Make sure that the returned interface is locked after calls to find_interface_xxx(). 2006-01-13 01:58:11 +00:00
MelwareDE 7d60ab7fa0 - fix wait for b-channel to go down on ECT. 2006-01-09 21:30:40 +00:00
MelwareDE 30081ce75d - fixed buffer overflow in overlap dial 2006-01-06 14:38:20 +00:00
MelwareDE 3596c01726 Initialize some non-initialized memory. 2006-01-04 15:10:13 +00:00
MelwareDE 1fd9eeb255 Remove double zeroing of _cmsg. 2006-01-04 14:46:20 +00:00
MelwareDE b2e9940ddd Remove superfluent lock, lockB3q. 2006-01-04 14:44:16 +00:00
MelwareDE bba36b630c - remove some compiler warnings 2006-01-03 20:03:00 +00:00
MelwareDE 1e1d630071 Speed up chan_capi by trying to read data before waiting for data. Remove extra zeroing of memory if compiled with I4B. Fix two possible accesses to uninitialized memory. 2005-12-31 03:55:54 +00:00
MelwareDE 30bc33755b Cleaned up the use of __packed__. Added a description of the locking order used in chan_capi. Made sure that all parameters used get passed to the 'return_on_no_interface' macro. Added a 'cc_mutex_assert' macro. 2005-12-31 03:15:35 +00:00
MelwareDE 51572a7626 - set some info variables when receiving fax 2005-12-29 16:31:22 +00:00
MelwareDE 62fe88239b - added language support
- prepared devicestate(hint) support
2005-12-28 14:22:54 +00:00
MelwareDE fc6ebf863b - don't change early-B3 setting on conf error for CONNECT_B3 2005-12-28 12:28:00 +00:00
MelwareDE 85a8f1a68d - don't send audio to local exchange when in TE mode. 2005-12-20 20:46:51 +00:00
MelwareDE 6c431378fc - fix missing CONF messages when no interface is found 2005-12-16 11:21:57 +00:00
MelwareDE 160587cf06 - small transfercap and overlapdial fix 2005-12-15 19:49:38 +00:00
MelwareDE cdb1fc1592 - don't forward DTMF if in NT-mode and the line is not connected yet. 2005-12-13 14:56:51 +00:00
MelwareDE 76c580033a - fixed line interconnect 2005-12-11 10:48:08 +00:00
MelwareDE a20a41e87d - b-channel handling better
- NT mode progress
2005-12-08 22:06:16 +00:00
MelwareDE 21c41bd6b2 - removed deadlock in faxreceive. 2005-12-08 13:29:43 +00:00
MelwareDE e6d47e7ecf - init ocid to NULL and it may be set to empty string. 2005-12-07 06:00:25 +00:00
MelwareDE 6085b31e81 - ocid is now empty string only. 2005-12-05 19:48:17 +00:00
MelwareDE 51b5310f70 - initialize variable ocid 2005-12-05 19:00:21 +00:00
MelwareDE 1d54326696 - correct use of timeoutms in native bridge 2005-11-27 18:16:19 +00:00
MelwareDE 21cce7a3e8 - use more common defines for mutex_lock/unlock and _log() 2005-11-27 14:47:54 +00:00
MelwareDE 2e62ad0306 - clean up and OpenPBX portability. 2005-11-20 16:15:33 +00:00
MelwareDE 43b15cd14a - adapted to latest asterisk bridge function prototype. 2005-11-15 14:10:51 +00:00
MelwareDE 04027b99e7 - fixed setting of redirecting number rdnis instead of cid. 2005-11-09 12:33:11 +00:00
MelwareDE a46a970640 - allow setting a callerid in the dial() command without changing
the original channel callerid.
2005-10-09 16:45:03 +00:00
MelwareDE a9192a9555 - added config 'defaultcid' to set a default caller id which will be
used if dial option 'd' is specified.
2005-10-09 15:49:32 +00:00
MelwareDE 65100a1838 - removed interface lock from capi_read()
- moved ast_softhangup() out of interface lock
2005-10-09 14:40:27 +00:00
MelwareDE 69f777c23b - use correct mutex_init call for interface lock 2005-10-09 14:11:48 +00:00
MelwareDE fce0c3e8e9 - activated nt-mode progress 2005-10-01 18:34:04 +00:00
MelwareDE e6911c60e8 - when 'o' option is used for overlap dialing, don't send any digits
with the CONNECT_REQ. This gives better progress together with 'b'.
2005-10-01 17:00:56 +00:00
MelwareDE b65c13d415 - create a pseudo channel for each interface for incoming signalling
without B-channel.
2005-10-01 15:17:10 +00:00
MelwareDE 82956c6319 - added channel locks 2005-10-01 13:21:28 +00:00
MelwareDE f13580a630 - fixed capi init order (thanks to Hans Petter Selasky) 2005-10-01 11:31:05 +00:00
MelwareDE e9a77b066a - fixed did handling 2005-10-01 09:52:46 +00:00
MelwareDE e62f05eb33 - set RDNIS if redirecting number was received. 2005-10-01 08:54:09 +00:00
MelwareDE 47df07e707 - simplified call to ast_exists_extension() 2005-09-27 17:52:13 +00:00
MelwareDE ff47191932 - when check for valid extension, check the callerid as well 2005-09-27 17:42:28 +00:00
MelwareDE 73f7eb185d - changed call-waiting and deflect handling in CONNECT_IND 2005-09-27 09:33:21 +00:00
MelwareDE acdefd3374 - use 'immediate' config in MSN mode, if pbx shall be started on
CONNECT_IND and shall not wait until SETUP/SENDING-COMPLETE was received.
  Since info like REDIRECTINGNUMBER will come after CONNECT_IND, this may
  be lost then. But for some drivers/telcos/pbx, this setting is needed.
2005-09-26 11:35:13 +00:00
MelwareDE b805e5f809 Fix start of line interconnect in old mode. 2005-09-25 15:39:13 +00:00
MelwareDE c2ef8139d9 Start early-b3 on PROCEEDING too. 2005-09-25 13:11:00 +00:00
MelwareDE 9ac42119a7 - don't send audio data, if in fax receive mode
- disconnect on finished fax immediately
2005-09-24 19:42:07 +00:00
MelwareDE 1f8587cb76 Don't run through gain list, if gain is 1.0.
Thanks to Sergio Chersovani.
2005-09-24 18:19:14 +00:00
MelwareDE 9f6b0b9bda Use correct A-law idle value. 2005-09-24 18:10:46 +00:00
MelwareDE 0568f2278c Fixed facility_conf parameters check. 2005-09-17 18:58:34 +00:00
MelwareDE d73253a545 Added custom function VANITYNUMBER to convert letters into digits. 2005-09-17 10:49:34 +00:00
MelwareDE a69b6caae1 Don't retrieve on ringing-indication for now. 2005-09-15 19:19:16 +00:00
MelwareDE 76596fb310 - better check with find_interface() for BSD
- first implementation for line interconnect
2005-09-15 19:11:45 +00:00
MelwareDE 37d7576120 - added more BSD compat
- optimized capi message handling
2005-09-11 13:35:19 +00:00
MelwareDE e3cb5c02cf Added BSD compatibility, thanks to Hans Petter Selasky. 2005-09-11 08:39:29 +00:00
MelwareDE ccdaab9147 Set STATE_RING on PBX start. 2005-09-10 13:36:55 +00:00
MelwareDE 874567ff21 - Pass each PROGRESS-type to Asterisk, but only once.
- enable early-b3 on each PROGRESS-Indicator type.
2005-09-04 13:51:50 +00:00
MelwareDE 92ae437462 Do really hangup on remote hangup with outgoing call and earlyb3. 2005-09-03 16:52:48 +00:00
MelwareDE ccf256ebac ast_hangup() on state 'INCALL' if the pbx was not started yet. 2005-08-31 07:32:09 +00:00
MelwareDE 8b97a66223 - use 'sending complete' for SETUP on incoming call 2005-08-31 07:22:32 +00:00
MelwareDE e237467eb2 Added verbose text for capi info/reason error messages. 2005-08-30 11:21:58 +00:00
MelwareDE 5f2c9b9381 - fixed echo-cancel setup structure
- use correct facility-selector for echo-cancel
- use capi.conf option 'echocancelold' for old facility-selector (6)
2005-08-29 19:06:19 +00:00
MelwareDE 637e509c96 Check for resent SETUP message. 2005-08-29 15:21:12 +00:00
MelwareDE 2356a1f435 remove possible overflow in capi_number() 2005-08-29 14:58:36 +00:00
MelwareDE 398aa1b09f - added variable REDIRECTREASON
- use stack memory for capi_number()
- use struct for capicommand() commands
- capicommand(RETRIEVE) can now be called from other channels
- start PBX on SETUP only.
2005-08-28 14:14:23 +00:00
MelwareDE 7ee382db9e Set temporary holdtype via capicommand(). 2005-08-25 19:30:31 +00:00
MelwareDE d5490d3ac5 - changed isdnmode configuration from ptp/ptmp to msn/did
- added ntmode configuration
2005-08-25 19:00:55 +00:00
MelwareDE e7cc5d7be4 Switched to 'holdtype' configuration. 2005-08-25 18:16:44 +00:00
MelwareDE aa6849f48f When enabling/disabling echo-squelch via capicommand(), this should be
a temporary setting only.
2005-08-25 17:45:39 +00:00
MelwareDE 861ddcf723 Use variable CONNECTEDNUMBER on Answer(). 2005-08-25 12:54:04 +00:00
MelwareDE 44934a4f4f Set variable REDIRECTINGNUMBER on incomming call if it was diverted. 2005-08-25 11:22:34 +00:00
MelwareDE aef27548d5 ECT should work now (not yet really tested). 2005-08-21 15:35:44 +00:00
MelwareDE ab3ff868aa - moved ECT to capicommand() (not working yet)
- added HOLD/RETRIEVE for Asterisk indications.
2005-08-21 10:28:43 +00:00
MelwareDE 0e85ce353d - simplyfied read of supplementary services 2005-08-19 17:18:10 +00:00
MelwareDE ec07811d72 - fixed unload
- removed obsolete thread mutex
2005-08-19 16:40:23 +00:00
MelwareDE b5f91be828 Added info elements 'notification indication' and 'notify'. 2005-08-19 16:16:19 +00:00
MelwareDE dafa5e1fe0 - verbose/debug messages with better prefix usage.
- added asterisk HOLD definition
2005-08-19 15:55:56 +00:00
MelwareDE 703b8662d1 Fixed dnid/exten/immediate handling on PtP. 2005-08-18 07:25:17 +00:00
MelwareDE effa5cf682 Fixed compilation with Asterisk 1.0.X 2005-08-17 12:13:19 +00:00
MelwareDE df6009a9af Moved 'hold' and 'retrieve' to capicommand(). 2005-08-16 18:25:03 +00:00
MelwareDE 204229563b First changes for RTP bridging support. 2005-08-16 10:11:43 +00:00
MelwareDE d057edc4e7 MCID is now done via capicommand() 2005-08-14 14:57:04 +00:00