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 /include/bss_patch.h | |
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 'include/bss_patch.h')
-rw-r--r-- | include/bss_patch.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/bss_patch.h b/include/bss_patch.h index 6529619..d9a055b 100644 --- a/include/bss_patch.h +++ b/include/bss_patch.h @@ -1,7 +1,7 @@ /* Patch Messages to and from the MSC */ /* - * (C) 2010 by Holger Hans Peter Freyther <zecke@selfish.org> - * (C) 2010 by On-Waves + * (C) 2010-2011 by Holger Hans Peter Freyther <zecke@selfish.org> + * (C) 2010-2011 by On-Waves * All Rights Reserved * * This program is free software: you can redistribute it and/or modify @@ -30,13 +30,20 @@ #define BSS_FILTER_RLSD 3 #define BSS_FILTER_RLC 4 #define BSS_FILTER_CLEAR_COMPL 5 +#define BSS_FILTER_DTAP 6 + +#define BSS_DIR_BSC 1 +#define BSS_DIR_MSC 2 +#define BSS_DIR_ANY (BSS_DIR_MSC | BSS_DIR_BSC) /** * Error is < 0 * Success is == 0 * Filter is > 0 + * + * Direction... */ -int bss_patch_filter_msg(struct msgb *msg, struct sccp_parse_result *result); +int bss_patch_filter_msg(struct msgb *msg, struct sccp_parse_result *result, int dir); /* * Copy inpt->l2h to target->l2h but rewrite the SCCP header on the way |