Holger Hans Peter Freyther
239f95467c
ipaccess: Refactor... unite some code
2010-05-12 23:39:51 +08:00
Holger Hans Peter Freyther
cd80c73f37
ipaccess: Use the right trx when performing the test
2010-05-12 23:02:23 +08:00
Holger Hans Peter Freyther
d6f1c4afbb
ipaccess: Use the current TRX to set the OML address.
2010-05-12 22:48:28 +08:00
Holger Hans Peter Freyther
0c8af75c94
Increase the version number.
on-waves/0.3.99.10
2010-05-12 22:25:40 +08:00
Holger Hans Peter Freyther
e4b33be6fc
chan: After sending the GSM04.08 RR Release, reset the subscriber and wait
...
After we send the SACH DEACTIVATE the BTS will get back to us with a
Release Indication which will trigger the RF Channel Release handling. This
is why we can return here, but we need to put the subscriber reference to
make sure to not end in a infinite loop.
This and the previous change fix the USSD issue for me.
2010-05-12 22:09:24 +08:00
Holger Hans Peter Freyther
cc7461cefc
bsc_msc_ip: Assign a dummy gsm_subscriber to send a SACH DEACTIVATE
...
This is part of fixing USSD delivered to the MS. Currently only MT
services would end up with a GSM Subscriber assigned. The LCHAN code
is using the GSM Subscriber to figure out if a SACH DEACTIVATE should
be send to the MS. Add code to always assign a GSM Subscriber.
2010-05-12 22:09:16 +08:00
Holger Hans Peter Freyther
e174061d17
bssap: Use libosmocore for message creation.
2010-05-12 18:34:20 +08:00
Holger Hans Peter Freyther
6e1c3412ae
bssap: Use libosmocore to create GSM0808 Reset
2010-05-12 18:33:15 +08:00
Holger Hans Peter Freyther
bff54b3e00
bssap: Start to libosmocore for gsm0808 message creation.
2010-05-12 18:31:13 +08:00
Holger Hans Peter Freyther
e75eb4ca25
ipaccess: Wait for the BASEBAND_TRANSCEIVER and then bootstrap OML
...
Currently we are connecting to the BTS and once the OML is established
we are bootstrapping the OML. This does not work for a multi TRX setup
as we will need to use a trx_nr != 0 for it.
Change the code to wait for a message (in this case NM OC_BASEBAND_TRANSC)
to detect the trx_nr used by the BTS and then use that TRX to bootstrap
the network.
I have tested setting the unit id on a single and multi trx system for
the first and second trx.
2010-05-12 17:16:18 +08:00
Holger Hans Peter Freyther
566737a4b8
abis: Pass the abis_om_obj_inst in the nm_state_event..
2010-05-12 17:16:18 +08:00
Holger Hans Peter Freyther
2b7350240d
nat: Have a recycle timer that removes unconfirmed SCCP connections.
...
The MSC does not respond to a SCCP CR with Paging Response as GSM
payload, when the response comes in 'too late'. Prevent the MUX having
stale connections and start removing old connections every 20 minutes.
2010-05-12 00:58:08 +08:00
Holger Hans Peter Freyther
d76b53c00e
nat: When we fail to reallocate... also close down the MGCP part
...
Give the BSC a chanche to close down MGCP ports as well.
2010-05-12 00:35:07 +08:00
Holger Hans Peter Freyther
9c9ef7796a
nat: Store the creation time of a sccp connection.
...
Generate it when creating the connection but also when
reusing an existing connection.
2010-05-12 00:33:38 +08:00
Holger Hans Peter Freyther
49fcc8fc90
bsc_msc_ip: Use constants for ?/0/1.
2010-05-11 22:54:29 +08:00
Holger Hans Peter Freyther
51a4bcc96a
Increase the version... as we have new commands
on-waves/0.3.99.9
2010-05-11 20:02:36 +08:00
Holger Hans Peter Freyther
d6238120dd
bsc_msc_ip: Add an extra command to show the MSC status.
2010-05-11 20:00:22 +08:00
Holger Hans Peter Freyther
7407aec921
bsc_msc_ip: Move the MSC connection into the structure
2010-05-11 20:00:22 +08:00
Holger Hans Peter Freyther
e575ce69ce
nat: Print the MSC status with a new vty command.
2010-05-11 20:00:16 +08:00
Holger Hans Peter Freyther
c1ca0ff091
misc: Make sure PACKAGE_VERSION is getting defined with a useful content.
...
PACKAGE_VERSION is used by the copyright message.
2010-05-11 19:08:10 +08:00
Holger Hans Peter Freyther
661e68b78f
bsc_msc_ip: Add a test mode to send messages to the MSC.
...
Check if the MSC likes paging responses when it has not
recently send out a paging request.
2010-05-11 19:08:10 +08:00
Holger Hans Peter Freyther
376e146cfb
gsm0408: Use counter_inc to increment the counter.
2010-05-11 19:08:10 +08:00
Holger Hans Peter Freyther
eb3ab2f85b
bsc_msc: Add a connection timeout for the MSC.
...
When no one is listening our connection would get stuck
in the SYN_SENT state and we would be there forever.
2010-05-05 22:48:56 +08:00
Holger Hans Peter Freyther
ebc38e4f26
Version bump for testing it on the target
on-waves/0.3.99.8
2010-05-05 20:43:11 +08:00
Holger Hans Peter Freyther
e2ab44a439
nat: Using the right fd can be a good idea as well
2010-05-05 20:42:14 +08:00
Holger Hans Peter Freyther
8b3cced773
Another version... another try
on-waves/0.3.99.7
2010-05-05 20:37:10 +08:00
Holger Hans Peter Freyther
3d1b0770f4
nat: Fix bad bug, make sure the fd is not overwritten..
...
The adding of the innocent looking code was actually overwrote
the fd and then stupid things happened. Rename variables to avoid
that. rc,ret should be scratch variables...
2010-05-05 20:33:34 +08:00
Holger Hans Peter Freyther
99743fb7ec
Bump the version for TCP_NODELAY.
on-waves/0.3.99.6
2010-05-05 19:01:23 +08:00
Holger Hans Peter Freyther
a2a42a7561
bsc_msc_ip: Attempt to disable nagle
...
Use TCP_NODELAY on the connection to the MSC. We want small
messages to be send immediately.
2010-05-05 19:00:38 +08:00
Holger Hans Peter Freyther
ebd57da87d
nat: Use TCP_NODELAY for the connection to the BSC.
...
We do not want to use NAGLE for the BSC connection.
2010-05-05 18:59:54 +08:00
Holger Hans Peter Freyther
b0ee082bb0
Bump version
...
Configurable timeout.
on-waves/0.3.99.5
2010-05-05 17:52:40 +08:00
Holger Hans Peter Freyther
81f6a4c0bf
bsc_msc_ip: Add VTY code for ping/pong timeout.
2010-05-05 17:46:08 +08:00
Holger Hans Peter Freyther
3978de52c1
bsc_msc_ip: Do not send a ping when the timeout is negative
2010-05-05 17:42:32 +08:00
Holger Hans Peter Freyther
7faf692cb7
bsc_msc_ip: Make the ping/pong timeouts configurable
...
Take the timeouts from the struct.
2010-05-05 17:39:22 +08:00
Holger Hans Peter Freyther
0cf25d5154
nat: Improve log messages. Refer to ip and fd.
2010-05-05 17:03:44 +08:00
Holger Hans Peter Freyther
08db178271
nat: Make ping/pong timeout configurable.
2010-05-05 16:57:38 +08:00
Holger Hans Peter Freyther
936d8c1b64
Work with later libosmocore.
on-waves/0.3.99.4
2010-05-03 19:38:01 +08:00
Harald Welte
3170305e56
move gsm48_construct_ra() to libosmocore
2010-05-03 19:36:58 +08:00
Harald Welte
0f3490dd03
'struct gprs_ra_id' is now defined in libosmocore
2010-05-03 19:36:41 +08:00
Holger Hans Peter Freyther
61e5e7bd8b
Bump version..
...
* ping pong and possible crash fix.
on-waves/0.3.99.3
2010-05-03 17:27:07 +08:00
Holger Hans Peter Freyther
f7b06fbe0c
bsc: Speculative crash fix.
...
Make sure the sccp_cc_timeout is stopped when we delete the
associated data. There is one crash report that indicates that
we have a pending timer that is inside freed memory.
A crash could have occured when the connection to the MSC was
lost while have unconfirmed connections.
2010-05-03 16:13:02 +08:00
Holger Hans Peter Freyther
45403b1804
nat/bsc: Send PONG on PING, send PING from the BSC too
...
We do want to send PING/PONG in both ways to have a heartbeat
on the TCP connection. When switching over to SCTP we can rely
on the builtin heartbeat functionality.
2010-05-03 11:51:07 +08:00
Holger Hans Peter Freyther
6782cea4bf
nat: Send a IPA PING down the stream and wait for the pong.
...
We will send a ping every 20 seconds and if we have no pong
within 5 seconds we will close down the BSC connection and
wait for a reconnect. We will start this after having
authenticated the BSC and we stop the timer when destructing
the BSC connection.
2010-05-02 19:31:14 +08:00
Holger Hans Peter Freyther
ec7ecab66f
nat: Allow to only show statistics for a given BSC Cfg.
2010-05-02 19:31:14 +08:00
Holger Hans Peter Freyther
d1287e379b
nat: Do not allow a BSC to send auth messages twice.
2010-05-02 19:31:13 +08:00
Holger Hans Peter Freyther
3fb44f3e61
nat: Fix vty output for connected BSCs
2010-05-02 19:31:13 +08:00
Holger Hans Peter Freyther
d48bfe0e93
bssap: Store the link_id in the new msgb->cb.
...
Work with a new version of libosmocore that gets rid of
additional pointers.
2010-05-01 15:22:40 +08:00
Holger Hans Peter Freyther
41cdaf520d
remove any reference to 'struct gsm_bts_link'
2010-05-01 15:19:14 +08:00
Harald Welte
f94418a129
gsm_04_11.c: Use msgb->l4h instead of sms->smsh, as the latter is gone
2010-05-01 15:18:37 +08:00
Holger Hans Peter Freyther
88b299ca24
configure.in: Bump the version due mem leak fixes.
...
The nat is stable and in testing..
on-waves/0.3.99.2
2010-05-01 15:01:45 +08:00