Commit Graph

36 Commits

Author SHA1 Message Date
Andreas Eversberg b5d6f1c72b Fix: Asterisk DTMF detection works now
To enable, use option "a".

-> for calls from LCR use lcr_config(a) in extensions.conf
-> for calls to LCR use Dial(LCR/pbx/<number>/a)
2012-12-16 10:10:34 +01:00
Andreas Eversberg 3f7ef909c9 Define prload of mISDN buffer by chan_lcr (required for fax)
Use q<ms> option to peload.
2012-12-16 10:10:33 +01:00
Andreas Eversberg f6aea744f8 Removed complete bchannel handling from chan_lcr
The remote application interface does not allow any bchannel to be
exported or imported. Audio traffic via socket interface is used instead.

The joinremote instance became obsolete and is removed.

The remote action (routing) became obsolete, use interface.conf instead.

The handling of loopback device became obsolete and was removed

The chan_lcr does not rely on mISDN anymore, that means:
- can be used with GSM and without mISDN at all.
- chan_lcr can be used as internal extension of LCR (e.g. SIP phone)
  (chan_lcr can be handled as any other interface)
- no loopback device to be used anymore.
2012-12-16 10:10:32 +01:00
Andreas Eversberg b787bfbf47 [chan_lcr] Fixed caller ID for calls from AST->LCR 2011-02-20 09:33:31 +01:00
Andreas Eversberg 5705b3e17b Improved and applied Wimpy's Asterisk 1.8.x support.
configure script will automatically detect new asterisk API, so there is
no need for different chan_lcr.c source codes.

'type', 'presentation', and 'screening indicator' are now transcoded.
2010-12-14 10:56:09 +01:00
Andreas Eversberg 34b17bad86 Added queue buffer for chan_lcr sending faxes without interruption.
Use options "t:q250" for disabling mISDN_dsp and adding a 250ms delay.

	modified:   README
	modified:   bchannel.c
	modified:   bchannel.h
	modified:   chan_lcr.c
	modified:   chan_lcr.h
	modified:   select.c
2010-01-24 14:22:34 +01:00
Andreas Eversberg b0bd74e35e Replaced polling loop for LCR and chan_lcr with select based event loop.
Now LCR and chan_lcr will not use any CPU until there is work to do.
2010-01-16 11:20:23 +01:00
Andreas Eversberg 3ac6881c22 Added keypad forwarding, keypad parameter, chan_lcr keypad option 'k'.
modified:   README
	modified:   action.cpp
	modified:   apppbx.cpp
	modified:   chan_lcr.c
	modified:   chan_lcr.h
	modified:   dss1.cpp
	modified:   joinpbx.cpp
	modified:   joinpbx.h
	modified:   message.h
	modified:   route.c
	modified:   route.h
2009-10-27 08:02:16 +01:00
Andreas Eversberg 063d622d53 Fixed disabling of DTMF using 'n' option of chan_lcr.
Please enter the commit message for your changes.
	modified:   README
	modified:   apppbx.cpp
	modified:   bchannel.c
	modified:   chan_lcr.c
	modified:   chan_lcr.h
2009-05-21 19:11:39 +02:00
Andreas Eversberg ebdd133f07 Added PROGRESS indication in both directions, so early audio is possible.
-> Tones and announcements shall be forwarded.

	modified:   README
	modified:   chan_lcr.c
	modified:   chan_lcr.h
2009-03-29 16:50:25 +02:00
Peter Schlaile adc5448774 simplified rebuffer-mode to make large block sizes work better
Thanks to Kristijan Vrban for the patch!
2009-03-09 09:25:26 +01:00
Andreas Eversberg ce266f45f3 Added fax detection patch by gregory.
modified:   README
	modified:   chan_lcr.c
	modified:   chan_lcr.h
2009-02-15 14:33:22 +01:00
Peter Schlaile ba7a15918a Merge branch 'master' of ssh://schlaile@git.misdn.org/var/git/lcr 2008-10-09 20:31:40 +02:00
Peter Schlaile fab0ad70c7 added inband dtmf support to chan_lcr
Use option 's' in lcr_config or within the dial-command options,
just like in misdn.
2008-10-09 20:30:59 +02:00
Andreas Eversberg b519aa7e74 Completed documentation about instance creation/destruction proceedure.
modified:   chan_lcr.c
	modified:   chan_lcr.h
