24 #ifndef _ASTERISK_DUNDI_H 25 #define _ASTERISK_DUNDI_H 30 #define DUNDI_PORT 4520 42 } __attribute__((__packed__));
47 unsigned char iedata[0];
48 } __attribute__((__packed__));
50 #define DUNDI_FLAG_RETRANS (1 << 16) 51 #define DUNDI_FLAG_RESERVED (1 << 16) 99 unsigned char encdata[0];
100 } __attribute__((__packed__));
107 unsigned char data[0];
108 } __attribute__((__packed__));
112 unsigned char data[0];
113 } __attribute__((__packed__));
137 } __attribute__((__packed__));
144 } __attribute__((__packed__));
157 #define DUNDI_COMMAND_FINAL (0x80) 159 #define DUNDI_COMMAND_ACK (0 | 0x40) 160 #define DUNDI_COMMAND_DPDISCOVER 1 161 #define DUNDI_COMMAND_DPRESPONSE (2 | 0x40) 162 #define DUNDI_COMMAND_EIDQUERY 3 163 #define DUNDI_COMMAND_EIDRESPONSE (4 | 0x40) 164 #define DUNDI_COMMAND_PRECACHERQ 5 165 #define DUNDI_COMMAND_PRECACHERP (6 | 0x40) 166 #define DUNDI_COMMAND_INVALID (7 | 0x40) 167 #define DUNDI_COMMAND_UNKNOWN (8 | 0x40) 168 #define DUNDI_COMMAND_NULL 9 169 #define DUNDI_COMMAND_REGREQ (10) 170 #define DUNDI_COMMAND_REGRESPONSE (11 | 0x40) 171 #define DUNDI_COMMAND_CANCEL (12) 172 #define DUNDI_COMMAND_ENCRYPT (13) 173 #define DUNDI_COMMAND_ENCREJ (14 | 0x40) 175 #define DUNDI_COMMAND_STATUS 15 182 #define DUNDI_IE_EID 1 183 #define DUNDI_IE_CALLED_CONTEXT 2 184 #define DUNDI_IE_CALLED_NUMBER 3 185 #define DUNDI_IE_EID_DIRECT 4 186 #define DUNDI_IE_ANSWER 5 187 #define DUNDI_IE_TTL 6 188 #define DUNDI_IE_VERSION 10 189 #define DUNDI_IE_EXPIRATION 11 190 #define DUNDI_IE_UNKNOWN 12 191 #define DUNDI_IE_CAUSE 14 192 #define DUNDI_IE_REQEID 15 193 #define DUNDI_IE_ENCDATA 16 194 #define DUNDI_IE_SHAREDKEY 17 195 #define DUNDI_IE_SIGNATURE 18 196 #define DUNDI_IE_KEYCRC32 19 197 #define DUNDI_IE_HINT 20 199 #define DUNDI_IE_DEPARTMENT 21 200 #define DUNDI_IE_ORGANIZATION 22 201 #define DUNDI_IE_LOCALITY 23 202 #define DUNDI_IE_STATE_PROV 24 203 #define DUNDI_IE_COUNTRY 25 204 #define DUNDI_IE_EMAIL 26 205 #define DUNDI_IE_PHONE 27 206 #define DUNDI_IE_IPADDR 28 207 #define DUNDI_IE_CACHEBYPASS 29 209 #define DUNDI_IE_PEERSTATUS 30 211 #define DUNDI_FLUFF_TIME 2000 212 #define DUNDI_TTL_TIME 200 214 #define DUNDI_DEFAULT_RETRANS 5 215 #define DUNDI_DEFAULT_RETRANS_TIMER 1000 216 #define DUNDI_DEFAULT_TTL 120 217 #define DUNDI_DEFAULT_VERSION 1 218 #define DUNDI_DEFAULT_CACHE_TIME 3600 219 #define DUNDI_DEFAULT_KEY_EXPIRE 3600 220 #define DUNDI_DEF_EMPTY_CACHE_TIME 60 221 #define DUNDI_WINDOW 1 223 #define DEFAULT_MAXMS 2000
Main Channel structure associated with a 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.
An Entity ID is essentially a MAC address, brief and unique.
General Asterisk PBX channel definitions.
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 unspec...
static char stateprov[80]