Commit Graph

352 Commits

Author SHA1 Message Date
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
MelwareDE 202a55682e Enable/Disable echosquelch via capicommand(). 2005-08-14 13:59:16 +00:00
MelwareDE 743e63fbf7 Receive a fax via CAPI is now done with capicommand(receivefax|...) 2005-08-14 12:32:18 +00:00
MelwareDE 8f8b5bd30c - Fixed call-deflection and moved this feature from separate application
to capicommand().
2005-08-13 18:21:20 +00:00
MelwareDE 5ea11118df - don't send DTMF 'X' and 'Y' to Asterisk.
- don't error, just be debug-verbose on no owner in pipe_frame.
2005-08-13 12:13:02 +00:00
MelwareDE 7b9ac6df71 Show confirmation error on real error only. 2005-08-13 11:15:51 +00:00
MelwareDE d90cc3e3a0 Added config option 'immediate' to start pbx if no dnid has been
received yet.
2005-08-13 09:31:07 +00:00
MelwareDE db616061c9 - Don't use kernel headers, remove linux/capi.h.
Patch 1255948
- Read capi word using own function (endian-fixed).
2005-08-12 18:31:50 +00:00
MelwareDE 6ae79a6c7a This patch adds support for two more info notification
types (call state and status) and corrects a spelling
 error in "CHANNEL IDENTIFICATION."
Patch 1255942
2005-08-12 18:08:56 +00:00
MelwareDE c04b3f2af5 Added early check for busy cause.
Patch 1255927
2005-08-12 17:56:06 +00:00
MelwareDE ed27fc4c76 Use cause definitions instead of values.
Patch 1255922
2005-08-12 17:12:11 +00:00
MelwareDE fa5d4ed8f2 - Fixed ulaw conversion.
- Update channel name on did changes.
2005-08-10 19:19:16 +00:00
MelwareDE 088f3a9c8e Support 'type of number' (numbering-plan). 2005-08-07 19:24:06 +00:00
MelwareDE 458e209ac7 Improved state disconnect a little bit. 2005-08-07 13:33:48 +00:00
MelwareDE 450dd31d58 Added 'relaxdtmf'. 2005-08-07 12:21:36 +00:00
MelwareDE 6e4940b41a U-Law setting is now done in capi.conf instead of Makefile define. 2005-08-07 11:40:07 +00:00
MelwareDE 35dccef953 Make the notice about not found interface in capi_request a verbose message
for level 2.
2005-08-07 10:33:46 +00:00
MelwareDE 738d1fa5f1 Don't reject/busy on call-waiting without interface, just ignore. 2005-08-01 17:20:09 +00:00
MelwareDE c587025a3c Allow using interface name in Dial(). 2005-07-27 18:17:41 +00:00
MelwareDE 13a3bfba4b - first base for new CapiCommand() application.
- handle incoming call correctly if immediate hangup is requested.
2005-07-27 17:20:09 +00:00
MelwareDE aaec11fea0 On hangup, use hangupcause from other channel or from var PRI_CAUSE. 2005-07-23 16:07:03 +00:00
MelwareDE e120941c33 Improved DID handling on PtP connections. 2005-07-22 10:40:51 +00:00
MelwareDE d9c4851405 Fix possible null pointer of callerid in capi_call(). 2005-07-21 11:34:05 +00:00
MelwareDE 28a4c3445d If ALERT is not possible, Asterisk must do it. 2005-07-18 20:03:25 +00:00
MelwareDE 8020b0fc3f Fixed seg fault on hangup when in answering. 2005-07-18 19:41:31 +00:00
MelwareDE 8dd0c5d34c Set calling presentation of channel for incoming calls. 2005-07-18 18:50:43 +00:00
MelwareDE e90739c7e8 - capi.conf structure changes: one own section for each interface,
no global 'interfaces' any more. Section name will be interface name.
- restructured module loading and init.
- dial string changed: parameters like 'b' no in number any more.
- send alert on alerting only (busy() and congestion() work now).
- better overlap sending (new parameter 'o' for dialstring to
  send only the first two digits with CONNECT_REQ only, the remaining
  digits and even digits following the dial() command, will be send
  as INFO_REQ/Overlap).
