diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-06 10:22:34 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-06 10:22:34 +0200 |
commit | 81e1edd3e62e3ab903761e617bd9bad50d8789f9 (patch) | |
tree | 18cbb4af7c217013e699ed87a536ef80f92482d7 | |
parent | cfd1c28604c9d8f02a53dd183f811e562f709abf (diff) |
nat: Patch IT messages as well..
We need to patch the source/dest reference inside the messages
as well otherwise we will see failures in the SCCP connection
on long calls.
-rw-r--r-- | openbsc/src/nat/bsc_nat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index 1465be01c..8ac68da28 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c @@ -201,6 +201,7 @@ static int forward_sccp_to_bts(struct msgb *msg) case SCCP_MSG_TYPE_RLSD: case SCCP_MSG_TYPE_CREF: case SCCP_MSG_TYPE_DT1: + case SCCP_MSG_TYPE_IT: con = patch_sccp_src_ref_to_bsc(msg, parsed, nat); if (parsed->gsm_type == BSS_MAP_MSG_ASSIGMENT_RQST) { if (con) { @@ -424,6 +425,7 @@ static int forward_sccp_to_msc(struct bsc_connection *bsc, struct msgb *msg) case SCCP_MSG_TYPE_CREF: case SCCP_MSG_TYPE_DT1: case SCCP_MSG_TYPE_CC: + case SCCP_MSG_TYPE_IT: con = patch_sccp_src_ref_to_msc(msg, parsed, nat); break; case SCCP_MSG_TYPE_RLC: |