Skip to content

Commit

Permalink
corex: corex: $lsock() variable can match by index
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Apr 12, 2022
1 parent 1bde8e0 commit 2c3cc02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/corex/corex_var.c
Expand Up @@ -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);
Expand Down

0 comments on commit 2c3cc02

Please sign in to comment.