From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: USSD support in ofono-0.25
Date: Fri, 30 Jul 2010 00:20:40 -0700 [thread overview]
Message-ID: <1280474440.21857.1.camel@localhost.localdomain> (raw)
In-Reply-To: <AANLkTimW8X91gm4DCw1sZXu306zd4QbHho=ku=DKv3on@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1877 bytes --]
Hi,
> Is USSD support is available and functional in ofono latest version?
yes it is.
> I found the support in SupplementaryServices interface and I am able
> to read the properties from this interface, but I am getting error
> when try to call "Initiate" method,
> from the definition of "Initiate" method in ussd.c found that out
> arguments are "sv". below is the test code.
>
> gchar *str=NULL;
> GValue val={0,};
> g_value_init(&val,G_TYPE_STRING);
> dbus_g_proxy_call (proxy,
> "Initiate",&error,G_TYPE_STRING,"*#43#",G_TYPE_INVALID,G_TYPE_STRING,&str,G_TYPE_VALUE,&val, G_TYPE_INVALID);
>
> if above code is executed , the error is
> " GLib-GObject-WARNING **: gvalue.c:185: cannot initialize GValue with
> type `GValueArray_gchararray+GHashTable_gchararray+GValue__', the
> value has already been initialized as `gchararray'
>
> Couldn't convert argument, expected "GValue" "
>
>
> and in generate_cw_ss_query_reply callback , message signature is
> "(sa{sv})"
> so tried with
>
> GArray *list;
> GHashTable *OUT_arg0=NULL;
> dbus_g_proxy_call (proxy,
> "Initiate",&error,G_TYPE_STRING,"*#43#",G_TYPE_INVALID,
> dbus_g_type_get_struct ("GValueArray",
> G_TYPE_STRING,
> dbus_g_type_get_map ("GHashTable",
> G_TYPE_STRING, G_TYPE_VALUE),G_TYPE_INVALID),
> &OUT_arg0, G_TYPE_INVALID);
>
> but it is returning error " Expected D-BUS struct, got type code 's'"
>
> can any body please tell me the correct return types.
>
> in both cases ofono is getting response from phonesim.
>
> and no proper documentation is available for USSD support .
Look at doc/supplementaryservices-api.txt for a detailed description of
the API. And test/test-ussd is an example in Python on how to use it.
Regards
Marcel
next prev parent reply other threads:[~2010-07-30 7:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-30 6:23 USSD support in ofono-0.25 s s
2010-07-30 7:20 ` Marcel Holtmann [this message]
2010-07-30 7:28 ` s s
2010-07-30 7:49 ` Marcel Holtmann
2010-07-30 18:40 ` Bastian, Waldo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1280474440.21857.1.camel@localhost.localdomain \
--to=marcel@holtmann.org \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.