Holger Hans Peter Freyther
b4c7b274a1
[mgcp] Reset the the address when freeing the endp as well
2010-04-06 12:13:19 +02:00
Holger Hans Peter Freyther
7279d24232
[mgcp] Do not patch RTP payload when type is set to -1.
...
For the nat we might or might not want to patch it, do not
patch if we have no valid rtp payload type.
2010-04-06 12:12:52 +02:00
Holger Hans Peter Freyther
ef8253c495
[mgcp] Use a different port to more easily differentiate
2010-04-05 22:04:23 +02:00
Holger Hans Peter Freyther
6c0729fe70
[mgcp] Print the BTS IP addr of the endpoint.
2010-04-05 22:04:15 +02:00
Holger Hans Peter Freyther
e125d40f66
[mgcp] Start to look into the MGCP messages and extract the CI
...
we will need the call identifier for the MDCX and DLCX message
for now we were just assuming it would increment, use som python
to extract the CI from a possible response, also switch back to
a blocking read to test the BSC nat.
2010-04-05 22:04:07 +02:00
Holger Hans Peter Freyther
58df0ea9a0
[mgcp] Fix the transaction id of the AUEP request
2010-04-05 22:03:41 +02:00
Holger Hans Peter Freyther
8b120f0ef9
[mgcp] Look at the bts addr set at the endpoint
...
This will allow to discover the ports of a bts when we only know
the addr and have multiple bts's to handle.
2010-04-05 22:03:04 +02:00
Holger Hans Peter Freyther
f2f1591ce7
[mgcp] Export header parsing via mgcp internal
...
This will be used by the NAT code to implement custom protocol
handling on top of that.
2010-04-05 22:02:54 +02:00
Holger Hans Peter Freyther
f36a11a35d
[mgcp] Do not operate on the ->data pointer, use ->l2h instead
...
This would have been broken once we attempt to parse encapsulated
MGCP messages.
2010-04-05 22:02:47 +02:00
Holger Hans Peter Freyther
c77efdf057
[mgcp] Degrade verbosity to debug
2010-04-05 22:02:38 +02:00
Holger Hans Peter Freyther
b79994c952
[mgcp] Add a new config option to set the call agent ip addr
...
In the case of the nat we only want to communicate with one
upstream call agent and this can now be configured.
2010-04-05 22:02:29 +02:00
Holger Hans Peter Freyther
616d222518
[mgcp] Add a helper function to convert from GSM0808 ts/mux to MGCP endpoint
...
Move the conversion of GSM0808 timeslot and multiplex from
the bssap.c into the mgcp.h so it can be reused by multiple
users. The weird math comes from the mapping of the MSC...
2010-04-05 22:02:16 +02:00
Holger Hans Peter Freyther
64e4e77558
[mgcp] Handle the RSIP with resetting all endpoints
...
We could change that the message came from a special ip
address/port to secure this service in general but we don't
do that right now.
2010-04-05 22:01:52 +02:00
Holger Hans Peter Freyther
9bdcc9ca75
[mgcp] Add some parsing for RSIP messages coming in
...
This will just call a callback and leave all the handling
to the application.
2010-04-05 22:01:44 +02:00
Holger Hans Peter Freyther
e7d2ae69c9
[mgcp] Remove unused method from the mgcp
...
This was removed when sending the RSIP was
removed from the code.
2010-04-05 22:01:36 +02:00
Holger Hans Peter Freyther
52a66aa27e
[mgcp] Switch from DEBUG to LOGP in the mgcp_main.c
2010-04-05 22:01:28 +02:00
Holger Hans Peter Freyther
13d67b7ea3
[mgcp] Remove the sending of RSIP
...
This message is ignored by the call agent and we were
sending this on the first request which we maybe should
not ignore...
2010-04-05 22:01:20 +02:00
Holger Hans Peter Freyther
95e4d34f06
[mgcp] The networking code needs a source addrs..
...
Make the source address mandantory and complain about
complain when it is missing. The address is mandantory
as it needs to be put into the MGCP messages...
2010-03-30 15:35:57 +02:00
Holger Hans Peter Freyther
f5b6aa60ce
[mgcp] Move mgcp init into the main method...
2010-03-30 15:35:48 +02:00
Holger Hans Peter Freyther
c38b5884ff
[mgcp] Fix format string usage
2010-03-30 15:35:39 +02:00
Holger Hans Peter Freyther
4079105a6c
Merge remote branch 'origin/master' into on-waves/mgcp
2010-03-30 15:35:26 +02:00
Holger Hans Peter Freyther
acf8a0c59f
[misc] Remove whitespace from the end of the line.
2010-03-29 08:47:44 +02:00
Harald Welte
ca8d0063f9
remove gsm48_mi_to_string() as it is now in libosmocore 0.1.3
2010-03-28 18:28:29 +08:00
Harald Welte
c0d83b0647
chan_alloc: Support allocating TCH/F of a dynamic TCH/F + PDCH
...
This code simply enables the channel allocator to understand the
dynamic TCH/F / PDCH channel type as used by ip.access nanoBTS.
It does not actually try to switch the dynamic mode, but instead
sends signals to a (not yet present) dynamic switching algorithm.
2010-03-28 15:58:03 +08:00
Harald Welte
4563eab30e
RSL: keep track of ip.access dynamic TCH/PDCH activation
...
We use the (currently unusued) flags member of the bts_trx_ts structure
to track if a dynamic TCH/PDCH is currently on PDCH mode or not.
2010-03-28 14:42:09 +08:00
Harald Welte
332442d6c7
debug: ensure no overlap between LOG_FILTER_ALL and FLT_IMSI
2010-03-26 21:40:29 +08:00
Harald Welte
71ba85e4af
Merge commit '3ae2758fba1dc9b364238c6e1e7d591b12c3d878'
2010-03-26 21:35:28 +08:00
Harald Welte
dc5062b185
move log/debug codebase to libosmocore
...
The logging/debugging code is generic enough to move it into libosmocore
while keeping OpenBSC specific definitions in openbsc itself.
This commit uses the logging support present in libosmocore-0.1.2,
you will have to update your library to this version.
2010-03-26 21:31:43 +08:00
Harald Welte
3ae2758fba
rename 'debug' interface to 'logging' interface
...
It's not really about debugging, but about generic logging...
2010-03-26 21:26:01 +08:00
Harald Welte
faadfe2b93
debug: remove unneeded 'number' member of 'struct debug_info_cat'
...
As the debug subsystem number is used as index into the debug_info_cat
array, there is no need to store the number explicitly inside the
structure again.
2010-03-26 21:26:01 +08:00
Harald Welte
d788f6688c
debug.c: fix no-color-printing in case .color = NULL
2010-03-26 21:26:01 +08:00
Harald Welte
4a2bb9e38b
Import 'debug' support from OpenBSC into libosmocore
2010-03-26 21:26:01 +08:00
Holger Hans Peter Freyther
99a263ff20
write_queue: Add a method to clear the queue.
2010-03-26 09:22:38 +01:00
Holger Hans Peter Freyther
b464fb4a89
db: Fix a bug where no pending SMS were found
...
The "sms send pending" VTY command did not work due a mismatch
of types. We are specifying a unsigned long long in the query
and provided DBI with a signed integer type. The result was a
failure do find any information.
Change the API to operate on unsigned long long that is matching
the id of the SMS and the Subscriber and the mismatch with the
query string is gone and pending SMS are sent.
2010-03-25 09:59:30 +01:00
Holger Hans Peter Freyther
3f96458d73
Merge branch 'holger/bsc-msc-separation'
2010-03-25 09:08:53 +01:00
Holger Hans Peter Freyther
d4c16b1080
sms: Remove some more occurences of the GSM lchan
2010-03-25 09:07:28 +01:00
Holger Hans Peter Freyther
18b63f4b41
Store the GSM BTS in the gsm subscriber connection
...
Remove further usage of lchan from the gsm 04.11 bits
2010-03-25 09:07:28 +01:00
Holger Hans Peter Freyther
ec32b5860e
bsc: Start creating 08.08 like API
...
The 08.08 API will interface with the internal BSC code and it is
the boundary between MSC and BSC. So nothing that calls the BSC
functionality should know about lchan or such.
2010-03-25 09:07:28 +01:00
Holger Hans Peter Freyther
5179c8ef0b
sms: First run of removing lchan usage from MSC code paths.
2010-03-25 09:07:28 +01:00
Holger Hans Peter Freyther
e95d4825f5
lchan: Change transaction to work on the GSM Subscriber Connection
...
Change the MSC transaction code to operate on a GSM Subscriber Connection
instead of the lchan. This will help us to separate the two commands properly.
2010-03-25 09:07:28 +01:00
Holger Hans Peter Freyther
68884aa156
lchan: Create a structure for MSC data of the lchan
...
Prepare to split the BSC and the MSC part by putting the
MSC data for a connection into a "gsm_subscriber_connection"
struct and renaming the macros.
2010-03-25 09:07:28 +01:00
Harald Welte
fe6bf777c3
Merge commit '52b4abdcb351830f5493a50c4181ef3947f3feab'
2010-03-25 12:15:24 +08:00
Harald Welte
e95daf1925
convert openbsc to use libosmocore-0.1.1 API
...
the 0.1.1 API is cleaned up and removes all exported global static
arrays (like rlm_cause_strs). There are now proper accessor functions.
2010-03-25 12:13:02 +08:00
Harald Welte
52b4abdcb3
replace rsl_rlm_cause_strs with rsl_rlm_cause_name()
2010-03-25 12:11:38 +08:00
Harald Welte
5e6466780f
current version needs exactly 0.1.0 version of libosmocore
2010-03-25 12:02:36 +08:00
Harald Welte
9eb6d88d64
replace gsm48_cc_msg_names[] with gsm48_cc_msg_name()
...
and implement the backend using value_string
2010-03-25 12:00:54 +08:00
Harald Welte
e9e190a8d8
use more value_string in gsm48 and rsl
2010-03-25 11:46:46 +08:00
Harald Welte
b59f9350f8
get_value_string(): return "unknown 0x..." instead of "unknown"
2010-03-25 11:46:46 +08:00
Harald Welte
92b1fe4c2d
increase the use of 'struct value_string' in abis_nm and gsm_data
2010-03-25 11:45:30 +08:00
Holger Hans Peter Freyther
bb7bc1155f
debug: Make the global target loglevel overwrite the category level
...
Together with the previos -e Number option one can easily turn on
debugging without needing to remember the category masks for a quick
check on what is going on.
2010-03-25 02:57:03 +01:00