Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
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 |
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. More... | |
int | dundi_query_eid (struct dundi_entity_info *dei, const char *dcontext, dundi_eid eid) |
Retrieve information on a specific EID. More... | |
#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_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_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 |
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_NONE | |
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 |
Definition at line 89 of file dundi.h.
anonymous enum |
Definition at line 117 of file dundi.h.
anonymous enum |
Enumerator | |
---|---|
DUNDI_PEER_PRIMARY | |
DUNDI_PEER_SECONDARY | |
DUNDI_PEER_UNAVAILABLE | |
DUNDI_PEER_REGISTERED | |
DUNDI_PEER_MOD_OUTBOUND | |
DUNDI_PEER_MOD_INBOUND | |
DUNDI_PEER_PCMOD_OUTBOUND | |
DUNDI_PEER_PCMOD_INBOUND |
Definition at line 148 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_cache_time, DUNDI_HINT_DONT_ASK, DUNDI_HINT_UNAFFECTED, dundi_lookup_internal(), dundi_ttl, dundi_hint_metadata::flags, NULL, and result.
Referenced by dundi_do_lookup(), dundi_exec(), dundi_helper(), dundi_query_read(), and dundifunc_read().
int dundi_precache | ( | const char * | dcontext, |
const char * | number | ||
) |
Pre-cache to push upstream peers.
Definition at line 4074 of file pbx_dundi.c.
References voicemailpwcheck::context, dundi_precache_internal(), dundi_ttl, and NULL.
Referenced by dundi_do_precache(), and process_precache().
int dundi_query_eid | ( | struct dundi_entity_info * | dei, |
const char * | dcontext, | ||
dundi_eid | eid | ||
) |
Retrieve information on a specific EID.
Definition at line 4127 of file pbx_dundi.c.
References dundi_query_eid_internal(), dundi_ttl, and NULL.
Referenced by dundi_do_query().