Harald Welte
380ae25052
some more ip.access specific ABIS_NM defines
2010-03-06 11:29:07 +01:00
Harald Welte
d9abf01436
mark some occasions of bitvec as 'const' as appropriate
2010-03-06 11:28:49 +01:00
Harald Welte
4e1287938e
add GSTMAP ARCFCN flag bits
2010-03-04 15:15:37 +01:00
Harald Welte
8c8caaa1ac
update GSMTAP to version 0x02
2010-03-04 15:02:54 +01:00
Harald Welte
6fec514d7b
fix CCCH parsing
2010-03-04 14:30:15 +01:00
Harald Welte
ecf9dd0d96
add new rsl_dec_chan_nr() function
2010-03-04 14:27:48 +01:00
Harald Welte
fbda4e1fb0
decleare gsm_bts_model_register()
2010-03-04 11:04:52 +01:00
Harald Welte
afedeabd91
move some gsm48 utility functions to libosmocore
...
* gsm48_generate_lai() gsm48_generate_mid_from_tmsi() gsm48_generate_mid_from_imsi()
* gsm48_cc_msg_names[]
2010-03-04 10:55:40 +01:00
Harald Welte
61e2bfc5f4
import gsm48 utility functions from OpenBSC
...
* gsm48_generate_lai() gsm48_generate_mid_from_tmsi() gsm48_generate_mid_from_imsi()
* gsm48_cc_msg_names[]
2010-03-04 10:53:03 +01:00
Harald Welte
a73e2f9acb
import bcd2char() and char2bcd() from OpenBSC
2010-03-04 10:50:32 +01:00
Harald Welte
fbc5ca080b
move gsm_band_name() and gsm_band_parse() to libosmocore
2010-03-04 10:39:50 +01:00
Harald Welte
aebe08c71f
import gsm_band_name() and gsm_band_parse() from OpenBSC
2010-03-04 10:39:17 +01:00
Harald Welte
3c9c5f941d
rsl: use the rsl_rll_push_l3() and rsl_rll_simple() functions of libosmocore
2010-03-04 10:33:10 +01:00
Harald Welte
eb8bf3915c
add 'transparent' argument to rsl_rll_push_l3() and rsl_rll_push_l3()
...
this is required to make those functions useful for OpenBSC, nut just
OsmocomBB
2010-03-04 10:32:09 +01:00
Harald Welte
098cd4b503
fix rsl_enc_chan_nr() for SDCCH4
2010-03-04 10:12:50 +01:00
Harald Welte
474d19f5c0
remove gsm04.08 utility code that has been moved to libosmocore
2010-03-02 23:18:30 +01:00
Harald Welte
4fb20757c6
import some GSM 04.08 utility code from OpenBSC
2010-03-02 23:17:33 +01:00
Harald Welte
f08eabf234
add two new RSL utility functions
2010-03-02 21:59:20 +01:00
Harald Welte
fdd0a70093
add msgb_l1() and msgb_l1len() inline functions
2010-03-01 22:30:51 +01:00
Harald Welte
2e411c7b0d
value_string functions and some RSL related stuff has moved to libosmocore
2010-03-01 21:59:06 +01:00
Harald Welte
d284cd9f43
Import value_string utilities and some RSL stuff from OpenBSC
2010-03-01 21:58:31 +01:00
Holger Hans Peter Freyther
774f0723bf
[mgcp] Do not print potentially many messages...
2010-03-01 18:53:05 +01:00
Holger Hans Peter Freyther
88c6eeaa7d
[mgcp] Set the right variable back to NULL
2010-03-01 18:52:04 +01:00
Harald Welte
00096acb8f
msgb: add msgb->l1h member
2010-03-01 12:55:47 +01:00
Holger Hans Peter Freyther
8df932a7fd
[write_queue] Add a generic write queue class
...
The write queue can be a dropin replacement for the bsc_fd. It
is featuring two callbacks. One for ready read and one for ready
write. Whenever there is a message in the queue the write_queue
will set the BSC_FD_WRITE flag and then call the write callback.
It will make sure to delete the msgb after the write function
has been called. This class is intended to be be used in the
osmocom, layer2, bsc_msc_ip, bsc_hack and other applications.
2010-02-26 20:30:32 +01:00
Holger Hans Peter Freyther
8b0079909d
Merge remote branch 'origin/on-waves/sccp'
2010-02-26 20:21:21 +01:00
Holger Hans Peter Freyther
1d7f2f80b8
Merge remote branch 'origin/on-waves/mgcp'
2010-02-26 20:20:17 +01:00
Holger Hans Peter Freyther
10ca3799e7
Merge remote branch 'origin/master' into on-waves/sccp
2010-02-26 20:18:24 +01:00
Holger Hans Peter Freyther
1ebad74377
Merge remote branch 'origin/master' into on-waves/mgcp
...
Conflicts:
openbsc/include/openbsc/Makefile.am
openbsc/src/Makefile.am
2010-02-26 20:16:45 +01:00
Holger Hans Peter Freyther
140f6e9b12
[misc] Add LIBOSMOCORE_CFLAGS to the includes
2010-02-26 20:10:58 +01:00
Holger Hans Peter Freyther
d60c7a895e
[timer] Fix compile warning of the timer test
2010-02-26 20:03:13 +01:00
Holger Hans Peter Freyther
e1d5067789
[sccp] Implement parsing the rather easy IT messages.
2010-02-26 19:26:35 +01:00
Holger Hans Peter Freyther
36ed8cc4c3
[mgcp] Patch the rtp payload depending on the direction.
...
The RTP header code is taken from the rtp_proxy, we will need
to figure out how to unite these properly in the long run.
2010-02-26 13:42:58 +01:00
Holger Hans Peter Freyther
ef6bb25aa5
[mgcp] Keep track of the local and remote RTP payload type
...
Keep track of which RTP payload type to use for which direction.
2010-02-26 13:41:22 +01:00
Holger Hans Peter Freyther
fe86d3c9f8
[mgcp] Introduce a policy CB for the MGCP protocol
...
The are three policies. Accept, Reject and Defer. This will
allow to handle network connections and such from the policy
callback instead of directly acting on it.
2010-02-26 13:37:05 +01:00
Holger Hans Peter Freyther
a820c5f89d
[mgcp] Fix two bugs in the protocol handling
...
In case of a wrongly formatted AUEP, CRCX, DLCX, MDCX the
transaction id pointer was a dangling pointer... Initialize
the transaction id to a static string..
Also fix a off by one bug. We want to extract four elements
from the MGCP message and not only 3... So a short AUEP message
made it us read too many things.
2010-02-26 13:32:55 +01:00
Holger Hans Peter Freyther
63f2db2ec9
[mgcp] Switch logging from notice to debug
2010-02-26 13:31:46 +01:00
Holger Hans Peter Freyther
154b9553f7
[mgcp] Add a method to free the endpoint.
2010-02-26 13:30:23 +01:00
Holger Hans Peter Freyther
2890d102c7
[rtp] Describe the struct in a way that it will work for Big Endian too
...
Play with the right bits on PPC.
2010-02-26 13:12:41 +01:00
Holger Hans Peter Freyther
590cd98842
[mgcp] Print the rtp_port number, do not assume it was already assigned.
2010-02-26 13:10:51 +01:00
Sylvain Munaut
17a5a28202
msgb.c: Style cleanup in initialization
...
Don't assign the same var twice & init all from the same source.
2010-02-24 22:57:46 +01:00
Harald Welte
ac778fb85d
fix msgb_talroom() calculation
2010-02-24 22:54:11 +01:00
Harald Welte
f7d797424a
Merge remote branch 'origin/master'
2010-02-24 22:52:58 +01:00
Holger Hans Peter Freyther
1b0ea97457
[mgcp] Move the network bits to a separate file...
...
This change separates the protocol from the actual network code
(bind, forward data). This will allow to more easily hook up the
RTP code from OpenBSC and to not use local sockets at all.
2010-02-22 12:09:41 +01:00
Holger Hans Peter Freyther
6414a0cb22
[mgcp] Make the creation of the mgcp message public.
2010-02-22 12:09:41 +01:00
Holger Hans Peter Freyther
8d188eda15
[mgcp] Cleanup the code. send_ was a misleading name
...
The send_ methods stopped to send the MGCP messages but was
changed to actually just create a msgb_ that can be sent to
a mediagateway. Rename the methods now.
2010-02-22 12:09:39 +01:00
Holger Hans Peter Freyther
7bdc637aae
[mgcp] Move away from global variables and split out VTY code
...
In separation of using the MGCP parsing in another context, refactor
the code to operate on a struct mgcp_config, split out the vty code
from the mgcp_protocol.c, and move the callbacks into the mgcp code.
There should be no functional changes.
2010-02-22 12:09:24 +01:00
Harald Welte
3415d41a8c
add msgb and tlv support bits required for openbsc gprs branch
2010-02-21 19:03:41 +01:00
Harald Welte
ed71b8c597
add GPL to project source
2010-02-21 09:21:30 +01:00
Harald Welte
1ed97629ad
remove libosmocore from openbsc
...
From now on, you will have to obtain, build and install libosmocore
before being able to build openbsc. Sorry for that. But I hope
it's a small price to pay for having no code duplication with our
work on the phone side GSM stack!
2010-02-20 23:22:54 +01:00