lcr.git
11 years agoMake LCR work with the current openbsc lcr_rtp branch. (soon merged with master branch)
Andreas Eversberg [Sun, 20 Dec 2009 17:55:03 +0000 (18:55 +0100)]
Make LCR work with the current openbsc lcr_rtp branch. (soon merged with master branch)

Minor fix in ss5.cpp.

11 years agoFixed minor release BUG in SS5. Added comfort noise.
Andreas Eversberg [Wed, 30 Sep 2009 17:02:45 +0000 (19:02 +0200)]
Fixed minor release BUG in SS5. Added comfort noise.

modified:   ss5.cpp

11 years agoFixed detection of Code 11 (CCITT#5).
Andreas Eversberg [Wed, 30 Sep 2009 12:29:17 +0000 (14:29 +0200)]
Fixed detection of Code 11 (CCITT#5).

modified:   ss5.cpp
modified:   ss5_decode.c

11 years agoFixed bug when closing mISDN port.
Andreas Eversberg [Wed, 30 Sep 2009 12:23:23 +0000 (14:23 +0200)]
Fixed bug when closing mISDN port.

modified:   mISDN.cpp

11 years agoAdded support for signalling system no. 5.
Andreas Eversberg [Sat, 26 Sep 2009 11:20:29 +0000 (13:20 +0200)]
Added support for signalling system no. 5.

More infos will follow on the isdn4linux mailing list.

modified:   Makefile.am
modified:   Makefile.in
modified:   README
modified:   apppbx.cpp
modified:   configure
modified:   configure.ac
modified:   default/options.conf
modified:   dss1.cpp
modified:   ie.cpp
modified:   interface.c
modified:   interface.h
modified:   lcradmin.c
modified:   lcrsocket.h
modified:   mISDN.cpp
modified:   mISDN.h
modified:   main.c
modified:   main.h
modified:   port.h
modified:   socket_server.c
new file:   ss5.cpp
new file:   ss5.h
new file:   ss5_decode.c
new file:   ss5_decode.h
new file:   ss5_encode.c
new file:   ss5_encode.h

11 years agoSome minor corrections on default/interface.conf
Andreas Eversberg [Wed, 23 Sep 2009 08:14:02 +0000 (10:14 +0200)]
Some minor corrections on default/interface.conf

11 years agoAdded 'extern' flag to interface.conf.
Andreas Eversberg [Wed, 23 Sep 2009 08:07:00 +0000 (10:07 +0200)]
Added 'extern' flag to interface.conf.

If no specific interface is given for the 'extern' rule in the
routing.conf, or if call is forwarded (settings), then only
interfaces marked with 'extern' flag are used.
You need to set this flag when upgrading to this version. See
default/interface.conf for hint.

modified:   README
modified:   apppbx.cpp
modified:   default/interface.conf
modified:   interface.c
modified:   interface.h

11 years agoFixed bad bug in joining calls. Please update, if you have changed to version 1.6.
Andreas Eversberg [Sun, 6 Sep 2009 19:49:53 +0000 (21:49 +0200)]
Fixed bad bug in joining calls. Please update, if you have changed to version 1.6.

modified:   README
modified:   joinpbx.cpp

11 years agoNew Version 1.6
root [Sun, 6 Sep 2009 13:36:36 +0000 (15:36 +0200)]
New Version 1.6
Fix of conference release bug.
Calls can now be forwarded during alerting phase via "*3#".

modified:   README
modified:   apppbx.cpp
modified:   configure
modified:   configure.ac
new file:   default/openbsc.cfg
modified:   dss1.cpp
modified:   gsm.cpp
modified:   joinpbx.cpp

11 years agoMinor fix: chan_lcr will now go into RING state if remote channel is RINGING.
root [Fri, 4 Sep 2009 08:52:32 +0000 (10:52 +0200)]
Minor fix: chan_lcr will now go into RING state if remote channel is RINGING.

modified:   chan_lcr.c

11 years agoAdded patch by Kai Peter for completing screening indicator. Thanx for that!
root [Fri, 4 Sep 2009 08:26:10 +0000 (10:26 +0200)]
Added patch by Kai Peter for completing screening indicator. Thanx for that!

modified:   README
modified:   dss1.cpp
modified:   message.h

11 years agoLCR now compiles with current version of OpenBSC.
root [Sun, 23 Aug 2009 12:58:21 +0000 (14:58 +0200)]
LCR now compiles with current version of OpenBSC.
No more patch is required, just link openbsc directory to LCR source directory and run "configure":
cd lcr
ln -s path_to_openbsc/openbsc .

modified:   Makefile.am
modified:   Makefile.in
deleted:    bootstrap.c
deleted:    bootstrap.h
modified:   configure
modified:   configure.ac
modified:   default/gsm.conf
modified:   gsm.cpp
modified:   gsm.h
modified:   gsm_conf.c

11 years agoMinor fix in display facility.
root [Sat, 15 Aug 2009 20:13:02 +0000 (22:13 +0200)]
Minor fix in display facility.

modified:   dss1.cpp

11 years agoSource cleanup.
root [Sun, 5 Jul 2009 20:14:21 +0000 (22:14 +0200)]
Source cleanup.

modified:   bootstrap.c
modified:   cause.c
modified:   crypt.cpp
modified:   endpoint.cpp
modified:   genext.c
modified:   genrc.c
modified:   gentones.c
modified:   genwave.c
modified:   ie.cpp
modified:   join.cpp
modified:   joinpbx.cpp
modified:   joinremote.cpp
modified:   lcradmin.c
modified:   mail.c
modified:   main.c
modified:   message.c
modified:   route.c
modified:   socket_server.c
modified:   tones.c
modified:   trace.c
modified:   vbox.cpp

11 years agoChanged GSM api to current development tree of OpenBSC.
root [Sun, 5 Jul 2009 19:40:54 +0000 (21:40 +0200)]
Changed GSM api to current development tree of OpenBSC.

Removed obsolete (never finisshed) installation wizzard.

modified:   bootstrap.c
modified:   default/gsm.conf
deleted:    wizzard.c

11 years agoApplied changes of OpenBSC main branch. LCR now works with OpenBSC main branch.
root [Sun, 28 Jun 2009 15:29:07 +0000 (17:29 +0200)]
Applied changes of OpenBSC main branch. LCR now works with OpenBSC main branch.

modified:   README
modified:   bootstrap.c
modified:   bootstrap.h
modified:   gsm.cpp
modified:   gsm.h
modified:   gsm_conf.c
modified:   mISDN.cpp

11 years agoAdded GSM IMSI dialing by using dialing "imsi-<number>".
root [Thu, 18 Jun 2009 08:06:31 +0000 (10:06 +0200)]
Added GSM IMSI dialing by using dialing "imsi-<number>".
Applied API change of OpenBSC.

modified:   Makefile.am
modified:   Makefile.in
modified:   README
modified:   bootstrap.c
modified:   default/gsm.conf
modified:   dss1.cpp
modified:   gsm.cpp
modified:   gsm_audio.c
modified:   gsm_conf.c
modified:   interface.c

11 years agogsm improvements
Andreas Eversberg [Sat, 6 Jun 2009 21:46:21 +0000 (23:46 +0200)]
gsm improvements
code cleanup

modified:   README
modified:   action.cpp
modified:   action_efi.cpp
modified:   action_vbox.cpp
modified:   alawulaw.c
modified:   bchannel.c
modified:   bootstrap.c
modified:   callerid.c
modified:   cause.c
modified:   chan_lcr.c
modified:   default/gsm.conf
modified:   dss1.cpp
modified:   gsm.cpp
modified:   gsm.h
modified:   gsm_conf.c
modified:   message.h

11 years agoFixed disabling of DTMF using 'n' option of chan_lcr.
Andreas Eversberg [Thu, 21 May 2009 17:11:39 +0000 (19:11 +0200)]
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

11 years agoOpenBSC API change.
Andreas Eversberg [Thu, 21 May 2009 11:24:38 +0000 (13:24 +0200)]
OpenBSC API change.

modified:   README
modified:   bootstrap.c
modified:   bootstrap.h
modified:   default/gsm.conf
modified:   gsm.cpp
modified:   gsm_conf.c

11 years ago- Debug option now works for GSM.
Andreas Eversberg [Sun, 17 May 2009 14:06:26 +0000 (16:06 +0200)]
- Debug option now works for GSM.
- Fixed some GSM information elements.

modified:   README
modified:   default/interface.conf
modified:   gsm.cpp

11 years agoRestructured tones_dir, added tones_dir to interface.conf
Andreas Eversberg [Thu, 14 May 2009 18:31:43 +0000 (20:31 +0200)]
Restructured tones_dir, added tones_dir to interface.conf
Code cleanup..

modified:   README
modified:   apppbx.cpp
modified:   default/interface.conf
modified:   default/options.conf
modified:   dss1.cpp
modified:   extension.c
modified:   gsm.cpp
modified:   interface.c
modified:   interface.h
modified:   mISDN.cpp
modified:   options.c
modified:   options.h
modified:   port.cpp

11 years agoAdded GSM network support.
Andreas Eversberg [Mon, 11 May 2009 09:07:58 +0000 (11:07 +0200)]
Added GSM network support.

This turns LCR into a GSM mobile switching center.
More infos will follow.

11 years agoApplied patch by Daniel: "execute"-action can now be performed on call init or on...
Andreas Eversberg [Mon, 6 Apr 2009 18:20:09 +0000 (20:20 +0200)]
Applied patch by Daniel: "execute"-action can now be performed on call init or on call hangup. A special parameter allows that.
-> Forking of executed program is now performed without getting zombie process.

modified:   README
modified:   action.cpp
modified:   apppbx.h
modified:   route.c
modified:   route.h

11 years agoMini-Fix: don't read settings, where not required.
Andreas Eversberg [Sun, 5 Apr 2009 11:22:32 +0000 (13:22 +0200)]
Mini-Fix: don't read settings, where not required.

11 years agoAdded display of current active TEI values (L2) at lcradmin.
Andreas Eversberg [Sun, 5 Apr 2009 10:52:24 +0000 (12:52 +0200)]
Added display of current active TEI values (L2) at lcradmin.

modified:   README
modified:   lcradmin.c
modified:   lcrsocket.h
modified:   mISDN.cpp
modified:   mISDN.h
modified:   socket_server.c

11 years agoAdded PROGRESS indication in both directions, so early audio is possible.
Andreas Eversberg [Sun, 29 Mar 2009 14:50:25 +0000 (16:50 +0200)]
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

11 years agochan_lcr: fixed compile problems with newer versions of asterisk
Andreas Eversberg [Sun, 29 Mar 2009 11:09:59 +0000 (13:09 +0200)]
chan_lcr: fixed compile problems with newer versions of asterisk

11 years agoAdded layer1 hold feature. Requires new mISDN and mISDNuser package from git.
Andreas Eversberg [Fri, 20 Mar 2009 19:46:25 +0000 (20:46 +0100)]
Added layer1 hold feature. Requires new mISDN and mISDNuser package from git.

modified:   README
modified:   interface.c
modified:   interface.h
modified:   lcradmin.c
modified:   lcrsocket.h
modified:   mISDN.cpp
modified:   mISDN.h
modified:   socket_server.c

11 years agoAdded Notify to NT-mode.
Andreas Eversberg [Fri, 20 Mar 2009 17:47:31 +0000 (18:47 +0100)]
Added Notify to NT-mode.

modified:   README
modified:   dss1.cpp
modified:   dss1.h
modified:   mISDN.cpp
modified:   trace.h

11 years agoCheck if pid file did not open.
Andreas Eversberg [Sun, 15 Mar 2009 09:19:45 +0000 (10:19 +0100)]
Check if pid file did not open.

modified:   main.c

11 years agoFixed dtmf detection of A-D. (thanx to Ralf)
Andreas Eversberg [Sun, 15 Mar 2009 09:15:23 +0000 (10:15 +0100)]
Fixed dtmf detection of A-D. (thanx to Ralf)

modified:   README
modified:   chan_lcr.c

11 years agoBugfix on timeout rules. (thanx to Benjamin)
Andreas Eversberg [Sun, 15 Mar 2009 08:44:24 +0000 (09:44 +0100)]
Bugfix on timeout rules. (thanx to Benjamin)

modified:   README
modified:   action.cpp

11 years agoAdded Callweaver support. (thanx to Kristijan)
Andreas Eversberg [Sun, 15 Mar 2009 08:31:23 +0000 (09:31 +0100)]
Added Callweaver support. (thanx to Kristijan)

modified:   README
modified:   bchannel.c
modified:   chan_lcr.c

11 years agoAdded PID file (thanx to Joerg)
Andreas Eversberg [Sun, 15 Mar 2009 08:20:20 +0000 (09:20 +0100)]
Added PID file (thanx to Joerg)

modified:   README
modified:   main.c

11 years agoBugfix on interface reload.
Andreas Eversberg [Sat, 14 Mar 2009 15:59:45 +0000 (16:59 +0100)]
Bugfix on interface reload.

modified:   README
modified:   interface.c

11 years agosimplified rebuffer-mode to make large block sizes work better
Peter Schlaile [Mon, 9 Mar 2009 08:25:26 +0000 (09:25 +0100)]
simplified rebuffer-mode to make large block sizes work better

Thanks to Kristijan Vrban for the patch!

11 years agoadded documentation for re-buffer option
Peter Schlaile [Mon, 2 Mar 2009 10:46:05 +0000 (11:46 +0100)]
added documentation for re-buffer option

11 years agoNew release 1.4
Andreas Eversberg [Sun, 1 Mar 2009 19:03:32 +0000 (20:03 +0100)]
New release 1.4

modified:   README
modified:   chan_lcr.c
modified:   configure
modified:   configure.ac

12 years agoAdded fax detection patch by gregory.
Andreas Eversberg [Sun, 15 Feb 2009 13:33:22 +0000 (14:33 +0100)]
Added fax detection patch by gregory.

modified:   README
modified:   chan_lcr.c
modified:   chan_lcr.h

12 years agoAdded alerting and proceeding to the goto rule.
Andreas Eversberg [Sun, 15 Feb 2009 10:41:41 +0000 (11:41 +0100)]
Added alerting and proceeding to the goto rule.

modified:   README
modified:   route.c

12 years agochan_lcr hopefully now compiles against SVN version of asterisk.
Andreas Eversberg [Sun, 15 Feb 2009 08:04:14 +0000 (09:04 +0100)]
chan_lcr hopefully now compiles against SVN version of asterisk.

Added limitation option for maximum dialed digits. If dial string exceeds
that limit, overlap-dialing is used to complete dial string.
Siemens EWSD (APS V16) only allows 20 digits at a time.

modified:   README
modified:   chan_lcr.c
modified:   default/interface.conf
modified:   dss1.cpp
modified:   dss1.h
modified:   ie.cpp
modified:   interface.c
modified:   interface.h

12 years agofixed end-pointer bug on forwarded messages. thanx to bodo for this bugfix.
Andreas Eversberg [Tue, 6 Jan 2009 17:44:41 +0000 (18:44 +0100)]
fixed end-pointer bug on forwarded messages. thanx to bodo for this bugfix.

modified:   message.c

12 years agoadded capabilites to lcr channel driver to fix some codec problems. thanx to gregor...
Andreas Eversberg [Tue, 6 Jan 2009 17:37:02 +0000 (18:37 +0100)]
added capabilites to lcr channel driver to fix some codec problems. thanx to gregor for this patch!

modified:   chan_lcr.c

12 years agochanged error message a bit...
Andreas Eversberg [Tue, 6 Jan 2009 17:34:05 +0000 (18:34 +0100)]
changed error message a bit...

added support for asterisk 1.6. it now compiles with both 1.4 and 1.6. (tested with 1.4 only) thanx to gregor for his valuable help!

modified:   bchannel.c
modified:   chan_lcr.c
modified:   config.h.in
modified:   configure
modified:   configure.ac
modified:   lcradmin.c
modified:   main.c

12 years agoAdded processing of second caller id.
Andreas Eversberg [Tue, 4 Nov 2008 08:31:09 +0000 (09:31 +0100)]
Added processing of second caller id.
New routing macht rule to filter second caller id.

Fixed extensions directory path.

"make clean" now cleans ".po" files.

Fixed unititialized variable bugs and compiler warnings.

modified:   Makefile.am
modified:   Makefile.in
modified:   action.cpp
modified:   apppbx.cpp
modified:   callerid.c
modified:   chan_lcr.c
modified:   dss1.cpp
modified:   dss1.h
modified:   extension.c
modified:   gentones.c
modified:   ie.cpp
modified:   mISDN.cpp
modified:   message.h
modified:   port.cpp
modified:   route.c
modified:   route.h
modified:   socket_server.c
modified:   tones.c
modified:   trace.c

12 years agoMerge branch 'master' of ssh://jolly@www.mISDN.org/var/git/lcr
Andreas Eversberg [Mon, 27 Oct 2008 22:51:03 +0000 (23:51 +0100)]
Merge branch 'master' of ssh://jolly@mISDN.org/var/git/lcr

12 years agoadded "lcradmin portinfo" for 'ifconfig' like port informations at run time.
Andreas Eversberg [Mon, 27 Oct 2008 22:50:45 +0000 (23:50 +0100)]
added "lcradmin portinfo" for 'ifconfig' like port informations at run time.

modified:   lcradmin.c

12 years agochan_lcr: fixed SRCUPDATE
Peter Schlaile [Sat, 25 Oct 2008 17:02:14 +0000 (19:02 +0200)]
chan_lcr: fixed SRCUPDATE

Asterisk 1.4.21 already has source update, so let's check for it by
ifdef again.

12 years agochan_lcr: Fixed automagic 's' extension and made pickup work.
Peter Schlaile [Sat, 25 Oct 2008 16:44:31 +0000 (18:44 +0200)]
chan_lcr: Fixed automagic 's' extension and made pickup work.

Last commit by Andreas changed matching semantics to make it possible
to go directly into the dialplan _without_ dialing any digits by implicitly
dialing the 's' extension.

That is fine, if there is one to match :)

If we do not find an implicit 's' extension, we will wait for more digits
instead of hanging up immediately. (If you _really_ depended on that 'feature'
please add s => { Hangup(); } :)

Pickup: the pickup application can be used with PICKUPMARK to match
a channel, that is in RINGING state. Unfortunately, one has to explicitly
use ast_setstate() in addition to ast_queue_event() to convince asterisk
to change the channel state...

=> Pickup works now.

12 years agoadded chan_lcr and Makefile.am fixes by Matthias
Andreas Eversberg [Thu, 23 Oct 2008 19:26:44 +0000 (21:26 +0200)]
added chan_lcr and Makefile.am fixes by Matthias

minor improvements for lcradmin

modified:   Makefile.am
modified:   Makefile.in
modified:   chan_lcr.c
modified:   configure
modified:   configure.ac
modified:   lcradmin.c

12 years agonow chan_lcr.so is moved to asterisk' modules directory when installing.
Andreas Eversberg [Sat, 11 Oct 2008 06:51:38 +0000 (08:51 +0200)]
now chan_lcr.so is moved to asterisk' modules directory when installing.

modified:   Makefile.am
modified:   Makefile.in
modified:   autogen.sh

12 years agochan_lcr: fixed some "bridging typos"
Peter Schlaile [Thu, 9 Oct 2008 18:51:00 +0000 (20:51 +0200)]
chan_lcr: fixed some "bridging typos"

12 years agoMerge branch 'master' of ssh://schlaile@git.misdn.org/var/git/lcr
Peter Schlaile [Thu, 9 Oct 2008 18:31:40 +0000 (20:31 +0200)]
Merge branch 'master' of ssh://schlaile@git.misdn.org/var/git/lcr

12 years agoadded inband dtmf support to chan_lcr
Peter Schlaile [Thu, 9 Oct 2008 18:30:59 +0000 (20:30 +0200)]
added inband dtmf support to chan_lcr

Use option 's' in lcr_config or within the dial-command options,
just like in misdn.

12 years agoCompleted documentation about instance creation/destruction proceedure.
Andreas Eversberg [Sun, 28 Sep 2008 15:37:56 +0000 (17:37 +0200)]
Completed documentation about instance creation/destruction proceedure.

modified:   chan_lcr.c
modified:   chan_lcr.h

12 years agochan_lcr: forgotten commit for new ref fix
Peter Schlaile [Sat, 27 Sep 2008 20:26:02 +0000 (22:26 +0200)]
chan_lcr: forgotten commit for new ref fix

12 years agoMerge branch 'master' of ssh://schlaile@git.misdn.org/var/git/lcr
Peter Schlaile [Sat, 27 Sep 2008 20:04:14 +0000 (22:04 +0200)]
Merge branch 'master' of ssh://schlaile@git.misdn.org/var/git/lcr

12 years agochan_lcr: fixed race condition in new ref assignment
Peter Schlaile [Sat, 27 Sep 2008 20:03:44 +0000 (22:03 +0200)]
chan_lcr: fixed race condition in new ref assignment

LCR assumes, that any call in the list, that has ref set to 0 is waiting for a ref to be assigned.
That can cause trouble, if we have one call waiting for a ref to be assigned and another call
hanging in the list, that was just released in the same moment.

Both have ref == 0 and in some circumstances, the new ref message picks the wrong one for
assignment...

This patch makes chan_lcr distinguish between calls waiting for a new ref and those, that
only have their ref removed due to release. (It is not enough, to check for state, since
new calls can change into release state immediately! That is also one of the race conditions,
when this can get you into trouble: asterisk receives call1 by LCR, makes a SETUP call2 immediately
through LCR and then receives a release for call1 by LCR before call2 got it's ref assigned!)

This patch also removes some dead code, that was #ifdef'd out.

End user notice: if you ever got into the situation, that _all_ calls from asterisk to LCR got released
immediately and only a restart of asterisk got you out of the situation, then you might need
this fix :)

12 years agoupdated autoconf
Andreas Eversberg [Sat, 27 Sep 2008 15:23:43 +0000 (17:23 +0200)]
updated autoconf

modified:   Makefile.in

12 years agoadded options.c to automake, so that chan_lcr gets built correctly
Peter Schlaile [Tue, 23 Sep 2008 19:14:15 +0000 (21:14 +0200)]
added options.c to automake, so that chan_lcr gets built correctly

12 years agoMerge branch 'master' of ssh://schlaile@git.misdn.org/var/git/lcr
Peter Schlaile [Mon, 22 Sep 2008 18:43:33 +0000 (20:43 +0200)]
Merge branch 'master' of ssh://schlaile@git.misdn.org/var/git/lcr

12 years agowork around broken HOLD/UNHOLD handling on some SIP phones
Peter Schlaile [Mon, 22 Sep 2008 18:35:37 +0000 (20:35 +0200)]
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.

12 years agoFinished autoconf.
Andreas Eversberg [Sun, 21 Sep 2008 06:57:51 +0000 (08:57 +0200)]
Finished autoconf.
-> Commments are welcome.

deleted:    Makefile
modified:   Makefile.am
new file:   Makefile.in
modified:   README
new file:   aclocal.m4
modified:   action_vbox.cpp
modified:   alawulaw.h
modified:   autogen.sh
new file:   config.h.in
new file:   configure
modified:   configure.ac
modified:   default/interface.conf
modified:   default/options.conf
modified:   dss1.cpp
modified:   dss1.h
modified:   extension.c
modified:   genext.c
modified:   interface.c
modified:   interface.h
modified:   mISDN.cpp
modified:   mISDN.h
modified:   main.h
new file:   mkinstalldirs
modified:   options.c
modified:   options.h
modified:   port.cpp
modified:   route.c
modified:   todo.txt
modified:   tones.c
modified:   vbox.cpp
deleted:    watch.c

12 years agofixed some layer 2 link issues
Andreas Eversberg [Sun, 14 Sep 2008 12:37:51 +0000 (14:37 +0200)]
fixed some layer 2 link issues

modified:   README
modified:   apppbx.cpp
modified:   lcradmin.c
modified:   mISDN.cpp
modified:   route.c

12 years agoFixed trace bugs.
Andreas Eversberg [Sun, 14 Sep 2008 10:27:11 +0000 (12:27 +0200)]
Fixed trace bugs.

modified:   README
modified:   interface.c
modified:   lcradmin.c
modified:   mISDN.cpp
modified:   main.c
modified:   socket_server.c
modified:   trace.c
modified:   vbox.cpp

12 years agoCorrected error print, if mISDN_dsp.ko module cannot be loaded.
Andreas Eversberg [Fri, 12 Sep 2008 05:43:21 +0000 (07:43 +0200)]
Corrected error print, if mISDN_dsp.ko module cannot be loaded.
modified:   README
modified:   bchannel.c
modified:   mISDN.cpp
modified:   main.c

12 years agoPorts can now be specified by number or by name.
Andreas Eversberg [Sun, 7 Sep 2008 08:31:58 +0000 (10:31 +0200)]
Ports can now be specified by number or by name.
Names are shown in state-screen also.

modified:   README
modified:   default/interface.conf
modified:   interface.c
modified:   interface.h
modified:   lcradmin.c
modified:   lcrsocket.h
modified:   mISDN.cpp
modified:   mISDN.h
modified:   main.h
modified:   socket_server.c

12 years agochanged port attribute to "portnum".
Andreas Eversberg [Sat, 6 Sep 2008 11:59:48 +0000 (13:59 +0200)]
changed port attribute to "portnum".

modified:   bchannel.c
modified:   default/interface.conf
modified:   interface.c
modified:   mISDN.cpp
modified:   route.c

12 years agoFix missing argument
Karsten Keil [Wed, 3 Sep 2008 18:57:58 +0000 (20:57 +0200)]
Fix missing argument

open with O_CREATE need 3 args.

Signed-off-by: Karsten Keil <kkeil@suse.de>
12 years agoFix possible bufferoverflows
Karsten Keil [Wed, 3 Sep 2008 18:57:00 +0000 (20:57 +0200)]
Fix possible bufferoverflows

strncat(dest,src,n)

The size of dest must  be  at least strlen(dest)+n+1.

Signed-off-by: Karsten Keil <kkeil@suse.de>
12 years agoFix lot of warnings
Karsten Keil [Tue, 2 Sep 2008 00:02:11 +0000 (02:02 +0200)]
Fix lot of warnings

12 years agoFix 64bit build
Karsten Keil [Mon, 1 Sep 2008 20:23:01 +0000 (22:23 +0200)]
Fix 64bit build

12 years agoAdded -fPIC to fix chan_lcr shared object.
Andreas Eversberg [Sat, 30 Aug 2008 06:55:34 +0000 (08:55 +0200)]
Added -fPIC to fix chan_lcr shared object.

modified:   Makefile

12 years agoLCR now runs as a user.
Andreas Eversberg [Sat, 30 Aug 2008 06:24:52 +0000 (08:24 +0200)]
LCR now runs as a user.
You may change the path of socket and lock files.
LCR admin socket's flags can now be altered to allow access to other users.
Lock and socket files will now be removed when terminating LCR.

modified:   Makefile
modified:   chan_lcr.c
modified:   default/options.conf
modified:   lcradmin.c
modified:   lcrsocket.h
modified:   main.c
modified:   options.c
modified:   options.h
modified:   socket_server.c

12 years agoFix conversion string warnings, there are lot more like these.
Karsten Keil [Fri, 29 Aug 2008 11:13:03 +0000 (13:13 +0200)]
Fix conversion string warnings, there are lot more like these.

12 years agochan_lcr: fixed lcr_fixup (compare with chan_misdn for reference)
Peter Schlaile [Sat, 23 Aug 2008 07:56:19 +0000 (09:56 +0200)]
chan_lcr: fixed lcr_fixup (compare with chan_misdn for reference)

- oldast is totally unimportant
- we didn't unlock correctly

=> works now :)
Test case: open two lcr channels using a sip phone. Do a transfer between
them.

