Package com.vonage.client.voice
Class SipEndpoint
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.voice.SipEndpoint
Endpoint for connecting to a SIP URI.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSipEndpoint(String uri) Creates a new SIP endpoint request.SipEndpoint(String uri, String userToUserHeader) Creates a new SIP endpoint request.SipEndpoint(String uri, Map<String, ?> headers) Creates a new SIP endpoint request.SipEndpoint(String uri, Map<String, ?> headers, String userToUserHeader) Creates a new SIP endpoint request. -
Method Summary
Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
SipEndpoint
protected SipEndpoint() -
SipEndpoint
Creates a new SIP endpoint request.- Parameters:
uri- (REQUIRED) SIP URI to connect to.
-
SipEndpoint
Creates a new SIP endpoint request.- Parameters:
uri- (REQUIRED) SIP URI to connect to.userToUserHeader- (OPTIONAL) The User-to-User header, as per RFC 7433.- Since:
- 8.9.0
-
SipEndpoint
Creates a new SIP endpoint request.- Parameters:
uri- (REQUIRED) URI of the websocket to connect to.headers- (OPTIONAL) Custom headers to include.- Since:
- 8.9.0
-
SipEndpoint
Creates a new SIP endpoint request.- Parameters:
uri- (REQUIRED) SIP URI to connect to.headers- (OPTIONAL) Custom headers to include.userToUserHeader- (OPTIONAL) The User-to-User header, as per RFC 7433.- Since:
- 8.9.0
-
-
Method Details
-
getUri
SIP URI to connect to.- Returns:
- The SIP URI as a String.
-
getType
Description copied from interface:EndpointEndpoint type name. -
getHeaders
Defines custom headers to be sent as part of the SIP INVITE request. All keys will be prepended with theX-prefix.- Returns:
- The custom headers as a Map, or
nullif unspecified. - Since:
- 8.9.0
-
getStandardHeaders
Headers that are RFC standards, i.e. not prepended withX-.- Returns:
- The standard headers, or
nullif unspecified. - Since:
- 8.9.0
-
toLog
Description copied from interface:EndpointDescription of the endpoint.
-