Add this after the first -spec
-spec save_cdr(api_binary(), wh_json:object(), 0..?MAX_RETRIES) -> {'error', 'max_retries'} |
(ne_binary(), wh_json:object(), integer()) -> 'ok'.