diff --git a/src/modules/corex/corex_var.c b/src/modules/corex/corex_var.c index 74fcff6e79b..9f404d32aa4 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);