2008-09-28 17:37:56 +02:00
Peter Schlaile f9933186f3 chan_lcr: forgotten commit for new ref fix 2008-09-27 22:26:02 +02:00
Peter Schlaile 3acba5ac9b work around broken HOLD/UNHOLD handling on some SIP phones
Some SIP phones don't send RETRIEVE before they send TRANSFER.
So we RETRIEVE if we bridge two channels, if calls are still on hold.

Also: handle CONTROL_SRCUPDATE with a debug message in recent
versions of asterisk.
2008-09-22 20:35:37 +02:00
Super User de8f81a69b make compile with gcc 4.* without warnings. (hopefully with all versions)
modified:   Makefile
	modified:   bchannel.c
	modified:   chan_lcr.h
	modified:   extension.c
	modified:   gentones.c
	modified:   genwave.c
	modified:   joinpbx.cpp
	modified:   tones.c
2008-07-29 19:00:12 +02:00
Super User f51147e028 many fixes on HDLC issues
many fixes on briding issues

-> briding will work with dsp and directly via chan_lcr
-> hdlc will work with dsp and directly with chan_lcr

	modified:   bchannel.c
	modified:   chan_lcr.c
	modified:   chan_lcr.h
2008-07-26 13:49:23 +02:00
schlaile a114e74299 rebuffer option for chan_lcr (160 bytes per frame)
l1-link state "unknown" if not known yet.

removed root user check.

	modified:   bchannel.c
	modified:   bchannel.h
	modified:   chan_lcr.c
	modified:   chan_lcr.h
	modified:   dss1.cpp
	modified:   lcradmin.c
	modified:   mISDN.cpp
	modified:   main.c
2008-07-20 19:33:28 +02:00
Super User 89d3a5de47 removed "lcr query", use "isdninfo" instead.
fixed some unlocking in chan_lcr.

fixed dead-lock issue with chan_lcr.

	modified:   README
	modified:   chan_lcr.c
	modified:   chan_lcr.h
	modified:   mISDN.cpp
	modified:   mISDN.h
	modified:   main.c
