[Home]

Summary:ASTERISK-27163: chan_sip: Dialplan function SIP_HEADERS() to complement SIP_HEADER().
Reporter:Kirill Katsnelson (kkm)Labels:
Date Opened:2017-07-30 01:14:18Date Closed:2017-08-16 06:44:36
Priority:MajorRegression?
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:GIT Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description: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.

Submitting to Gerrit in a moment.
Comments:By: Asterisk Team (asteriskteam) 2017-07-30 01:14:19.629-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].