309746069 / xmpphp

Automatically exported from code.google.com/p/xmpphp
0 stars 0 forks source link

Gtalk : not delivering messages after sending 10..15 messages #69

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using XMPPHP in conjunction with Google Talk

After sending 10-15 chats, the destination address don't receive the 
messages. And there isn't any error notice in the script 
(sendmessage_example.php)

I've a process polling a database every 5 mins and sending messages

Please, could someone give me some hints how to code this ?

Thanks in advance

Original issue reported on code.google.com by lluis.f...@gmail.com on 26 Aug 2009 at 8:06

GoogleCodeExporter commented 8 years ago
It seems for some reason that gtalk doesnt like the client and is giving back a 
503
Cancel - Service Unavailable but you dont see the response. I've seen this with 
a
number of XMPP clients.

Kate

Original comment by kateuk...@gmail.com on 15 Sep 2009 at 1:31

GoogleCodeExporter commented 8 years ago
we have the same problem - we run an internal longrun script that reposts to 
all colleagues. after the 10th post 
in a loop it quits posting

Original comment by koch.chris@gmail.com on 3 Feb 2010 at 11:42

GoogleCodeExporter commented 8 years ago
Finally, I managed to stabilize the process

1) It runs every 2 minutes
2) It sends a maximum of 1 message per chat address, summarizing the content

Original comment by lluis.f...@gmail.com on 3 Feb 2010 at 10:03

GoogleCodeExporter commented 8 years ago
Hello,

Can you tell me how did you solve this problem?

I am using XMPPHP and GTalk for sending notification from my PHP webservice to 
the Users who are logged in application.

<code>
include 'XMPPHP/XMPP.php';

#Use XMPPHP_Log::LEVEL_VERBOSE to get more logging for error reports
#If this doesn't work, are you running 64-bit PHP with < 5.2.6?
$conn = new XMPPHP_XMPP('talk.google.com', 5222, 'carlosmerchantacc', 
'findcarlos', 'xmpphp', 'gmail.com', $printlog=true, 
$loglevel=XMPPHP_Log::LEVEL_INFO);

try {
    $conn->useEncryption(true);
    $conn->connect();
    $conn->processUntil('session_start');
    $conn->presence();
    $conn->message('carlosuseracc@gmail.com', 'This is a test message!');
    $conn->disconnect();
} catch(XMPPHP_Exception $e) {
    die($e->getMessage());
}

</code>

Original comment by rrmania...@gmail.com on 30 Nov 2010 at 12:30

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Messages are not delivered on gtalk because it has not been sent an invitation 
to chat. How to send an invitation to chat?

Original comment by ojelem2...@gmail.com on 6 Jul 2011 at 5:54

GoogleCodeExporter commented 8 years ago
Same problem with invitations.

Is there a way for XMPPHP to send contact invite to other gtalk user? This 
would allow for fully automate GTalk Broadcast BOT (after registering user 
would automatically get invitation in gtalk) - without that unless user add bot 
user to contacts manually he will not get messages from BOT.

Original comment by marcin.s...@gmail.com on 7 May 2012 at 1:47

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
i am working on xmpphp library for chat feature but xmpphp
library is very slow library. I got response after 10 or 15 minutes.this is big 
problem and we can not merge in html.

Original comment by lokeshku...@gmail.com on 18 Feb 2015 at 4:28