diff options
author | Pekka Pessi <Pekka.Pessi@nokia.com> | 2009-10-09 17:45:37 +0300 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2009-10-16 11:18:52 +0300 |
commit | 86b6cd91c94d714e9353b0532f801dee349ce40e (patch) | |
tree | 71a5276c3047e6bc1e2f86996d8e31f0de0e74a5 /gisi | |
parent | 74cc9cb4b7450184743c0f972650a4c48b77d223 (diff) | |
download | ofono-86b6cd91c94d714e9353b0532f801dee349ce40e.tar.bz2 |
isimodem/voicecall.c: initial version
Implementing all the voicecall methods. Tested with Nokia 2008 modems.
- problems in call creation are probably not reported properly
- deflect not implemented in modem, not properly tested
TODO: Clean up style issues and align with other drivers.
Diffstat (limited to 'gisi')
-rw-r--r-- | gisi/client.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gisi/client.c b/gisi/client.c index c592c3c9..f0db24ea 100644 --- a/gisi/client.c +++ b/gisi/client.c @@ -431,16 +431,15 @@ static gboolean g_isi_callback(GIOChannel *channel, GIOCondition cond, msg = (uint8_t *)buf; + if (cl->debug_func) + cl->debug_func(msg + 1, len - 1, cl->debug_data); + if (indication) { /* Message ID at offset 1 */ id = msg[1]; if (cl->ind.func[id] == NULL) return TRUE; /* Unsubscribed indication */ - if (cl->debug_func) - cl->debug_func(msg + 1, len - 1, - cl->debug_data); - cl->ind.func[id](cl, msg + 1, len - 1, obj, cl->ind.data[id]); } else { @@ -449,10 +448,6 @@ static gboolean g_isi_callback(GIOChannel *channel, GIOCondition cond, if (cl->func[id] == NULL) return TRUE; /* Bad transaction ID */ - if (cl->debug_func) - cl->debug_func(msg + 1, len - 1, - cl->debug_data); - if ((cl->func[id])(cl, msg + 1, len - 1, obj, cl->data[id])) g_isi_request_cancel(g_isi_req(cl, id)); |