-spec save_cdr(ne_binary(), wh_json:object(), 0..?MAX_RETRIES) -> 'ok' | {'error', 'max_retries'}.