It would help if we actually parsed the ss7_explicitacm option in the config file...
authorMatthew Fredrickson <creslin@digium.com>
Sat, 5 Jul 2008 03:39:07 +0000 (03:39 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Sat, 5 Jul 2008 03:39:07 +0000 (03:39 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@128125 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index 081b4bb..3d8c05e 100644 (file)
@@ -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 */