diff options
author | kkm <kkm@smartaction.com> | 2017-07-29 23:17:00 -0700 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2017-08-02 19:19:29 -0500 |
commit | 4c0798e91dff59682c16e269a87a181ea198a64e (patch) | |
tree | 06efd9145c4dde19afdf674e97213e76b53c942e /CHANGES | |
parent | 2be8d91c0f5802a1f9c87b35f8f419e0db1b22d8 (diff) |
chan_sip: Add dialplan function SIP_HEADERS
Syntax: SIP_HEADERS([prefix])
If the argument is specified, only the headers matching the given prefix
are returned.
The function returns a comma-separated list of SIP header names from an
incoming INVITE message. Multiple headers with the same name are included
in the list only once. The returned list can be iterated over using the
functions POP() and SIP_HEADER().
For example, '${SIP_HEADERS(Co)}' might return the string
'Contact,Content-Length,Content-Type'.
Practical use is rather '${SIP_HEADERS(X-)}' to enumerate optional
extended headers sent by a peer.
ASTERISK-27163
Change-Id: I2076d3893d03a2f82429f393b5b46db6cf68a267
Diffstat (limited to 'CHANGES')
-rw-r--r-- | CHANGES | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -9,6 +9,14 @@ ============================================================================== ------------------------------------------------------------------------------ +--- Functionality changes from Asterisk 15 to Asterisk 16 -------------------- +------------------------------------------------------------------------------ + +chan_sip +------------------ + * New function SIP_HEADERS() enumerates all headers in the incoming INVITE. + +------------------------------------------------------------------------------ --- Functionality changes from Asterisk 14 to Asterisk 15 -------------------- ------------------------------------------------------------------------------ @@ -1539,7 +1547,7 @@ res_pjsip_endpoint_identifer_ip ------------------ * New CLI commands have been added: "pjsip show identif(y|ies)", which lists all configured PJSIP identify objects - + ------------------------------------------------------------------------------ --- Functionality changes from Asterisk 12 to Asterisk 13 -------------------- ------------------------------------------------------------------------------ |