tcap_invocation_sup: Use unique name for each ISM

This bug prevented multiple INVOKE to exist in parallel.
This commit is contained in:
Harald Welte 2013-06-10 08:49:43 +02:00
parent babe0e92cd
commit f319881540
1 changed files with 1 additions and 1 deletions

View File

@ -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).