Commit Graph

102 Commits

Author SHA1 Message Date
Harald Welte 8b79ebea5a MGW NAT: add option to 'internationalize' a national number that's prefixed with 00 2011-03-10 10:41:07 +01:00
Harald Welte 7c406d31d7 sctp_handler: provide more expressive exit() reasons/messages 2011-03-10 09:50:17 +01:00
Harald Welte 31765a15be fix simply typo (mwg_nat -> mgw_nat) 2011-03-10 09:34:52 +01:00
Harald Welte bc0b8fbc59 Add test-case for camel phase mangling 2011-03-10 00:47:50 +01:00
Harald Welte 93db48d772 VFUK-ONW: actually mangle the camel phase 2011-03-10 00:47:36 +01:00
Harald Welte 4f0c88ce4f mgw_nat_test: Display if one of the callback functions has modified the data 2011-03-08 16:04:26 +01:00
Harald Welte 5df8338d70 Make MGW nat more flexible by introdicng actors an function references
Instead of a static configuration of rewrite/mangling/patching steps,
we now introduce the concept of a 'rewrite_actor', which is a callback
function that determines which rewrite/patching code to call at which
particular layer of the protocol.

The default rewrite actor "bow_onw" resembles the existing rewrite
behavior.

There is a stub new rewrite actore "vfuk_onw", which will be used
for Camel phase rewriting.
2011-03-08 15:17:32 +01:00
Harald Welte 39b19ef69d Import sctp_handler.erl from osmo_ss7
The code is mgw_nat specific, it should clearly be here.
2011-03-08 12:38:13 +01:00
Harald Welte e85802ea39 MGW NAT: Propagate 'path' of preceding message headers down to mangling code 2011-03-08 12:08:18 +01:00
Harald Welte eb4913f96f MGW NAT: Increase number of re-starts in supervisor
We now only terminate the supervisor if more than 60 starts in 600
seconds are unsuccessful.
2011-02-25 21:34:22 +01:00
Harald Welte d1410ae677 MAP MASQ: Ensure process can respawn without errors
We re-generate the SCCP GT translation table at respawn, and in that
case the tuples already include the list-converted global titles,
which used to cause a function_clause error.
2011-02-25 21:33:34 +01:00
Harald Welte e77cb26a96 MAP MASQ: Fix unused 'From' variable compiler warnings 2011-02-25 17:06:30 +01:00
Harald Welte 22a2b03b77 MAP MASQ: Translate G-MSC address in SRI in MSC->STP direction 2011-02-25 17:04:57 +01:00
Harald Welte 454542fd9b mgw_nat.app: Add map_masq to list of modules 2011-02-25 16:14:04 +01:00
Harald Welte 2e4738a19f remove old tcap_map_patch.erl file from osmo-map-masq 2011-02-25 16:13:45 +01:00
Harald Welte ab599af93a Add INSTALL file containing build/install instructions 2011-02-25 16:11:30 +01:00
Harald Welte 29e589faaf MAP MASQ: Propagate 'From' argument down into all patch() functions 2011-02-25 15:17:57 +01:00
Harald Welte af3a9fc716 SCCP MASQ: Add function to dump current masquerading state table
It can be called from the shell using "mgw_nat_usr:sccp_masq_dump()."
2011-02-25 10:36:43 +01:00
Harald Welte 0a4ff609a9 SCCP MASQ: Don't allocate the same SCCP MASQ address multiple times
When allocating a MASQ record, we first need to try to insert into
the masq_rev table in order to determine if the new (masqueraded)
SCCP address is already in use.
2011-02-24 23:05:01 +01:00
Holger Hans Peter Freyther e86edbd17b map_masq: Rewrite the serviceCentreAddress in a sm-RP-DA 2011-02-22 23:24:55 +01:00
Holger Hans Peter Freyther 44635c74f9 Add hack/workaround.. do not re-encode if nothing was changed
This is a work-around/hack for something I don't understand
about the erlang code. It is an issue with me... this commit
should be reverted once we have a proper fix for this.
2011-02-22 16:09:33 +01:00
Holger Hans Peter Freyther 016e30628f map_masq: Try to patch the vlr-number in a SRI Response 2011-02-21 22:04:38 +01:00
Holger Hans Peter Freyther 60e0fb2d97 map_masq: Mangle the gsmSCF inside the t-CSI of CAMEL
Same change as to tcap_map_patch.
2011-02-21 21:02:08 +01:00
Holger Hans Peter Freyther 0edf5557a0 tcap_map_patch: Mangle the gsmSCF inside the t-CSI of CAMEL 2011-02-21 18:59:23 +01:00
Holger Hans Peter Freyther 0f281ceac0 rebar: Update repository names. 2011-02-21 18:29:29 +01:00
Harald Welte 62aa7c68ce map_masq: fix generation of mangled ISDN-Address 2011-02-10 22:52:01 +01:00
Harald Welte 6009f6e5fe MAP MASQ: Fix config file reload
As config file reload may be triggered from a process elsewhere, we need
to explicitly specify the Application name 'mgw_nat' to access the
application environment.
2011-02-10 21:41:50 +01:00
Harald Welte 6a33c1e0d4 MAP MASQ: Correctly call mgw_nat:isup_party_*() functions
this was introduced by some search-and-replace that was a bit too general
2011-02-10 21:40:40 +01:00
Harald Welte e78474eeb9 MAP MASQ: Translate the source G-MSC address in SRI request
We translate the same way as we did the SCCP CallingPartyAddr
in sccp_masq, by utilizing the sccp_masq:lookup_masq_addr() function.
2011-02-10 21:04:52 +01:00
Harald Welte 42cd3c659a SCCP MASQ: Separate look-up and allocation of MASQ address
We now have a lookup_or_alloc_masq_addr() combining the two operations,
but lookup_masq_addr() will no longer allocate a new masq entry, even
in 'orig' direction.
2011-02-10 21:03:53 +01:00
Harald Welte f96296488f MAP MASQ: Introduce dynamic ISDN-Address patching inside MAP
This gets rid of the old '-define()' style compile-time configuration.
2011-02-10 20:44:46 +01:00
Harald Welte 2cc831f587 MAP MASQ: Propagate 'From' parameter down into various functions
... but not into 'patch' itself
2011-02-10 18:36:02 +01:00
Harald Welte 1c7c2b0d5d MAP MASQ: Handle the 'From' information into MAP MASQ
this way we know about the direction of the message
2011-02-10 18:32:27 +01:00
Harald Welte 17f647403c MAP MASQ: correct function name of isup_party_replace_prefix()
and handle the case of a transaction that has asn1_NOVALUE as components,
i.e. no components.
2011-02-10 18:29:59 +01:00
Harald Welte 5889e65e08 MGW NAT: Fix treatment of digit lists / int in ISUP prefix replace 2011-02-10 18:29:28 +01:00
Harald Welte df81bdd32c MAP MASQ: Implement patching of MSRN in SRI Resp 2011-02-10 17:21:26 +01:00
Harald Welte ea19314dbf MAP MASQ: Ensure we don't loose the {local,22} part of a Component 2011-02-10 15:40:36 +01:00
Harald Welte 449a317ad6 MAP MASQ: patch the SRI Response 2011-02-10 15:06:27 +01:00
Harald Welte c752362202 Make sure we transparently pass through any data that needs no patching 2011-02-10 14:42:31 +01:00
Harald Welte 7d999517c6 SCCP rewrite: make sure we don't mix integers with list of digits 2011-02-10 13:25:51 +01:00
Harald Welte 29c5f4096f MAP MASQ: Process Dialogue Portion for all PDU types (except error) 2011-02-10 13:24:49 +01:00
Harald Welte c506fe54f0 fix asn1_EXTERNAL1994_fixup() use non-contradictory guard expression 2011-02-10 13:09:44 +01:00
Harald Welte 9bc2e4aba1 MAP MASQ: MAke sure we don't use OCTET-TYPE during encode of DialoguePortion 2011-02-10 12:40:31 +01:00
Harald Welte e8d7f2e2b6 add .gitignore 2011-02-10 09:50:58 +01:00
Harald Welte a68d96e66f introduce new map_masq code, successor of tcap_map_mangle.erl 2011-02-10 09:49:46 +01:00
Harald Welte 7f789ed1e3 consistently use lists for phone numbers again 2011-02-09 22:25:35 +01:00
Harald Welte 97a1f4e8b7 remove old rel-file, fix app dependency 2011-02-09 22:24:40 +01:00
Harald Welte 64568f7910 tcap_map_patch: fix include path and copyright statement 2011-02-09 14:29:51 +01:00
Harald Welte 7d08d9faef import tcap_map_patch.erl from old omso-map-masq 2011-02-09 14:28:14 +01:00
Harald Welte 44da4046fc add Emakefile 2011-02-09 14:24:37 +01:00