Module: kamailio
Branch: master
Commit: 2c3cc027b05317ec61c706180cb9cfea555cbc11
URL:
https://github.com/kamailio/kamailio/commit/2c3cc027b05317ec61c706180cb9cfe…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-04-12T08:38:07+02:00
corex: corex: $lsock() variable can match by index
---
Modified: src/modules/corex/corex_var.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2c3cc027b05317ec61c706180cb9cfe…
Patch:
https://github.com/kamailio/kamailio/commit/2c3cc027b05317ec61c706180cb9cfe…
---
diff --git a/src/modules/corex/corex_var.c b/src/modules/corex/corex_var.c
index 74fcff6e79..9f404d32aa 100644
--- a/src/modules/corex/corex_var.c
+++ b/src/modules/corex/corex_var.c
@@ -218,6 +218,9 @@ int pv_get_lsock(sip_msg_t *msg, pv_param_t *param, pv_value_t *res)
case 'a':
si = ksr_get_socket_by_advertise(&lexpr.val);
break;
+ case 'i':
+ si = ksr_get_socket_by_index(lexpr.valno);
+ break;
}
if(si == NULL) {
return pv_get_null(msg, param, res);