aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/huawei/mm-broadband-modem-huawei.c6
-rw-r--r--plugins/huawei/mm-call-huawei.c6
-rw-r--r--plugins/huawei/mm-call-huawei.h4
3 files changed, 12 insertions, 4 deletions
diff --git a/plugins/huawei/mm-broadband-modem-huawei.c b/plugins/huawei/mm-broadband-modem-huawei.c
index 5cddea61..8da1520b 100644
--- a/plugins/huawei/mm-broadband-modem-huawei.c
+++ b/plugins/huawei/mm-broadband-modem-huawei.c
@@ -2987,10 +2987,12 @@ modem_voice_disable_unsolicited_events (MMIfaceModemVoice *self,
/* Create call (Voice interface) */
static MMBaseCall *
-create_call (MMIfaceModemVoice *self)
+create_call (MMIfaceModemVoice *self,
+ MMCallDirection direction,
+ const gchar *number)
{
/* New Huawei Call */
- return mm_call_huawei_new (MM_BASE_MODEM (self));
+ return mm_call_huawei_new (MM_BASE_MODEM (self), direction, number);
}
/*****************************************************************************/
diff --git a/plugins/huawei/mm-call-huawei.c b/plugins/huawei/mm-call-huawei.c
index c20e091e..bdd524a9 100644
--- a/plugins/huawei/mm-call-huawei.c
+++ b/plugins/huawei/mm-call-huawei.c
@@ -201,10 +201,14 @@ cleanup_unsolicited_events (MMBaseCall *self,
/*****************************************************************************/
MMBaseCall *
-mm_call_huawei_new (MMBaseModem *modem)
+mm_call_huawei_new (MMBaseModem *modem,
+ MMCallDirection direction,
+ const gchar *number)
{
return MM_BASE_CALL (g_object_new (MM_TYPE_CALL_HUAWEI,
MM_BASE_CALL_MODEM, modem,
+ "direction", direction,
+ "number", number,
MM_BASE_CALL_SUPPORTS_DIALING_TO_RINGING, TRUE,
MM_BASE_CALL_SUPPORTS_RINGING_TO_ACTIVE, TRUE,
NULL));
diff --git a/plugins/huawei/mm-call-huawei.h b/plugins/huawei/mm-call-huawei.h
index 24b6395d..fc733118 100644
--- a/plugins/huawei/mm-call-huawei.h
+++ b/plugins/huawei/mm-call-huawei.h
@@ -43,6 +43,8 @@ struct _MMCallHuaweiClass {
GType mm_call_huawei_get_type (void);
-MMBaseCall *mm_call_huawei_new (MMBaseModem *modem);
+MMBaseCall *mm_call_huawei_new (MMBaseModem *modem,
+ MMCallDirection direction,
+ const gchar *number);
#endif /* MM_CALL_HUAWEI_H */