12 years agochan_lcr: fixed typo, that made rebuffer-mode request a parameter,
Peter Schlaile [Fri, 22 Aug 2008 18:09:33 +0000 (20:09 +0200)]
chan_lcr: fixed typo, that made rebuffer-mode request a parameter,
that isn't necessary... shame on me :)

12 years agochan_lcr: this fixes hanging with app_rxfax and a race condition
Peter Schlaile [Fri, 22 Aug 2008 18:08:43 +0000 (20:08 +0200)]
chan_lcr: this fixes hanging with app_rxfax and a race condition
in lcr_read

(lcr_read was hanging in locked-state forever, when no data was
available, making any further calls impossible.
Now we return a null-packet to asterisk)

Sidenode: you have to use lcr_config(r) to receive faxes correctly.
(app_rxfax seems to rely on 160-byte buffers)

12 years agoremoved debug code from last commit
Peter Schlaile [Thu, 21 Aug 2008 06:46:28 +0000 (08:46 +0200)]
removed debug code from last commit

12 years agochan_lcr: added missing memcpy to bchannel_transmit. HDLC data was not send at all!
Peter Schlaile [Thu, 21 Aug 2008 06:45:30 +0000 (08:45 +0200)]
chan_lcr: added missing memcpy to bchannel_transmit. HDLC data was not send at all!

