Skip navigation
2413 Views 1 Reply Latest reply: May 28, 2008 2:33 PM by billmil RSS
Bronze 17 posts since
Apr 21, 2008
Currently Being Moderated

May 27, 2008 4:12 PM

no "add buddy" dialogue after subscribing to gateway user's presence

 

Hi all,

 

 

I'm probably have a basic error here, but have tried a few variations with no luck.

 

 

The problem: I subscribe to a yahoo or AIM member's presence, but the IM client logged into aim/yahoo does not pop up the "authorize add buddy" dialogue. Instead the user appears as "unavailable".

 

 

Any suggestions?

 

 

thanks,

 

 

bill m

 

 

_The code: _

 

 

Presence auth = new Presence(Presence.Type.subscribe);

 

 

auth.setFrom("myAccount@myServer.mycompany.com")

 

 

auth.setTo("myname@yahoo.myname.mycompany.com")

 

 

fConnection.sendPacket(authorize);

 

 

 

_The stdout excerpt:  _

 

RECV (22610276):

<presence id="6333i-5" to="myname@yahoo.myname.mycompany.com" from="otherAccount@myname.mycompany.com" type="subscribe"></presence>

 

INTERPRETED:

<presence id="6333i-5" to="myname@yahoo.myserver.mycompany.com" from="otherAccount@myserver.mycompany.com/myResource" type="subscribe"/>

 

INTERPRETED:

<presence type="subscribed" to="otherAccount@myserver.mycompany.com" from="myname@yahoo.myserver.mycompany.com"/>

 

INTERPRETED:

<presence to="otherAccount@myserver.mycompany.com" from="myname@yahoo.myserver.mycompany.com" type="unavailable"/>

 

SENT (22610276):

<iq type="set" id="424-70" to="otherAccount@myserver.mycompany.com/myResource"><query xmlns="jabber:iq:roster"><item jid="myname@yahoo.myserver.mycompany.com" ask="subscribe" subscription="none"/></query></iq>

 

SENT (22610276):

<iq type="set" id="454-71" to="otherAccount@myserver.mycompany.com/myResource"><query xmlns="jabber:iq:roster"><item jid="myname@yahoo.myserver.mycompany.com" subscription="to"/></query></iq>

 

SENT (22610276):

<presence type="subscribed" to="otherAccount@myserver.mycompany.com" from="myname@yahoo.myserver.mycompany.com"/>

 

SENT (22610276):

<presence to="otherAccount@myserver.mycompany.com" from="myname@yahoo.myserver.mycompany.com" type="unavailable"/>

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points