* 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
* Re: USSD support in ofono-0.25
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
0 siblings, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2010-07-30 7:20 UTC (permalink / raw)
To: ofono
[-- 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: USSD support in ofono-0.25
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
0 siblings, 2 replies; 5+ messages in thread
From: s s @ 2010-07-30 7:28 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 2352 bytes --]
Hi ,
supplementaryservices-api.txt is not available in doc folder in
ofono-0.25.tar.gz ,is there any other location to find it?
thanks
ss.
On Fri, Jul 30, 2010 at 12:50 PM, Marcel Holtmann <marcel@holtmann.org>wrote:
> 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
>
>
> _______________________________________________
> ofono mailing list
> ofono(a)ofono.org
> http://lists.ofono.org/listinfo/ofono
>
[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 3213 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: USSD support in ofono-0.25
2010-07-30 7:28 ` s s
@ 2010-07-30 7:49 ` Marcel Holtmann
2010-07-30 18:40 ` Bastian, Waldo
1 sibling, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2010-07-30 7:49 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 359 bytes --]
Hi,
a gentle reminder that we are not allowing top-posting on this mailing
list. Don't do it.
> supplementaryservices-api.txt is not available in doc
> folder in ofono-0.25.tar.gz ,is there any other location to find it?
it is in the GIT repository, but was never included in the tarballs. I
fixed that now.
Regards
Marcel
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: USSD support in ofono-0.25
2010-07-30 7:28 ` s s
2010-07-30 7:49 ` Marcel Holtmann
@ 2010-07-30 18:40 ` Bastian, Waldo
1 sibling, 0 replies; 5+ messages in thread
From: Bastian, Waldo @ 2010-07-30 18:40 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 304 bytes --]
s s wrote:
> supplementaryservices-api.txt is not available in doc folder in
> ofono-0.25.tar.gz ,is there any other location to find it?
http://git.kernel.org/?p=network/ofono/ofono.git;a=blob_plain;f=doc/supplementaryservices-api.txt;hb=7cd09ee21aff49afc7f5678cb56f8c5300ca42b4
Cheers,
Waldo
^ 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.