ISubscriptionManagerCreateNewSubscription Method |
Creates a new initial subscription.
Namespace: Ozeki.VoIPAssembly: OzekiSDK (in OzekiSDK.dll) Version: 1.8.12.0 (1.8.12)
Syntax Subscription CreateNewSubscription(
IUserAgentInstance owner,
SIPAddress account,
SIPAddress contact,
TransportInfo transportInfo,
string eventType,
SIPDialogSide side,
string phoneNumber = "",
DialogID dialogID = null,
int expires = 30,
int eventId = 0,
bool refresh = true
)
Function CreateNewSubscription (
owner As IUserAgentInstance,
account As SIPAddress,
contact As SIPAddress,
transportInfo As TransportInfo,
eventType As String,
side As SIPDialogSide,
Optional phoneNumber As String = "",
Optional dialogID As DialogID = Nothing,
Optional expires As Integer = 30,
Optional eventId As Integer = 0,
Optional refresh As Boolean = true
) As Subscription
Subscription^ CreateNewSubscription(
IUserAgentInstance^ owner,
SIPAddress^ account,
SIPAddress^ contact,
TransportInfo^ transportInfo,
String^ eventType,
SIPDialogSide side,
String^ phoneNumber = L"",
DialogID^ dialogID = nullptr,
int expires = 30,
int eventId = 0,
bool refresh = true
)
abstract CreateNewSubscription :
owner : IUserAgentInstance *
account : SIPAddress *
contact : SIPAddress *
transportInfo : TransportInfo *
eventType : string *
side : SIPDialogSide *
?phoneNumber : string *
?dialogID : DialogID *
?expires : int *
?eventId : int *
?refresh : bool
(* Defaults:
let _phoneNumber = defaultArg phoneNumber ""
let _dialogID = defaultArg dialogID null
let _expires = defaultArg expires 30
let _eventId = defaultArg eventId 0
let _refresh = defaultArg refresh true
*)
-> Subscription
Parameters
- owner
- Type: Ozeki.VoIPIUserAgentInstance
- account
- Type: Ozeki.VoIPSIPAddress
- contact
- Type: Ozeki.VoIPSIPAddress
- transportInfo
- Type: Ozeki.NetworkTransportInfo
- eventType
- Type: SystemString
- side
- Type: Ozeki.VoIPSIPDialogSide
- phoneNumber (Optional)
- Type: SystemString
- dialogID (Optional)
- Type: Ozeki.VoIPDialogID
- expires (Optional)
- Type: SystemInt32
- eventId (Optional)
- Type: SystemInt32
- refresh (Optional)
- Type: SystemBoolean
Return Value
Type:
SubscriptionSee Also