2008-07-18 19:26:32 +02:00
schlaile 0543086812 made callerid handling work in call from asterisk
(Asterisk 1.4.18 at least changes cid records between call and setup ...)
fixed Makefile (emacs kept complaining :) )
2008-06-14 20:21:14 +02:00
Super User d2b113f2c4 changed long to int (64 bit system's compatibilty) 2008-06-14 08:34:50 +02:00
Super User 82e0281d1d *** CHAN_LCR is complete! ***
(not every detail tested yet)

	modified:   bchannel.c
	modified:   bchannel.h
	modified:   chan_lcr.c
	modified:   chan_lcr.h
	modified:   mISDN.cpp
2008-06-07 11:49:28 +02:00
Super User cbc232643c work on chan_lcr: bridging works, interface selection possible
modified:   Makefile
	modified:   apppbx.cpp
	modified:   apppbx.h
	modified:   bchannel.c
	modified:   bchannel.h
	modified:   chan_lcr.c
	modified:   chan_lcr.h
	modified:   dss1.cpp
	modified:   genext.c
	modified:   joinremote.cpp
	modified:   joinremote.h
	modified:   mISDN.cpp
	modified:   mISDN.h
	modified:   macro.h
	modified:   main.c
	modified:   message.h
	modified:   options.c
	modified:   options.h
	modified:   socket_server.c
2008-06-06 15:18:59 +02:00
Super User 026b04fc75 LCR is now uses socket based mISDN V2 API
*** chan_lcr, the Asterisk interface works (not complete yet).
-> LCR can be used as Asterisk channel driver.

	modified:   Makefile
	modified:   Makefile.am
	modified:   README
	modified:   action.cpp
	modified:   apppbx.cpp
	modified:   bchannel.c
	modified:   bchannel.h
	modified:   callerid.c
	modified:   cause.c
	modified:   chan_lcr.c
	modified:   chan_lcr.h
	modified:   configure.ac
	modified:   default/routing.conf
	modified:   dss1.cpp
	modified:   dss1.h
	modified:   genrc.c
	modified:   ie.cpp
	modified:   interface.c
	modified:   lcradmin.c
	modified:   mISDN.cpp
	modified:   mISDN.h
	modified:   main.c
	modified:   main.h
	modified:   message.h
	modified:   myisdn.h
	modified:   route.c
	modified:   socket_server.c
	modified:   trace.h
2008-06-01 18:52:10 +02:00
Super User 153bf9b2f4 work on chan_lcr 2008-05-19 19:39:39 +02:00
Super User 58b134cb12 lcr work (soon done :)
modified:   Makefile
	modified:   bchannel.c
	modified:   chan_lcr.c
	modified:   chan_lcr.h
	modified:   dss1.cpp
	modified:   todo.txt
2008-05-18 19:04:35 +02:00
Super User b93eda54f0 chan_lcr work
modified:   bchannel.c
	modified:   bchannel.h
	modified:   chan_lcr.c
	modified:   chan_lcr.h
2008-05-01 20:07:02 +02:00
Super User 2fb748e1da work on chan_lcr
modified:   Makefile
	modified:   chan_lcr.c
	modified:   chan_lcr.h
2008-05-01 11:56:14 +02:00
Super User 0efcf371b4 work on chan_lcr
modified:   Makefile
	modified:   action.cpp
	modified:   action_efi.cpp
	modified:   action_vbox.cpp
	modified:   apppbx.cpp
	modified:   apppbx.h
	modified:   bchannel.c
	modified:   bchannel.h
	new file:   callerid.c
	new file:   callerid.h
	modified:   chan_lcr.c
	modified:   chan_lcr.h
	modified:   crypt.cpp
	modified:   endpoint.cpp
	modified:   endpointapp.cpp
	modified:   interface.c
	modified:   join.cpp
	modified:   joinpbx.cpp
	modified:   joinremote.cpp
	modified:   mISDN.cpp
	modified:   mail.c
	modified:   main.h
	modified:   message.h
	modified:   port.cpp
	modified:   route.c
	modified:   route.h
	modified:   socket_server.c
	modified:   todo.txt
	modified:   vbox.cpp
	modified:   watch.c
2008-05-01 10:35:20 +02:00
Super User f94f30b0c5 Merge branch 'master' of ssh://jolly@www.mISDN.org/var/git/lcr
Conflicts:

	chan_lcr.c
2008-04-28 19:34:33 +02:00
Super User d70150d047 work on chan_lcr:
call instance and asterisk channel instance creation and destruction process
please read the comments on the top of chan_lcr.

	modified:   apppbx.cpp
	modified:   chan_lcr.c
	modified:   chan_lcr.h
	modified:   message.h
2008-04-28 19:29:06 +02:00
root 350450b9ca chan_lcr has now a lcr_request function which should work basically, we only need the callref request mechanism here. We have also a lcr_ast_new function which produces an empty Asterisk channel object. The Call handler has now a pointer to the asterisk channel, the asterisk channel also holds a pointer to the Call handle, so they need to be created and destroyed together at the same time. 2008-04-26 12:25:01 +02:00
Super User 5ad4c41dc4 now gives warning if mISDN branch is wrong.
also some work on chan_lcr.

	modified:   Makefile
	modified:   apppbx.cpp
	modified:   bchannel.c
	modified:   chan_lcr.c
	modified:   chan_lcr.h
	modified:   dss1.cpp
	modified:   dss1.h
	modified:   extension.c
	modified:   extension.h
	modified:   genrc.c
	modified:   ie.cpp
	renamed:    admin_client.c -> lcradmin.c
	renamed:    admin.h -> lcrsocket.h
	modified:   mISDN.cpp
	modified:   main.h
	renamed:    admin_server.c -> socket_server.c
	renamed:    admin_server.h -> socket_server.h
	modified:   todo.txt
2008-02-03 13:47:33 +01:00
Super User 14f76f1e81 work on unfinished asterisk channel driver (bchannel handling)
modified:   Makefile
	modified:   README
	modified:   action.cpp
	modified:   admin_server.c
	modified:   apppbx.cpp
	modified:   apppbx.h
	new file:   bchannel.c
	new file:   bchannel.h
	renamed:    asterisk_client.c -> chan_lcr.c
	renamed:    asterisk_client.h -> chan_lcr.h
	deleted:    channel.c
	modified:   dss1.cpp
	modified:   extension.c
	modified:   extension.h
	modified:   interface.c
	modified:   interface.h
	modified:   joinremote.cpp
	modified:   joinremote.h
	modified:   mISDN.cpp
	modified:   mISDN.h
	modified:   main.h
	modified:   message.h
	modified:   route.c
	modified:   todo.txt
2008-01-19 18:10:46 +01:00