12 years agomake LCR compile again with latest mISDNuser changes
schlaile [Tue, 12 Aug 2008 14:16:54 +0000 (16:16 +0200)]
make LCR compile again with latest mISDNuser changes

12 years agofixed audio preload of tones. this reduces the propability of audio gaps resulting...
Super User [Wed, 30 Jul 2008 17:35:28 +0000 (19:35 +0200)]
fixed audio preload of tones. this reduces the propability of audio gaps resulting in clicking noise. only if dsp clock and kernel clock shifts away, gaps will happen.

modified:   mISDN.cpp

12 years agomake compile with gcc 4.* without warnings. (hopefully with all versions)
Super User [Tue, 29 Jul 2008 17:00:12 +0000 (19:00 +0200)]
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

12 years agofixed problem with "Answer" after extension matches.
Super User [Sun, 27 Jul 2008 08:35:55 +0000 (10:35 +0200)]
fixed problem with "Answer" after extension matches.

some cleanups in the makefile.

modified:   Makefile
modified:   chan_lcr.c

12 years agoupdated README
Super User [Sat, 26 Jul 2008 15:44:01 +0000 (17:44 +0200)]
updated README

modified:   README

12 years agonow LCR features real HDLC bchannel mode.
Super User [Sat, 26 Jul 2008 15:42:16 +0000 (17:42 +0200)]
now LCR features real HDLC bchannel mode.
-> if initial caller uses pure data mode (or video), the bchannels for this call are handled in HDLC mode. (hardware/software briding is still applicable.)

