|
Data Structures |
struct | _dundi_eid |
| A DUNDi Entity ID is essentially a MAC address, brief and unique. More...
|
struct | dundi_answer |
struct | dundi_cause |
struct | dundi_encblock |
struct | dundi_entity_info |
struct | dundi_hdr |
struct | dundi_hint |
struct | dundi_ie_hdr |
struct | dundi_peer_status |
struct | dundi_result |
Defines |
#define | DEFAULT_MAXMS 2000 |
#define | DUNDI_CAUSE_BADENCRYPT 7 |
#define | DUNDI_CAUSE_DUPLICATE 4 |
#define | DUNDI_CAUSE_DYNAMIC 2 |
#define | DUNDI_CAUSE_GENERAL 1 |
#define | DUNDI_CAUSE_NEEDKEY 6 |
#define | DUNDI_CAUSE_NOAUTH 3 |
#define | DUNDI_CAUSE_SUCCESS 0 |
#define | DUNDI_CAUSE_TTL_EXPIRED 5 |
#define | DUNDI_COMMAND_ACK (0 | 0x40) |
#define | DUNDI_COMMAND_CANCEL (12) |
#define | DUNDI_COMMAND_DPDISCOVER 1 |
#define | DUNDI_COMMAND_DPRESPONSE (2 | 0x40) |
#define | DUNDI_COMMAND_EIDQUERY 3 |
#define | DUNDI_COMMAND_EIDRESPONSE (4 | 0x40) |
#define | DUNDI_COMMAND_ENCREJ (14 | 0x40) |
#define | DUNDI_COMMAND_ENCRYPT (13) |
#define | DUNDI_COMMAND_FINAL (0x80) |
#define | DUNDI_COMMAND_INVALID (7 | 0x40) |
#define | DUNDI_COMMAND_NULL 9 |
#define | DUNDI_COMMAND_PRECACHERP (6 | 0x40) |
#define | DUNDI_COMMAND_PRECACHERQ 5 |
#define | DUNDI_COMMAND_REGREQ (10) |
#define | DUNDI_COMMAND_REGRESPONSE (11 | 0x40) |
#define | DUNDI_COMMAND_STATUS 15 |
#define | DUNDI_COMMAND_UNKNOWN (8 | 0x40) |
#define | DUNDI_DEF_EMPTY_CACHE_TIME 60 |
#define | DUNDI_DEFAULT_CACHE_TIME 3600 |
#define | DUNDI_DEFAULT_KEY_EXPIRE 3600 |
#define | DUNDI_DEFAULT_RETRANS 5 |
#define | DUNDI_DEFAULT_RETRANS_TIMER 1000 |
#define | DUNDI_DEFAULT_TTL 120 |
#define | DUNDI_DEFAULT_VERSION 1 |
#define | DUNDI_FLAG_CANMATCH (1 << 2) |
#define | DUNDI_FLAG_COMMERCIAL (1 << 5) |
#define | DUNDI_FLAG_EXISTS (1 << 0) |
#define | DUNDI_FLAG_IGNOREPAT (1 << 3) |
#define | DUNDI_FLAG_MATCHMORE (1 << 1) |
#define | DUNDI_FLAG_MOBILE (1 << 6) |
#define | DUNDI_FLAG_NOCOMUNSOLICIT (1 << 8) |
#define | DUNDI_FLAG_NONEXISTENT (0) |
#define | DUNDI_FLAG_NOUNSOLICITED (1 << 7) |
#define | DUNDI_FLAG_RESERVED (1 << 16) |
#define | DUNDI_FLAG_RESIDENTIAL (1 << 4) |
#define | DUNDI_FLAG_RETRANS (1 << 16) |
#define | DUNDI_FLUFF_TIME 2000 |
#define | DUNDI_HINT_DONT_ASK (1 << 1) |
#define | DUNDI_HINT_NONE (0) |
#define | DUNDI_HINT_TTL_EXPIRED (1 << 0) |
#define | DUNDI_HINT_UNAFFECTED (1 << 2) |
#define | DUNDI_IE_ANSWER 5 |
#define | DUNDI_IE_CACHEBYPASS 29 |
#define | DUNDI_IE_CALLED_CONTEXT 2 |
#define | DUNDI_IE_CALLED_NUMBER 3 |
#define | DUNDI_IE_CAUSE 14 |
#define | DUNDI_IE_COUNTRY 25 |
#define | DUNDI_IE_DEPARTMENT 21 |
#define | DUNDI_IE_EID 1 |
#define | DUNDI_IE_EID_DIRECT 4 |
#define | DUNDI_IE_EMAIL 26 |
#define | DUNDI_IE_ENCDATA 16 |
#define | DUNDI_IE_EXPIRATION 11 |
#define | DUNDI_IE_HINT 20 |
#define | DUNDI_IE_IPADDR 28 |
#define | DUNDI_IE_KEYCRC32 19 |
#define | DUNDI_IE_LOCALITY 23 |
#define | DUNDI_IE_ORGANIZATION 22 |
#define | DUNDI_IE_PEERSTATUS 30 |
#define | DUNDI_IE_PHONE 27 |
#define | DUNDI_IE_REQEID 15 |
#define | DUNDI_IE_SHAREDKEY 17 |
#define | DUNDI_IE_SIGNATURE 18 |
#define | DUNDI_IE_STATE_PROV 24 |
#define | DUNDI_IE_TTL 6 |
#define | DUNDI_IE_UNKNOWN 12 |
#define | DUNDI_IE_VERSION 10 |
#define | DUNDI_PEER_MOD_INBOUND (1 << 5) |
#define | DUNDI_PEER_MOD_OUTBOUND (1 << 4) |
#define | DUNDI_PEER_PCMOD_INBOUND (1 << 7) |
#define | DUNDI_PEER_PCMOD_OUTBOUND (1 << 6) |
#define | DUNDI_PEER_PRIMARY (1 << 0) |
#define | DUNDI_PEER_REGISTERED (1 << 3) |
#define | DUNDI_PEER_SECONDARY (1 << 1) |
#define | DUNDI_PEER_UNAVAILABLE (1 << 2) |
#define | DUNDI_PORT 4520 |
#define | DUNDI_PROTO_H323 3 |
#define | DUNDI_PROTO_IAX 1 |
#define | DUNDI_PROTO_NONE 0 |
#define | DUNDI_PROTO_SIP 2 |
#define | DUNDI_TTL_TIME 200 |
#define | DUNDI_WINDOW 1 |
Typedefs |
typedef _dundi_eid | dundi_eid |
Functions |
int | dundi_lookup (struct dundi_result *result, int maxret, struct ast_channel *chan, const char *dcontext, const char *number, int nocache) |
| Lookup the given number in the given dundi context (or e164 if unspecified) using the given callerid (if specified) and return up to maxret results in the array specified. returns the number of results found or -1 on a hangup of teh channel.
|
int | dundi_precache (const char *dcontext, const char *number) |
| Pre-cache to push upstream peers.
|
int | dundi_query_eid (struct dundi_entity_info *dei, const char *dcontext, dundi_eid eid) |
| Retrieve information on a specific EID.
|
Variables |
dundi_peer_status | __packed__ |
dundi_cause | __packed__ |
dundi_hint | __packed__ |
dundi_answer | __packed__ |
dundi_encblock | __packed__ |
dundi_ie_hdr | __packed__ |
dundi_hdr | __packed__ |
_dundi_eid | __packed__ |
| A DUNDi Entity ID is essentially a MAC address, brief and unique.
|