librelist archives

« back to archive

Xmmp gateways

Xmmp gateways

From:
Jean-Baptiste Bavoux
Date:
2014-03-03 @ 15:57
Hi all

I'am trying to use Tigase with Spectrum2 to be able to chat with other
chat services ( for example yahoo).
I think I managed to configure both Spectrum2 and tigase.
By using Psi client I managed to retrieve my Yahoo service and to
register into it ( because converse.js doesn't seem to offer this
fonctionnality)

Then when I connect through converse.js and bosh
I expected to retrieve all my yahoo friends with my roster, instead of
that I get only one yahoo friend which seems to be 'me' on the yahoo
network.

So the question is:
Did someone do things like that ( convers.js + xmpp gateways)
Why converse.js doesn't display my yahoo friends? is it a problem with
converse.js or with my xmpp server configuration?
If something is missing in converse.js does anybody have some clues
about what to do are where to add it?


Thanks


Re: [conversejs] Xmmp gateways

From:
Jc Brand
Date:
2014-03-05 @ 04:48
Hi Jean-Baptiste

On Mon, Mar 03, 2014 at 04:57:09PM +0100, Jean-Baptiste BAVOUX wrote:
> Hi all
> 
> I'am trying to use Tigase with Spectrum2 to be able to chat with other
> chat services ( for example yahoo).
> I think I managed to configure both Spectrum2 and tigase.
> By using Psi client I managed to retrieve my Yahoo service and to
> register into it ( because converse.js doesn't seem to offer this
> fonctionnality)

What do you mean "and to register into it"?

Do you mean you registered a new Yahoo account?

> Then when I connect through converse.js and bosh
> I expected to retrieve all my yahoo friends with my roster, instead of
> that I get only one yahoo friend which seems to be 'me' on the yahoo
> network.

> So the question is:
> Did someone do things like that ( convers.js + xmpp gateways)
> Why converse.js doesn't display my yahoo friends? is it a problem with
> converse.js or with my xmpp server configuration?
> If something is missing in converse.js does anybody have some clues
> about what to do are where to add it?

I'm not aware of anyone yet using converse.js with an XMPP gateway. However, I
don't see how it should be a problem since from converse.js's perspective 
it's just
communicating normally with the Tigase XMPP server.

Have you confirmed with a different chat client that the gateway works? You
mentioned Psi but it's still unclear to me.

Regards
JC

Re: [conversejs] Xmmp gateways

From:
Jean-Baptiste Bavoux
Date:
2014-03-05 @ 14:28
Hi JC

I tried with  http://alpha-labs.net/ jabber server and it works better.

When your jabber server works well with XMPP gateways, here is how you 
use it:

1) the client has to do service discovery request
<iq type="get" to="alpha-labs.net" id="aaeaa">
<query xmlns="http://jabber.org/protocol/disco#info"/>
</iq>

<iq from="alpha-labs.net" type="result" id="aaeba" 
to="testobipii@alpha-labs.net/TTD1">
<query xmlns="http://jabber.org/protocol/disco#items">
<item name="Socks 5 Bytestreams Proxy" jid="proxy.alpha-labs.net"/>
<item name="Google Talk Transport" jid="gtalk.alpha-labs.net"/>
<item name="AIM Transport" jid="aim.alpha-labs.net"/>
<item name="ICQ Transport" jid="icq.alpha-labs.net"/>
<item name="Yahoo! Transport" jid="yahoo.alpha-labs.net"/>
...
</query>
</iq>

2) then the  client can register ( there is a fex more steps in reality)
<iq type="set" to="yahoo.alpha-labs.net" id="aae9a">
<query xmlns="jabber:iq:register">
<x xmlns="jabber:x:data" type="submit">
<field type="text-single" var="username">
<value>my_yahoo_user_id</value>
</field>
<field type="text-private" var="password">
<value>my_pasword</value>
</field>
</x>
</query>
</iq>

3) then the client gets your yahoo friends and display their status
4) you can add yahoo friends

Steps 1 ot 3 cannot be done with converse.js ( the 4th may be).
( but I expected that,)

But once done ( with Psi client for example) converse.js displays all 
your yahoo friends and you can chat with them.
It also display the Yahoo transport as it were a friend ( but this could 
be easily fixed).


So finally my problem is about my server and not about converse.js.

Regards

