Not logged in. · Lost password · Register
Forum: agsXMPP RSS
C# - .NET 2
Page: previous  1  2 
Avatar
Alex #16
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post ID 8627
this packet tells you then that you joined the room successful as participant.

  1. <presence xmlns="jabber:client" from="farhad@conference.nimbuzz.com/p.a.yoooo" to="p.a.yoooo@nimbuzz.com/myapp"><x xmlns="http://jabber.org/protocol/muc#user"><item affiliation="none" jid="p.a.yoooo@nimbuzz.com/myapp" role="participant" /></x></presence>

it is the first presence you get after you joined the room.

Alex
Avatar
farhad #17
Member since Jun 2014 · 10 posts
Group memberships: Members
Show profile · Link to this post
ok , thank  you alot , alex.

____________________________

it seems that this method --->

  1. MucManager m = new MucManager(c);
  2. m.GrantMembership("sasa@conference.nimbuzz.com","zakhar.4@nimbuzz.com");

doesnt work on nimbuzz. could you please check it?

this is the xml log :

  1. Send :
  2. <iq id="agsXMPP_6" to="sasa@conference.nimbuzz.com" type="set"><query xmlns="http://jabber.org/protocol/muc#admin"><item affiliation="member" nick="zakhar.4@nimbuzz.com" /></query></iq>
  3. Recieve :
  4. <iq xmlns="jabber:client" type="error" from="sasa@conference.nimbuzz.com" to="p.a.yoooo@nimbuzz.com/myapp" id="agsXMPP_6"><error type="cancel" code="404"><item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Could not find target user.</text></error></iq>

I enter the room with p.a.yoooo (as admin)  and i want to grant membership to my seccond id (zakhar.4) but ...

my seccond problem is when a participant which is a member of a room joins my room the OnPresence event is fired for about 10 times consecutively . could you tell me whats wrong with that?
thank you
This post was edited 2 times, last on 2014-07-06, 14:22 by Alex.
Avatar
Alex #18
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
you are calling GrantMembership with wrong params.

you are passing the Jid as a string which calls the overload with the second parameter as a string for a nickname.
Convert the string of the Jid to a Jid object and it should take the correct overload and work fine.

  1. // overload which takes a jid
  2. public void GrantMembership(Jid room, Jid user)
  3. // overload which takes a string for a nickname
  4. public void GrantMembership(Jid room, string nickname)
Avatar
farhad #19
Member since Jun 2014 · 10 posts
Group memberships: Members
Show profile · Link to this post
worked perfectly , thank you alot Sir! :)
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Page: previous  1  2 
Forum: agsXMPP RSS