mirror of git://git.sysmocom.de/ofono
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:
parent
36bd998597
commit
9ac5c596ed
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue