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

Change-Id: I43ecd8863bbf83faadfd42cf0c7fb1237112b838
(cherry picked from commit f836dd4e3b)
(cherry picked from commit 9db9ca8468)
mr12.4.1
Victor Seva 2 years ago
parent 18b78b7633
commit f683cd46d8

@ -37,6 +37,7 @@ sipwise/sca-add-pai_avp-parameter.patch
upstream/rtpengine_rework_rtpp_flags.patch
upstream/cfgutils-expose-optional-second-string-key-for-lock.patch
upstream/cfgutils-initialize-the-optional-key.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