modified:   apppbx.cpp
modified:   chan_lcr.c
modified:   dss1.cpp
modified:   dss1.h
modified:   lcradmin.c
modified:   lcrsocket.h
modified:   mISDN.cpp
modified:   mISDN.h
modified:   message.h
modified:   socket_server.c

12 years agomany fixes on HDLC issues
Super User [Sat, 26 Jul 2008 11:49:23 +0000 (13:49 +0200)]
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

12 years agobearer capability fix.
Super User [Thu, 24 Jul 2008 17:40:09 +0000 (19:40 +0200)]
bearer capability fix.

modified:   chan_lcr.c

12 years agofixed overlap dialing problem:
Super User [Thu, 24 Jul 2008 17:19:56 +0000 (19:19 +0200)]
fixed overlap dialing problem:
-> YES, you may now overlap dial through asterisk

fixed answering call when bridging, because asterisk will not call lcr_answer when bridging.

modified:   chan_lcr.c

12 years agofixed trace bug
Super User [Thu, 24 Jul 2008 16:24:20 +0000 (18:24 +0200)]
fixed trace bug
added ast_setstate after pbx_start()
modified:   chan_lcr.c
modified:   mISDN.cpp
modified:   trace.h

12 years agomade lcr_read read frames in 160 bytes packets in rebuffer mode
schlaile [Tue, 22 Jul 2008 18:46:16 +0000 (20:46 +0200)]
made lcr_read read frames in 160 bytes packets in rebuffer mode

