]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_header_funcs: Add new PJSIP_INHERITABLE_HEADER dialplan function master
authorMike Bradeen <mbradeen@sangoma.com>
Wed, 19 Nov 2025 18:31:50 +0000 (11:31 -0700)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 27 Jan 2026 16:49:57 +0000 (16:49 +0000)
commit4f2b0689a7c70b71113e06ad5cb5723d01dd89ae
treeb3062fa4a8f378eeca1a201a800ab6405d0888ee
parent43b69949ec650e8c05e1ed0e5d37be31f860b912
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