Not logged in. · Lost password · Register
Forum: agsXMPP SDK Support RSS
Avatar
Aatif Ali #1
Member since Feb 2007 · 19 posts · Location: Islamabd
Group memberships: Members
Show profile · Link to this post
Subject: User Typing Event Req.
I am not able to get the event where i can capture others typing message can you please guide me in this regard?
I have already gone through http://forum.ag-software.de/forum.php?req=thread&id=26…
but its not working at my machine. Please also mention the event name where i can get other's user typing message. Thanks in advance
Avatar
Alex #2
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

in the thread which you posted is a complete chat state example. All you have to do is copy & paste the code into your project.
You get the chat state events in a message stanza, which means the event to hook up is the OnMessage event.
There is also code in the event which looks for message events in the Message Object.

Alex
Alexander Gnauck
AG-Software
Avatar
Aatif Ali #3
Member since Feb 2007 · 19 posts · Location: Islamabd
Group memberships: Members
Show profile · Link to this post
Subject: User Typing Event Req.
i place the code of yeawsing into my project but i still can't able to see the typing message at both end. Here is the debug message for composing and paused :

  1. SEND: <message xmlns="jabber:client" type="chat" to="atif100miles%hotmail.com@msn.jabber.hot-chilli.net" from="atifaligoldmine@jabber.hot-chilli.net/IPPI"><thread /><composing xmlns="http://jabber.org/protocol/chatstates" /></message>
  2. SEND: <message xmlns="jabber:client" type="chat" to="atif100miles%hotmail.com@msn.jabber.hot-chilli.net" from="atifaligoldmine@jabber.hot-chilli.net/IPPI"><thread /><paused xmlns="http://jabber.org/protocol/chatstates" /></message>

but even after this debug message other client can't able to get the typing message. And when the other user is typing a message i even don't get any debug message.

can you help me in this regard?
This post was edited 2 times, last on 2013-10-10, 10:10 by Alex.
Avatar
Jabberer #4
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
you are sending your typing events to an MSN user and not to a XMPP user. The most transports only support the basic IM features presence and messaging. So i assume this transport supports no chatestates/events.
Software Developer
AG-Software
Avatar
Aatif Ali #5
Member since Feb 2007 · 19 posts · Location: Islamabd
Group memberships: Members
Show profile · Link to this post
i tried it with my own client but still em not getting typing message.
Isn't it the problem of thread tag which is empty in my debug message?
This post was edited on 2007-02-21, 09:51 by Aatif Ali.
Avatar
Jabberer #6
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
an empty thread tag shouldn't be a problem.
Are you sending the message which includes the chatstate to an existing online user?
Software Developer
AG-Software
Avatar
Aatif Ali #7
Member since Feb 2007 · 19 posts · Location: Islamabd
Group memberships: Members
Show profile · Link to this post
yes i do send the chat state

e.g.  msg.Chatstate = chatStateEnum;
Avatar
Jabberer #8
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
Please post the xml logs of both clients
Software Developer
AG-Software
Avatar
Aatif Ali #9
Member since Feb 2007 · 19 posts · Location: Islamabd
Group memberships: Members
Show profile · Link to this post
I have already placed both xmls which client send while typing a text and if he stays inactive for few seconds
Here i am placing it again....

  1. SEND: <message xmlns="jabber:client" type="chat" to="atif100miles%hotmail.com@msn.jabber.hot-chilli.net" from="atifaligoldmine@jabber.hot-chilli.net/IPPI"><thread /><composing xmlns="http://jabber.org/protocol/chatstates" /></message>
  2. SEND: <message xmlns="jabber:client" type="chat" to="atif100miles%hotmail.com@msn.jabber.hot-chilli.net" from="atifaligoldmine@jabber.hot-chilli.net/IPPI"><thread /><paused xmlns="http://jabber.org/protocol/chatstates" /></message>
This post was edited on 2013-10-10, 10:11 by Alex.
Avatar
Jabberer #10
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
you still send it to a MSN user.

And this is only the outgoing XML and not the incoming XML of the second client.
But as i said before it works only with real XMPP users if there is no support in the MSN transport.
Software Developer
AG-Software
Avatar
Aatif Ali #11
Member since Feb 2007 · 19 posts · Location: Islamabd
Group memberships: Members
Show profile · Link to this post
In reply to post #9
SEND: <message xmlns="jabber:client" type="chat" to="goldmine-test%hotmail.com@msn.jabber.hot-chilli.net/msn" from="atifaligoldmine@jabber.hot-chilli.net/IPPI"><thread /><composing xmlns="http://jabber.org/protocol/chatstates" /></message>
SEND: <message xmlns="jabber:client" type="chat" to="goldmine-test%hotmail.com@msn.jabber.hot-chilli.net/msn" from="atifaligoldmine@jabber.hot-chilli.net/IPPI"><thread /><paused xmlns="http://jabber.org/protocol/chatstates" /></message>


but it donot receive anything while the other user is typing a message
Avatar
Jabberer #12
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
i say it again:
the other user is a MSN user according to your logs. Not a XMPP/Jabber User.

It works only from XMPP user to XMPP user. Or if the Gateway which translates the protocol from XMPP to MSN or whatever also translates the events. And most transports don't do that.
Software Developer
AG-Software
Avatar
Aatif Ali #13
Member since Feb 2007 · 19 posts · Location: Islamabd
Group memberships: Members
Show profile · Link to this post
Thankx For Helping me For yet Another time

I have don it....
Actully   i was doin it with other messengers (Msn,Yahoo)

Now its Workin with other jabber Client
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP SDK Support RSS