mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
Merge "main/cdr: Set the end time on a CDR if endbeforehexten is Yes" into 13
This commit is contained in:
@@ -1356,10 +1356,10 @@ static int base_process_party_a(struct cdr_object *cdr, struct ast_channel_snaps
|
|||||||
|
|
||||||
ast_assert(strcasecmp(snapshot->name, cdr->party_a.snapshot->name) == 0);
|
ast_assert(strcasecmp(snapshot->name, cdr->party_a.snapshot->name) == 0);
|
||||||
|
|
||||||
/* Ignore any snapshots from a dead or dying channel */
|
/* Finalize the CDR if we're in hangup logic and we're set to do so */
|
||||||
if (ast_test_flag(&snapshot->softhangup_flags, AST_SOFTHANGUP_HANGUP_EXEC)
|
if (ast_test_flag(&snapshot->softhangup_flags, AST_SOFTHANGUP_HANGUP_EXEC)
|
||||||
&& ast_test_flag(&mod_cfg->general->settings, CDR_END_BEFORE_H_EXTEN)) {
|
&& ast_test_flag(&mod_cfg->general->settings, CDR_END_BEFORE_H_EXTEN)) {
|
||||||
cdr_object_check_party_a_hangup(cdr);
|
cdr_object_finalize(cdr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user