Hi, in refer to opened bug https://bugs.freedesktop.org/show_bug.cgi?id=84981 I propose the attached patch, to implement voice or data call in MM core.
Please let me know what you think. Regards, -- Riccardo Vangelisti - Sadel SpA Software Development Via Serenari 1, Castel Maggiore (BO)
>From 6cb13d8396c4e6fa3e6fc8d1e10c73664f3bfd12 Mon Sep 17 00:00:00 2001 From: Riccardo Vangelisti <[email protected]> Date: Mon, 20 Apr 2015 12:58:16 +0200 Subject: [PATCH] Added API proposal of voice/data call handling --- .../org.freedesktop.ModemManager1.Modem.Call.xml | 118 +++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 introspection/org.freedesktop.ModemManager1.Modem.Call.xml diff --git a/introspection/org.freedesktop.ModemManager1.Modem.Call.xml b/introspection/org.freedesktop.ModemManager1.Modem.Call.xml new file mode 100644 index 0000000..3d8e08b --- /dev/null +++ b/introspection/org.freedesktop.ModemManager1.Modem.Call.xml @@ -0,0 +1,118 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd"> + + <!-- + org.freedesktop.ModemManager1.Modem.Call: + @short_description: The ModemManager Call interface. + + The Call interface handles sending calls and notification of new + incoming calls. + --> + <interface name="org.freedesktop.ModemManager1.Modem.Call"> + + <!-- + Start: + @number: phone number + @type: The type of call, same as "Type" property + @result: The call object path. + + Start a new call to specified number + --> + <method name="Start"> + <arg name="number" type="s" direction="in" /> + <arg name="type" type="i" direction="in" /> + <arg name="result" type="o" direction="out" /> + </method> + + <!-- + Answer: + @call: call object path + + Answer to specified call + --> + <method name="Answer"> + <arg name="call" type="o" direction="in" /> + </method> + + <!-- + HangUp: + @call: call object path + + Hangup specified call + --> + <method name="HangUp"> + <arg name="call" type="o" direction="in" /> + </method> + + <!-- + Incoming: + @path: Object path of the new Call. + + Emitted when a new Call has been received. + + Check the "Type" property to determine if the call is data or voice type. + --> + <signal name="Incoming"> + <arg name="path" type="o" /> + </signal> + + <!-- + StateChanged: + @old: Old object "State" + @new: New object "State" + + Emitted when a message has been deleted. + --> + <signal name="StateChanged"> + <arg name="old" type="i" /> + <arg name="new" type="i" /> + </signal> + + <!-- + State: + + The state of Call object paths. + + MMCallState: + - MM_MODEM_CALL_STATE_INCOMING Incoming + - MM_MODEM_CALL_STATE_ACCEPTED Accepted + - MM_MODEM_CALL_STATE_TERMINATED Terminated + - MM_MODEM_CALL_STATE_REFUSED Refused + - MM_MODEM_CALL_STATE_ERROR Error + - MM_MODEM_CALL_STATE_INACTIVE Inactive + --> + <property name="State" type="i" access="read" /> + + <!-- + Type: + + The call type. + + MMCallType: + - MM_MODEM_CALL_TYPE_DATA Data call + - MM_MODEM_CALL_TYPE_VOICE Voice call + --> + <property name="Type" type="i" access="read" /> + + <!-- + Number: + + The remote phone number. + --> + <property name="Number" type="s" access="read" /> + + <!-- + Audio: + + The audio device. + + Example list: + - "analog" (PCM analog) + - "/dev/ttyUSB2" (sound device) + - "others?" + --> + <property name="Audio" type="s" access="read" /> + + </interface> +</node> -- 2.1.4
_______________________________________________ ModemManager-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
