All of lore.kernel.org
 help / color / mirror / Atom feed
* USSD support in ofono-0.25
@ 2010-07-30  6:23 s s
  2010-07-30  7:20 ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: s s @ 2010-07-30  6:23 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1645 bytes --]

Is USSD support is available and functional in ofono latest version?


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 .


can anybody please help?

thanks
sk.

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 1920 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-07-30 18:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-30  6:23 USSD support in ofono-0.25 s s
2010-07-30  7:20 ` Marcel Holtmann
2010-07-30  7:28   ` s s
2010-07-30  7:49     ` Marcel Holtmann
2010-07-30 18:40     ` Bastian, Waldo

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.