Skip to end of metadata
Go to start of metadata

PJSIP_HEADER_PARAM()

Synopsis

Get or set header/URI parameters on a PJSIP channel.

Description

PJSIP_HEADER_PARAM allows you to read or set parameters in a SIP header on a PJSIP channel.

Both URI parameters and header parameters can be read and set using this function. URI parameters appear in the URI (inside the <> in the header) while header parameters appear afterwards.

Note

Icon

If you call PJSIP_HEADER_PARAM in a normal dialplan context you'll be operating on the caller's (incoming) channel which may not be what you want. To operate on the callee's (outgoing) channel call PJSIP_HEADER_PARAM in a pre-dial handler.

Example: Set URI parameter in From header on outbound channel
Example: Read URI parameter in From header on inbound channel

Syntax

PJSIP_HEADER_PARAM(header_name,parameter_type,parameter_name)
Arguments
  • header_name - Header in which parameter should be read or set.
    Currently, the only supported header is From.
  • parameter_type - The type of parameter to get or set.
    Default is header parameter.
    • header - Header parameter.
    • uri - URI parameter.
  • parameter_name - Name of parameter.

See Also

Import Version

This documentation was imported from Asterisk Version GIT-20-5c114dc

  • No labels