diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-28 19:55:18 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-28 19:55:18 +0000 |
commit | adcf1fa4f7dfb03d994fc9b0e776dd6bd935517d (patch) | |
tree | 132cca35ddc042f94b8610d3b481eab95eedef2a /include | |
parent | 656368a291acc40a4f12c476ba78f86bd1798381 (diff) |
Add structures for status reporting
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4121 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/dundi.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/asterisk/dundi.h b/include/asterisk/dundi.h index 09a3fb1d5..5a6920b30 100755 --- a/include/asterisk/dundi.h +++ b/include/asterisk/dundi.h @@ -94,6 +94,22 @@ struct dundi_cause { char desc[0]; /* Textual description */ } __attribute__ ((__packed__)); +struct dundi_peer_status { + unsigned int flags; + unsigned short netlag; + unsigned short querylag; + dundi_eid peereid; +} __attribute__ ((__packed__)); + +#define DUNDI_PEER_PRIMARY (1 << 0) +#define DUNDI_PEER_SECONDARY (1 << 1) +#define DUNDI_PEER_UNAVAILABLE (1 << 2) +#define DUNDI_PEER_REGISTERED (1 << 3) +#define DUNDI_PEER_MOD_OUTBOUND (1 << 4) +#define DUNDI_PEER_MOD_INBOUND (1 << 5) +#define DUNDI_PEER_PCMOD_OUTBOUND (1 << 6) +#define DUNDI_PEER_PCMOD_INBOUND (1 << 7) + #define DUNDI_COMMAND_FINAL (0x80) /* Or'd with other flags */ #define DUNDI_COMMAND_ACK (0 | 0x40) /* Ack a message */ @@ -112,6 +128,8 @@ struct dundi_cause { #define DUNDI_COMMAND_ENCRYPT (13) /* Send an encrypted message */ #define DUNDI_COMMAND_ENCREJ (14 | 0x40) /* Reject an encrypted message */ +#define DUNDI_COMMAND_STATUS 15 /* Status command */ + /* * Remember that some information elements may occur * more than one time within a message @@ -144,6 +162,8 @@ struct dundi_cause { #define DUNDI_IE_IPADDR 28 /* IP Address, for EIDQUERY (string) */ #define DUNDI_IE_CACHEBYPASS 29 /* Bypass cache (empty) */ +#define DUNDI_IE_PEERSTATUS 30 /* Peer/peer status (struct dundi_peer_status) */ + #define DUNDI_FLUFF_TIME 2000 /* Amount of time for answer */ #define DUNDI_TTL_TIME 200 /* Incremental average time */ |