2005-07-17 19:01:14 +00:00
MelwareDE 91b4ab5a4f Use a lock for debug messages to ensure non-currupted message-lines. 2005-07-16 12:04:48 +00:00
MelwareDE bdc08177b3 Send progress and preoceeding to * when the network signals them. 2005-07-16 11:57:01 +00:00
MelwareDE f47e4891de Better error message if DID was not found in extensions. 2005-07-14 08:52:40 +00:00
MelwareDE 88e078e850 Fixed fault in ALERT_CONF when DISCONNECTING. 2005-07-13 18:27:58 +00:00
MelwareDE a4024367be increased voice send buffer a little bit 2005-07-13 15:29:06 +00:00
MelwareDE 9369d93abe Removed application CallingPres() and use the correct SetCallerPres()
settings.
2005-07-13 15:07:31 +00:00
MelwareDE dfeacf6489 Set status to CONGESTION, if switch reports it. 2005-07-13 12:47:52 +00:00
MelwareDE dd550ac5fa Set correct DIALSTATUS and HANGUPCAUSE. 2005-07-13 12:31:06 +00:00
MelwareDE 91817878d8 Fixed fault on wrong dial string. 2005-07-12 20:40:31 +00:00
MelwareDE 5a96c01fd8 Set DNID correctly. 2005-07-12 20:15:50 +00:00
MelwareDE 1eb471b00c Fixed fault in ACTIVE_B3_IND on DISCONNECTING and reordered INFO_IND
elements.
2005-07-12 19:50:54 +00:00
MelwareDE 3a5b43c45e remove compiler warning on format string 2005-07-04 17:33:13 +00:00
MelwareDE 32448a4482 gX in the dialstring may be a list of groups or a range. 2005-07-03 12:15:14 +00:00
MelwareDE 511e30e401 An unused controller will be announced with 'NOTICE' only. 2005-07-03 11:37:21 +00:00
MelwareDE d969f5ef38 if the msn is not found, the message is just a debug message 2005-06-30 18:44:47 +00:00
MelwareDE c234655395 Fixed possible null pointer. 2005-06-30 06:42:03 +00:00
MelwareDE 580263f9ce Use CVS Revision in version string. 2005-06-28 19:26:56 +00:00
MelwareDE 0d5548d349 Better B3q handling. 2005-06-28 17:42:14 +00:00
MelwareDE fdaa598ceb Fix for HEAD of Asterisk (Thanks to Frank Sautter). 2005-06-28 13:29:21 +00:00
MelwareDE 072d5372ba Detected fax without fax extension is worth a debug message only. 2005-06-27 15:43:20 +00:00
MelwareDE 6786c6f483 removed obsolete ifdef for CAPI_SYNC 2005-06-27 14:38:16 +00:00
MelwareDE 99e02197b1 Set dev version. 2005-06-26 13:41:34 +00:00
MelwareDE 91cc466ca7 Fixed segfault when hangupcause is set to late. 2005-06-26 13:34:17 +00:00
MelwareDE 48c02fad0f Use correct busy/congestion. 2005-06-20 17:41:13 +00:00
MelwareDE 6ca6165f67 bumped version 2005-06-19 11:09:16 +00:00
MelwareDE 6081b938bb - fixed memory leak in ast_smoother use.
- fixed voice corruption on SMP systems.
2005-06-19 10:01:35 +00:00
MelwareDE ec9b3886c6 Added compat to new ast_config* API of current Asterisk CVS HEAD. 2005-06-15 07:31:28 +00:00
MelwareDE 887913bffc don't allow double ALERT_REQ and cleanup of state values 2005-06-12 14:27:26 +00:00
MelwareDE aea64662a7 indent issues 2005-06-06 16:10:54 +00:00
MelwareDE 54abf5f556 Fixed fax state handling and reworked INFO_IND elements. 2005-06-05 19:48:21 +00:00
MelwareDE 574a676a5e Removed double debug output of capi messages. 2005-06-04 20:23:28 +00:00
MelwareDE 5a635d6f19 Better handling of passive/active hangup. 2005-06-04 20:07:00 +00:00
MelwareDE 376160b461 - added capiFax feature by Frank Sautter
- further cleanup
2005-06-04 14:28:52 +00:00
MelwareDE c16ca054a5 Initial import of new chan_capi. 2005-06-02 18:47:35 +00:00