Skip to content

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

Generated Version

This documentation was generated from Asterisk branch 20 using version GIT