Browse code

uac: use get_dlg_varstatus() to check if var exists

Daniel-Constantin Mierla authored on 26/09/2022 13:58:15
Showing 1 changed files
... ...
@@ -391,7 +391,7 @@ int replace_uri( struct sip_msg *msg, str *display, str *uri,
391 391
 
392 392
 	if (dlg) {
393 393
 		dlgvar_names = (uac_flag==FL_USE_UAC_FROM)?from_dlgvar:to_dlgvar;
394
-		if(dlg_api.get_dlg_varref(dlg, &dlgvar_names[0])) {
394
+		if(dlg_api.get_dlg_varstatus(dlg, &dlgvar_names[0])) {
395 395
 
396 396
 			LM_INFO("Already called uac_replace for this dialog\n");
397 397
 			/* delete the from_new dlg var */