From 9ac5c596ed0e462099882f55a8b439499e956369 Mon Sep 17 00:00:00 2001 From: Aki Niemi Date: Fri, 14 May 2010 16:44:48 +0300 Subject: [PATCH] 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. --- gisi/client.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gisi/client.c b/gisi/client.c index e5af064..fa40f0c 100644 --- a/gisi/client.c +++ b/gisi/client.c @@ -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; -- 2.7.4