Harald Welte
287a3fd644
M2UA: Send connect request after ASP_ACTIVATE_ACK
...
we only snd it once and don't care about the response, this is really
only a minimal implementation to test other parts of the system.
2013-08-27 12:14:23 +02:00
Harald Welte
0402b8f1ac
MTP3: OPC and DPC elements were switched
2013-08-27 12:12:02 +02:00
Harald Welte
7ccc15e025
M2UA: Send interface identifier and 'mode override' in ASP_ACTIVE_REQ
2013-08-27 10:27:52 +02:00
Harald Welte
cf74df58fe
sctp_m2ua: work as SG and ASP; encode #mtp3_msg{} before handing it to M2UA
2013-08-26 17:29:28 +02:00
Harald Welte
48e452874c
xua_codec: convert integer to binary and truncate binary to length
2013-08-26 17:26:42 +02:00
Harald Welte
a5dfd5b449
m3ua_core: handle 'sctp_paddr_change' event
...
This happens e.g. if the route to the peer STP is lost, and we shouldn't
crash just because that happens, but rather try to reconnect...
2013-08-24 14:06:49 +02:00
Harald Welte
9b9ec4abb7
xua_asp_fsm: don't start any timers in 'sg' role
2013-07-27 16:00:08 +08:00
Harald Welte
0b928664ff
ss7_link_m2ua: handle_info() is used instead of handle_cast()
...
handle_cast() is an inherited legacy from old m3ua_core
2013-07-27 16:00:08 +08:00
Harald Welte
ad6e5a9123
xua_asp_fsm: match {next_state, X, Y} return value from callback module
2013-07-27 16:00:08 +08:00
Harald Welte
f76565a007
sctp_m2ua: don't suppress any ASP_UP events from becoming visible to user
2013-07-27 16:00:08 +08:00
Harald Welte
799b2fca79
remove dead commented out code
2013-07-27 16:00:08 +08:00
Harald Welte
4540ecdad7
sctp_m2ua: ignore ASP-UP.ind in case of passive/listen mode
2013-07-27 16:00:08 +08:00
Harald Welte
a540950cfb
xua_asp_fsm: fix typo
2013-07-27 16:00:08 +08:00
Harald Welte
0d8af6bc86
xua_asp_fsm: add support for SG mode in addition to existing ASP mode
2013-07-27 16:00:07 +08:00
Harald Welte
7266d7e032
sctp_core: handle shutdown_comp sctp event.
2013-07-27 16:00:07 +08:00
Harald Welte
c3cc853c6e
add ss7_links:role2sctp_role()
...
helps to translate from asp -> active and sg -> passive
2013-07-27 16:00:07 +08:00
Harald Welte
e861700c3e
osmo_ss7.hrl: add type annotations
2013-07-27 16:00:07 +08:00
Harald Welte
317cee0464
add 'role' to #sigtran_link{} indicating sg or asp role
2013-07-27 16:00:07 +08:00
Harald Welte
fdf2653264
sctp_sua: use 'undefined' for AS Pid
2013-07-27 16:00:07 +08:00
Harald Welte
dd03995ea2
sctp_core: register process name and listen to SCTP socket in passive mode
2013-07-27 16:00:07 +08:00
Harald Welte
43ceb09099
xua_asp_fsm: Only send ASPAS event from ASP to AS if AS pid != undefined
2013-07-27 16:00:07 +08:00
Harald Welte
69b5f279a1
sctp_sua: Change number of arguments to xua_asp_fsm:init()
...
In commit eb61885c35
the number of
arguments to xua_asp_fsm:init() was expanded by one for the pid of the
AS FSM. This change alters sctp_sua to adhere to this new list of
arguments, enen though it passes 'fixme' in as the pid, as we currently
don't yet fully use the xua_as_fsm module yet.
2013-07-27 16:00:07 +08:00
Harald Welte
5c9f3b5862
hook up the existing m2ua code into the ss7_link infrastructure
...
After this commit, it is possible to add #sigtran_link{type=m2ua}
using the osmo_ss7_sup:add_mtp_link() API.
The actual M2UA code appears to be incomplete at this point
2013-07-27 16:00:07 +08:00
Harald Welte
049ee73509
isup_codec: add gen_party_number() helper
2013-06-24 08:00:24 +02:00
Harald Welte
a0d2d96566
m3ua_core: handle shutdown_comp SCTP evnt
2013-06-24 08:00:22 +02:00
Tobias Engel
d49aa21366
handle non-tuple return value of TupleCB
2013-06-13 11:19:30 +02:00
Harald Welte
ef770471dc
Fix error in MTP3MG parsing code
...
The MTP3MG payload is not the MTP3 payload, but only what is remaining
after the MTP3MG header has been parsed.
2013-04-26 21:20:19 +05:30
Harald Welte
eef6ce4397
add xua_asp_test module to repository (was in my local tree only)
2012-05-30 12:06:21 +02:00
Harald Welte
e58b38f7a8
make module compile again (m2ua->xua changes)
2012-05-30 12:05:18 +02:00
Harald Welte
dd35d2c8fb
xua_asp_fsm: Add start_link/6
2012-05-09 00:10:39 +02:00
Harald Welte
312a1eb1ae
xua_as_fsm: ignore ASP_DOWN in AS-PENDING and fix state list generation
2012-05-09 00:03:38 +02:00
Harald Welte
eb61885c35
xua_asp_fsm: wrap next_state/1 and signal ASP state chg to AS
2012-05-08 23:50:04 +02:00
Harald Welte
09a80c09df
sg_as_sup: introduc get_as_fsm_name/1
2012-05-08 23:37:33 +02:00
Harald Welte
7c3ec176b1
xua_as_fsm: fix use of lists:all/2 and introduc create_asp/2
2012-05-08 23:36:49 +02:00
Harald Welte
ee7964c0f3
make the SG AS/ASP supervisor hierarchy work
2012-05-07 23:55:02 +02:00
Harald Welte
108c4b73f7
M2UA: some important parameter types
2012-05-06 23:32:40 +02:00
Harald Welte
fbd4f73739
add new AS and ASP supervisors as well as FSM for AS
...
This is part of a new process hierarchy for proper operation of a SG
(Signalling Gateway) with a number of AS, each containing multiple ASP,
the respective state management, fail-over, etc.
The AS supervisor starts the AS fsm and the ASP supervisor.
The ASP supervisor will be used to start and maintain ASP fsm's
(xua_asp_fsm), which in turn link into the respective M2UA/M3UA/SUA
behavior.
Those ASP fsm's will then be used by the processes that represent the
SCTP associations.
2012-05-06 23:29:42 +02:00
Harald Welte
0fbcc824f9
add some more M2UA related definitions
2012-05-05 23:59:35 +02:00
Harald Welte
231ae0b993
M2UA Codec: Use generic xUA codec instead
2012-05-05 23:58:21 +02:00
Harald Welte
f8bf03231c
add compatibility clause for Erlang Public License
...
This is required to make sure that even if somebody thinks the erlang
OTP libraries and my code form a derivative work, there will be no
licensing conflict.
2012-04-16 13:10:47 +02:00
Harald Welte
92e783d109
rename sua_codec to generic xua_codec
...
SUA/M3UA/M2UA/M2PA actaully all uses almost the same message format,
so it makes sense to write one generic xua_codec and derive from that.
The current SUA implementation didn't actually contain anything SUA
specific, so we can just rename it and use xua_codec directly from the
users.
2012-04-01 19:54:20 +02:00
Harald Welte
7aff8fb62b
sua_codec: rename generic part from sua -> xua
2012-04-01 19:03:31 +02:00
Harald Welte
bd63ade980
sctp_sua: Pass connectionless msgs to SCCP
2012-04-01 18:41:53 +02:00
Harald Welte
48a7b19ce0
remove debug output
2012-02-13 22:15:24 +01:00
Harald Welte
1a82d20b59
sccp_codec: Adapt eunit test case to recent code changes
...
In commit 2c67ac00cc
we removed
the 'encoding' parameter from the sccp_gt record.
2012-02-13 14:39:13 +01:00
Harald Welte
4e159db4a5
sua_codec: Adapt test to recent code changes
...
In 4d6109983b
we removed a length field
from the sua_msg record, the eunit test case has to be adapted
2012-02-13 14:35:04 +01:00
Harald Welte
d36ad227d9
mtp3_codec: update eunit test with recent code change
...
Fixes in the mtp3 parser introduced in
092443629b
have to be reflected in the
test case.
2012-02-13 14:33:07 +01:00
Harald Welte
a4a6f9b76b
ss7_links: no longer 'link' processes creating a linkset
...
This just produced bogus messages about cleaning up tables, which was
not being done anymore anyway.
2012-01-31 22:30:58 +01:00
Harald Welte
79e233f14a
osmo_util: add new asn_val() function
2012-01-31 22:30:22 +01:00
Harald Welte
7580dc5430
ss7_links: add type annotations
2012-01-28 14:42:45 +01:00