* return values of org.ofono.SupplementaryServices.Initiate @ 2010-10-05 10:28 Alexander Kanavin 2010-10-05 12:06 ` Marcel Holtmann 0 siblings, 1 reply; 5+ messages in thread From: Alexander Kanavin @ 2010-10-05 10:28 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 781 bytes --] Hi, doc/supplementaryservices-api.txt says nothing about return values of SupplementeryServices.Initiate method (or that the method can take SS requests in addition to USSD). Can the API designer/implementer fix this please? string, variant Initiate(string command) Sends a USSD command string to the network initiating a session. When the request is handled by the appropriate node of the network, the method returns the response or an appropriate error. The network may be awaiting further response from the ME after returning from this method and no new command can be initiated until this one is cancelled or ended. Possible Errors: [service].Error.Timedout Possible Errors: [service].Error.Canceled Regards, Alex ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: return values of org.ofono.SupplementaryServices.Initiate 2010-10-05 10:28 return values of org.ofono.SupplementaryServices.Initiate Alexander Kanavin @ 2010-10-05 12:06 ` Marcel Holtmann 2010-10-05 12:41 ` Alexander Kanavin 0 siblings, 1 reply; 5+ messages in thread From: Marcel Holtmann @ 2010-10-05 12:06 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 333 bytes --] Hi Alex, > doc/supplementaryservices-api.txt says nothing about return values of > SupplementeryServices.Initiate method (or that the method can take SS > requests in addition to USSD). Can the API designer/implementer fix this > please? why don't you just send a patch for it if it is unclear? Regards Marcel ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: return values of org.ofono.SupplementaryServices.Initiate 2010-10-05 12:06 ` Marcel Holtmann @ 2010-10-05 12:41 ` Alexander Kanavin 2010-10-07 0:37 ` Denis Kenzior 0 siblings, 1 reply; 5+ messages in thread From: Alexander Kanavin @ 2010-10-05 12:41 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 1606 bytes --] On 05.10.2010 15:06, ext Marcel Holtmann wrote: >> doc/supplementaryservices-api.txt says nothing about return values of >> SupplementeryServices.Initiate method (or that the method can take SS >> requests in addition to USSD). Can the API designer/implementer fix this >> please? > > why don't you just send a patch for it if it is unclear? If it was a small update I would just send a patch. But a typical return value for example is: (u'CallBarring', (u'interrogation', u'AllBarringServices', {u'DataAllIncoming': u'disabled', u'DataAllOutgoing': u'disabled', u'DataIncomingWhenRoaming': u'disabled', u'DataInternationalOutgoing': u'disabled', u'DataInternationalOutgoingExceptHome': u'disabled', u'FaxAllIncoming': u'disabled', u'FaxAllOutgoing': u'disabled', u'FaxIncomingWhenRoaming': u'disabled', u'FaxInternationalOutgoing': u'disabled', u'FaxInternationalOutgoingExceptHome': u'disabled', u'VoiceAllIncoming': u'disabled', u'VoiceAllOutgoing': u'disabled', u'VoiceIncomingWhenRoaming': u'disabled', u'VoiceInternationalOutgoing': u'disabled', u'VoiceInternationalOutgoingExceptHome': u'disabled'})) Now multiply this by all possible combinations of supplementary services, supplementary service operations and basic services. Remember the second argument is a variant, so it's entirely freeform. So I sought to ask about this on the list first. A patch(set) that changes the API shouldn't be accepted in the first place if it doesn't properly update the documentation. Regards, Alex ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: return values of org.ofono.SupplementaryServices.Initiate 2010-10-05 12:41 ` Alexander Kanavin @ 2010-10-07 0:37 ` Denis Kenzior 2010-10-07 9:49 ` Alexander Kanavin 0 siblings, 1 reply; 5+ messages in thread From: Denis Kenzior @ 2010-10-07 0:37 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 2348 bytes --] Hi Alexander, On 10/05/2010 07:41 AM, Alexander Kanavin wrote: > On 05.10.2010 15:06, ext Marcel Holtmann wrote: >>> doc/supplementaryservices-api.txt says nothing about return values of >>> SupplementeryServices.Initiate method (or that the method can take SS >>> requests in addition to USSD). Can the API designer/implementer fix this >>> please? >> >> why don't you just send a patch for it if it is unclear? > > If it was a small update I would just send a patch. But a typical return > value for example is: > > (u'CallBarring', > (u'interrogation', > u'AllBarringServices', > {u'DataAllIncoming': u'disabled', > u'DataAllOutgoing': u'disabled', > u'DataIncomingWhenRoaming': u'disabled', > u'DataInternationalOutgoing': u'disabled', > u'DataInternationalOutgoingExceptHome': u'disabled', > u'FaxAllIncoming': u'disabled', > u'FaxAllOutgoing': u'disabled', > u'FaxIncomingWhenRoaming': u'disabled', > u'FaxInternationalOutgoing': u'disabled', > u'FaxInternationalOutgoingExceptHome': u'disabled', > u'VoiceAllIncoming': u'disabled', > u'VoiceAllOutgoing': u'disabled', > u'VoiceIncomingWhenRoaming': u'disabled', > u'VoiceInternationalOutgoing': u'disabled', > u'VoiceInternationalOutgoingExceptHome': u'disabled'})) > > Now multiply this by all possible combinations of supplementary > services, supplementary service operations and basic services. Remember > the second argument is a variant, so it's entirely freeform. So I sought > to ask about this on the list first. This is on my TODO list, but honestly it would take you no more than 2 hours to do this yourself for most of the reply types. All the reply generators are nicely compartmentalized (call-barring.c: generate_ss_query_reply, call-forwarding.c: cf_ss_control_reply, call-settings.c: generate_cw_ss_query_reply, clip_colp_colr_ss_query_cb) And you don't really need to handle all the combinations, simply stating that the elements returned in the dictionary were affected by the SS operation is enough. > > A patch(set) that changes the API shouldn't be accepted in the first > place if it doesn't properly update the documentation. This patch set predates the launch of oFono as 'oFono'. So far nobody has been attempting to use this API ;) Regards, -Denis ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: return values of org.ofono.SupplementaryServices.Initiate 2010-10-07 0:37 ` Denis Kenzior @ 2010-10-07 9:49 ` Alexander Kanavin 0 siblings, 0 replies; 5+ messages in thread From: Alexander Kanavin @ 2010-10-07 9:49 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 891 bytes --] On 07.10.2010 3:37, ext Denis Kenzior wrote: > This is on my TODO list, but honestly it would take you no more than 2 > hours to do this yourself for most of the reply types. All the reply > generators are nicely compartmentalized (call-barring.c: > generate_ss_query_reply, call-forwarding.c: cf_ss_control_reply, > call-settings.c: generate_cw_ss_query_reply, clip_colp_colr_ss_query_cb) > > And you don't really need to handle all the combinations, simply stating > that the elements returned in the dictionary were affected by the SS > operation is enough. Yeah, I'm actually halfway through that now. I also found a couple of typos in the code. Patches will come soon. > This patch set predates the launch of oFono as 'oFono'. So far nobody > has been attempting to use this API ;) Except me I guess - I'm now working on a Qt bindings library for oFono. Alex ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-10-07 9:49 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-10-05 10:28 return values of org.ofono.SupplementaryServices.Initiate Alexander Kanavin 2010-10-05 12:06 ` Marcel Holtmann 2010-10-05 12:41 ` Alexander Kanavin 2010-10-07 0:37 ` Denis Kenzior 2010-10-07 9:49 ` Alexander Kanavin
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.