Skip to content

PJSIP_HEADERS()

Synopsis

Gets the list of SIP header names from an INVITE message.

Description

Returns a comma-separated list of header names (without values) from the INVITE message. Multiple headers with the same name are included in the list only once.

For example, '${PJSIP_HEADERS(Co)}' might return 'Contact,Content-Length,Content-Type'. As a practical example, you may use '${PJSIP_HEADERS(X-)}' to enumerate optional extended headers.

Syntax

PJSIP_HEADERS(prefix)
Arguments
  • prefix - If specified, only the headers matching the given prefix are returned.

See Also

Generated Version

This documentation was generated from Asterisk branch certified/20.7 using version GIT