AsterNet Class Library (Sandcastle documentation)

| ManagerConnection Properties

The ManagerConnection type exposes the following members.

Properties

| 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 |

Top
See Also

#### Reference

ManagerConnection Class
AsterNET.Manager Namespace