External: LinphoneAddress

LinphoneAddress

Object that represents a SIP address.
Source:

Members

displayName :string

Sets the display name.
Type:
  • string
Source:

domain :string

Sets the domain.
Type:
  • string
Source:

port :number

Sets the port number.
Type:
  • number
Source:

<readonly> scheme :string

Returns the address scheme, normally "sip".
Type:
  • string
Source:

<readonly> secure :boolean

Returns true if address refers to a secure location (sips)
Type:
  • boolean
Source:

transport :linphone.TransportType

Set a transport.
Type:
Source:

username :string

Sets the username.
Type:
  • string
Source:

Methods

asString() → {string}

Returns the address as a string. The returned char * must be freed by the application. Use ms_free().
Source:
Returns:
Type
string

asStringUriOnly() → {string}

Returns the SIP uri only as a string, that is display name is removed. The returned char * must be freed by the application. Use ms_free().
Source:
Returns:
Type
string

clean() → {void}

Removes address's tags and uri headers so that it is displayable to the user.
Source:
Returns:
Type
void

clone() → {external:LinphoneAddress}

Clones a LinphoneAddress object.
Source:
Returns:
Type
external:LinphoneAddress

weakEqual(a2) → {boolean}

Compare two LinphoneAddress ignoring tags and headers, basically just domain, username, and port. Returns TRUE if they are equal.
Parameters:
Name Type Description
a2 external:LinphoneAddress -
Source:
Returns:
Type
boolean