]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_header_funcs: Add new PJSIP_INHERITABLE_HEADER dialplan function 22
authorMike Bradeen <mbradeen@sangoma.com>
Wed, 19 Nov 2025 18:31:50 +0000 (11:31 -0700)
committerMike Bradeen <mbradeen@sangoma.com>
Tue, 27 Jan 2026 16:49:52 +0000 (16:49 +0000)
commitdc0e5da7966626577324cc8dcc962e37ce34d725
tree9195e841f6cde1a9be5d565de5ade26ca3464c8b
parent48309d8be756ea2ee08ec2e2cb4b7e0107a1f463
res_pjsip_header_funcs: Add new PJSIP_INHERITABLE_HEADER dialplan function

Adds a new PJSIP_INHERITABLE_HEADER dialplan function to add
inheritable headers from the inbound channel to an outbound
bridged channel.  This works similarly to the existing
PJSIP_HEADER function, but will set the header on the bridged
outbound channel's INVITE upon Dial.

Inheritable headers can be updated or removed from the inbound
channel as well as from a pre-dial handler

Resolves: #1670

UserNote: A new PJSIP_HEADER option has been added that allows
inheriting pjsip headers from the inbound to the outbound bridged
channel.
Example- same => n,Set(PJSIP_INHERITABLE_HEADER(add,X-custom-1)=alpha)
will add X-custom-1: alpha to the outbound pjsip channel INVITE
upon Dial.
res/res_pjsip_header_funcs.c