mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-07 10:28:32 +00:00
Correct CDR's for supervised transfer (bug #1595)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3902 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
11
cdr.c
11
cdr.c
@@ -539,11 +539,16 @@ void ast_cdr_reset(struct ast_cdr *cdr, int flags)
|
||||
|
||||
}
|
||||
|
||||
void ast_cdr_append(struct ast_cdr *cdr, struct ast_cdr *newcdr) {
|
||||
struct ast_cdr *ast_cdr_append(struct ast_cdr *cdr, struct ast_cdr *newcdr)
|
||||
{
|
||||
struct ast_cdr *ret;
|
||||
if (cdr) {
|
||||
ret = cdr;
|
||||
while(cdr->next)
|
||||
cdr = cdr->next;
|
||||
cdr->next = newcdr;
|
||||
} else
|
||||
ast_log(LOG_ERROR, "Can't append a CDR to NULL!\n");
|
||||
} else {
|
||||
ret = newcdr;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user