tcap_invocation_sup: Use unique name for each ISM

This bug prevented multiple INVOKE to exist in parallel.
master
Harald Welte 10 years ago
parent babe0e92cd
commit f319881540
  1. 2
      TCAP/src/tcap_invocation_sup.erl

@ -57,7 +57,7 @@ start_ism(USAP, DlgId, InvokeID, CcoPid, OpClass, Timeout) ->
Name = list_to_atom("tcap_ism_" ++ integer_to_list(DlgId) ++ "_" ++ integer_to_list(InvokeID)),
StartArgs = [USAP, DlgId, InvokeID, CcoPid, OpClass, Timeout],
StartFunc = {gen_fsm, start_link, [{local, Name}, tcap_ism_fsm, StartArgs, [{debug,[trace]}]]},
ChildSpec = {ism, StartFunc, temporary, 4000, worker,
ChildSpec = {Name, StartFunc, temporary, 4000, worker,
[tcap_ism_sup]},
supervisor:start_child(SupRef, ChildSpec).

Loading…
Cancel
Save