From 4c0c0db318146d10c11e84d9d81c2941fd8a95e6 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Wed, 27 Oct 2004 13:58:31 +0000 Subject: Preliminary "PRECACHE" / push support... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4110 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/dundi.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/asterisk/dundi.h b/include/asterisk/dundi.h index 8bd22ddc4..09a3fb1d5 100755 --- a/include/asterisk/dundi.h +++ b/include/asterisk/dundi.h @@ -101,7 +101,8 @@ struct dundi_cause { #define DUNDI_COMMAND_DPRESPONSE (2 | 0x40) /* Respond to a discovery request */ #define DUNDI_COMMAND_EIDQUERY 3 /* Request information for a peer */ #define DUNDI_COMMAND_EIDRESPONSE (4 | 0x40) /* Response to a peer query */ -#define DUNDI_COMMAND_PRECACHE 5 /* Unsolicited answer pre-cache */ +#define DUNDI_COMMAND_PRECACHERQ 5 /* Pre-cache Request */ +#define DUNDI_COMMAND_PRECACHERP (6 | 0x40) /* Pre-cache Response */ #define DUNDI_COMMAND_INVALID (7 | 0x40) /* Invalid dialog state (does not require ack) */ #define DUNDI_COMMAND_UNKNOWN (8 | 0x40) /* Unknown command */ #define DUNDI_COMMAND_NULL 9 /* No-op */ @@ -185,4 +186,7 @@ int dundi_lookup(struct dundi_result *result, int maxret, struct ast_channel *ch /* Retrieve information on a specific EID */ int dundi_query_eid(struct dundi_entity_info *dei, const char *dcontext, dundi_eid eid); + +/* Pre-cache to push upstream peers */ +int dundi_precache(const char *dcontext, const char *number); #endif /* _ASTERISK_DUNDI_H */ -- cgit v1.2.3