Commit Graph

11 Commits

Author SHA1 Message Date
Harald Welte 8a7e6597c4 add mangle_tt_sri_sm to list of modules in mgw_nat application 2012-05-30 12:11:34 +02:00
Harald Welte 9fe07294ff mgw_nat: add IMSI matching / prefix-rewrite for SRI-SM
When the MSC responds with a SRI-SM-Response, we match against a
user-supplied list of IMSs.  If there is a match, we replace the
known prefix of the IMSI with a new known prefix.
2012-02-13 20:54:17 +01:00
Harald Welte ce995d3d30 mgw_nat: Add ability to translate multiple signalling links
The mgw_nat_sup supervisor now starts one mgw_nat_usr process for each
MSC-STP link defined in the configuration file.  However, the actual
translation/mangling/masquerading configuration as well as runtime state
like allocated SCCP mappings is global/shared between all signalling
links.

Furthermore, a new mgw_nat_adm process is introduced to ensure config
file reloading (formerly handled by the single mgw_nat_usr) does not
have to run in the supervisor (and risk crashing it).
2011-09-15 00:15:29 +01:00
Harald Welte 3ae9813cb2 better error handling in case application config is insufficient 2011-04-14 18:05:42 +02:00
Harald Welte a227e76dff MGW NAT: Store a reference to the actor module, not the rewrite_actor/5 function
By keeping a module reference, we can call multiple functions inside the
module, and not just one.  This will allow us to propagate a 'reload_config'
function call into the rewrite actors.
2011-04-06 01:07:00 +02:00
Harald Welte eee3eac368 [PATCH] ONW_VFUK / Camel Phase mangling: Add pcap-based testing
And use the routines from osmo_ss7_pcap instead of our own local
copy.
2011-03-12 10:36:13 +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 454542fd9b mgw_nat.app: Add map_masq to list of modules 2011-02-25 16:14:04 +01:00
Harald Welte 97a1f4e8b7 remove old rel-file, fix app dependency 2011-02-09 22:24:40 +01:00
Harald Welte 20ad1ba0c5 import MGW NAT application code into new repository.
All of the code originates from the old omso-er-sccp.git repo.
2011-02-07 20:50:39 +01:00