Hi there. We're trying to use the great Instant Messaging feature, using pidgin, so we can move from jabberd server to zimbra server.
Some of our internal applications use a perl script (which uses the Net::Jabber class) to IM us in case of a failure or notification.
I'm trying to connect that perl script to the zimbra server, but it's not working properly and don't know why. I can see noting in the logs.
Any idea what colud be wrong? External client (Pidgin) is working ok
This is the script we are using with the jabberd server
use Net::Jabber "Client";
die if not defined $ARGV;
my $hostname = 'zimbra.example.com';
my $username = 'callerid';
my $password = 'password';
my $resource = 'home';
my @to = ('firstname.lastname@example.org');
my $con = new Net::Jabber::Client;
my $msg = new Net::Jabber::Message;
$con->Connect (hostname=>$hostname) or die;
my @result = $con->AuthSend (username=>$username, password=>$password, resource=>$resource);
next if $result ne "ok";
$msg->SetMessage (to=>$_, body=>$ARGV);