You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Public Class MyConfigurator
Implements IConfigurationProvider
Public Sub Configure(ByVal context As IConfigurationContext) Implements pjsip4net.Core.Interfaces.IConfigurationProvider.Configure
Dim registrar As String = "sip:" & Form1.TextBoxDomain.Text
Dim accountId As String = New SipUriBuilder().AppendDomain(Form1.TextBoxDomain.Text).AppendExtension(Form1.TextBoxUser.Text).ToString
Dim proxy As String = "sip:" & Form1.TextboxProxy.Text
Dim accountConfigArray As AccountConfig() = New AccountConfig(1 - 1) {}
Dim _Config As AccountConfig = New AccountConfig()
_Config.RegUri = registrar
_Config.Id = accountId
_Config.RegTimeout = 10
Dim networkCreds As List(Of NetworkCredential) = New List(Of NetworkCredential)()
networkCreds.Add(New NetworkCredential(Form1.TextBoxUser.Text, Form1.TextBoxPasswd.Text, Form1.TextBoxDomain.Text))
_Config.Credentials = networkCreds
Dim strs As List(Of String) = New List(Of String)()
strs.Add(proxy)
_Config.Proxy = strs
accountConfigArray(0) = _Config
context.RegisterAccounts(accountConfigArray)
End Sub
Cannot accept connection timeout
Example
Dim _Config As AccountConfig = New AccountConfig()
_Config.RegTimeout = 10
The text was updated successfully, but these errors were encountered: