Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8370809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:00:21+00:00 2026-06-09T14:00:21+00:00

I have an ejabberd server at jabber.domain.com, with an xmpp component written in python

  • 0

I have an ejabberd server at jabber.domain.com, with an xmpp component written in python (using sleekxmpp) at presence.domain.com.

I wanted the component to get a notification each time a client changed his presence from available to unavailable and vice-versa.

The clients themselves don’t have any contacts.

Currently, I have set up my clients to send their available presence stanzas to admin@presence.domain.com, and I do get their online/offline presence notifications. But I feel this isn’t the right approach.

I was hoping the clients wouldn’t be aware of the component at presence.domain.com, and they would just connect to jabber.domain.com and the component should somehow get notified by the server about the clients presence.

Is there a way to do that?
Is my component setup correct? or should I think about using an xmpp plugin/module/etc..

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:00:23+00:00Added an answer on June 9, 2026 at 2:00 pm

    It is not difficult to write a custom ejabberd module for this. It will need to register to presence change hooks in ejabberd, and on each presence packet route a notification towards your external component.

    There is a pair of hooks ‘set_presence_hook’ and ‘unset_presence_hook’ that your module can register to, to be informed when the users starts/end a session.

    If you need to track other presence statuses, there is also a hook ‘c2s_update_presence’ that fires on any presence packets sent by your users.

    Other possibility, without using a custom module, is using shared rosters. Add admin@presence.domain.com to the shared rosters of all your users, but in this case they will see this item reflected on their roster.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two ejabberd servers, one local one distant online on foobar.com. Using xmpp
I have written some extension modules for eJabberd most of which pass pieces of
I have ejabberd set up using external_auth to authenticate against the user database of
I have an mnesia database dump from an ejabberd server (DCD, DCL, and DAT
I am using a python script as an external auth option in ejabberd 2.1.6.
I'm trying to authenticate with an XMPP server using SASL. /** * Send Authentication,
Is it possible to instruct the jabber/xmpp server to delegate authentication to another module?
I have a working Ejabberd server (version 2.1.9) and my client application running just
I'm trying to get an ejabberd server running to use as a real time
I have installed ejabberd server locally (localhost:5280), now question is how to configure local

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.