ISubscriptionManagerCreateNewSubscription Method |
Creates a new initial subscription.
Namespace: Ozeki.VoIPAssembly: OzekiSDK (in OzekiSDK.dll) Version: 10.4.54.0
SyntaxSubscription 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 IUserAgentInstance
-
- account SIPAddress
-
- contact SIPAddress
-
- transportInfo TransportInfo
-
- eventType String
-
- side SIPDialogSide
-
- phoneNumber String (Optional)
-
- dialogID DialogID (Optional)
-
- expires Int32 (Optional)
-
- eventId Int32 (Optional)
-
- refresh Boolean (Optional)
-
Return Value
Subscription
See Also