Action Subject

Description: Element in the message

Syntax: (header / body).Action Subject name [.header-index ] * [.( sub-element / sub-element-param )]

Examples:

■ header.from
■ header.via.2.host
■ header.contact.header-param.expires
■ header.to.uri-param.user-param
■ body.application/dtmf-relay
■ Action Subject name:
● Description: Name of the message's element - "/" only used for body types
● Syntax: 1 * ( token / "/" )
● Examples:
◆ from (header's name)
◆ to (header's name)
◆ application/dtmf-relay (body's name)
■ header-index:
● Description: Header's index in the list of headers
● Syntax: Integer
● Examples: If five Via headers arrive:
◆ 0 (default)    refers to first Via header in message
◆ 1: second Via header
◆ 4: fifth Via header
■ sub-element:
● Description: Header's element
● Syntax: sub-element-name
● Examples:
◆ user
◆ host
■ sub-element-param:
● Description: Header's element
● Syntax: sub-element-name [.sub-element-param-name ]
● Example:
◆ header.from.param.expires
■ sub-element-param-name
● Description: Header's parameter name - relevant only to parameter sub-elements
● Syntax: token
● Examples:
◆ expires (contact's header's param)
◆ duration (retry-after header's param)
◆ unknown-param (any unknown param can be added/removed from the header)
■ param:
● Description: Params can be as values for match and action
● Syntax: param.param-sub-element.param-dir-element.(call-param-entity / ipg-param-entity)
● Examples:
◆ param.ipg. src.user
◆ param.ipg.dst.host
◆ param.ipg.src.type
◆ param.call.src.user
■ param-sub-element:
● Description: Determines whether the param being accessed is a call or an IP Group
● Syntax:
◆ call: relates to source or destination URI for the call
◆ ipg: relates to source or destination IP Group
■ param-dir-element:
● Description: Direction relating to the classification
● Syntax:
◆ src: refers to source
◆ ds: refers to destination
■ call-param-entity
● Description: Parameters that can be accessed on the call
● Syntax:
◆ user: refers to username in request-URI for call
■ ipg-param-entity:
● Description: Name of the parameter
● Syntax:
◆ user: refers to Contact user in IP Group
◆ host: refers to Group Name in IP Group table
◆ type: refers to Type field in IP Group table
◆ id: refers to IP Group ID (used to identify source or destination IP Group)
■ string:
● Description: String
● Syntax: string enclosed in single apostrophe
● Examples:
◆ 'username
◆ '123'
◆ 'user@host'
■ Integer:
● Description: A number
● Syntax: 1 * digit
● Example:
◆ 123