diff --git a/configs/cdr.conf.sample b/configs/cdr.conf.sample index c2882c1f0d..c6d97edcd7 100644 --- a/configs/cdr.conf.sample +++ b/configs/cdr.conf.sample @@ -11,7 +11,7 @@ ; Define whether or not to use CDR logging. Setting this to "no" will override ; any loading of backend CDR modules. Default is "yes". -;enable=yes +enable=yes ; Define whether or not to log unanswered calls. Setting this to "yes" will ; report every attempt to ring a phone in dialing attempts, when it was not diff --git a/main/manager.c b/main/manager.c index bc342cf427..8e33096675 100644 --- a/main/manager.c +++ b/main/manager.c @@ -2711,7 +2711,7 @@ static char *generic_http_callback(int format, struct sockaddr_in *requestor, co } ast_build_string(&c, &len, "Content-type: text/%s\r\n", contenttype[format]); sprintf(tmp, "%08lx", s->managerid); - ast_build_string(&c, &len, "%s", ast_http_setcookie("mansession_id", tmp, httptimeout, cookie, sizeof(cookie))); + ast_build_string(&c, &len, "%s\r\n", ast_http_setcookie("mansession_id", tmp, httptimeout, cookie, sizeof(cookie))); if (format == FORMAT_HTML) ast_build_string(&c, &len, "Asterisk™ Manager Interface"); if (format == FORMAT_XML) {