MT#60394 dialog: be less verbose on error at dlg_get_var()

Change-Id: I43ecd8863bbf83faadfd42cf0c7fb1237112b838
mr13.0
Victor Seva 11 months ago
parent d9b6095307
commit f836dd4e3b

@ -39,6 +39,7 @@ upstream/cfgutils-expose-optional-second-string-key-for-lock.patch
upstream/cfgutils-initialize-the-optional-key.patch
upstream/permissions_add_register_allow_with_port_check.patch
upstream/multipart-sdp.patch
upstream/dialog-don-t-complain-if-dst_var-doesn-t-exist.patch
### relevant for upstream
sipwise/dialplan-don-t-stop-loading-rules-on-error.patch
sipwise/kamctl-TMPDIR-config.patch

@ -0,0 +1,22 @@
From: Victor Seva <vseva@sipwise.com>
Date: Tue, 2 Jul 2024 11:50:37 +0200
Subject: dialog: don't complain if dst_var doesn't exist
Change-Id: I75f9bddd7a58fea63176e63eb075d8c5379162df
---
src/modules/dialog/dialog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/modules/dialog/dialog.c b/src/modules/dialog/dialog.c
index a0d654d..020e1ef 100644
--- a/src/modules/dialog/dialog.c
+++ b/src/modules/dialog/dialog.c
@@ -1869,7 +1869,7 @@ static int w_dlg_get_var(
} else {
pv_get_null(msg, NULL, &dst_val);
}
- if(pv_set_spec_value(msg, dst_pv, 0, &dst_val) != 0) {
+ if(pv_set_spec_value(msg, dst_pv, 0, &dst_val) < 0) {
LM_ERR("unable to set value to dst_pv\n");
if(val)
goto error;
Loading…
Cancel
Save