Skip to end of metadata
Go to start of metadata

PJSIP_RESPONSE_HEADERS()

Synopsis

Gets the list of SIP header names from the 200 response of INVITE message.

Description

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

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

Syntax

PJSIP_RESPONSE_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-18-d6ff560

  • No labels