gisi: Add support for NTF requests

Notify requests are requests sent by ISA servers towards clients. They
are identical to indications in that no response is necessary, but
different in that subscription is done not using the mechanism used
for indications, but out-of-band. Typically routing for notify
requests is enabled using a request-response pair.
This commit is contained in:
Aki Niemi 2010-05-14 16:44:48 +03:00
parent 36bd998597
commit 9ac5c596ed
1 changed files with 6 additions and 1 deletions

View File

@ -560,8 +560,13 @@ static void g_isi_dispatch_response(GIsiClient *client, uint16_t obj,
unsigned id = msg[0];
ret = tfind(&id, &client->reqs.pending, g_isi_cmp);
if (!ret)
if (!ret) {
/* This could either be an unsolicited response, which
* we will ignore, or an incoming request, which we
* handle just like an incoming indication */
g_isi_dispatch_indication(client, obj, msg + 1, len - 1);
return;
}
req = *(GIsiRequest **)ret;