|
|
|
@ -1224,7 +1224,7 @@ static int cache_lookup_internal(time_t now, struct dundi_request *req, char *ke
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int cache_lookup(struct dundi_request *req, dundi_eid *peer_eid, uint32_t crc32, int *lowexpiration)
|
|
|
|
|
static int cache_lookup(struct dundi_request *req, dundi_eid *peer_eid, uint32_t crc, int *lowexpiration)
|
|
|
|
|
{
|
|
|
|
|
char key[256];
|
|
|
|
|
char eid_str[20];
|
|
|
|
@ -1240,7 +1240,7 @@ static int cache_lookup(struct dundi_request *req, dundi_eid *peer_eid, uint32_t
|
|
|
|
|
dundi_eid_to_str_short(eid_str, sizeof(eid_str), peer_eid);
|
|
|
|
|
dundi_eid_to_str_short(eidroot_str, sizeof(eidroot_str), &req->root_eid);
|
|
|
|
|
ast_eid_to_str(eid_str_full, sizeof(eid_str_full), peer_eid);
|
|
|
|
|
snprintf(key, sizeof(key), "%s/%s/%s/e%08x", eid_str, req->number, req->dcontext, crc32);
|
|
|
|
|
snprintf(key, sizeof(key), "%s/%s/%s/e%08x", eid_str, req->number, req->dcontext, crc);
|
|
|
|
|
res |= cache_lookup_internal(now, req, key, eid_str_full, lowexpiration);
|
|
|
|
|
snprintf(key, sizeof(key), "%s/%s/%s/e%08x", eid_str, req->number, req->dcontext, 0);
|
|
|
|
|
res |= cache_lookup_internal(now, req, key, eid_str_full, lowexpiration);
|
|
|
|
@ -1255,7 +1255,7 @@ static int cache_lookup(struct dundi_request *req, dundi_eid *peer_eid, uint32_t
|
|
|
|
|
break;
|
|
|
|
|
x++;
|
|
|
|
|
/* Check for hints */
|
|
|
|
|
snprintf(key, sizeof(key), "hint/%s/%s/%s/e%08x", eid_str, tmp, req->dcontext, crc32);
|
|
|
|
|
snprintf(key, sizeof(key), "hint/%s/%s/%s/e%08x", eid_str, tmp, req->dcontext, crc);
|
|
|
|
|
res2 |= cache_lookup_internal(now, req, key, eid_str_full, lowexpiration);
|
|
|
|
|
snprintf(key, sizeof(key), "hint/%s/%s/%s/e%08x", eid_str, tmp, req->dcontext, 0);
|
|
|
|
|
res2 |= cache_lookup_internal(now, req, key, eid_str_full, lowexpiration);
|
|
|
|
|