diff options
author | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-05 03:39:07 +0000 |
---|---|---|
committer | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-05 03:39:07 +0000 |
commit | a51a16cca8a4bfee48e65cd3db6c15cbaa15c128 (patch) | |
tree | 9748ade682fab0588bc1bd08113e65c7d4da9a66 | |
parent | c102a4e3ba7d073e70517b6d9aa696e9a0b8915c (diff) |
It would help if we actually parsed the ss7_explicitacm option in the config file...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@128125 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_dahdi.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 081b4bbb6..3d8c05e7b 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -14376,6 +14376,17 @@ static int process_dahdi(struct dahdi_chan_conf *confp, const char *cat, struct res = linkset_addsigchan(sigchan); if (res < 0) return -1; + + } else if (!strcasecmp(v->name, "ss7_explicitacm")) { + struct dahdi_ss7 *link; + link = ss7_resolve_linkset(cur_linkset); + if (!link) { + ast_log(LOG_ERROR, "Invalid linkset number. Must be between 1 and %d\n", NUM_SPANS + 1); + return -1; + } + if (ast_true(v->value)) + link->flags |= LINKSET_FLAG_EXPLICITACM; + #endif /* HAVE_SS7 */ } else if (!strcasecmp(v->name, "cadence")) { /* setup to scan our argument */ |