Commit Graph

449 Commits

Author SHA1 Message Date
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 999b9e306b Customer reported unexpected behavior after incoming call with redirection number information element. The problem is caused by destruction of internal structures of libc and arrives not on every system but
on system of interest (Debian Lenny) confirmed with asterisk 1.4 and 1.6.
Code review shhown that i->owner->cid.cid_rdnis can be changed by ast_(strdup,free) and by standard C library functions at same time.                  
To resolve this and future problems generally change malloc -> ast_malloc, strdup -> as_strdup and free -> ast_free.
2010-08-19 08:44:21 +00:00
MelwareDE ae92425a79 Add compatibility with Asterisk 1.8, initial implementation. Canges still to be checked and validated by tests. Locations where implementation is not complete are labeled/to be labeled with doxygen todo tag. Processing of the redirected numbers to be fully reworked to determine all necessary info elements) 2010-08-13 20:41:23 +00:00
MelwareDE e3d9df8417 Added capicommand(keypad)
(untestet).
2010-07-23 08:08:40 +00:00
MelwareDE a4f7b18361 Added variable DISCONNECT_IND_REASON when DISCONNECT_IND is received. 2010-07-22 05:31:51 +00:00
MelwareDE c5f9794303 Typos. 2010-07-20 13:00:54 +00:00
MelwareDE 548a12ac9a Zero is legal value of 'econtransitconn' 2010-07-18 15:46:08 +00:00
MelwareDE 32619ad1aa Use of EC on transit connections 2010-07-17 23:17:49 +00:00
MelwareDE 0381db531a Allow to disable Diva streaming by configuration 2010-06-30 09:17:09 +00:00
MelwareDE 2aeb53c779 Clan up implementation of Diva streaming 2010-06-30 08:33:41 +00:00
MelwareDE dcfeb51b01 Cancel Diva stream if stream control command returned error 2010-06-29 10:21:31 +00:00
MelwareDE 7be7d7c6a9 Check if Diva streaming available. Implemented Diva streaming for outgoing calls 2010-06-28 21:37:56 +00:00
MelwareDE bdedbef17e Deactivate Diva streaming if fax 2010-06-25 14:58:04 +00:00
MelwareDE 7ebd347139 Deactivate Diva streaming if changed to fax 2010-06-25 13:49:15 +00:00
MelwareDE 5c9ae99157 Fixed crash if channel removed before DICONNECT_IND 2010-06-11 11:21:40 +00:00
MelwareDE 57b9aa8bec Syntax, clean up 2010-05-26 14:40:57 +00:00
MelwareDE 77265e267b Diva streaming, rx 2010-05-07 22:28:56 +00:00
MelwareDE 3256ef3db9 Added dialplan variables ISDNPI1 and ISDNPI2 2010-04-21 07:11:10 +00:00
MelwareDE 325380b5e9 Diva Streaming 2010-04-08 22:10:54 +00:00
MelwareDE 5f588ddd6c Fixed wrong control frame creation from last commit. 2010-03-09 12:21:52 +00:00
MelwareDE bf1eb50548 asterisk trunk API adaptions 2010-03-01 17:59:31 +00:00
MelwareDE b750187872 Rollback to 760, information already provided as CALLINGTON variable 2010-02-23 21:12:24 +00:00
MelwareDE a4b8a7db3a Incoming calls: set CALLERTON variable to provide access to callers type of number 2010-02-17 19:14:16 +00:00
MelwareDE b42ada0ec9 - added hint in changes about last fix 2010-02-10 08:47:06 +00:00
MelwareDE 739a8dab38 Don't use NULL for cid_name, set empty string instead. 2010-02-07 19:16:12 +00:00
MelwareDE 675bf55412 Corrected check for Info value on CONNECT_B3_CONF 2009-09-17 18:12:02 +00:00
MelwareDE 48406de14c 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-06 08:49:25 +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 73edae5356 Activate fine resolution for 'receivefax' command as default 2009-08-05 21:03:12 +00:00
MelwareDE 24d3a90c5a Fix possible buffer overflow on deflect command. 2009-07-30 18:13:10 +00:00
MelwareDE d315cb6105 Compatibility for new asterisk svn trunk. 2009-07-24 20:30:47 +00:00
MelwareDE cf77a3577a Use CALLEDTON variable to specity the 'ETS 300 102-1' called party number octet 3 for outgoing calls 2009-07-22 08:18:46 +00:00
MelwareDE 8b5d4bfc1b removed wrong whitespaces 2009-07-20 12:31:24 +00:00
MelwareDE 67380a24ae Add chat_command. Add r/l/o/a chat commands to remove users/listeners/operatirs/all users from conference 2009-07-16 14:16:13 +00:00
MelwareDE 11a6cb0e4a Prepare the possibility to use same context for processing of all types of calls, update coding stype, add notes 2009-05-19 07:56:38 +00:00
MelwareDE f13d666088 Use received from IP tone events for VC command 2009-05-18 22:37:21 +00:00
MelwareDE 39c9ac1475 Add chat_play 2009-05-14 21:57:35 +00:00
MelwareDE 01df5d5ef3 Use direct access to vocoder without RTP framing 2009-05-08 20:15:41 +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 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