Hi,

Matan Ziv-Av wrote:
> On Wed, 27 Jan 2010, Dave Neary wrote:
>> And here:
>> https://garage.maemo.org/plugins/wiki/index.php?CSD%20programming%20information&id=1106&type=g
> 
> This does not include answering a call.

I didn't realise you needed any more than this.

This page:
https://garage.maemo.org/plugins/wiki/index.php?com.nokia.csd.Call&id=1106&type=g

has a link to this file at the top:
http://www.bleb.org/software/maemo/telephony-maemo.c

which contains this code snippet:

static int answer_call(struct csd_call *call)
{
        DBusMessage *msg;

        msg = dbus_message_new_method_call(CSD_CALL_BUS_NAME,
                                                call->object_path,
                                                CSD_CALL_INSTANCE,
                                                "Answer");
        if (!msg) {
                error("Unable to allocate new D-Bus message");
                return -ENOMEM;
        }

        g_dbus_send_message(connection, msg);

        return 0;
}

and you get the csd_call object by listening for the "Coming" signal as
you can see from the code snippet which is linked to in this page, and
then searching for calls with the "COMING" status:

>> http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/DBus/DBus_in_Freemantle

Which I found out in about 15 minutes, reading the links I gave you.

Is this OK now?

Cheers,
Dave.

-- 
maemo.org docsmaster
Email: [email protected]
Jabber: [email protected]

_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to