Module: kamailio
Branch: master
Commit: 1dfeba4aeed8cd76c630108b2363155eab07801c
URL:
https://github.com/kamailio/kamailio/commit/1dfeba4aeed8cd76c630108b2363155…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-04-06T17:20:02+02:00
corex: support matching on listen string for $lsock(...) variable
---
Modified: src/modules/corex/corex_var.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1dfeba4aeed8cd76c630108b2363155…
Patch:
https://github.com/kamailio/kamailio/commit/1dfeba4aeed8cd76c630108b2363155…
---
diff --git a/src/modules/corex/corex_var.c b/src/modules/corex/corex_var.c
index 9fd1061184..b7575ec043 100644
--- a/src/modules/corex/corex_var.c
+++ b/src/modules/corex/corex_var.c
@@ -210,6 +210,9 @@ int pv_get_lsock(sip_msg_t *msg, pv_param_t *param, pv_value_t *res)
case 'n':
si = ksr_get_socket_by_name(&lexpr.val);
break;
+ case 'l':
+ si = ksr_get_socket_by_listen(&lexpr.val);
+ break;
}
if(si == NULL) {
return pv_get_null(msg, param, res);