anchor.diff:      end.
   
   
  -%% @privaye
  +%% @private
   -spec loop_id(nksip:request()) ->
       integer().
       
  
positive.code:     call().
  
  do_request(Req, TransId, #call{trans=Trans, next=Id}=Call) ->
      #sipmsg{id=MsgId, method=Method, ruri=RUri, transport=Transp} = Req,
      ?call_debug("UAS ~p started for ~p (~p)", [Id, Method, MsgId], Call),
      Call1 = store_sipmsg(Req, Call),
      LoopId = loop_id(Req),
  
negative.code:         loop_id = LoopId
      },
      Call2 = Call1#call{trans=[UAS|Trans], next=Id+1},
      case ToTag=:=(<<>>) andalso lists:keymember(LoopId, #trans.loop_id, Trans) of
          true -> reply(loop_detected, UAS, Call2);
          false -> send_100(UAS, Call2)
      end.
  