Paolo Chirico ha scritto:
Firstly load the 'bosh' module, or add it to your modules_enabled <http://prosody.im/doc/modules_enabled> line in your config file.

quindi ho aggiunto nel file prosody.cfg.lua

    modules_enabled = {
"saslauth"; -- Authentication for clients and servers. Recommended if you want to log in. "legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
                "roster"; -- Allow users to have a roster. Recommended ;)
"register"; -- Allow users to register on this server using a client "tls"; -- Add support for secure TLS on c2s/s2s connections
                "vcard"; -- Allow users to set vCards
"private"; -- Private XML storage (for room bookmarks, etc.)
                "version"; -- Replies to server version requests
                "dialback"; -- s2s dialback support
                  "disco"; -- Service discovery
                  "ping"; -- XMPP Ping
                  "time"; -- Let others know the time here
                  "uptime"; -- Uptime reporting
"console"; -- telnet to port 5582 (needs console_enabled = true)
*                "bosh"; -- questa riga aggiunta da me*
              };

poi la documentazione mi dice di aggiungere questa cosa:
L'ho fatto anche io.

bosh_ports = {
                 {
                    port = 1234;

                    path = "xmpp-http";
                    interface = "127.0.0.1";
                 }
              }
Penso che le righe precedenti servano solo se vuoi specificare una nuova porta , altrimenti ci prendiamo le impostazioni di default che ci dovrebbero bastare.


lanciando il nostro prosody ottengo sta cosa


C:\Programmi\Prosody>prosody.bat
datamanager info Setting data path to: C:\Documents and Settings\
paolo\Dati applicazioni\Prosody\data
hostmanager         info        Activated host: localhost
connlisteners         info      Registered connection listener console
modulemanager error Error initialising module 'nil': .\net\httpserve
r.lua:4: module 'socket.url' not found:
        no field package.preload['socket.url']
        no file '.\socket\url.lua'
        no file '.\lualibs\socket\url.lua'
        no file '.\socket\url.dll'
        no file '.\lualibs\socket\url.dll'
        no file '.\socket.dll'
        no file '.\lualibs\socket.dll'

Sembra quasi che tu non abbia luasocket ... puo' essere ?
http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/

prova a lanciare l'interprete lua e a scrivere

require "socket"



forse devo installare qualcos'altro??? dove lo trovo???
Se ti servono info specifiche sul server puoi chiedere nella ml di prosody, sono molto disponibili!


Ho provato anche con openfire (server jabber) che sembrerebbe abbia attivo il servizio http-bind di default...

lancio openfire e andando sul menu di configurazione mi dice

All addresses 80 HTTP Binding The port used for unsecured HTTP client connections. All addresses 5223 HTTP Binding The port used for secured HTTP client connections.


ok le porte sono messe da me per provare.... perĂ² indipendente dalle porte quando tento di connettermi al server alla porta specificata
sia con un client sia con un web browser ottengo l'errore 400 oppure 404

Questo non lo so', mai provato openwfire :-\

Solo a titolo informativo, alcuni bug di bosh (dovesse crasharti) sono stati risolti nella nuova versione che deve ancora uscire, ma questa e' la snapshot:

http://prosody.im/source/Prosody-IM-snapshot.tar.gz

Lorenzo


Rispondere a