Ivan Kluchnikov
20ea06422d
Merge commit 'USSD'
2011-08-22 16:52:29 +04:00
Alexander Chemeris
fc61ebaf53
Correctly exit OpenBTS even if console is not started yet.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
7d9fa86569
Add option to run OpenBTS in a failsafe loop.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
d0c9057711
Shutdown without core dump on a usual SocketError.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
a0f3b96688
Remove Transceiver PID file on OpenBTS exit.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
7b3c0d3090
Save transceiver PID to a file and use it to kill old transceivers.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
1cd7f00470
Correct comment for Server.WritePID.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
08bdbb921c
Stupid bug fixed - can't move stack variables initialization to a separate function.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
1965ab4255
Gracefully shutdown OpenBTS on transceiver timeout/error.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
0e6f974b1e
Make functions and variables in OpenBTS.cpp static to avoid their use outside of the file.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
7a3d355655
Remove PID file on program exit.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
7db74d0cce
Implemented daemon mode, configured from config.
...
I have to do a weird thing - forking during initialization of static variables. I turns out main() is too late for that, because we bind sockets in static variables and when we run second instance, it fails in bind and not in our lockfile checking code. Some other ramifications come out because of our heavy use of global variables. Don't do that in your next project - use global variables only when strictly necessary.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
2bafba55a3
Better default name for OpenBTS control UNIX socket.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
7be28a2263
Initialize logger right after loading config file.
...
This avoids printing of log messages to the screen on program startup.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
a5c9b9ecbb
Use normal cout and cerr while we have only one thread.
...
COUT() and CERR() macros output current time before text, which looks ugly for the welcome message.
2011-06-21 16:46:54 -07:00
Alexander Chemeris
aec7d8c604
Better comments for previous commit.
2011-06-21 16:46:54 -07:00
Alexander Chemeris
8598e72800
Catch SIGINT, SIGTERM and SIGHUP and shutdown the server gracefully.
2011-06-21 16:46:54 -07:00
Alexander Chemeris
163290b60e
Uncomment real BTS start/stop.
2011-06-21 16:46:54 -07:00
Alexander Chemeris
5ababfad65
A big patch implementing remote CLI.
...
This patch adds ability to connect to OpenBTS CLI with TCP socket and UNIX socket. This is configurable in the config file. To connect to the CLI use apps/OpenBTScli executable, which reads configuration from the same config file.
2011-06-21 16:46:54 -07:00
Alexander Chemeris
d54e4d82fd
Move most of the SMS processing to smqueue (initial check-in).
...
Idea is to make OpenBTS as dumb as possible. It should forward all received SMS messages' RPDU to SMSC (smqueue) and vice versa. All actual message decoding and processing is to be done in smqueue.
2011-06-21 15:30:44 -07:00
Alexander Chemeris
d15a9730fe
Indicate no support for emergency calls in OpenBTS.config.example.
2011-02-08 14:39:21 +03:00
Sylvain Munaut
50006e364d
build: Remove all files autogenerated by autoreconf
...
Best practice is to not include those in repositories but only
in tar.gz dist tarball.
autoreconf -i will regenerate them
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-30 23:58:50 +01:00
Alexander Chemeris
7d9b0497bc
Added MO-USSD handlers map to config.
...
Now you can configure which request will go to which handler.
2010-11-01 14:57:22 +03:00
Alexander Chemeris
7f5fbdb906
Create a constant for max USSD message length and make continuation string configurable.
2010-11-01 14:57:21 +03:00
Ivan Kluchnikov
3889999846
Initial USSD support commit.
2010-08-10 17:04:04 +04:00
David A. Burgess
3a8fd4fac1
Another fix to the copyright notice header.
2010-07-16 17:09:09 -07:00
David A. Burgess
fa179f74b7
Change license to AGPLv3.
2010-07-04 15:28:06 -07:00
David A. Burgess
ecbaf97509
Initial import of OpenBTS 2.6 for a new public trunk.
2010-05-23 19:42:16 -07:00