Thanks for your reply.
I've configured yate as STP but when I setup cdr module no CDR is collected in this mode and I was looking for a workaround to this. Meanwhile, when a call is coming to yate that is not being routed to another linkset and is handled by yate itself, cdrs are successfully stored.