| ManagerConnection Constructor (String, Int32, String, String, Encoding) |
Creates a new instance with the given connection parameters.
Namespace: AsterNET.ManagerAssembly: AsterNET (in AsterNET.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public ManagerConnection(
string hostname,
int port,
string username,
string password,
Encoding encoding
)
Public Sub New (
hostname As String,
port As Integer,
username As String,
password As String,
encoding As Encoding
)
public:
ManagerConnection(
String^ hostname,
int port,
String^ username,
String^ password,
Encoding^ encoding
)
new :
hostname : string *
port : int *
username : string *
password : string *
encoding : Encoding -> ManagerConnection
Parameters
- hostname
- Type: SystemString
the hosname of the Asterisk server to connect to. - port
- Type: SystemInt32
the port where Asterisk listens for incoming Manager API connections, usually 5038. - username
- Type: SystemString
the username to use for login - password
- Type: SystemString
the password to use for login - encoding
- Type: System.TextEncoding
[Missing <param name="encoding"/> documentation for "M:AsterNET.Manager.ManagerConnection.#ctor(System.String,System.Int32,System.String,System.String,System.Text.Encoding)"]
See Also