List Info

Thread: set presence of another user




set presence of another user
user name
2006-11-26 17:23:06
Hi all!
fresh subscriber here and i think i'm already asking some
blasphem question:

it is possible to set the presence (show and status) of
another user ?

i mean: do some jabber server provide this feature via a
command line script ?
or maybe the xmpp protocol has a way to do it ?

and, if not:
if i hack, say, the jabberd2 server to do it:
will the client (say, gaim) reflect the status change, once
it's done ?

i'm talking about an easy way to do something already seen
with wildfire + asterisk-im + spark;
in my understanding, they have extended the xmpp protocol,
right ?

i was thinking that if you have asterisk and, say, ejabberd,
on the same machine,
asterisk, once received a call, could exec something like
"ejabberdctl set presence <virtual host>
<user> busy 'at phone with n. 12345677'".

ok and even if the jabber client will not be aware itself
about the status change, could you point me in the right
direction to write such a dirty hack ?

my arch of choice would be gaim 2 beta 5 + jabberd2 with
sqlite storage and ldap auth

sorry if posting in the wrong list


thank you very much !
.mike
_______________________________________________
JAdmin mailing list
JAdminjabber.org
http:/
/mail.jabber.org/mailman/listinfo/jadmin
FAQ: http://ww
w.jabber.org/about/jadminfaq.shtml
_______________________________________________
set presence of another user
user name
2006-12-02 17:30:34
it is possible to set the presence (show and status) of another user ?
It's actually pretty easy.
You just need to connect to router using a component protocol and inject fake <presence/> packet to network, simulating user changing presence.


--
Tomasz Sterna
Xiaoka Grp.   ; http://www.xiaoka.com/
set presence of another user
user name
2006-12-03 22:48:19
Great idea Tomasz! Thank you very much!
i'm trying to do it and there is something i don't get, can
i abuse your time a little more ?

i'm trying to inject packets like that:

<route xmlns='http
://jabberd.jabberstudio.org/ns/component/1.0' from='c2s'
to='uplink'><presence xmlns:sc='http:/
/jabberd.jabberstudio.org/ns/session/1.0'
xmlns='jabber:client'
sc:sm='cef9a31164d7b792b53aef71270ac764a8bd52f0'
sc:c2s='6'><show>dnd</show><status>Sorr
y I'm at phone!</status><c xmlns='http://jabber.org/pro
tocol/caps' ver='2.0.0beta5' node='http://gaim.sf.net/caps'/
><x xmlns='vcard-temp:upda
te'><photo>0c31af4942ba86b713caf8189023d220da197ad2
</photo></x></presence></route>

or that one:

<route xmlns='http
://jabberd.jabberstudio.org/ns/component/1.0' to='c2s'
from='uplink'><presence xmlns='jabber:client'
xmlns:sm='http:/
/jabberd.jabberstudio.org/ns/session/1.0' from='mikeuplink/uplink' to='adminuplink/uplink' sm:c2s='8'
sm:sm='41e8c2b22c435aef152390106bdaba147fc7e5a3'><show
>away</show><c xmlns='http://jabber.org/pro
tocol/caps' node='http://gaim.sf.net/caps'
ver='2.0.0beta5'/><x xmlns='vcard-temp:upda
te'><photo>0c31af4942ba86b713caf8189023d220da197ad2
</photo></x></presence></route>


with netcat ("nc 0 5347" and then i paste the data
in the console) and telnet (echo -n "sniffed data"
| telnet 0 5347)

but i always get an:

<stream:stream xmlns:stream='http://etherx.jabber
.org/streams' version='1.0'><stream:error
xmlns:stream='http://etherx.jabber
.org/streams'><bad-format
xmlns='urn:ietf:paramsml:ns
mpp-s
treams'/></stream:error></stream:stream>

i tried to shrink / indent / modify those packets, getting
always the same result.

could you point me in the right direction ?


thank you very much!
.mike


On Sat, 02 Dec 2006 18:30:34 +0100
Tomasz Sterna <tomekxiaoka.com> wrote:

> Dnia 26-11-2006, nie o godzinie 18:23 +0100,
kakomongmail.com
> napisał(a):
> 
> > it is possible to set the presence (show and
status) of another user ?
> 
> It's actually pretty easy.
> You just need to connect to router using a component
protocol and inject
> fake <presence/> packet to network, simulating
user changing presence.
> 
> 
> -- 
> Tomasz Sterna
> Xiaoka Grp.    http://www.xiaoka.com/
_______________________________________________
JAdmin mailing list
JAdminjabber.org
http:/
/mail.jabber.org/mailman/listinfo/jadmin
FAQ: http://ww
w.jabber.org/about/jadminfaq.shtml
_______________________________________________
set presence of another user
user name
2006-12-03 23:16:00
i'm trying to inject packets like that:
Oh. It's not THAT simple
You need to connect as a component first.
See http://jabberd.jabberstudio.org/dev/docs/component.shtml for reference.


-- 
Tomasz Sterna
Xiaoka Grp.  http://www.xiaoka.com/
set presence of another user
user name
2006-12-03 23:55:50
ohhh very well!
i'll do it asap
thanks SO much !!!

.mike



On Mon, 04 Dec 2006 00:16:00 +0100
Tomasz Sterna <tomekxiaoka.com> wrote:

> Dnia 03-12-2006, nie o godzinie 23:48 +0100,
kakomongmail.com
> napisał(a):
> 
> > i'm trying to inject packets like that:
> 
> Oh. It's not THAT simple 
> You need to connect as a component first.
> See http://jabberd.jabberstudio.org/dev/docs/component.shtml
 for
> reference.
> 
> 
> -- 
> Tomasz Sterna
> Xiaoka Grp.  http://www.xiaoka.com/
_______________________________________________
JAdmin mailing list
JAdminjabber.org
http:/
/mail.jabber.org/mailman/listinfo/jadmin
FAQ: http://ww
w.jabber.org/about/jadminfaq.shtml
_______________________________________________
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )