Skip to content

Commit

Permalink
dialog: fix matching dialog by integer dialog value
Browse files Browse the repository at this point in the history
This fixes the matching of dialogs when using the get_dialogs_by_val()
and get_dialog_info() functions.
  • Loading branch information
rvlad-patrascu committed Jun 28, 2023
1 parent 888a62c commit 57c2a8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/dialog/dlg_vals.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,10 @@ int check_dlg_value_unsafe(struct sip_msg *msg, struct dlg_cell *dlg, str *name,
return 0;
}
break;
} else { /* DLG_VAL_TYPE_INT */
LM_DBG("var found with val <%d>!\n",dv->val.n);
if (pval.ri == dv->val.n)
return 0;
}
}
}
Expand Down

0 comments on commit 57c2a8d

Please sign in to comment.