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.

(cherry picked from commit 57c2a8d)
  • Loading branch information
rvlad-patrascu committed Jun 28, 2023
1 parent 397ef8f commit bfb048a
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 @@ -317,6 +317,10 @@ int check_dlg_value(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 bfb048a

Please sign in to comment.