Le 05/03/2014 05:48, JC Brand a écrit :
> Hi Jean-Baptiste
>
> On Mon, Mar 03, 2014 at 04:57:09PM +0100, Jean-Baptiste BAVOUX wrote:
>> Hi all
>>
>> I'am trying to use Tigase with Spectrum2 to be able to chat with other
>> chat services ( for example yahoo).
>> I think I managed to configure both Spectrum2 and tigase.
>> By using Psi client I managed to retrieve my Yahoo service and to
>> register into it ( because converse.js doesn't seem to offer this
>> fonctionnality)
> What do you mean "and to register into it"?
>
> Do you mean you registered a new Yahoo account?
>
>> Then when I connect through converse.js and bosh
>> I expected to retrieve all my yahoo friends with my roster, instead of
>> that I get only one yahoo friend which seems to be 'me' on the yahoo
>> network.
>> So the question is:
>> Did someone do things like that ( convers.js + xmpp gateways)
>> Why converse.js doesn't display my yahoo friends? is it a problem with
>> converse.js or with my xmpp server configuration?
>> If something is missing in converse.js does anybody have some clues
>> about what to do are where to add it?
> I'm not aware of anyone yet using converse.js with an XMPP gateway. However, I
> don't see how it should be a problem since from converse.js's 
perspective it's just
> communicating normally with the Tigase XMPP server.
>
> Have you confirmed with a different chat client that the gateway works? You
> mentioned Psi but it's still unclear to me.
>
> Regards
> JC

Re: [conversejs] Xmmp gateways

From:
Jc Brand
Date:
2014-03-06 @ 03:37
Thanks for the update.

Converse already does some service discovery but doesn't specifically check for
transports.

And like you know it cannot register you for a gateway (step #2).

I think converse.js can definitely be improved by adding these features, 
would you perhaps create a ticket with this information?

https://github.com/jcbrand/converse.js/issues

Regards
JC

On Wed, Mar 05, 2014 at 03:28:39PM +0100, Jean-Baptiste BAVOUX wrote:
> Hi JC
> 
> I tried with  http://alpha-labs.net/ jabber server and it works better.
> 
> When your jabber server works well with XMPP gateways, here is how you 
> use it:
> 
> 1) the client has to do service discovery request
> <iq type="get" to="alpha-labs.net" id="aaeaa">
> <query xmlns="http://jabber.org/protocol/disco#info"/>
> </iq>
> 
> <iq from="alpha-labs.net" type="result" id="aaeba" 
> to="testobipii@alpha-labs.net/TTD1">
> <query xmlns="http://jabber.org/protocol/disco#items">
> <item name="Socks 5 Bytestreams Proxy" jid="proxy.alpha-labs.net"/>
> <item name="Google Talk Transport" jid="gtalk.alpha-labs.net"/>
> <item name="AIM Transport" jid="aim.alpha-labs.net"/>
> <item name="ICQ Transport" jid="icq.alpha-labs.net"/>
> <item name="Yahoo! Transport" jid="yahoo.alpha-labs.net"/>
> ...
> </query>
> </iq>
> 
> 2) then the  client can register ( there is a fex more steps in reality)
> <iq type="set" to="yahoo.alpha-labs.net" id="aae9a">
> <query xmlns="jabber:iq:register">
> <x xmlns="jabber:x:data" type="submit">
> <field type="text-single" var="username">
> <value>my_yahoo_user_id</value>
> </field>
> <field type="text-private" var="password">
> <value>my_pasword</value>
> </field>
> </x>
> </query>
> </iq>
> 
> 3) then the client gets your yahoo friends and display their status
> 4) you can add yahoo friends
> 
> Steps 1 ot 3 cannot be done with converse.js ( the 4th may be).
> ( but I expected that,)
> 
> But once done ( with Psi client for example) converse.js displays all 
> your yahoo friends and you can chat with them.
> It also display the Yahoo transport as it were a friend ( but this could 
> be easily fixed).
> 
> 
> So finally my problem is about my server and not about converse.js.
> 
> Regards
> 
> Le 05/03/2014 05:48, JC Brand a écrit :
> > Hi Jean-Baptiste
> >
> > On Mon, Mar 03, 2014 at 04:57:09PM +0100, Jean-Baptiste BAVOUX wrote:
> >> Hi all
> >>
> >> I'am trying to use Tigase with Spectrum2 to be able to chat with other
> >> chat services ( for example yahoo).
> >> I think I managed to configure both Spectrum2 and tigase.
> >> By using Psi client I managed to retrieve my Yahoo service and to
> >> register into it ( because converse.js doesn't seem to offer this
> >> fonctionnality)
> > What do you mean "and to register into it"?
> >
> > Do you mean you registered a new Yahoo account?
> >
> >> Then when I connect through converse.js and bosh
> >> I expected to retrieve all my yahoo friends with my roster, instead of
> >> that I get only one yahoo friend which seems to be 'me' on the yahoo
> >> network.
> >> So the question is:
> >> Did someone do things like that ( convers.js + xmpp gateways)
> >> Why converse.js doesn't display my yahoo friends? is it a problem with
> >> converse.js or with my xmpp server configuration?
> >> If something is missing in converse.js does anybody have some clues
> >> about what to do are where to add it?
> > I'm not aware of anyone yet using converse.js with an XMPP gateway. However, I
> > don't see how it should be a problem since from converse.js's 
perspective it's just
> > communicating normally with the Tigase XMPP server.
> >
> > Have you confirmed with a different chat client that the gateway works? You
> > mentioned Psi but it's still unclear to me.
> >
> > Regards
> > JC
>