Holger Hans Peter Freyther
8e6d4c3414
mgcp: Check if the endpoint is blocked and then reject it
...
Instead of hardcoding which timeslot is blocked we will just
use the blocked flag in an endpoint. This should fix call
handling for CIC on the trunk config.
2011-03-21 15:14:04 +01:00
Holger Hans Peter Freyther
e0dc3e5276
isup: Handle CGUs and respond with a CGUA
...
We don't let CGUAs pass when handling circuit blocking and
unblocking locally. But we did let a CGU go through and then
we never sent the response back to the sender. Respond to a
CGU with the same content.
2011-03-05 09:50:47 +01:00
Holger Hans Peter Freyther
2068e8cfe3
vty: Remember if isup should be passed through or not.
2011-03-05 09:48:52 +01:00
Holger Hans Peter Freyther
d0444e53af
mgcp: Fix the initialisation set trunk_type in the caller
2011-03-03 11:50:06 +01:00
Holger Hans Peter Freyther
8941c1d422
isup: Print the linkset nr and name like in other commands.
2011-03-03 08:18:27 +01:00
Holger Hans Peter Freyther
56cba9ab45
ss7: Drop the input of packages as well
...
We don't want the input change any state on the linkset and will
drop them if we think our application is not reachable.
2011-03-03 01:20:03 +01:00
Holger Hans Peter Freyther
899198ed2e
ss7: Move the blocking of outgoing messages into the SS7 app
...
We are using knowledge of the SS7 application to drop outgoing
packages to force failures on the link and should move this into
the ss7 application.
2011-03-03 01:19:45 +01:00
Holger Hans Peter Freyther
d38b87a4c9
ss7: Do not send anything until both linksets in an app are up
...
We need some way to forward the failure of one link to another but
they are not normally routed so we can not send a TFP. Right now we
will simply stop responding until both links are up. This should make
the SLTM fail and trigger a re-alignment on both sides. The key here
is that the 2 * SLTM timeout needs to be higher than it takes to re-align
the link. I'm not sure this code will work.
2011-03-03 01:19:02 +01:00
Holger Hans Peter Freyther
123147a472
sctp: Mention the link index that got released
2011-03-03 01:13:26 +01:00
Holger Hans Peter Freyther
3574c121ff
mtp: Consider the linkset be ready for SCTP after having collected routing data
...
After the expiry of T18 we should have collected the routing data
from the adjacent links and should be able to send SCCP packages
to remote endpoints.
2011-03-02 23:44:03 +01:00
Holger Hans Peter Freyther
ec84e3c1a1
mgcp: Add a go to parent to allow multiple trunks
2011-03-02 22:49:02 +01:00
Holger Hans Peter Freyther
3c8b0f89aa
mgcp: Use the blocked attribute to figure out if an endpoint is blocked
2011-03-02 22:22:50 +01:00
Holger Hans Peter Freyther
7e8ee3a4be
sctp: Use the right link index when sending messages
...
Stop using the hardcoded link index and use the link index
of the link.
2011-03-02 22:00:24 +01:00
Holger Hans Peter Freyther
5960ba387a
sctp: Handle establish request for a wrong ASP
...
The MSC we test is not sending an ASP Active when the
link is unblocked. If the m2ua_link has no connection
associated we will forgive the MSC and active it.
2011-03-02 21:56:03 +01:00
Holger Hans Peter Freyther
fb5b6dc80e
mgcp: Respect the blocked indication fo an endpoint.
2011-03-02 21:49:50 +01:00
Holger Hans Peter Freyther
0d20e0d12f
mgcp: Mark certain endpoints as blocked.
...
Right now for the virtual trunk 0x0 and 0x1F is blocked, for the
E1 like interface we have 0x0 and 0x1 blocked. This should start
to be configurable in the future.
2011-03-02 21:44:01 +01:00
Holger Hans Peter Freyther
d523131339
snmp: Fix the configuration and point it to the right thing.
2011-03-02 13:34:43 +01:00
Holger Hans Peter Freyther
e592933202
mgcp: Use the 'i' as type for SNMP to help with the code.
2011-03-01 18:00:52 +01:00
Holger Hans Peter Freyther
b7299a89cd
mgcp: Configure the HSCOMM routing based on the information we have
...
Configure the routing of audio ports if mgcp_mgw is configured
to do this. This allows to have multiple trunks, make virtual
ports go to a specific trunk as well.
2011-03-01 16:07:54 +01:00
Holger Hans Peter Freyther
d384912f76
mgcp: Calculate which dsp resource should be used by the trunks
2011-03-01 16:07:19 +01:00
Holger Hans Peter Freyther
672f321eea
mgcp: Calculate the right Audio Processor resource for high endpoints
...
With this commit we can have more than 30 endpoints that will work. We
ignore the blocked endpoints 0x1 and 0x1f for each trunk and calculate
everything from the right start point.
2011-03-01 13:52:57 +01:00
Holger Hans Peter Freyther
dcc3312792
mgcp: Merge OpenBSC MGCP code and update the structure to match it
...
* Upstream has a separation of BTS and NET side for RTP ports and
can allocate them dynamically.
* Upstream has gained the concept of trunks. We will now have various
trunks to connect audio things.
* We will now be able to utilize multiple trunks and have the endpoints
used properly.
2011-03-01 13:02:29 +01:00
Holger Hans Peter Freyther
f3da99ed65
mgcp: Attempt to get the endpoint configuration right
...
number_endpoints is always one bigger than it needs to be,
subtract the one in the show command, start counting at one.
2011-02-28 17:27:14 +01:00
Holger Hans Peter Freyther
796406beee
mgcp: Add code that will attempt to configure the TDM switch
2011-02-28 17:21:49 +01:00
Holger Hans Peter Freyther
a2938fee11
sctp: Fix a memory leak on connection failures.
2011-02-25 19:48:24 +01:00
Holger Hans Peter Freyther
718d4ba66c
sctp: Only handle traffic with the payload type of M2UA
2011-02-25 19:47:55 +01:00
Holger Hans Peter Freyther
0e6cbc62b2
sctp: Fail if we fail to enable SCTP events on this socket
...
Without events we don't have access to the SCTP sndrcvinfo and
the ppid in it and we will do bad things like sending M2UA on
PPID 0.
2011-02-25 19:44:22 +01:00
Holger Hans Peter Freyther
639d77b6fb
links: Fix the init code for the old cellmgr_ng code
2011-02-25 16:29:45 +01:00
Holger Hans Peter Freyther
03fc66074b
counter: Fix the wrong counter size.
2011-02-23 17:41:23 +01:00
Holger Hans Peter Freyther
af3faf8a81
vty: Allow to specify 14 bits for the CPC.
2011-02-23 16:59:45 +01:00
Holger Hans Peter Freyther
d062f8318e
mtp: Call the mtp_link_set always set otherwise things get confusing
...
In a backtrace it is confusing to see variables called link and link
and one is a mtp_link and the other is a mtp_link_set.
2011-02-23 16:58:15 +01: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
4c9dd160c3
sccp: The link attribute was never used leading to a crash
...
Right now we assume that the source of an application with
SCCP state tracking is a linkset. Send the message to that
linkset.
2011-02-23 16:11:21 +01:00
Holger Hans Peter Freyther
47c9faac3b
mtp: Attempt to implement the MTP Restart properly
...
For the SSP functionatilty we will need to have the timers T18
and T20. In the period of T18 we will collect TFP/TFR/TFA for the
reachable nodes of the system. Each of this node will send us a TRA
when it is finished. Right now we assume to only have one node and
stop the T18 after the TRA of this node. Then we would need to send
the TFP/TFR we have collected. On the expiry of the T20 timer we
will need to send our TRA and notify local users.
For more complex routing we will need to have a shared routing
cache and remember which SSNs and OPCs are reachable and have inter
linkset notifications.
2011-02-23 15:27:09 +01:00
Holger Hans Peter Freyther
8d7027846f
mtp: Do not start linktest on a blocked link
2011-02-23 15:25:36 +01:00
Holger Hans Peter Freyther
7176030e02
vty: Add all mighty new vty interface for osmo-stp
...
This new interface allows to have multiple linksets, msc
connections and ways to connect those in one instance of
the osmo-stp. Forbid to reset linksets without an app.
2011-02-23 15:25:35 +01:00
Holger Hans Peter Freyther
2917644d50
vty: Move the actual commands into a new file in preparation
2011-02-22 21:05:59 +01:00
Holger Hans Peter Freyther
318e830463
vty: Always work through the linkset number for the commands
2011-02-22 21:05:59 +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
e62e4b05bf
m2ua: Make sure all replies contain the link identifier
2011-02-22 21:05:59 +01:00
Holger Hans Peter Freyther
cfe9d718e2
vty: Remove more globals from the bsc data.
...
This is a interim solution until we have the new and all mighty
new config file format. This should work for now, makes the init
abit harder to understand though.
2011-02-22 21:05:59 +01:00
Holger Hans Peter Freyther
4cee7c0901
m2ua: Start link only after we had the emergency alignment
...
This should avoid us getting an error as we are sending the
SLTM too fast. In one way this makes sense, on the other hand
we already have too many states and should remove some variables
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther
5e5758c783
log: Improve some logging messages across several files.
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther
7c6feca7cf
m2ua: Do nothing on a reset request for now.
...
Only restart the link test on this link in case the link
is present and we need to do things. The link up/down should
be controlled in a different way.
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther
8fd28dbbe6
m2ua: Keep the M2UA ASP state in the mtp_m2ua_link
...
This change allows to run multiple links over the same SCTP
connection or multiple SCTP connections. It does not yet
support fail over handling or load balancing but that seems
possible now.
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther
41df6c5978
m2ua: Include the interface identifier in the notify message
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther
5a34c7f6f8
mtp: Rename link_no to nr, add a name like for the other commands
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther
6c0b2e570c
mtp: Make the mtp_link point to a specific type of link
...
We might want to be able to change the type of a link at
runtime. Decouple the link and the actual type of the link.
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther
ea247c1d0a
vty: Move link commands from the name to the linkset number
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther
1b5d846b46
mtp: Stop hardcoding the supported SSN inside the mtp_layer3.c
...
Stop hardcoding the supported ssn's inside the mtp_layer3.c and
make it possible to allow to configure this in the future.
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther
b27c9626e8
mtp: Remove the bsc pointer from the MTP LinkSet
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther
a33b23f293
mtp: Rename no to nr to align with the rest of the structs
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther
4096d12ee0
bsc: Print the talloc allocation report on SIGUSR1
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther
5cd45e16ef
bsc: Move the signal handling code over to the bsc.c
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther
2d4891ff8c
bsc: Move the option parsing into the common code in bsc.c
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther
289436f8b6
bsc: Cleanup some fields and names
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther
64b7d56dc0
ss7: Move all mtp linksets callbacks into the app layer
2011-02-17 19:34:28 +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
ab7c601118
ss7: Provide a way to start the application
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
f7ce2c6417
m2ua: Start to separate the SCTP code and M2UA to allow multiple links
...
We want to be able to support multiple links over different SCTP
connection and in the future also over the same connection. This
is the first step to separate the SCTP connection handling from the
link handling inside these messages.
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther
694337f893
mtp: Allow to find a linkset by number
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther
599c9a4b9a
mtp: Allocate the MTPLinkSet as a child of the BSC
...
In preparation of the VTY code change, make the mtp linkset
a child of the bsc.
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther
2ff47b8606
bsc: Allocate the bsc with talloc instead
...
Allocate the bsc with talloc to have a nice root context for
everything in the system.
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther
1927e638e1
m2ua: Close a huge memory leak in the m2ua code.
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther
b187049925
vty; Remove the lac/mnc/mcc option as this was never implemented
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther
dd32ae5403
msc: The udt_relay could be implemented with the normal cellmgr now
...
Simplify the code and remove the standalone udt_relay application,
the job can be done with cellmgr_ng. This will happen after we have
settled for a new config file format.
2011-02-10 20:09:09 +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
7ca2b03aa6
bsc: Remove the m2ua_set pointer from the struct as well
2011-02-10 20:09:09 +01:00
Holger Hans Peter Freyther
89fa11af02
bsc: Remove the global link_set pointer from the bsc
...
Start removing the static names for the linkset
2011-02-10 20:09:09 +01:00
Holger Hans Peter Freyther
43b015a8ea
bsc: Move the connection tracking code out of main file
2011-02-10 20:09:09 +01:00
Holger Hans Peter Freyther
bf5eada0aa
bsc: Stop using the bsc.link_set directly
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
ee63d7d15e
stp: Allow/Disallow to inject messages on the UDP/M2UA interface
2011-02-10 20:09:08 +01:00
Holger Hans Peter Freyther
0452f22a21
stp: Add code that allows to inject messages on any linkset
...
This can be useful to test out certain messages without having
any of the linksets be fully connected. It is not possible to
get the result. In the future this code should reply with an
M2UA error message if something went wrong.
2011-02-10 20:09:08 +01:00
Holger Hans Peter Freyther
6b71fd6192
vty: Fix the help and the parameters for the trace command
2011-01-31 22:41:03 +01:00
Holger Hans Peter Freyther
f603f28488
isup: Make it possible for the STP to handle/not handle ISUP messages
...
Add an option to decide if we should handle GROUP BLOCK and RESET
messages inside the STP or if we should forward those as well.
2011-01-30 00:24:15 +01:00
Holger Hans Peter Freyther
d3f412bbd5
mtp: Turn error messages into full sentences.
...
Turn the error messages into full sentences that
end with a full stop. Try to put the link set name
and the link number into these messages.
2011-01-28 18:52:16 +01:00
Holger Hans Peter Freyther
309d79f5ed
mtp: Forbid link up/failure on blocked links.
2011-01-28 18:26:20 +01:00
Holger Hans Peter Freyther
86a2a53b90
udp: Use link up/down signals from the MIB for the link
...
The mib was patched to send link up/down in case of failures,
only put a link service when the MIB tells us the link is
up, the failure case should only happen for remote links
failing. We will reset and go through link alignment.
2011-01-28 18:23:07 +01:00
Holger Hans Peter Freyther
122d604838
mgcp: Turn the endpoint-offset into a proper config option
2011-01-26 13:20:32 +01:00
Holger Hans Peter Freyther
1cf3a83780
mgcp: Make it possible to control the offset from Endpoint to CIC
2011-01-26 12:51:22 +01:00
Holger Hans Peter Freyther
38d936a445
mtp: Assign a name to linkset, use this name in the log messages
2011-01-26 12:41:42 +01:00
Holger Hans Peter Freyther
c5562bde48
sctp: Close the socket if we get <= 0 as a result for sctp_rcvmsg
...
The manpage says that -1 is the indication for error but on 2.6.12
we just ended up in a infinite loop as select shows the socket as
readable but a recvmsg does not give any data.
2011-01-26 11:02:42 +01:00
Holger Hans Peter Freyther
44f848b086
mgcp: Merge from master to respond to a RQNT
2011-01-25 23:43:55 +01:00
Holger Hans Peter Freyther
fd5d8d2ac1
mtp: Send the TFP/TRA/TFA with the first SLS provided by that link
2011-01-25 13:38:28 +01:00
Holger Hans Peter Freyther
7d336a55ed
mtp: Make SCCP tfa/tra/tfp messages work on the linkset
...
This will be used to send the data with the right SLS from
the right link of the linkset.
2011-01-25 13:38:27 +01:00
Holger Hans Peter Freyther
1ec2a749f0
mtp: Remember the first SLS this link is on
2011-01-25 13:38:27 +01:00
Holger Hans Peter Freyther
4c8ddb356c
vty: Fix the up/down of the MSC link
2011-01-25 13:18:59 +01:00
Holger Hans Peter Freyther
8a96e474a2
mtp: Fix the logic... close the socket if we are blocked
...
Thinko or such.
2011-01-25 09:57:55 +01:00
Holger Hans Peter Freyther
3c2b84c607
vty: Show the SLC mapping of a linkset
2011-01-24 21:20:34 +01:00
Holger Hans Peter Freyther
326a1f7310
stats: Fix counting incoming packets from a link
2011-01-24 20:52:30 +01:00
Holger Hans Peter Freyther
9543f4a356
mtp: Call it mtp_link_submit and use it in mtp_link
...
Remove the _set from the API, call it from the mtp_link.c. This
will fix the statistics for outgoing packets.
2011-01-24 20:49:58 +01:00
Holger Hans Peter Freyther
3a1c0af868
udp: Create a SNMP session per UDP
...
We do not have the multiple callbacks from SNMP under control
and we can only save the last request if the SNMP Session is
inside the link. This is mostly a workaround for Net-SNMP and
the missing documentation on the async functionality.
2011-01-24 20:21:11 +01:00
Holger Hans Peter Freyther
4e2e242d70
mtp: Show blocked links as blocked in the vty stat
2011-01-24 16:14:26 +01:00
Holger Hans Peter Freyther
315ec675ba
mtp: Implement VTY routines to block,unblock,reset a link
...
This can help in link management and reconfiguration of a
link at runtime. It is also a good engineering mode for
multiple linksets.
2011-01-24 16:14:25 +01:00
Holger Hans Peter Freyther
ea5ce23d72
mtp: Make it possible to block a link.
...
The semantic of a block is to take the physical
link down, call mtp_link_down and to make sure
that the link remains down and no packets are
forwarded there. The unblock call will reset the
link and this should get it back into operation
again.
2011-01-24 15:35:08 +01:00
Holger Hans Peter Freyther
8ade9b7bc2
pcap: Fix stupid bug and unbreak pcap writing
2011-01-23 16:18:18 +01:00
Holger Hans Peter Freyther
fca7b12e0d
vty: Install the vty logging commands
2011-01-22 23:19:44 +01:00
Holger Hans Peter Freyther
16b07c645b
pcap: Dump each packet in the DCAP category
2011-01-22 23:19:27 +01:00
Holger Hans Peter Freyther
0292127467
debug: Set the right debug area for the M2UA code
2011-01-22 23:05:03 +01:00
Holger Hans Peter Freyther
5c2e458dca
debug: Add two categories to be used in the future.
2011-01-22 22:57:42 +01:00
Holger Hans Peter Freyther
1b47ce5b9b
stat: Dump a name next to the OPC
2011-01-22 21:33:18 +01:00
Holger Hans Peter Freyther
5b2fe8d45b
pcap: Allow to start tracing on a specific linkset after app start
...
Allow to start to trace on a specific linkset after the application
has been started. This allows to stop tracing on a linkset as well.
2011-01-22 21:33:18 +01:00
Holger Hans Peter Freyther
f6375b49d3
pcap: Allow to log on a link or linkset level
2011-01-22 21:33:18 +01:00
Holger Hans Peter Freyther
36260e915a
pcap: Classify the direction of such a message
2011-01-22 21:33:18 +01:00
Holger Hans Peter Freyther
ddf8eae7da
pcap: Run all pcap operations through one method
2011-01-22 21:33:11 +01:00
Holger Hans Peter Freyther
c6bfa27b5e
udp: Allow to create multiple links via UDP
...
This is the easiest way to support multiple links over UDP.
Specify the number you want and they will be initiated. All
these links will run via the same UDP port.
2011-01-22 17:24:06 +01:00
Holger Hans Peter Freyther
0b31622482
vty: Print the MSC status on the VTY for relay/cellmgr
2011-01-22 16:43:14 +01:00
Holger Hans Peter Freyther
a310e53243
vty: Classify the application that we run and provide different options
...
The VTY interface is used for three different application and not
every option will make sense for every app. In the long run we will
split the vty interface but for now we just qualify the application.
2011-01-22 16:34:16 +01:00
Holger Hans Peter Freyther
60af5dd57a
stats: Print some statistics about the state of the current set
2011-01-22 16:22:18 +01:00
Holger Hans Peter Freyther
51b9e7a396
stats: Implement VTY command to dump the linksets
2011-01-22 16:22:18 +01:00
Holger Hans Peter Freyther
4c1eb0ee43
stats: Count packets on a per link level
2011-01-22 16:22:18 +01:00
Holger Hans Peter Freyther
c5d897e847
stats: Collect statistics on the linkset
...
Collect incoming, in sccp, in isup, out isup, out sccp packets.
This does not yet work for out in total.
2011-01-22 16:22:18 +01:00
Holger Hans Peter Freyther
aafa7c788e
stats: Add rate_counter for more statistics on the MTP side
2011-01-22 16:22:18 +01:00
Holger Hans Peter Freyther
eab20964b2
udp: Make the SNMP code asynchronous
...
Do not block the application when doing a SNMP request. Work
with the results coming back from the callback. Right now a
link can only be taken down and up.
2011-01-21 19:40:49 +01:00
Holger Hans Peter Freyther
4da421da6f
udp: Make two snmp functions internal
2011-01-21 18:01:37 +01:00
Holger Hans Peter Freyther
083a30b9b8
udp: Poll SNMP for timeouts and fd every 100ms
...
This is the easiest way to integrate net-snmp with the event loop,
every 100ms we are going to check for timeouts or incoming messages
2011-01-21 18:01:36 +01:00
Holger Hans Peter Freyther
f38114eee2
udp: Allow to run multiple links through the same socket
...
The UDP socket will be shared between multiple links, the
snmp session will be also shared between multiple links on
the same hardware.
2011-01-21 18:01:36 +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
050577a088
mtp: Return SLTA on the same SLS, send SLTM with a static sls
...
Derive the SLS from the static link_no we have assigned.
2011-01-20 19:28:15 +01:00
Holger Hans Peter Freyther
95057b9237
mtp: Send the SLTM/SLTA on the link directly
...
For both the SLTM that the app is sending and the SLTM we
are receiving we don't want to go through the SLC.
2011-01-20 19:07:16 +01:00
Holger Hans Peter Freyther
1cc24561b0
mtp: Count the links in a linkset
2011-01-20 19:07:16 +01:00
Holger Hans Peter Freyther
fa8cf2d938
mtp: Create a method for a link failure to restart the link.
...
Make sure that a failed link will be restarted by calling the
reset method which should take the link down.
2011-01-20 19:07:16 +01:00
Holger Hans Peter Freyther
9b8a4a7f49
mtp: Remove the unused linkset_sccp_down routine as it is not used
2011-01-20 19:07:16 +01:00
Holger Hans Peter Freyther
a8ce061d86
mtp: Move the link testing into a new file for mtp_link
...
The link testing should work under the linkset and if the
SLTM is failing the link should be taken down and it should
be restarted.
2011-01-20 19:07:16 +01:00
Holger Hans Peter Freyther
2d845fca0c
mtp: Rename the the_link to set as it is a link set
2011-01-20 15:44:14 +01:00
Holger Hans Peter Freyther
b4b747d7f7
mtp: Stop assigning the link_set it will be done in mtpl3
2011-01-20 15:39:40 +01:00
Holger Hans Peter Freyther
1349584c26
mtp: Start the linktest directly
...
No need for delaying the linktest, start it directly when
the linkset should come up
2011-01-20 15:08:57 +01:00
Holger Hans Peter Freyther
606eae8ece
mtp: Send the TFP/TRA once the first link is available
...
Instead of sending SCCP TFP/TRA as a response to a TRA
the code will now send one as a response to the first
SLTA we receive in the linkset on the first link.
2011-01-20 14:23:10 +01:00
Holger Hans Peter Freyther
157de2a8ab
mtp: Only respond to regular maintainenance for our code point
2011-01-20 13:11:29 +01:00
Holger Hans Peter Freyther
69e71e0670
isup: Attempt a short cut in the link bring up by sending a unblock
...
Attempt to unblock all circuits after the Gateway has blocked them. In
the ISUP spec we would need to go through the continuity test and such.
2011-01-20 11:49:39 +01:00
Holger Hans Peter Freyther
8f6eb5e688
isup: Handle a CGB with a CGBA and claim all circuits to be blocked
...
This is to help the Exchange B to go through the start procedure.
2011-01-20 11:49:39 +01:00
Holger Hans Peter Freyther
ecd835500e
isup: Make status parsing and status response be generic
2011-01-20 11:49:39 +01:00
Holger Hans Peter Freyther
6e11bee8cf
isup: Attempt to handle a RSC on the exchange
2011-01-20 11:49:39 +01:00
Holger Hans Peter Freyther
d8a73e24d2
isup: Allow to have a different OPC for ISUP messages.
2011-01-20 11:49:39 +01:00
Holger Hans Peter Freyther
a4661fb228
isup: Fix the lebgth check in this packet
2011-01-20 11:49:39 +01:00
Holger Hans Peter Freyther
cfbe80febb
mtp: Send a TFA for the point codes we are routing to.
2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther
adf7692031
mtp: Send TRA messages on all affected point codes
2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther
27c5e2357f
mtp: Send the TFP for every POC we want to handle.
2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther
bee2ed18c7
mtp: Make the input path work on a specific link of the linkset
2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther
84899a484c
stp: Set the pcap fd properly... WIP merge this
2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther
efbd8c2e80
stp: Allow to forward all ISUP messages without any modification
2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther
1b6901ec4a
stp: Forward unhandled ISUP from one end to another
2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther
9cf11bc109
stp: Create a M2UA link by hand and connect the SCCP routines
...
This is a hacked version that will just forward SCCP from one
linkset to another one. It is missing configuration and ISUP.
2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther
a93b83bf99
stp: Begin to implement a signalling transfer point
...
This is creating a new application that will be a signalling
transfer point. Right now it is a stripped down version of
the udt_relay, which is a stripped down version of cellmgr_ng.
2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther
92affdad72
mtp: Do not send anything in case the there is no link
...
If there is no usable link in the linkset we should not try
to send. This assumes that all incoming packages come from
links that are up. We do not check this right now but we
will have to check this.
2011-01-20 11:37:49 +01:00