Click or drag to resize
ManagerConnection Properties

The ManagerConnection type exposes the following members.

Properties
  NameDescription
Public propertyAsteriskVersion
Public propertyDefaultEventTimeout
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.
Public propertyDefaultResponseTimeout
Sets the time in milliseconds the synchronous method will wait for a response before throwing a TimeoutException.
Default is 2000.
Public propertyFireAllEvents
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
Public propertyHostname
Sets the hostname of the asterisk server to connect to.
Default is localhost.
Public propertyKeepAlive
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.
Public propertyKeepAliveAfterAuthenticationFailure
Set to true to try reconnecting to ther asterisk serve even if the reconnection attempt threw an AuthenticationFailedException.
Default is false.
Public propertyPassword
Sets the password to use to connect to the asterisk server. This is the password specified in asterisk's manager.conf file.
Public propertyPingInterval
Timeout from Ping to Pong. If no Pong received send Disconnect event. Set to zero to disable.
Public propertyPort
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.
Public propertyReconnectIntervalFast
Default Fast Reconnect interval in milliseconds.
Public propertyReconnectIntervalMax
Default Slow Reconnect interval in milliseconds.
Public propertyReconnectRetryFast
Default Fast Reconnect retry counter.
Public propertyReconnectRetryMax
Default Maximum Reconnect retry counter.
Public propertySleepTime
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.
Public propertySocketEncoding
Socket Encoding - default ASCII
Public propertyUsername
Sets the username to use to connect to the asterisk server. This is the username specified in asterisk's manager.conf file.
Public propertyVersion
Top
See Also