Re: SMS messaging
Le jeudi 24 juillet 2008 à 09:59 +0200, Guillaume Desmottes a écrit : > The plan with Gadget is to allow user to request random buddies (and > activities) or perform search based on different criteria. As you can > see on [1], currently only search based on buddy properties is > implemented but we plan to add alias search soon (maybe next week if you > really need it). I implemented search by alias using Gadget. The gadget branch is not merged yet and the Gabble one is http://monkey.collabora.co.uk/telepathy-gabble-gadget/ See http://people.collabora.co.uk/~cassidy/spec-olpc-gadget.html#org.laptop.Telepathy.Gadget for the API. G. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: SMS messaging
Le jeudi 24 juillet 2008 à 03:36 -0400, Ankur Verma a écrit : > > As per our earlier discussion, the method at present is to use > roster.py, which you are planning to remove in the next versions. Humm not really. Using the roster is and will always be a sane way to find contacts. But, as you can guess, it assumes that the contact is in your roster. Currently this is a sane assumption because of the shared roster hack. But when we'll drop it, that won't be true anymore. > As roster.py also uses Telepathy to get the nicks of XO who have > subscribed or are friends, are there any alternative functions which I > can use to fetch the list of XOs? I am ready to look more into > telepathy specs, but I am curious to know the answer. The plan with Gadget is to allow user to request random buddies (and activities) or perform search based on different criteria. As you can see on [1], currently only search based on buddy properties is implemented but we plan to add alias search soon (maybe next week if you really need it). So for now, I suggest you to use a server with the shared roster hack or manually subscribe your SMS user with a test buddy for your tests. So you could test most of the part of your app and just change it to use alias search later. G. [1] http://people.collabora.co.uk/~cassidy/spec-olpc-gadget.html#org.laptop.Telepathy.Gadget ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: SMS messaging
As per our earlier discussion, the method at present is to use roster.py, which you are planning to remove in the next versions. As roster.py also uses Telepathy to get the nicks of XO who have subscribed or are friends, are there any alternative functions which I can use to fetch the list of XOs? I am ready to look more into telepathy specs, but I am curious to know the answer. Thank you. Best, Ankur Verma On Thu, Jul 24, 2008 at 2:51 AM, Guillaume Desmottes < [EMAIL PROTECTED]> wrote: > Le mercredi 23 juillet 2008 à 12:38 -0400, Ankur Verma a écrit : > > > > I can run a bash/python script upon the reception of the message with > > the message parameters. This makes it flexible enough to call any > > application. > > > > Then I think you should write a Python application which connect to the > jabber server, find the buddy and send him the message. > > As a start I suggest you to take a look on the Telepathy spec [1] and > telepathy-python examples. > > >G. > > > [1] http://telepathy.freedesktop.org/spec.html > > > > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: SMS messaging
Le mercredi 23 juillet 2008 à 12:38 -0400, Ankur Verma a écrit : > > I can run a bash/python script upon the reception of the message with > the message parameters. This makes it flexible enough to call any > application. > Then I think you should write a Python application which connect to the jabber server, find the buddy and send him the message. As a start I suggest you to take a look on the Telepathy spec [1] and telepathy-python examples. G. [1] http://telepathy.freedesktop.org/spec.html ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: SMS messaging
I can run a bash/python script upon the reception of the message with the message parameters. This makes it flexible enough to call any application. For more details, Please see http://wiki.laptop.org/go/SMS Thanks Ankur On Wed, Jul 23, 2008 at 4:08 AM, Guillaume Desmottes < [EMAIL PROTECTED]> wrote: > Le mardi 22 juillet 2008 à 18:36 -0400, Ankur Verma a écrit : > > > > Message is in the format Nick_Name:Message. Though its true that > > Nicknames are not unique across a school, but it is the only way to > > specify XO in a user-friendly manner. > > > > If XO is not currently connected, a SMS autoreply will be sent > > indicating XO is not present in the mesh. One of the use cases would > > be when parents want to know about their child's presence in the > > school considering every XO in school is connected! > > Ok, then I think the Telepathy based client connected to the jabber > server could be a good solution. In which language is written your > application? > > >G. > > > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: SMS messaging
Le mardi 22 juillet 2008 à 18:36 -0400, Ankur Verma a écrit : > > Message is in the format Nick_Name:Message. Though its true that > Nicknames are not unique across a school, but it is the only way to > specify XO in a user-friendly manner. > > If XO is not currently connected, a SMS autoreply will be sent > indicating XO is not present in the mesh. One of the use cases would > be when parents want to know about their child's presence in the > school considering every XO in school is connected! Ok, then I think the Telepathy based client connected to the jabber server could be a good solution. In which language is written your application? G. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: SMS messaging
Message is in the format Nick_Name:Message. Though its true that Nicknames are not unique across a school, but it is the only way to specify XO in a user-friendly manner. If XO is not currently connected, a SMS autoreply will be sent indicating XO is not present in the mesh. One of the use cases would be when parents want to know about their child's presence in the school considering every XO in school is connected! With the present server model, User friendly aliases are not available as Martin told in his reply to this message. Thanks. Ankur Verma On Tue, Jul 22, 2008 at 9:40 AM, John Watlington <[EMAIL PROTECTED]> wrote: > > Allow me to rephrase in simpler terms: > > When someone is sending an SMS to a particular > laptop in a school, how do they address it ? > > Currently, the only ID which is unique school-wise is the > hash of the UUID used by the presence service. > Nicknames are not unique across a school. > > wad > > > On Jul 22, 2008, at 9:29 AM, Guillaume Desmottes wrote: > > Le mardi 22 juillet 2008 à 09:11 -0300, John Watlington a écrit : >> >>> As I mentioned earlier to Ankur in a separate email, I believe the >>> real problem here isn't technically how to connect to the presence >>> service, >>> but rather that the presence service offers no human-usable ID which >>> is guaranteed to be unique within a school. >>> >> >> This application won't run on the XO so it doesn't have to use >> presence-service at all. >> >> >>G. >> >> >> >> > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: SMS messaging
Allow me to rephrase in simpler terms: When someone is sending an SMS to a particular laptop in a school, how do they address it ? Currently, the only ID which is unique school-wise is the hash of the UUID used by the presence service. Nicknames are not unique across a school. wad On Jul 22, 2008, at 9:29 AM, Guillaume Desmottes wrote: > Le mardi 22 juillet 2008 à 09:11 -0300, John Watlington a écrit : >> As I mentioned earlier to Ankur in a separate email, I believe the >> real problem here isn't technically how to connect to the presence >> service, >> but rather that the presence service offers no human-usable ID which >> is guaranteed to be unique within a school. > > This application won't run on the XO so it doesn't have to use > presence-service at all. > > > G. > > > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: SMS messaging
Le mardi 22 juillet 2008 à 09:18 -0400, Ankur Verma a écrit : > > Hi Guillaume, > > Thank you for your message. > > Though it is an external application, but its intended to be run on > server (Application has similarities with server implementation like > it runs Apache) > > > A) If that's an external application, then you have to connect > to the > jabber server as any client/XO. You'll be able to see all the > connected > XO's that are in your jabber roster. Currently we are using an > ugly hack > called "shared roster" meaning you'll see all the connected > XO's but we > plan to drop it soon. > A solution could be to use Gadget [1] but we currently don't > have API to > search for buddies based on their alias (that's probably > something > useful to have so we could consider to add one). > Another solution would be for each buddies to subscribe to > your > application (as a Friend) if they are interested about > receiving SMS > messages but that's not very convenient IMHO. > > The idea of having the API to search for buddies based on their nicks > and forwarding message to them seems good. Be aware that with this solution, you won't find the XO if he's not currently connected. How do you plan to handle such case? > One of the solution to forward message can be a XMPP message, though I > am not sure how to implement this. Can you think of any alternatives? If you use Telepathy, sending a XMPP message to the contact will be trivial. > B) A server plugin. You'll be able to use the server API (and > so be able > to know which buddies are connected, etc) but you'll be depend > on a > server implementation and your app will have to run on the > same box as > the server. > > Server API doesn't let us know about the nicks of current buddies > that are connected. As Wad meant to say, Jabber IDs are available > which are not human readable and they cannot be mapped to nicks at > present. I have no idea how plugin's API work but I guess you should be able to access to most of the server's model, including the alias. G. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: SMS messaging
Hi Guillaume, Thank you for your message. Though it is an external application, but its intended to be run on server (Application has similarities with server implementation like it runs Apache) > > A) If that's an external application, then you have to connect to the > jabber server as any client/XO. You'll be able to see all the connected > XO's that are in your jabber roster. Currently we are using an ugly hack > called "shared roster" meaning you'll see all the connected XO's but we > plan to drop it soon. > A solution could be to use Gadget [1] but we currently don't have API to > search for buddies based on their alias (that's probably something > useful to have so we could consider to add one). > Another solution would be for each buddies to subscribe to your > application (as a Friend) if they are interested about receiving SMS > messages but that's not very convenient IMHO. The idea of having the API to search for buddies based on their nicks and forwarding message to them seems good. One of the solution to forward message can be a XMPP message, though I am not sure how to implement this. Can you think of any alternatives? > > > B) A server plugin. You'll be able to use the server API (and so be able > to know which buddies are connected, etc) but you'll be depend on a > server implementation and your app will have to run on the same box as > the server. Server API doesn't let us know about the nicks of current buddies that are connected. As Wad meant to say, Jabber IDs are available which are not human readable and they cannot be mapped to nicks at present. > > > C) A XMPP component. That's generally how XMPP gateways work. People > will have to explicitly subscribe to your component. I don't have idea of (C). However, it does not seem convenient as students have to subscribe here. > > > If you choose A. then I strongly suggest you to use Telepathy (Gabble) > as we already have a nice API you could use instead of dealing with XMPP > directly. > Thanks. Best, Ankur ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: SMS messaging
Le mardi 22 juillet 2008 à 09:11 -0300, John Watlington a écrit : > As I mentioned earlier to Ankur in a separate email, I believe the > real problem here isn't technically how to connect to the presence > service, > but rather that the presence service offers no human-usable ID which > is guaranteed to be unique within a school. This application won't run on the XO so it doesn't have to use presence-service at all. G. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: SMS messaging
As I mentioned earlier to Ankur in a separate email, I believe the real problem here isn't technically how to connect to the presence service, but rather that the presence service offers no human-usable ID which is guaranteed to be unique within a school. wad On Jul 22, 2008, at 6:08 AM, Guillaume Desmottes wrote: > Le jeudi 17 juillet 2008 à 15:44 -0400, Ankur Verma a écrit : >> Hello, > > Hi Ankur, > >> I am able to receive SMS text messages through a mobile phone >> intended >> to be attached to school server. I need to forward this message to a >> specific XO connected on the jabber server. At this moment, I have >> the >> message in the format XO_name:SMS_Message. My plan is: >> >> 1. Get information (Unfriendly Jabber ID? or Nick?) about all the XOs >> connected. > > As I said last time we discussed this on IRC, that depends what is > your > application exactly: > > A) If that's an external application, then you have to connect to the > jabber server as any client/XO. You'll be able to see all the > connected > XO's that are in your jabber roster. Currently we are using an ugly > hack > called "shared roster" meaning you'll see all the connected XO's > but we > plan to drop it soon. > A solution could be to use Gadget [1] but we currently don't have > API to > search for buddies based on their alias (that's probably something > useful to have so we could consider to add one). > Another solution would be for each buddies to subscribe to your > application (as a Friend) if they are interested about receiving SMS > messages but that's not very convenient IMHO. > > B) A server plugin. You'll be able to use the server API (and so be > able > to know which buddies are connected, etc) but you'll be depend on a > server implementation and your app will have to run on the same box as > the server. > > C) A XMPP component. That's generally how XMPP gateways work. People > will have to explicitly subscribe to your component. > > If you choose A. then I strongly suggest you to use Telepathy (Gabble) > as we already have a nice API you could use instead of dealing with > XMPP > directly. > > > Hope that help. > > G. > > > > > [1] http://wiki.laptop.org/go/Gadget > > > > ___ > Devel mailing list > Devel@lists.laptop.org > http://lists.laptop.org/listinfo/devel > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: SMS messaging
Le jeudi 17 juillet 2008 à 15:44 -0400, Ankur Verma a écrit : > Hello, Hi Ankur, > I am able to receive SMS text messages through a mobile phone intended > to be attached to school server. I need to forward this message to a > specific XO connected on the jabber server. At this moment, I have the > message in the format XO_name:SMS_Message. My plan is: > > 1. Get information (Unfriendly Jabber ID? or Nick?) about all the XOs > connected. As I said last time we discussed this on IRC, that depends what is your application exactly: A) If that's an external application, then you have to connect to the jabber server as any client/XO. You'll be able to see all the connected XO's that are in your jabber roster. Currently we are using an ugly hack called "shared roster" meaning you'll see all the connected XO's but we plan to drop it soon. A solution could be to use Gadget [1] but we currently don't have API to search for buddies based on their alias (that's probably something useful to have so we could consider to add one). Another solution would be for each buddies to subscribe to your application (as a Friend) if they are interested about receiving SMS messages but that's not very convenient IMHO. B) A server plugin. You'll be able to use the server API (and so be able to know which buddies are connected, etc) but you'll be depend on a server implementation and your app will have to run on the same box as the server. C) A XMPP component. That's generally how XMPP gateways work. People will have to explicitly subscribe to your component. If you choose A. then I strongly suggest you to use Telepathy (Gabble) as we already have a nice API you could use instead of dealing with XMPP directly. Hope that help. G. [1] http://wiki.laptop.org/go/Gadget ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: SMS messaging
Ah, I understand. It is probably best to discuss this with people working on the presence service.. On Sat, Jul 19, 2008 at 11:53:49AM -0400, Ankur Verma wrote: > Hi Erik, > > Thanks for your help. However, I wish to implement jabber->xo part in > sms->jabber->xo for which I will need the list of XOs on server to do local > routing to specific XO. > > Thanks > Ankur Verma > > On Sat, Jul 19, 2008 at 11:19 AM, Erik Garrison <[EMAIL PROTECTED]> wrote: > > > On Thu, Jul 17, 2008 at 03:44:45PM -0400, Ankur Verma wrote: > > > Hello, > > > > > > I am able to receive SMS text messages through a mobile phone intended to > > be > > > attached to school server. I need to forward this message to a specific > > XO > > > connected on the jabber server. At this moment, I have the message in the > > > format XO_name:SMS_Message. My plan is: > > > > > > 1. Get information (Unfriendly Jabber ID? or Nick?) about all the XOs > > > connected. > > > 2. Compare against the XO_name in message. > > > 3. Send SMS_message to it in the form of XMPP message. > > > > - message received by sms service (for local addressing) > > - service uses message header (characters prior to ':') to do local routing > > - message is sent to that xo > > > > So this is sms -> jabber -> xo. Do you also wish to implement xo -> > > jabber -> sms? > > > > > Kindly tell me how should I proceed? I will appreciate any > > > pointers/alternative approaches from your side. > > > > You should investigate: > > > > http://www.ejabberd.im/mod_sms > > http://www.dp.uz.gov.ua/o.palij/mod_sms/ > > > > I am reading this very loosely and quickly, but it appears that this > > ejabberd module can integrate ejabber with an sms->smtp transport > > service located at (e.g.) sms.exampligratia.net in order to provide sms > > functionality. > > > > Erik > > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: SMS messaging
Hi Erik, Thanks for your help. However, I wish to implement jabber->xo part in sms->jabber->xo for which I will need the list of XOs on server to do local routing to specific XO. Thanks Ankur Verma On Sat, Jul 19, 2008 at 11:19 AM, Erik Garrison <[EMAIL PROTECTED]> wrote: > On Thu, Jul 17, 2008 at 03:44:45PM -0400, Ankur Verma wrote: > > Hello, > > > > I am able to receive SMS text messages through a mobile phone intended to > be > > attached to school server. I need to forward this message to a specific > XO > > connected on the jabber server. At this moment, I have the message in the > > format XO_name:SMS_Message. My plan is: > > > > 1. Get information (Unfriendly Jabber ID? or Nick?) about all the XOs > > connected. > > 2. Compare against the XO_name in message. > > 3. Send SMS_message to it in the form of XMPP message. > > - message received by sms service (for local addressing) > - service uses message header (characters prior to ':') to do local routing > - message is sent to that xo > > So this is sms -> jabber -> xo. Do you also wish to implement xo -> > jabber -> sms? > > > Kindly tell me how should I proceed? I will appreciate any > > pointers/alternative approaches from your side. > > You should investigate: > > http://www.ejabberd.im/mod_sms > http://www.dp.uz.gov.ua/o.palij/mod_sms/ > > I am reading this very loosely and quickly, but it appears that this > ejabberd module can integrate ejabber with an sms->smtp transport > service located at (e.g.) sms.exampligratia.net in order to provide sms > functionality. > > Erik > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: SMS messaging
On Thu, Jul 17, 2008 at 03:44:45PM -0400, Ankur Verma wrote: > Hello, > > I am able to receive SMS text messages through a mobile phone intended to be > attached to school server. I need to forward this message to a specific XO > connected on the jabber server. At this moment, I have the message in the > format XO_name:SMS_Message. My plan is: > > 1. Get information (Unfriendly Jabber ID? or Nick?) about all the XOs > connected. > 2. Compare against the XO_name in message. > 3. Send SMS_message to it in the form of XMPP message. - message received by sms service (for local addressing) - service uses message header (characters prior to ':') to do local routing - message is sent to that xo So this is sms -> jabber -> xo. Do you also wish to implement xo -> jabber -> sms? > Kindly tell me how should I proceed? I will appreciate any > pointers/alternative approaches from your side. You should investigate: http://www.ejabberd.im/mod_sms http://www.dp.uz.gov.ua/o.palij/mod_sms/ I am reading this very loosely and quickly, but it appears that this ejabberd module can integrate ejabber with an sms->smtp transport service located at (e.g.) sms.exampligratia.net in order to provide sms functionality. Erik ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: SMS messaging
Hi Ankur, note I've edited the CC list a bit :-) 2008/7/18 Ankur Verma <[EMAIL PROTECTED]>: > I am able to receive SMS text messages through a mobile phone intended to be > attached to school server. I need to forward this message to a specific XO > connected on the jabber server. At this moment, I have the message in the > format XO_name:SMS_Message. My plan is: Good to hear you can catch the message. You will want to be talking to ejabberd directly - but I don't have the foggiest idea how you can do that. Perhaps google a bit around for scripts to inject messages into ejabberd's message queue? > 1. Get information (Unfriendly Jabber ID? or Nick?) about all the XOs > connected. > 2. Compare against the XO_name in message. > 3. Send SMS_message to it in the form of XMPP message. > > Kindly tell me how should I proceed? I will appreciate any > pointers/alternative approaches from your side. I don't really know myself - I will need it relatively soon, so if you find out, let us know :-) Probably the Colabora guys know. Or ask in the ejabberd mailing list. cheers, m -- [EMAIL PROTECTED] [EMAIL PROTECTED] -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
SMS messaging
Hello, I am able to receive SMS text messages through a mobile phone intended to be attached to school server. I need to forward this message to a specific XO connected on the jabber server. At this moment, I have the message in the format XO_name:SMS_Message. My plan is: 1. Get information (Unfriendly Jabber ID? or Nick?) about all the XOs connected. 2. Compare against the XO_name in message. 3. Send SMS_message to it in the form of XMPP message. Kindly tell me how should I proceed? I will appreciate any pointers/alternative approaches from your side. Thanks. Best regards, Ankur Verma ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel