]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_header_funcs: Add new PJSIP_INHERITABLE_HEADER dialplan function 20
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:51 +0000 (16:49 +0000)
commit24456a3c49b515f462fec618be72ad2df147f8aa
treee3ba341c4306fecfbad1052c964b9c136330b9f9
parenteaa6e8ed87cc4561bbd17b2bc98fea84f1dc071f
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