Wiadomość XMPPFramework nie została wysłana

Otrzymuję wiadomości z konta Google Talk, są one wyświetlane w widoku tabeli w emulatorze Ios, ale gdy je wysyłam, nie są wyświetlane w kliencie Google Talk (na innym komputerze). To jest kod:

-(IBAction)sendchat:(id)sender
{
General *general = [General sharedManager];//It is a singleton class used to store some values that need to be accesible in the whole application.


NSXMLElement *body = [NSXMLElement elementWithName:@"body"];
text=[mensaje text];
NSLog(@"Texto en el body: %@", text);
[body setStringValue:text];
NSArray *dest=[general.firstfrom componentsSeparatedByString:@"/"];//in firstfrom is stored the account from wich we receive the first message. This app cannot start a conversation itself, must only answer

NSLog(@"Destination trimmed: %@", [dest objectAtIndex:0]);//Here, the destination account shows correctly (without the /xxxx stuff, just [email protected])
XMPPMessage *mens=[[XMPPMessage alloc]init];
[mens addAttributeWithName:@"body" stringValue:text];
[mens addAttributeWithName:@"sender" stringValue:general.userlogin];
NSLog(@"text vale: %@", text);
NSXMLElement *messagetosend = [NSXMLElement elementWithName:@"message"];
[messagetosend addAttributeWithName:@"type" stringValue:@"chat"];
[messagetosend addAttributeWithName:@"to" stringValue:[dest objectAtIndex:0]];
[messagetosend addChild:body];
NSLog(@"We are sending to: %@", [dest objectAtIndex:0]);
[self.xmppStream sendElement:messagetosend];

[self xmppStream:xmppStream didReceiveMessage:mens];//manage the sent message as it was received, to show it in the Table View
self.mensaje.text=@"";
}

Jak mówię, wiadomości są odbierane doskonale, ale nie mogę wysłać. Widziałem wiele przykładów wysyłania i są one podobne do mojego kodu. Jeśli debuguję nadawcę, jest on wyświetlany w porządku ([email protected]), a atrybut „to” jest również w porządku ([email protected]). XmppStrem jest ustawiony poprawnie (o ile wiem):

xmppStream = [[XMPPStream alloc] init];
[xmppStream addDelegate:self delegateQueue:dispatch_get_main_queue()];

W metodzie ViewDidLoad.

Jakaś pomoc? Dziękuję Ci.

---EDYTOWAĆ---

Zapomniałem powiedzieć, że oba konta znają się nawzajem i w kliencie Google Talk obecność jest wysyłana.

questionAnswers(1)

yourAnswerToTheQuestion