Setup Media Transfer

I have setup ejabberd 16.06 latest on an ec2 aws server. Able to access web admin and also client from desktop using psi is able to connect. Able to do 1 to 1 chat and also define groupchat. Offline users able to receive message as well once they are online. Enable mod_archive and also mod_restful plus mod_mam and works ok.

I have also tried from my ios phone using astrachat / monal IM, to chat across with the users i have create and it is also working. This includes as well for the groupchat. ios phone also works on offline message. I am using mysql on the ejabberd xmpp server and has enable it on the conf file for "ejabberd.yml".

Now i wish to setup file transfer media example from my phone ios monal IM send to my other user on using psi client xmpp but not able to work. Monal IM prompts me an error related to XEP-0363 which need to be enable.

I came across reading for XEP-0363 related and on many I have read through, there are some that says to refer to work on enabling "mod_http_upload" and some says work on using "mod_proxy65". Well i am confuse between these 2 modules, can i ask if there's any comments on which modules i should use best so that the media can be implemented?

Appreciate the feedback and thank you guys.

Hai, are you able to solved

Hai, are you able to solved this issue? I have same problem with you, monal can't send attachment and alert me that the server need to enable XEP 0363, but I already enable it and worked in Android version.

hi stephen, yes i have mange

hi stephen,

yes i have mange to solve this issue myself by googling a lot since nobody here to help me. I find this forum is good but less offer on help.

Hi, can you tell me how you

Hi, can you tell me how you solved this issue?I am still not able to solve this.

stephen wrote: Hi, can you

stephen wrote:

Hi, can you tell me how you solved this issue?I am still not able to solve this.

Hi stephen,

To make this module works, follow the link below.

https://stackoverflow.com/questions/35578600/mod-http-upload-http-file-u...

I follow this method and it works. Of course if i test with different frontend client some does not support support XEP-0363 so some frontend client does not work. Some works. My point is basically to develop a custom chat app using ejabberd and able to make it work using this module.

If you look at the link you need to make sure few things:-

1) under port 5443, you need to make sure to specify an endpoint, cos they only show you " ". So perhaps you need to put in like example "upload" or any name you want as endpoint.

2) under modules for docroot, you need to specify where is your docroot to setup your media stuff. example i can put as "/home/ubuntu/upload", you decide.

3) Under modules again, you see put_url mention as http://@host@:5443, why 5443 because listen port on top you put 5443 unless your port is different number. The @host@ is you must specify your domain name or localhost depending on you. Example http://upload.media.example.com:5443 is a typical example as setup in this section.

This link above might not have the sufficient info you need. For better comprehensive one, refer to this link provided by ProcessOne.

https://docs.ejabberd.im/admin/configuration/#mod-http-fileserver

This second link after explain to you on mod-http-fileserver it will be follow by mod-http-upload. These 2 modules important to you. I follow to this method and custom myself and it working well.

FYI, i am using latest ejabberd 17.04 so make sure you use it too so that you get to enjoy better features that comes along.

Syndicate content