diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-06-24 07:52:01 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-06-24 09:41:13 +0200 |
commit | ad354b3136878c5a33e03bb5b9d9a916cd67f13d (patch) | |
tree | 9697591afd4691f66c95fa3fa70dddff2d10a987 | |
parent | 63a908e2209a5fc7165ab9e9b9143aecc3c58975 (diff) |
tcap_user: wrap gen_server call to allocate new dialogue ID
-rw-r--r-- | TCAP/src/tcap_user.erl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/TCAP/src/tcap_user.erl b/TCAP/src/tcap_user.erl index 4a3edc9..77a0d41 100644 --- a/TCAP/src/tcap_user.erl +++ b/TCAP/src/tcap_user.erl @@ -1,10 +1,10 @@ %%% %%%--------------------------------------------------------------------- -%%% @copyright 2011 Harald Welte +%%% @copyright 2011-2013 Harald Welte %%% @author Harald Welte <laforge@gnumonks.org> %%% @end %%% -%%% Copyright (c) 2011 Harald Welte +%%% Copyright (c) 2011-2013 Harald Welte %%% %%% All rights reserved. %%% @@ -46,7 +46,7 @@ -copyright('Copyright (c) 2011 Harald Welte'). -author('Harald Welte <laforge@gnumonks.org>'). --export([get_dialg_id/1, send_prim/2, start_sap/3]). +-export([alloc_dialg_id/1, get_dialg_id/1, send_prim/2, start_sap/3]). -include("tcap.hrl"). @@ -149,3 +149,6 @@ start_new_dha(TCO, LocalTID) -> {ok, Pid} = supervisor:start_link(tcap_dialogue_sup, Args), list_to_atom("tcap_dha_" ++ integer_to_list(LocalTID)). + +alloc_dialg_id(TCO) -> + gen_server:call(TCO, dialogueID). |