-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow vcards to be set for services #3428
Comments
http_upload, muc, proxy65 and pubsub already support the vcard option, just like mod_vcard does. This was implemented for ejabberd 19.08 in 5a97671 |
Wow I didn't knew that. I have to double check if the official documentation is up to date then ! |
It is indeed useful, but not totally what I needed. This is configured on the module level and not on the host level. |
You should be able to use host_config (or append_host_config):
|
I can indeed add root hosts there but not subdomain services:
|
You may be doing something wrong, or I didn't understand your requirements. If I understood correctly your desire, it works for me: hosts:
- localhost
- "example.net"
- "example.org"
modules:
# mod_muc:
...
append_host_config:
"example.net":
modules:
mod_muc:
vcard:
desc: "This is NET conference of example.net"
"example.org":
modules:
mod_muc:
vcard:
desc: "This is ORG conference of example.org" <iq id='103:347163'
xml:lang='es'
type='get'
to='conference.example.org'>
<vCard xmlns='vcard-temp'/>
</iq>
<iq xml:lang='es'
to='user1@localhost/tka1'
from='conference.example.org'
type='result'
id='103:347163'>
<vCard xmlns='vcard-temp'>
<DESC>This is ORG conference of example.org</DESC>
</vCard>
</iq> <iq id='107:877346'
xml:lang='es'
type='get'
to='conference.example.net'>
<vCard xmlns='vcard-temp'/>
</iq>
<iq xml:lang='es'
to='user1@localhost/tka1'
from='conference.example.net'
type='result'
id='107:877346'>
<vCard xmlns='vcard-temp'>
<DESC>This is NET conference of example.net</DESC>
</vCard>
</iq> |
This is indeed what I needed ! Sorry for the misunderstanding :) ! |
Ok, i'm reopening the ticket. Sorry about that. The problem is that it's not really per host, but per subdomain. append_host_config:
"news.example.net":
modules:
mod_pubsub:
vcard:
desc: "The pubsub news of example.net"
"comics.example.net":
modules:
mod_pubsub:
vcard:
desc: "The pubsub comics of example.net" |
With that configuration all works correctly for me: the host news.example.net has a Pubsub service running at pubsub.news.example.net which vcard correctly says "The pubsub news of example.net". And the comics.example.net host has a Pubsub service running at pubsub.comics.example.net which vcard says "The pusub comics og example.net". What behaviour do you get, and what did you expect? |
I can't actually append config to a subdomain because it needs to be registered as a host. And if I try to add it to hosts I got:
|
Tell what ejabberd version are you using, how did you install it, and what configuration do you have set, specially all regarding hosts |
Using the official ProcessOne DEB |
Ok, that's a very recent version and I don't remember any recent bug related to this. As I was able to configure it, all indicates you messed the configuration, so I'll repeat again:
|
So after having a quick talk with @weiss , it seems that there was a misunderstanding. I'll try to resume and clarify things. On my ejabberd instance, I have two hosts defined : hosts:
- "movim.eu"
- "jappix.com" Under each of those hosts I'm using append_host_config:
"movim.eu":
modules:
mod_pubsub:
hosts:
- "alt.@HOST@"
- "blabla.@HOST@"
...
- "comments.@HOST@"
"jappix.eu":
modules:
mod_pubsub:
hosts:
- "pubsub.@HOST@"
...
- "comments.@HOST@" In Movim each of those subdomains ( I'd like to add a proper description, avatar and more (so what can be found in a proper vcard). So what i'm looking for is basically a way to be able to define a custom vcard, not by @weiss is telling me that this feature is actually non existent in ejabberd but could be implemented. |
Let me try to propose another approach. Possibly, it should be dynamic and not in the configuration file. I guess, an admin could be able to set a vcard for any service name and it would override the default vcard served for that module. That vcard would be stored in the database. |
That sounds good to me :) |
It is currently possible to set a vcard for the general server using the
vcard
attribute onmod_vcard
.I'd like to know if it would be possible to extend that feature by allowing vcards to also be set for the related ejabberd services (pubsub, muc…).
This would let clients like Movim, that extensively uses Pubsub, to retrieve some information on those services and display them in the UI. This is also a way to explain differences between different services of the same type (privateconf.server.tld and publicconf.server.tld for example).
The text was updated successfully, but these errors were encountered: