Check asterisk sql cdr