Holger Hans Peter Freyther
f3afabe989
misc: Attempt to fix various 64bit compiler warnings
...
Change-Id: I4ed058aba15d9fdc22dde99d60df0aabd6585b75
2016-08-15 13:36:11 +02:00
Holger Hans Peter Freyther
78f5060c62
ss7: Inform the application layer that a connection is down
...
This can be used to force one connection down while the other
is down. E.g. to force SCTP down when the IPA connection is
down as well.
2015-09-21 15:47:10 +02:00
Holger Hans Peter Freyther
49844e8deb
msc_conn: Clear the write queue when the connection is dropping
2013-03-19 22:51:19 +01:00
Holger Hans Peter Freyther
a5a17fa80a
msc: Allow to listen for incoming connections.
...
This is mostly a hack to allow IPA/SCCP routing to SCTP/M2UA/MTP3/SCCP
without going through the full stack. The proper way of doing this
requires another round of abstraction for the mtp_link_set class.
2013-03-19 22:51:09 +01:00
Holger Hans Peter Freyther
d04011abc1
stp: Extract the MGCP forwarding code out of the msc_connection
...
For the ISUP/MGCP handling we will need the same code, extract it
from the msc_connection. For the reading code callback is introduced
that will pass the MGCP message to the higher layer.
2012-12-16 12:10:26 +01:00
Holger Hans Peter Freyther
ade60edd5f
msc: Only unregister the fd when we have a valid fd
2011-11-25 15:32:45 +01:00
Holger Hans Peter Freyther
2facdb7943
msc: Do not run ping/pong timers by default
...
The current ping/pong timeout is 0 which means the MSC connection
will be taken down almost immediately. Set it to -1 to disable sending
pings and waiting for the pong.
2011-09-19 23:31:45 +02:00
Holger Hans Peter Freyther
b1dfc462df
cellmgr: Patch the MGCP messages and replace the domain name
...
Replace the domain name with a new name domain that can be configured
via the VTY interface.
2011-09-15 19:30:20 +02:00
Holger Hans Peter Freyther
588754c7d3
mgcp: Reset the local endpoint with the domain name configured
2011-09-15 13:23:00 +02:00
Harald Welte
ff397edf38
Adopt to recent libosmocore namespace changes and libosmogsm
2011-05-08 10:29:23 +02:00
Holger Hans Peter Freyther
765fba3fd0
msc: Remove unused method from the code
2011-02-23 16:54:50 +01:00
Holger Hans Peter Freyther
169a1a918c
misc: Use llist_add_tail to add new links to the end
2011-02-22 21:05:59 +01:00
Holger Hans Peter Freyther
c5200fcb35
ss7: Move the linkset up/down into the ss7_app, move some code around
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther
a7bc3aafdc
ss7: Create a SS7 application that is responsible for the routing
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther
2cdb73cf4a
msc: Move more state into the sccp_state.c
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther
3d4d8c7b50
msc: Move the nat handling into the sccp_state for now
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther
84ec8714b2
msc: Move the MSC Connection into a new header file
...
This is in preparation of splitting the MSC part and the
nat logic for the upcoming config rewriting.
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther
cea4518410
msc: In forward_only mode never ask any of the connection tracking code
...
For the forward only code we never want to go through the other
cases, make sure to always return.
2011-02-10 20:09:09 +01:00
Holger Hans Peter Freyther
e86c02e107
bsc: Move the BSC<->MSC variables to a new struct.
...
Move the MSC related information out of the bsc_data and update
the code to use this BSC configuration. This is greatly cleaning
up the code and in theory there might now be two BSC and two MSCs
that one application can handle (minus the missing VTY config)
2011-02-10 20:09:09 +01:00
Holger Hans Peter Freyther
e250ac3f4b
msc: Fix crash due pong timeout started from a msc reset
...
This is fixing a crash that is caused by the MTP link going
down/up and the main routines asking to send a reset to the
MSC. The sending of a reset is triggering the ping/pong
timeouts. In case there is no MSC connection we could crash.
2011-01-21 12:58:08 +01:00
Holger Hans Peter Freyther
644aafbc94
mtp: Make the link_data be a child of the link_set
...
Change the order of the link and linkset. The link will be
below the linkset. This change should make it more easy to
introduce multiple linksets.
2011-01-17 11:21:11 +01:00
Holger Hans Peter Freyther
569f1e171d
mtp: Rename mtp_link to mtp_link_set as this is the linkset
...
The link_udp is actually below the linkset. We need to get this
right now and then can have multiple links.
2011-01-17 11:21:11 +01:00
Holger Hans Peter Freyther
346e1c4bc4
mtp: Attempt to select the sls properly in the round robin fashion
...
When we call the submit method with a SLS of -1 we will try
to find the next SLS to do things in a round robin way.
2011-01-17 11:21:10 +01:00
Holger Hans Peter Freyther
016ba29ec2
msc: Remove the msc_clear_queue now that it is not needed
2011-01-17 11:21:10 +01:00
Holger Hans Peter Freyther
f19afaed7b
sccp: Stop queueing messages between SLTM messages
...
Remove the queueing of messages that was added during a debugging
session and should not be needed. This will simply bringing down
the linkset.
2011-01-17 11:21:09 +01:00
Holger Hans Peter Freyther
de56c22702
license: Switch to the GNU AGPLv3 for this network service
2011-01-16 20:35:13 +01:00
Holger Hans Peter Freyther
7694381f52
udt: Add a forward_only to the bsc struct and use it for the msc_conn
...
Simply forward everything, no need for inspecting things.
2010-11-16 11:16:37 +01:00
Holger Hans Peter Freyther
594ee9a8c4
udt_relay: Add a forked copy of main to just relay messages
...
Do not run any of the header rewriting for messages. This will
simply relay SCCP friends to the MTP library. Some work on msc_conn.c
is needed to avoid calling most of it.
2010-11-16 11:03:19 +01:00
Holger Hans Peter Freyther
5d930f8745
mtp: Store the mtp_link inside the connection
...
Prepare to have multiple links to the BSC.
2010-10-08 23:18:15 +08:00
Holger Hans Peter Freyther
5228069365
ussd: Pass the bsc_data to have access to the USSD message
2010-10-06 16:09:25 +08:00
Holger Hans Peter Freyther
dfcf2df698
ussd: Create the hook where packages from the MSC pass by
2010-10-06 06:20:35 +08:00
Holger Hans Peter Freyther
a4ca6d3947
msc: Create a function to send or queue messages.
2010-10-06 04:51:44 +08:00
Holger Hans Peter Freyther
0f349f2c6d
ussd: Add the hook where we can capture the Location Updating Request
2010-10-06 04:39:08 +08:00
Holger Hans Peter Freyther
377ba4293a
msc: Return an error if we close the fd
2010-10-01 20:37:40 +08:00
Holger Hans Peter Freyther
98f6dd5cdc
msc: Stop the msc reconnect timer as well (possible bfd corruption fix)
...
It appears that we run into a PING timeout before we have received
the first message and then will try to close the connection tiwce.
Stop the msc_timeout when we close down the connection.
2010-10-01 20:30:53 +08:00
Holger Hans Peter Freyther
7b7c297c8f
msc: Separate the BSC and MSC link completly...
...
Make the msc_conn responsible for creating the link to
the core network and reopening it, make the BTS code just
call the msc methods and the MSC will throw away data in
case it can not be forwarded.
This avoids a problem that we start a reconnect timer
while we have a connection in progress and then add the
same file descriptor twice. This is mostly a speculative
fix to the problem.
2010-08-07 05:41:06 +08:00
Holger Hans Peter Freyther
e33d93c366
msc: Manage the msc_link_down only in the msc_conn.c
...
Only write to this property in the msc_conn context and
not from within the main procedure.
2010-08-07 02:40:35 +08:00
Holger Hans Peter Freyther
0c95c6ac93
msc: Rename closing to msc_link_down
...
This is the indicator if the MSC is connected and authenticated
or not. This name should be better than closing.
2010-08-07 02:39:37 +08:00
Holger Hans Peter Freyther
6258539928
msc: Use the msc_close_connection routine
...
Remove code duplication, the only difference is that the generic
callback pointer is not reset. But as we have lost the connection
we will go through the normnal connect again which will fix things.
2010-08-07 02:26:47 +08:00
Holger Hans Peter Freyther
43d9eec14b
msc: Make close_msc public, call it from main..
...
We would have not stopped the timer, fix that by only
having one function to close the connection to the msc.
2010-08-07 01:54:19 +08:00
Holger Hans Peter Freyther
cbf7d18bb9
Use libosmocore instead of the old temporary laF0rge1 lib..
2010-08-04 06:08:40 +08:00
Holger Hans Peter Freyther
5aa17014de
u_int8_t -> uint8_t
2010-07-31 04:37:26 +08:00
Holger Hans Peter Freyther
97f66e2b53
Public release of the cellmgr_ng code to convert E1 to IPA SCCP
2010-07-28 03:36:32 +08:00