Module: kamailio
Branch: master
Commit: 86a357c278c45a8d7b580e79ac074115871065fb
URL:
https://github.com/kamailio/kamailio/commit/86a357c278c45a8d7b580e79ac07411…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-09-26T15:58:15+02:00
uac: use get_dlg_varstatus() to check if var exists
---
Modified: src/modules/uac/replace.c
---
Diff:
https://github.com/kamailio/kamailio/commit/86a357c278c45a8d7b580e79ac07411…
Patch:
https://github.com/kamailio/kamailio/commit/86a357c278c45a8d7b580e79ac07411…
---
diff --git a/src/modules/uac/replace.c b/src/modules/uac/replace.c
index 513623ba26..36827aeb3e 100644
--- a/src/modules/uac/replace.c
+++ b/src/modules/uac/replace.c
@@ -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 */