killsession option of mod_admin_extra

Hello, all

We are using the ejabberd 2.1.18 on CentOS5.6 ,
And we installed mod_admin_extra and configured ejabberd.conf.

We can execute some option commands of mod_admin_extra, e.g.
ejabberdctl status-num status

But "killsession" option command never work.
We tried and executed on uur ejabberd server ;
ejabberdctl killsession user server resource
The result is;
Error: command "killsession" not known.

The mod_admin_extra never have "killsession" now?

Thank you in advance.
Regards

Tatsu

There was a bug in

There was a bug in mod_admin_extra.erl Now this works for me:

ejabberdctl kick_session user1 localhost tka1 "KickedWithEjabberdctl"

Thank you!! * Now we use some

Thank you!!

* Now we use some ejabberd servers ( host1 and host2 )as same resource.

We tried and executed on host1:

> ejabberdctl kick_session username host2 resource.com "KickedWithEjabberdctl"

...But we had ERROR in "ejabberd.log".

---

=INFO REPORT==== 2014-05-13 20:04:42 ===
I(<0.11866.0>:ejabberd_s2s:369) : New s2s connection started <0.11867.0>

=INFO REPORT==== 2014-05-13 20:04:42 ===
I(<0.11867.0>:ejabberd_s2s_out:1203) : Trying to open s2s connection: -> host2 with TLS=false

=INFO REPORT==== 2014-05-13 20:04:42 ===
I(<0.11867.0>:ejabberd_s2s_out:439) : wait for validation: -> host2 (closed)

=ERROR REPORT==== 2014-05-13 20:04:42 ===
E(<0.11867.0>:ejabberd_router:70) : {{badrecord,jid},
[{ejabberd_router,do_route,3},
{ejabberd_router,route,3},
{ejabberd_s2s_out,bounce_queue,2},
{ejabberd_s2s_out,terminate,3},
{p1_fsm,terminate,7},
{proc_lib,init_p,5}]}
when processing: {{jid,"username","host2",
"resource.com",
"username","host2",
"resource.com"},
error,
{xmlelement,"broadcast",
[{"type","error"},
{"to",[]},
{"from",
"username@host2/resouce.com"}],
[{exit,"KickedWithEjabberdctl"},
{xmlelement,"error",
[{"code","404"},{"type","cancel"}],
[{xmlelement,"remote-server-not-found",
[{"xmlns",
"urn:ietf:params:xml:ns:xmpp-stanzas"}],
[]}]}]}}

---

I suppose that host1 never communicate host2...
If you know the reason of the ERROR, please let me know.

Thnak you and regards,

Tatsu

There is no command of

There is no command of killsession in ejabberd. you should try this one.

ejabberdctl kick_session user localhost BombusMod

Regards!

Syndicate content