[SR-Users] $sel(tls.peer.subject.cn) error

Juha Heinanen jh at tutpro.com
Thu Apr 10 09:08:31 CEST 2014

i have these two lines in config:

        $var(common_name) = @tls.peer.subject.cn;
        $var(common_name) = $sel(tls.peer.subject.cn);

the latter gives error at startup:

 0(24214) ERROR: <core> [select.c:316]: resolve_select(): Unable to resolve select 'tls' at level 0
 0(24214) ERROR: <core> [select.c:177]: w_parse_select(): parse_select: error while resolve_select 'tls.peer.subject.cn'
 0(24214) ERROR: pv [pv_select.c:45]: pv_parse_select_name(): invalid select name [tls.peer.subject.cn]
 0(24214) ERROR: <core> [pvapi.c:839]: pv_parse_spec2(): pvar "sel" has an invalid name param [tls.peer.subject.cn]
 0(24214) ERROR: <core> [pvapi.c:994]: pv_parse_spec2(): wrong char [)/41] in [$sel(tls.peer.subject.cn)] at [24 (5)]
 0(24214) : <core> [cfg.y:3408]: yyerror_at(): parse error in config file /etc/sip-proxy/sip-proxy.cfg, line 874, column 29-53: Can't get from cache: $sel(tls.peer.subject.cn)
ERROR: bad config file (1 errors)

based on pseudo variable wiki page, the syntax should be correct. what
is wrong with $sel(tls.peer.subject.cn)?

-- juha

More information about the sr-users mailing list