ManagerConnection Class |
Namespace: AsterNET.Manager
The ManagerConnection type exposes the following members.
Name | Description | |
---|---|---|
ManagerConnection | Creates a new instance. | |
ManagerConnection(String, Int32, String, String) |
Creates a new instance with the given connection parameters.
| |
ManagerConnection(String, Int32, String, String, Encoding) |
Creates a new instance with the given connection parameters.
|
Name | Description | |
---|---|---|
BuildAction(ManagerAction) | ||
BuildAction(ManagerAction, String) | ||
connect | ||
determineVersion | ||
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetProtocolIdentifier | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsConnected | Returns true if there is a socket connection to the
asterisk server, false otherwise.
| |
Login |
Logs in to the Asterisk manager using asterisk's MD5 based
challenge/response protocol. The login is delayed until the protocol
identifier has been received by the reader.
| |
Login(Int32) |
Log in to the Asterisk manager using asterisk's MD5 based
challenge/response protocol. The login is delayed until the protocol
identifier has been received by the reader.
| |
Logoff |
Sends a LogoffAction and disconnects from the server.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RegisterUserEventClass |
Register User Event Class
| |
SendAction(ManagerAction) |
Send Action with default timeout.
| |
SendAction(ManagerAction, ResponseHandler) | ||
SendAction(ManagerAction, Int32) |
Send action ans with timeout (milliseconds)
| |
SendEventGeneratingAction(ManagerActionEvent) | ||
SendEventGeneratingAction(ManagerActionEvent, Int32) | ||
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
UseASyncEvents |
Allows you to specifiy how events are fired. If false (default) then
events will be fired in order. Otherwise events will be fired as they arrive and
control logic in your application will need to handle synchronization.
| |
VAR_DELIMITER |
Name | Description | |
---|---|---|
AsteriskVersion | ||
DefaultEventTimeout | Sets the time in milliseconds the synchronous method
will wait for a response and the last response event before throwing a TimeoutException. Default is 5000. | |
DefaultResponseTimeout | Sets the time in milliseconds the synchronous method
will wait for a response before throwing a TimeoutException. Default is 2000. | |
FireAllEvents |
If this property set to true then ManagerConnection send all unassigned events to UnhandledEvent handler, if set to false then all unassgned events lost and send only UnhandledEvent. Default: false | |
Hostname | Sets the hostname of the asterisk server to connect to. Default is localhost. | |
KeepAlive |
Should we attempt to reconnect when the connection is lost? This is set to true after successful login and to false after logoff or after an authentication failure when keepAliveAfterAuthenticationFailure is false. | |
KeepAliveAfterAuthenticationFailure | Set to true to try reconnecting to ther asterisk serve
even if the reconnection attempt threw an AuthenticationFailedException. Default is false. | |
Password |
Sets the password to use to connect to the asterisk server. This is the
password specified in asterisk's manager.conf file.
| |
PingInterval |
Timeout from Ping to Pong. If no Pong received send Disconnect event. Set to zero to disable.
| |
Port |
Sets the port to use to connect to the asterisk server. This is the port
specified in asterisk's manager.conf file. Default is 5038. | |
ReconnectIntervalFast | Default Fast Reconnect interval in milliseconds. | |
ReconnectIntervalMax | Default Slow Reconnect interval in milliseconds. | |
ReconnectRetryFast |
Default Fast Reconnect retry counter.
| |
ReconnectRetryMax | Default Maximum Reconnect retry counter. | |
SleepTime | Sets the time in milliseconds the synchronous methods
SendAction(Action.ManagerAction) and
SendAction(Action.ManagerAction, long) will sleep between two checks
for the arrival of a response. This value should be rather small. The sleepTime attribute is also used when checking for the protocol identifer. Default is 50. | |
SocketEncoding |
Socket Encoding - default ASCII
| |
Username |
Sets the username to use to connect to the asterisk server. This is the
username specified in asterisk's manager.conf file.
| |
Version |