GetUriParameter

The GetUriParameter function returns the named parameter value found in a supplied SIP URI.

string GetUriParameter(
  string uri,
  string parameterName
);

Parameters

  • uri
    A SIP URI that will be searched for parameterName. For example, GetUriParameter("sip:someone@example.com:6767;uriparam1=value1", "uriparam1") returns "value1".
  • parameterName
    The parameter name for which the associated value will be returned. In the above example, the parameter name is the string "uriparam1".

Return Values

Returns the value of the parameter specified by parameterName with the supplied URI. If the URI does not contain a matching parameter, an empty string is returned.

Remarks

If the parameter is valueless (it is not of the form "name=value"), this function returns an empty string.