UDP::remote_port

Description

Returns the remote UDP port/service number.

Syntax

UDP::remote_port [clientside | serverside]

UDP::remote_port

  • Returns the remote UDP port/service number.

UDP::remote_port clientside

  • Returns the remote UDP port/service number of the clientside connection.

UDP::remote_port serverside

  • Returns the remote UDP port/service number of the serverside connection.

Examples

when SIP_REQUEST {
  SIP::header insert "Via" "[lindex [split [SIP::via 0] ";"] 0]received=[IP::client_addr]rport=[UDP::client_port][lindex [split [SIP::via 0] ";"] 1]"
  SIP::header remove "Via" 1
}