Module: kamailio
Branch: master
Commit: d09e2250db652650945867d135faa84a08dda820
URL:
https://github.com/kamailio/kamailio/commit/d09e2250db652650945867d135faa84…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-04-08T12:39:12+02:00
corex: $lsock() variable can match by advertise address
---
Modified: src/modules/corex/corex_var.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d09e2250db652650945867d135faa84…
Patch:
https://github.com/kamailio/kamailio/commit/d09e2250db652650945867d135faa84…
---
diff --git a/src/modules/corex/corex_var.c b/src/modules/corex/corex_var.c
index 0f0f5c39e1..74fcff6e79 100644
--- a/src/modules/corex/corex_var.c
+++ b/src/modules/corex/corex_var.c
@@ -215,6 +215,9 @@ int pv_get_lsock(sip_msg_t *msg, pv_param_t *param, pv_value_t *res)
case 'l':
si = ksr_get_socket_by_listen(&lexpr.val);
break;
+ case 'a':
+ si = ksr_get_socket_by_advertise(&lexpr.val);
+ break;
}
if(si == NULL) {
return pv_get_null(msg, param, res);