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
Harald Welte
acb8c2c0e2
don't raise exception in case of MSC->MGW IAM
2011-01-21 18:37:04 +01:00
Harald Welte
49ec10e588
activate the first IAM rewrite for MSRN
2011-01-21 18:37:04 +01:00
Harald Welte
646074c48e
No longer abort if the Tx data is != the Rx data
2011-01-21 18:37:04 +01:00
Harald Welte
ed4c9ea547
Add codec for 'default' messages with no fixed and no variable part
2011-01-21 18:37:04 +01:00
Harald Welte
aca4edc035
Move actual packet manipulation code to mgw_nat.erl
2011-01-21 18:37:04 +01:00
Harald Welte
4c5e10d7f8
Add code to actually replace the prefix of the called party number in ISUP IAM
2011-01-21 18:37:04 +01:00
Harald Welte
548f93b7a6
Make sure Optional part ends with 'End of options' zero-octet
2011-01-21 18:37:03 +01:00
Harald Welte
d1cb16f0b1
Make sure a 'Variable Fixed' parameter is not re-encoded as Option again
2011-01-21 18:37:03 +01:00
Harald Welte
efddf3dd2f
use 'external' function call to allow runtime code-reload
2011-01-21 18:37:03 +01:00
Harald Welte
bdc7a5c83b
print error messages in case of SCTP disconnect
...
And try to use the ISUP encoder on IAM messages
2011-01-21 18:37:03 +01:00
Harald Welte
f48736bce2
[ISUP] more ISUP message encoding routines
2011-01-21 14:34:32 +01:00
Harald Welte
1dc9e53ea2
Actually call the ISUP parser
2011-01-21 14:32:12 +01:00
Harald Welte
86494e85d1
fix offsets in parsing IAM and REL messages
2011-01-21 14:32:05 +01:00