Skip to content

Commit

Permalink
dialog: only raise event if someone is listening
Browse files Browse the repository at this point in the history
(cherry picked from commit f5f85b6)
  • Loading branch information
razvancrainea committed Apr 22, 2021
1 parent 3de68fd commit 4d2906c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/dialog/dlg_hash.c
Expand Up @@ -945,6 +945,9 @@ static void raise_state_changed_event(struct dlg_cell *dlg,
str s1, s2;
int callee_leg_idx;

if (!evi_probe_event(ei_st_ch_id))
return;

s1.s = int2bstr( (unsigned long)dlg->h_entry, b1, &s1.len);
s2.s = int2bstr( (unsigned long)dlg->h_id, b2, &s2.len);
if (s1.s==NULL || s2.s==NULL) {
Expand Down

0 comments on commit 4d2906c

Please sign in to comment.