diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-11-24 11:07:37 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-11-24 11:07:37 +0100 |
commit | 6853567564cef62a73a1cd2a6ce8af23bba5029f (patch) | |
tree | 833286520ef356eb4c8d1103b60d79b4d2c9ee65 /src/sccp_state.c | |
parent | 1ab89614502485091048a3d681eef370649305c1 (diff) |
bss: Patch CC messages with bearer capabilities to contain AMR 3
* This changes bss_patch_filter_msg to return -1 or BSS_FILTER_DTAP
for DTAP messages. This way app_forward_sccp should continue to behave
the same besides now looking into DTAP messages.
* Introduce a direction in case we want to advertize FR into the BSS
side and HR into the other direction.
* Patch AMR HR3 and Fullrate/Halfrate capabilities in the Bearer
Capabilities. Add a test case that is patching the bearer capabilities
Diffstat (limited to 'src/sccp_state.c')
-rw-r--r-- | src/sccp_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sccp_state.c b/src/sccp_state.c index 1d12ce7..c2b3834 100644 --- a/src/sccp_state.c +++ b/src/sccp_state.c @@ -71,7 +71,7 @@ void app_forward_sccp(struct ss7_application *app, struct msgb *_msg, int sls) return; } - rc = bss_patch_filter_msg(_msg, &result); + rc = bss_patch_filter_msg(_msg, &result, BSS_DIR_MSC); if (rc == BSS_FILTER_RESET) { LOGP(DMSC, LOGL_NOTICE, "Filtering BSS Reset from the BSC\n"); msc_mgcp_reset(msc); @@ -549,7 +549,7 @@ void msc_dispatch_sccp(struct msc_connection *msc, struct msgb *msg) struct sccp_parse_result result; int rc; - rc = bss_patch_filter_msg(msg, &result); + rc = bss_patch_filter_msg(msg, &result, BSS_DIR_BSC); if (rc == BSS_FILTER_RESET_ACK) { LOGP(DMSC, LOGL_NOTICE, "Filtering reset ack from the MSC\n"); |