Harald Welte
482131078d
Add PCAP utility routine for testing
2011-03-11 15:50:13 +01:00
Harald Welte
fe27ae5524
ISUP: Add eunit test for IAM message
2011-03-10 10:33:59 +01:00
Harald Welte
b41fd1712f
add some first ISUP tests
2011-03-10 10:28:36 +01:00
Harald Welte
661e3811cd
ISUP Codec: Fix parsing of circuit group related messages
...
binary:at() starts with '0' as first member, not '1'
2011-03-10 10:22:04 +01:00
Harald Welte
3cedc913c7
add eunit tests for sccp_codec and osmo_util modules
2011-03-08 19:10:52 +01:00
Harald Welte
62b5d5777f
add eunit unit tests for M2UA and MTP3 codec
2011-03-08 19:02:29 +01:00
Harald Welte
8a6823d0a5
osmo_util: Extend tuple_walk with a list of caller-supplied Arguments
2011-03-08 16:03:31 +01:00
Harald Welte
b6da0f89a3
remove sctp_handler.erl from osmo_ss7, it belongs to mgw_nat
2011-03-08 12:37:17 +01:00
Harald Welte
4a0afae440
[osmo_util:tuple_walk] Add support to properly traverse lists (of tuples)
2011-03-07 23:54:04 +01:00
Harald Welte
cf43601fbe
osmo_util: Introduce a tuple tree walker (osmo_util:tuple_walk())
2011-03-07 12:54:15 +01:00
Harald Welte
42d3f2e606
SCTP handler: Ignore all PPID != 2 data from SCTP sockets
2011-02-25 18:15:40 +01:00
Harald Welte
c8d06c4e6c
consistently use lists to represent phone number digits again
2011-02-09 22:27:19 +01:00
Harald Welte
36158495a6
ISUP: Export {parse,encode}_isup_party()
...
Those functions are now used by the map_codec.erl
2011-02-09 21:42:34 +01:00
Harald Welte
d463ac920c
fix Emakefile
2011-02-09 14:23:32 +01:00
Harald Welte
5882a9b0b6
add osmo nodes 'files' directory
2011-02-09 13:12:46 +01:00
Harald Welte
1a09d6ac55
fix app/reltool magic
2011-02-09 12:34:29 +01:00
Harald Welte
78474ae3e2
re-structure SS7 code and MGW NAT code into separate modules
...
This repository now only contains the SS7 code
2011-02-07 20:48:41 +01:00
Harald Welte
f2d112edec
[SCCP MASQ] more verbose logging of rewrite
2011-02-06 22:36:45 +01:00
Harald Welte
26f1cd50ab
[SCCP MASQ] move pool base/max into config file
2011-02-06 22:33:08 +01:00
Harald Welte
0e1709cb65
[SCCP] correctly encode global title odd/even number of digits
2011-02-06 22:17:53 +01:00
Harald Welte
e60be42a6d
[sccp_masq] we don't use lists to represent phone numbers anymore
2011-02-06 22:02:35 +01:00
Harald Welte
184f03a675
[mgw_nat] fix calling semantics of do_sccp_gt_rewrite
2011-02-06 21:58:59 +01:00
Harald Welte
3d9a4da204
[mgw_nat] fix syntax errors in config file
2011-02-06 21:54:51 +01:00
Harald Welte
93b2ab5255
[mgw_nat] support an entire list of SCCP mangling rules
...
Also, use integers for phone numbers instead of lists, as they
are easier for humans to read+write.
2011-02-06 21:48:58 +01:00
Harald Welte
778048918b
introduce new osmo_util.erl for utility routines
...
move digit_list/int conversion and config reload into it
2011-02-06 18:12:47 +01:00
Harald Welte
15b3fc0d4d
[mgw_nat] add mgw_nat_app:reload_config() function
2011-02-06 17:57:24 +01:00
Harald Welte
d18061bc46
add empty ebin directory
2011-02-06 17:56:17 +01:00
Harald Welte
0d2d67c0df
[MGW NAT] do SCCP address translation independent of SSN
...
Sometimes the inquiry is from SSN HLR->MSC, but the response originates from
VLR->HLR. We want to make sure to catch all cases.
2011-02-05 12:18:58 +01:00
Harald Welte
a6b0da770c
[SCCP MASQ] itroduce mgw_nat_usr:reset_sccp_masq() to forget all state
...
This is a useful feature during testing
2011-02-04 18:08:52 +01:00
Harald Welte
99f21c666e
[SCCP MASQ] introduce stateful SCCP global title masquerading
...
WARNING: no timeouts have yet been implemented!
2011-02-03 19:05:33 +01:00
Harald Welte
790f364347
introduce erlang 'application' and corresponding config file
...
this replaces the use if '-define()' for stuff like NAT parameters
2011-02-03 17:44:50 +01:00
Harald Welte
918c1f2029
[NAT MGW] actually rewrite the SCCP addresses
2011-02-03 15:55:57 +01:00
Harald Welte
66517c074e
[MGW NAT] actually call SCCP mangling+encoding code
2011-02-03 14:12:50 +01:00
Harald Welte
234c956f47
[SCCP] use SCCP address decoder, add SCCP address encoder
2011-02-03 13:51:12 +01:00
Harald Welte
2b4b2678a7
[SCCP] introduce sccp_addr{} and global_title{} records
2011-02-03 12:50:41 +01:00
Harald Welte
32dc37e601
add Emakefile
2011-02-03 12:50:36 +01:00
Harald Welte
ba6fdbbe3d
[SCCP] Add (untested) parser routines for SCCP addresses (GT/SSN/PC)
...
We re-use the phone number digit parsing code from ISUP
2011-01-23 22:06:23 +01:00
Harald Welte
9ea33d385c
[MGW NAT] fix supervisor parameter passing, double-list for doubly-apply
...
There are two successive iterations of apply() being called, one by
the supervisor:start_one_child() logic, and the second time inside
the mgw_nat_usr:init() function calling sctp_handler:init(). To
make sure our list survives this as list instead of sequence of
arguments, we need to double-[] quote it.
2011-01-23 18:43:02 +01:00
Harald Welte
bb07a348c4
remove SCLC code that was never completed or used
2011-01-23 18:42:33 +01:00
Harald Welte
e895c9bbca
Add OTP supervisor for mgw_nat_usr
...
for some reason it is not working yet :(
2011-01-22 20:55:56 +00:00
Harald Welte
ed01ec494e
[mgw_nat] make sure CONNECTED numbers are mangled, too
2011-01-22 20:54:36 +00:00
Harald Welte
789c8b14ac
Wrap sctp_handler.erl into an OTP gen_server behavior
2011-01-22 20:53:50 +00:00
Harald Welte
f62f0ed140
[MGW NAT] Always convert national/internationa before doing MSRN conversion
2011-01-22 10:13:34 +01:00
Harald Welte
62469be148
[MGW NAT] Do inverse [inter]national transform for connected numbers
2011-01-21 22:47:42 +01:00
Harald Welte
d25a45449b
[MGW NAT] Implement 'nationalize' as inverse operation of 'internationalize'
...
This is required for MO calls from MSC -> MGW, where the called number
has a international type number and needs to become a national one.
2011-01-21 22:42:45 +01:00
Harald Welte
8a84862f24
Do not crash in case message mangling code raises an exception
2011-01-21 20:49:04 +01:00
Harald Welte
7871c75747
add new 'internationalize' function to change number type
2011-01-21 20:49:04 +01:00
Harald Welte
9344354479
Rewrite MSRN in CON/ANM from MSC->STP
2011-01-21 20:49:04 +01:00
Harald Welte
2fc3e988c4
rewrite ISUP party number rewriting as recursive function over parameter list
2011-01-21 20:49:04 +01:00
Harald Welte
1df3c55bd5
fix off-by-one error in party number mangling
2011-01-21 18:37:05 +01:00