[sr-dev] git:master:1dfeba4a: corex: support matching on listen string for $lsock(...) variable

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 6 17:23:34 CEST 2022


Module: kamailio
Branch: master
Commit: 1dfeba4aeed8cd76c630108b2363155eab07801c
URL: https://github.com/kamailio/kamailio/commit/1dfeba4aeed8cd76c630108b2363155eab07801c

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/1dfeba4aeed8cd76c630108b2363155eab07801c.diff
Patch: https://github.com/kamailio/kamailio/commit/1dfeba4aeed8cd76c630108b2363155eab07801c.patch

---

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);




More information about the sr-dev mailing list