Pjsip and match_header

Good day. I want use match_header in identify. My file pjsip.conf
[toll]
type=identify
endpoint=toll_f_f-IN1
match_header=To:sip:123@xxx.xxx.xxx.xxx:5060

I don’t see header To in incoming call INVITE. I change match_header From. I don’t see value to.

[May 7 13:43:25] DEBUG[6124]: res_pjsip_endpoint_identifier_ip.c:174 header_identify_match_check: SIP message contains header ‘To’ but value ‘���▒�’ does not match value ‘‘sip:123@ххх.ххх.ххх.ххх:5060’’ for endpoint ‘toll_f_f-IN1’
[May 7 13:41:59] DEBUG[6116]: res_pjsip_endpoint_identifier_ip.c:174 header_identify_match_check: SIP message contains header ‘To’ but value ‘’ does not match value ‘sip:123@ххх.ххх.ххх.ххх:5060’ for endpoint ‘toll_f_f-IN1’

Please help me with question.

That does not support matching using the To header. There is an issue open[1] to extend it so it would work, but noone is working on it as far as I know.

[1] https://issues.asterisk.org/jira/browse/ASTERISK-27548

Very bad. match_header=User-Agent:value is work. that’s weird.