nat: Check if the connection was filtered before the msc connection
This way we avoid seeing many warnings that we will not forward data to the MSC. For the con_local connections that is actually the idea, we will not forward them to the MSC.
This commit is contained in:
parent
e8223cae3d
commit
09ecda49d7
|
@ -833,6 +833,10 @@ static int forward_sccp_to_msc(struct bsc_connection *bsc, struct msgb *msg)
|
||||||
goto exit2;
|
goto exit2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* do not forward messages to the MSC */
|
||||||
|
if (con_filter)
|
||||||
|
goto exit2;
|
||||||
|
|
||||||
if (!con_msc) {
|
if (!con_msc) {
|
||||||
LOGP(DNAT, LOGL_ERROR, "Not forwarding data bsc_nr: %d ipa: %d type: 0x%x\n",
|
LOGP(DNAT, LOGL_ERROR, "Not forwarding data bsc_nr: %d ipa: %d type: 0x%x\n",
|
||||||
bsc->cfg->nr,
|
bsc->cfg->nr,
|
||||||
|
@ -841,10 +845,6 @@ static int forward_sccp_to_msc(struct bsc_connection *bsc, struct msgb *msg)
|
||||||
goto exit2;
|
goto exit2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* do not forward messages to the MSC */
|
|
||||||
if (con_filter)
|
|
||||||
goto exit2;
|
|
||||||
|
|
||||||
/* send the non-filtered but maybe modified msg */
|
/* send the non-filtered but maybe modified msg */
|
||||||
queue_for_msc(con_msc, msg);
|
queue_for_msc(con_msc, msg);
|
||||||
talloc_free(parsed);
|
talloc_free(parsed);
|
||||||
|
|
Loading…
Reference in New Issue