summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--telephony/telephony.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/telephony/telephony.cpp b/telephony/telephony.cpp
index 0660156..3efecc7 100644
--- a/telephony/telephony.cpp
+++ b/telephony/telephony.cpp
@@ -47,7 +47,10 @@ void Telephony::dial(QString number)
return;
CallMessage *tmsg = static_cast<CallMessage*>(msg.get());
- tmsg->createRequest("telephony", "dial", number);
+ QJsonObject parameter;
+
+ parameter.insert("value", number);
+ tmsg->createRequest("telephony", "dial", parameter);
m_mloop->sendMessage(std::move(msg));
}
@@ -89,7 +92,9 @@ void Telephony::onConnected()
return;
CallMessage *tmsg = static_cast<CallMessage*>(msg.get());
- tmsg->createRequest("telephony", "subscribe", eventIterator.next());
+ QJsonObject parameter;
+ parameter.insert("value", eventIterator.next());
+ tmsg->createRequest("telephony", "subscribe", parameter);
m_mloop->sendMessage(std::move(msg));
}