osmo_sccp_tcap: SSN must be an integer
This commit is contained in:
parent
71020ed0d3
commit
adff875073
|
@ -25,7 +25,9 @@ start_link(SSN) ->
|
||||||
Ourname = list_to_atom("sccp_ssn" ++ integer_to_list(SSN)),
|
Ourname = list_to_atom("sccp_ssn" ++ integer_to_list(SSN)),
|
||||||
gen_server:start_link({local, Ourname}, ?MODULE, [SSN],[]).
|
gen_server:start_link({local, Ourname}, ?MODULE, [SSN],[]).
|
||||||
|
|
||||||
init([SSN]) ->
|
init([SSN]) when is_integer(SSN) ->
|
||||||
|
init(SSN);
|
||||||
|
init(SSN) when is_integer(SSN) ->
|
||||||
ok = sccp_user:bind_ssn(SSN, undefined),
|
ok = sccp_user:bind_ssn(SSN, undefined),
|
||||||
State = 1,
|
State = 1,
|
||||||
{ok, State}.
|
{ok, State}.
|
||||||
|
|
Loading…
Reference in New Issue