ltm rule command SIP uriΒΆ

iRule(1)		      BIG-IP TMSH Manual		      iRule(1)



SIP::uri
       Returns or sets the URI of the request.

SYNOPSIS
       SIP::uri (URI_STRING)?

DESCRIPTION
       Returns or sets the complete URI of the request.

       Syntax

       SIP::uri

	    * Returns the complete URI of the request.

       SIP::uri 

	    * Sets the URI to string.

	      Note: The ability to set the SIP uri was added in 9.4.0.

RETURN VALUE
VALID DURING
EXAMPLES
	when SIP_REQUEST {
	  log local0. "uri: [SIP::uri] via [SIP::header Via 0]"
	}

	when SIP_REQUEST {
	   # Check if URI contains xyz.com
	   if {    [SIP::uri] contains "xyz.com" }{

	      # Replace xyz.com with the VIP address
	      SIP::uri [string map "xyz.com [IP::local_addr]" [SIP::uri]]
	   }
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-9.2.0 --First introduced the command.



BIG-IP				  2017-01-31			      iRule(1)