anchor.diff:  	    {noreply, State, ?TIMEOUT};
   	{error, E} ->
   	    {reply, {error, E}, State, ?TIMEOUT};
  -	SipSocket when record(SipSocket, sipsocket) ->
  +	SipSocket when is_record(SipSocket, sipsocket) ->
   	    logger:log(debug, "Sipsocket TCP: Use existing connection to ~s:~p", [Host, Port]),
   	    {reply, {ok, SipSocket}, State, ?TIMEOUT}
       end;
  
positive.code: %%                   {error, Reason}
  %%           Reason    = string()
  %%--------------------------------------------------------------------
  handle_call({register_sipsocket, Dir, SipSocket}, From, State) when record(SipSocket, sipsocket) ->
      CPid = SipSocket#sipsocket.pid,
      case catch link(CPid) of
  	true ->
  
negative.code: 
  start_listeners([], SocketList) ->
      SocketList;
  start_listeners([{Proto, Port} | T], SocketList) when is_atom(Proto), is_integer(Port), Proto == tcp6; Proto == tls6 ->
      case sipserver:get_env(enable_v6, false) of
  	true ->
  	    NewSocketList = case catch tcp_listener:start(Proto, Port) of
  