Skip to end of metadata
Go to start of metadata

SIP_HEADER()

Synopsis

Gets the specified SIP header from an incoming INVITE message.

Description

Since there are several headers (such as Via) which can occur multiple times, SIP_HEADER takes an optional second argument to specify which header with that name to retrieve. Headers start at offset 1.

Please observe that contents of the SDP (an attachment to the SIP request) can't be accessed with this function.

Syntax

SIP_HEADER(name,number)
Arguments
  • name
  • number - If not specified, defaults to 1.

See Also

Import Version

This documentation was imported from Asterisk Version Unknown

  • No labels