Skip to content

Commit

Permalink
uac: use get_dlg_varstatus() to check if var exists
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Sep 26, 2022
1 parent 320af48 commit 86a357c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/uac/replace.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ int replace_uri( struct sip_msg *msg, str *display, str *uri,

if (dlg) {
dlgvar_names = (uac_flag==FL_USE_UAC_FROM)?from_dlgvar:to_dlgvar;
if(dlg_api.get_dlg_varref(dlg, &dlgvar_names[0])) {
if(dlg_api.get_dlg_varstatus(dlg, &dlgvar_names[0])) {

LM_INFO("Already called uac_replace for this dialog\n");
/* delete the from_new dlg var */
Expand Down

0 comments on commit 86a357c

Please sign in to comment.