Asterisk - The Open Source Telephony Project
21.4.1
|
Distributed Universal Number Discovery (DUNDi) See also. More...
Go to the source code of this file.
Data Structures | |
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 |
Typedefs | |
typedef struct ast_eid | dundi_eid |
Enumerations | |
enum | { DUNDI_PROTO_NONE = 0, DUNDI_PROTO_IAX = 1, DUNDI_PROTO_SIP = 2, DUNDI_PROTO_H323 = 3, DUNDI_PROTO_PJSIP = 4 } |
enum | { DUNDI_FLAG_NONEXISTENT = (0), DUNDI_FLAG_EXISTS = (1 << 0), DUNDI_FLAG_MATCHMORE = (1 << 1), DUNDI_FLAG_CANMATCH = (1 << 2), DUNDI_FLAG_IGNOREPAT = (1 << 3), DUNDI_FLAG_RESIDENTIAL = (1 << 4), DUNDI_FLAG_COMMERCIAL = (1 << 5), DUNDI_FLAG_MOBILE = (1 << 6), DUNDI_FLAG_NOUNSOLICITED = (1 << 7), DUNDI_FLAG_NOCOMUNSOLICIT = (1 << 8) } |
enum | { DUNDI_HINT_NONE = (0), DUNDI_HINT_TTL_EXPIRED = (1 << 0), DUNDI_HINT_DONT_ASK = (1 << 1), DUNDI_HINT_UNAFFECTED = (1 << 2) } |
enum | { DUNDI_CAUSE_SUCCESS = 0, DUNDI_CAUSE_GENERAL = 1, DUNDI_CAUSE_DYNAMIC = 2, DUNDI_CAUSE_NOAUTH = 3, DUNDI_CAUSE_DUPLICATE = 4, DUNDI_CAUSE_TTL_EXPIRED = 5, DUNDI_CAUSE_NEEDKEY = 6, DUNDI_CAUSE_BADENCRYPT = 7 } |
enum | { DUNDI_PEER_PRIMARY = (1 << 0), DUNDI_PEER_SECONDARY = (1 << 1), DUNDI_PEER_UNAVAILABLE = (1 << 2), DUNDI_PEER_REGISTERED = (1 << 3), DUNDI_PEER_MOD_OUTBOUND = (1 << 4), DUNDI_PEER_MOD_INBOUND = (1 << 5), DUNDI_PEER_PCMOD_OUTBOUND = (1 << 6), DUNDI_PEER_PCMOD_INBOUND = (1 << 7) } |
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. Lookup number in a given dundi context (if unspecified use e164), the given callerid (if specified) and return up to maxret results in the array specified. More... | |
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. | |
#define DUNDI_COMMAND_CANCEL (12) |
#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_INVALID (7 | 0x40) |
#define DUNDI_COMMAND_PRECACHERP (6 | 0x40) |
#define DUNDI_COMMAND_REGREQ (10) |
#define DUNDI_COMMAND_REGRESPONSE (11 | 0x40) |
#define DUNDI_DEF_EMPTY_CACHE_TIME 60 |
#define DUNDI_DEFAULT_KEY_EXPIRE 3600 |
#define DUNDI_IE_ANSWER 5 |
An answer (struct dundi_answer)
#define DUNDI_IE_CALLED_NUMBER 3 |
#define DUNDI_IE_DEPARTMENT 21 |
#define DUNDI_IE_EID 1 |
#define DUNDI_IE_EID_DIRECT 4 |
#define DUNDI_IE_EMAIL 26 |
#define DUNDI_IE_EXPIRATION 11 |
#define DUNDI_IE_IPADDR 28 |
#define DUNDI_IE_LOCALITY 23 |
#define DUNDI_IE_ORGANIZATION 22 |
#define DUNDI_IE_PEERSTATUS 30 |
Peer/peer status (struct dundi_peer_status)
#define DUNDI_IE_PHONE 27 |
#define DUNDI_IE_SIGNATURE 18 |
#define DUNDI_IE_STATE_PROV 24 |
#define DUNDI_IE_TTL 6 |
#define DUNDI_IE_VERSION 10 |
DUNDi version (should be 1) (short)
Definition at line 190 of file dundi.h.
Referenced by do_register().
anonymous enum |
Enumerator | |
---|---|
DUNDI_PROTO_NONE |
No answer yet |
DUNDI_PROTO_IAX |
IAX, version 2 |
DUNDI_PROTO_SIP |
SIP - Session Initiation Protocol, RFC 3261 |
DUNDI_PROTO_H323 |
ITU H.323 |
DUNDI_PROTO_PJSIP |
PJSIP |
Definition at line 53 of file dundi.h.
anonymous enum |
Definition at line 66 of file dundi.h.
anonymous enum |
Enumerator | |
---|---|
DUNDI_HINT_TTL_EXPIRED |
TTL Expired |
DUNDI_HINT_DONT_ASK |
Don't ask for anything beginning with data |
DUNDI_HINT_UNAFFECTED |
Answer not affected by entity list |
anonymous enum |
Definition at line 117 of file dundi.h.
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. Lookup number in a given dundi context (if unspecified use e164), the given callerid (if specified) and return up to maxret results in the array specified.
the | number of results found. |
-1 | on a hangup of the channel. |
Definition at line 3932 of file pbx_dundi.c.
References DUNDI_HINT_DONT_ASK, and DUNDI_HINT_UNAFFECTED.