add new 'ss7_routes' module to maintain point code routes
Once a linkset becomes active, it will automatically add a route
for its destination point code to the routing table. If a linkset
transitions into 'up' or 'down', it will be removed from the routing
table.
the ss7_routes:create_route() and delete_route() calls can be used
by anyone to create additional point code routes (with mask)
diff --git a/src/osmo_ss7_sup.erl b/src/osmo_ss7_sup.erl
index 2e34b41..ed31cb5 100644
--- a/src/osmo_ss7_sup.erl
+++ b/src/osmo_ss7_sup.erl
@@ -31,7 +31,9 @@
init(Args) ->
LinksChild = {ss7_links, {ss7_links, start_link, []},
permanent, 2000, worker, [ss7_links]},
- {ok,{{one_for_one,60,600}, [LinksChild]}}.
+ RouteChild = {ss7_routes, {ss7_routes, start_link, []},
+ permanent, 2000, worker, [ss7_routes]},
+ {ok,{{one_for_one,60,600}, [LinksChild, RouteChild]}}.
% Add a m3ua link to this supervisor
add_mtp_link(L=#sigtran_link{type = m3ua, name = Name,