res_pjsip_header_funcs: Add PJSIP_HEADERS() ability to read header by pattern

PJSIP currently does not provide a function to replace SIP_HEADERS() function to get a list of headers from INVITE request.
It may be used to get all X- headers in case the actual set and names of headers unknown.

ASTERISK-29389

Change-Id: Ic09d395de71a0021e0d6c5c29e1e19d689079f8b
This commit is contained in:
Igor Goncharovsky
2021-04-13 13:36:17 +06:00
committed by Friendly Automation
parent 71dd1d91ad
commit 1e4ed61a2b
2 changed files with 188 additions and 9 deletions

View File

@@ -0,0 +1,5 @@
Subject: chan_pjsip
Add function PJSIP_HEADERS() to get list of headers by pattern in the same way as SIP_HEADERS() do.
Add ability to read header by pattern using PJSIP_HEADER().