AnsweredAssumed Answered

Getting duplicate and triplicate Broadcast messages in openfire xmpp

Question asked by Hardik on Apr 19, 2017
Latest reply on Apr 20, 2017 by Daryl Herzmann

Hello all,

 

I am using openfire xmpp to send Broadcasting messages to my users but I am getting duplicate and even more repeating broadcast messages.

here is my xmpp php code for sending broadcast messages to my users.

 

$conn = new XMPPHP_XMPP('server_ip', 5222, 'username', 'password', 'xmpphp', 'server_ip', false, XMPPHP_Log::LEVEL_INFO);

        $conn->connect(500, TRUE);

        $conn->processUntil('session_start');

        // $conn->presence(NULL, "available", 'all@broadcast.server_domain/username');

        $conn->presence();

        $conn->message('all@broadcast.server_domain', $braodcast_message, 'normal');

        $conn->disconnect();

 

After few messages the old message with old timestamp pops up. and this happened many times with few messages.

 

please let me know if someone have encounter this issue or resolved

 

Many Thanks in advanced!

Outcomes