mirror of https://github.com/sipwise/asterisk.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
772 B
14 lines
772 B
--- res/res_features.c (revisión: 131)
|
|
+++ res/res_features.c (copia de trabajo)
|
|
@@ -1675,8 +1675,8 @@
|
|
ast_set_flag(chan_cdr, AST_CDR_FLAG_MAIN);
|
|
ast_cdr_update(chan);
|
|
bridge_cdr = ast_cdr_dup(chan_cdr);
|
|
- ast_copy_string(bridge_cdr->lastapp, chan->appl, sizeof(bridge_cdr->lastapp));
|
|
- ast_copy_string(bridge_cdr->lastdata, chan->data, sizeof(bridge_cdr->lastdata));
|
|
+ ast_copy_string(bridge_cdr->lastapp, S_OR(chan->appl, ""), sizeof(bridge_cdr->lastapp));
|
|
+ ast_copy_string(bridge_cdr->lastdata, S_OR(chan->data, ""), sizeof(bridge_cdr->lastdata));
|
|
} else {
|
|
/* better yet, in a xfer situation, find out why the chan cdr got zapped (pun unintentional) */
|
|
bridge_cdr = ast_cdr_alloc(); /* this should be really, really rare/impossible? */
|