12 years agorebuffer option for chan_lcr (160 bytes per frame)
schlaile [Sun, 20 Jul 2008 17:33:28 +0000 (19:33 +0200)]
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

12 years agoremoved "lcr query", use "isdninfo" instead.
Super User [Fri, 18 Jul 2008 17:26:32 +0000 (19:26 +0200)]
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

12 years agoported genrc
Super User [Sat, 12 Jul 2008 17:07:52 +0000 (19:07 +0200)]
ported genrc

modified:   genrc.c

12 years agomust send "proceeding" instead of "setup_acknowledge", in case the number
Super User [Tue, 8 Jul 2008 19:46:35 +0000 (21:46 +0200)]
must send "proceeding" instead of "setup_acknowledge", in case the number
in the setup-message has "sending complete" element. otherwhise it is a
protocol error.

Christian: you must also consider it in chan_mISDN.

fixed channel hunting bug. (hope so)

modified:   README
modified:   dss1.cpp

12 years agoadded more display info
Super User [Thu, 3 Jul 2008 17:08:37 +0000 (19:08 +0200)]
added more display info
fixed dtmf detection bug

modified:   README
modified:   apppbx.cpp
modified:   dss1.cpp
modified:   message.h

12 years agodisabled overlap dialing and dtmf digit forwarding, due to bug.
Super User [Sat, 28 Jun 2008 08:13:20 +0000 (10:13 +0200)]
disabled overlap dialing and dtmf digit forwarding, due to bug.

modified:   chan_lcr.c

12 years agodon't treat it as a fatal socket error, when chan_lcr sends messages to an already...
schlaile [Mon, 23 Jun 2008 17:50:46 +0000 (19:50 +0200)]
don't treat it as a fatal socket error, when chan_lcr sends messages to an already released B-channel

12 years agominor fixes
Super User [Fri, 20 Jun 2008 06:27:26 +0000 (08:27 +0200)]
minor fixes

modified:   mISDN.h
modified:   route.c