diff options
Diffstat (limited to 'main/cdr.c')
-rw-r--r-- | main/cdr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/cdr.c b/main/cdr.c index dbce8e5c4..d2e033839 100644 --- a/main/cdr.c +++ b/main/cdr.c @@ -1601,6 +1601,11 @@ static int dial_state_process_bridge_enter(struct cdr_object *cdr, struct ast_br continue; } + /* If we don't have a Party B (originated channel), skip it */ + if (!cdr->party_b.snapshot) { + continue; + } + /* Skip any records that aren't our Party B */ if (strcmp(cdr->party_b.snapshot->name, cand_cdr->party_a.snapshot->name)) { continue; |