MT#64566 Adjust log level in w_dlg_get_var from error to info

When invoking dlg_get_var(), the absence of the requested dialog variable
is no longer treated as an error condition.
The event is now logged at info level.

Change-Id: I26b5284c9a9c13b0002a7e89116acedef5f9724f
master
Alessio Garzi 2 months ago
parent cae2012b9d
commit a23d296d19

@ -49,6 +49,7 @@ sipwise/pvheaders_memleak.patch
sipwise/dlg_get_var_error_more_verbose_on_dlg
sipwise/tlsa_dynamic_linking_libz.patch
sipwise/permissions_consider_db_mode_when_rpc_reload.patch
sipwise/dialog_w_dlg_get_var_no_error_msg.patch
### Don't just put stuff in any order
### use gbp pq import/export tooling to help maintain patches

@ -0,0 +1,20 @@
--- a/src/modules/dialog/dialog.c
+++ b/src/modules/dialog/dialog.c
@@ -2159,7 +2159,7 @@ static int w_dlg_get_var(
}
if(pv_set_spec_value(msg, dst_pv, 0, &dst_val) != 0) {
if (dst_pv && dst_pv->type != PVT_OTHER)
- LM_ERR("unable to set value to dst_pv\n");
+ LM_INFO("unable to set value to dst_pv\n");
if(val)
goto error;
else
@@ -2171,7 +2171,7 @@ error:
pv_get_null(msg, NULL, &dst_val);
if(pv_set_spec_value(msg, dst_pv, 0, &dst_val) != 0) {
if (dst_pv && dst_pv->type != PVT_OTHER)
- LM_ERR("unable to set null value to dst_pv\n");
+ LM_INFO("unable to set null value to dst_pv\n");
}
return -1;
}
Loading…
Cancel
Save