SIP::method

Description

Returns the type of SIP request method.

Syntax

SIP::method

SIP::method

  • Returns the type of SIP request method.

Examples

when SIP_REQUEST {
  log local0. [SIP::uri]
  log local0. [SIP::header Via 0]
  if {[SIP::method] == "INVITE"} {
    SIP::respond 401 "no way" X-Header "xxx here"
  }
}