aboutsummaryrefslogtreecommitdiffstats
path: root/src/main_stp.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-30 00:24:15 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-30 00:24:15 +0100
commitf603f28488c6c6f04d8314d9f049b535d74d6307 (patch)
treeb31b2388271c21c29276efda47c95f4086f74f4b /src/main_stp.c
parentd3f412bbd59cff82acc6876d86cd14183412b317 (diff)
isup: Make it possible for the STP to handle/not handle ISUP messages
Add an option to decide if we should handle GROUP BLOCK and RESET messages inside the STP or if we should forward those as well.
Diffstat (limited to 'src/main_stp.c')
-rw-r--r--src/main_stp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main_stp.c b/src/main_stp.c
index 45a89aa..444e7be 100644
--- a/src/main_stp.c
+++ b/src/main_stp.c
@@ -256,8 +256,11 @@ int main(int argc, char **argv)
bsc.m2ua_set->name = talloc_strdup(bsc.m2ua_set, "M2UA");
/* for both links we want to have all isup messages */
- bsc.m2ua_set->pass_all_isup = 1;
- bsc.link_set->pass_all_isup = 1;
+ if (bsc.isup_pass) {
+ LOGP(DINP, LOGL_NOTICE, "Going to pass through all ISUP messages.\n");
+ bsc.m2ua_set->pass_all_isup = 1;
+ bsc.link_set->pass_all_isup = 1;
+ }
lnk = sctp_m2ua_transp_create("0.0.0.0", 2904);
lnk->base.pcap_fd = -1;