diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-09-26 22:44:01 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-09-26 22:44:01 -0500 |
commit | 25e17334b70ce03806c7690181a2212f7ddf66dd (patch) | |
tree | d6931ee05558de4c7df6d905d520ad8f5cfd9054 /drivers/huaweimodem | |
parent | 10c6bebd80a6ba6fa752d625f6493d1f609f9f16 (diff) | |
download | ofono-25e17334b70ce03806c7690181a2212f7ddf66dd.tar.gz |
huawei: Only notify for voice calls
Diffstat (limited to 'drivers/huaweimodem')
-rw-r--r-- | drivers/huaweimodem/voicecall.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/huaweimodem/voicecall.c b/drivers/huaweimodem/voicecall.c index ca4e16dc..025bdd1f 100644 --- a/drivers/huaweimodem/voicecall.c +++ b/drivers/huaweimodem/voicecall.c @@ -315,7 +315,7 @@ static void orig_notify(GAtResult *result, gpointer user_data) return; } - if (call_type == 0) + if (call->type == 0) ofono_voicecall_notify(vc, call); } @@ -349,7 +349,8 @@ static void conf_notify(GAtResult *result, gpointer user_data) call = l->data; call->status = 3; - ofono_voicecall_notify(vc, call); + if (call->type == 0) + ofono_voicecall_notify(vc, call); } static void conn_notify(GAtResult *result, gpointer user_data) @@ -385,7 +386,8 @@ static void conn_notify(GAtResult *result, gpointer user_data) call = l->data; call->status = 0; - ofono_voicecall_notify(vc, call); + if (call->type == 0) + ofono_voicecall_notify(vc, call); } static void cend_notify(GAtResult *result, gpointer user_data) |