AsterNet Class Library (Sandcastle documentation)

| RegistryEvent Properties

The RegistryEvent type exposes the following members.

Properties

| Name | Description
--- | --- | ---
| Attributes | Store all unknown (without setter) keys from manager event. Use in default Parse method Parse(String, String) (Inherited from ManagerEvent.)
| Cause | Get/Set the cause of a rejected registration. The cause of a rejected registration or "<unknown>" if the cause is unknown.
| Channel | Get/Set the name of the channel. (Inherited from ManagerEvent.)
| ChannelType | Channel type "SIP", "IAX2"
| DateReceived | Get/Set the point in time this event was received from the Asterisk server. Pseudo events that are not directly received from the asterisk server (for example ConnectEvent and DisconnectEvent) may return null. (Inherited from ManagerEvent.)
| Domain | Get/Set the domain or host name of the SIP or IAX2 server. This is the host part used in the register lines in iax.conf and sip.conf.
| Privilege | Get/Set the AMI authorization class of this event. This is one or more of system, call, log, verbose, command, agent or user. Multiple privileges are separated by comma. Note: This property is not available from Asterisk 1.0 servers. (Inherited from ManagerEvent.)
| Server | Specify a server to which to send your commands (x.x.x.x or hostname). This should match the server name specified in your config file's "host" entry. If you do not specify a server, the proxy will pick the first one it finds -- fine in single-server configurations. (Inherited from ManagerEvent.)
| Source | The ManagerConnection the Event was sourced from. (Inherited from ManagerEvent.)

Status

Get/Set the registration state.
For sip this may be one of (not sure if all of these are exposed via the manager api, at least "Registered" and "Timeout" are used though)

- Registered
- Unregistered
- Request Sent
- Auth. Sent
- Rejected
- Timeout
- No Authentication
- Unreachable

IAX2 only uses

- Rejected

Successful IAX2 registrations do not use the this property at all.

| Timestamp | Returns the timestamp for this event. The timestamp property is available in Asterisk since 1.4 if enabled in manager.conf by setting timestampevents = yes. In contains the time the event was generated in seconds since the epoch. (Inherited from ManagerEvent.)
| UniqueId | Get/Set the unique id of the channel. (Inherited from ManagerEvent.)
| User | Sets the username used for registration.
| Username | Get/Set the username used for registration. SIP send the username in case of a registration timeout, IAX2 in case of a registration failure. Otherwise the username is null.

Top
See Also

#### Reference

RegistryEvent Class
AsterNET.Manager.Event Namespace