mirror of https://github.com/sipwise/kamailio.git
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: I26b5284c9a9c13b0002a7e89116acedef5f9724fmaster
parent
cae2012b9d
commit
a23d296d19
@ -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…
Reference in new issue