ticket VS-167
check if exists cdr & rtp before insert new record