Module: kamailio
Branch: master
Commit: bfc5d4bdcdd1ce60359d1a2e6a097f312879799f
URL:
https://github.com/kamailio/kamailio/commit/bfc5d4bdcdd1ce60359d1a2e6a097f3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-06-19T13:50:28+02:00
dialplan: set right input/output pv references
---
Modified: src/modules/dialplan/dialplan.c
---
Diff:
https://github.com/kamailio/kamailio/commit/bfc5d4bdcdd1ce60359d1a2e6a097f3…
Patch:
https://github.com/kamailio/kamailio/commit/bfc5d4bdcdd1ce60359d1a2e6a097f3…
---
diff --git a/src/modules/dialplan/dialplan.c b/src/modules/dialplan/dialplan.c
index b5286d2b613..680d40641c8 100644
--- a/src/modules/dialplan/dialplan.c
+++ b/src/modules/dialplan/dialplan.c
@@ -858,12 +858,12 @@ static int ki_dp_translate(
}
if(input_spv == NULL || input_spv->len <= 0) {
- pvs_o = pv_cache_get(&dp_default_param_s);
+ pvs_i = pv_cache_get(&dp_default_param_s);
} else {
pvs_i = pv_cache_get(input_spv);
}
if(output_spv == NULL || output_spv->len <= 0) {
- pvs_i = pv_cache_get(&dp_default_param_s);
+ pvs_o = pv_cache_get(&dp_default_param_s);
} else {
pvs_o = pv_cache_get(output_spv);
}