mirror of https://github.com/sipwise/kamailio.git
This commit removes error loglines into kamailio log file in case dlg_get_var() receives a dlg_var() as fifth variable or more in general when PVT_OTHER is selected (which is not avp or var). vars -> id 15 avps -> id 4 xavps -> 17 Change-Id: I727ae5aea12e88b71f73a5e0bb3223fe68e535dcpull/12/head
parent
d4dcc44416
commit
12330e2b0b
@ -0,0 +1,22 @@
|
||||
--- a/src/modules/dialog/dialog.c
|
||||
+++ b/src/modules/dialog/dialog.c
|
||||
@@ -1955,7 +1955,8 @@ static int w_dlg_get_var(
|
||||
pv_get_null(msg, NULL, &dst_val);
|
||||
}
|
||||
if(pv_set_spec_value(msg, dst_pv, 0, &dst_val) != 0) {
|
||||
- LM_ERR("unable to set value to dst_pv\n");
|
||||
+ if (dst_pv && dst_pv->type != PVT_OTHER)
|
||||
+ LM_ERR("unable to set value to dst_pv\n");
|
||||
if(val)
|
||||
goto error;
|
||||
else
|
||||
@@ -1966,7 +1967,8 @@ static int w_dlg_get_var(
|
||||
error:
|
||||
pv_get_null(msg, NULL, &dst_val);
|
||||
if(pv_set_spec_value(msg, dst_pv, 0, &dst_val) != 0) {
|
||||
- LM_ERR("unable to set null value to dst_pv\n");
|
||||
+ if (dst_pv && dst_pv->type != PVT_OTHER)
|
||||
+ LM_ERR("unable to set null value to dst_pv\n");
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
Loading…
Reference in new issue