How to check INBOUND CALL or OUTBOUND CALL in rtc.session entrypoint and divide logic

I couldnt find this headers in documentation section

When you call wait_for_participant(), if participant.kind == SIP

  • Inbound call -sip.ruleID is set (created via an inbound trunk + dispatch rule).

  • Outbound call - sip.ruleID is empty (created via CreateSIPParticipant).