Skip to end of metadata
Go to start of metadata

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

Import Version

This documentation was imported from Asterisk Version GIT-20-f8000daff5

  • No labels