sccp_masq: mark ets tables as "public"

This is neccessary, as the code will execute in the context of various
mgw_nat_usr processes (one for each signalling link).
This commit is contained in:
Harald Welte 2011-09-24 14:27:31 +02:00
parent 392ce05473
commit 61d9a9eae0
1 changed files with 2 additions and 2 deletions

View File

@ -133,9 +133,9 @@ sccp_masq_msg(_From, _MsgType, Msg) ->
Msg.
init() ->
Orig = ets:new(sccp_masq_orig, [ordered_set,
Orig = ets:new(sccp_masq_orig, [ordered_set, public,
{keypos, #sccp_masq_rec.digits_in}]),
Rev = ets:new(sccp_masq_rev, [ordered_set,
Rev = ets:new(sccp_masq_rev, [ordered_set, public,
{keypos, #sccp_masq_rec.digits_in}]),
application:set_env(mgw_nat, sccp_masq_orig, Orig),
application:set_env(mgw_nat, sccp_masq_rev, Rev),