This pretty much handles all the setup and cleanup and media
frames RX/TX. This doesn't yet start a RTP stream but not much
is missing.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
It will become necessary when MNCC messages will
have to be send from another thread.
Note that it's an easy but messy way. It would be
better to queue those cross thread MNCC messages
somewhere locally and process them in the main
monitor thread. But it works, it's easier, and can
be fairly easily changed afterwards ...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
The bootstrap code is mostly taken from bsc_init and just
adapted to take the config from a openbsc.conf. Note that
it's the channel driver config, the main OpenBSC config is
still in the vty format and the HLR in a sqlite DB
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Note that since the channel drivers are shared objects,
you'll need to compile OpenBSC with:
$ make CFLAGS=-fPIC
(or whatever is needed for your platform ...)
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
I originally derived the Makefile from one found randomly
on the net. But now, I rewrote it based on the one found in
Asterisk tree.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Functions that are not needed for a base driver, or that
maybe completly unused for this driver are still present but
commented. They'll be removed once I'm sure.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>