Harald Welte
51c4b5c279
map_masq: Fix patching of IMSI and SC-Addr in SRI-RES and MO-FW-SM
2013-04-24 12:44:17 +05:30
Harald Welte
e8b2173386
map_masq: Only one matching function for MO-ForwardSM-Arg
...
We have both the smsCDA and the imsi_list translation in the
MO-ForwardSM-Arg, and have to put both in one matching function, as in
the case of multiple matching functions only one of them will be
executed.
2013-02-06 11:25:07 +01:00
Harald Welte
04bc9f8645
map_masq: Fix processing of MO-ForwardSM-Arg
2013-02-06 09:37:00 +01:00
Harald Welte
6675c74d37
map_masq: don't assume that imsi_list is a gb_tree anymore
...
Introduce a imsi_list:num_entries/1 function to determine number of
entries.
2013-02-06 09:14:37 +01:00
Harald Welte
7bd1d4ae4f
map_masq/imsi_list: bi-directional mapping, also change MO-ForwardSM-Arg
...
This introduces a second gb_tree of imsi mappings for the inverse
direction, in order to mangle MO-ForwardSM-Arg
2013-02-06 09:02:46 +01:00
Harald Welte
fb222d9112
consistently license all files under AGPLv3
2012-04-16 13:19:15 +02:00
Harald Welte
fce6cf18dd
IMSI rewrite: change from prefix rewrite to full N:M rewriting
2012-02-20 07:56:16 +01:00
Harald Welte
a53a63a8da
mgw_nat: explicitly state application name in get/set_env()
...
This makes sure that even if some function is called from a different
context, it still will use the correct configuration data.
2012-02-13 22:10:33 +01: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
f83e20e307
map_masq: Fix copy+paste mistake causing 'end' structures in 'continue'
2011-05-23 12:41:14 +02: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
29e589faaf
MAP MASQ: Propagate 'From' argument down into all patch() functions
2011-02-25 15:17:57 +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
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
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
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
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
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
a68d96e66f
introduce new map_masq code, successor of tcap_map_mangle.erl
2011-02-10 09:49:46 +01:00