473,327 Members | 2,118 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

[Net::Jabber] problem with logging

I'd like to send a message with Net::Jabber using a gadu-gadu (a polish
communicator) gateway. I have a working fine jabber account with gadu-gadu
gateway transport activated (it works fine from a regular jabber client),
but when i use a perl script to send a message to
ga**********@gg.aster.pl, I get an error "Not logged in":

..
..
..
XMPP::Conn: AuthIQAuth: we authed!
XMPP::Conn: Connected: (1)
XMPP::Conn: SendXML: sent(<message to***************@gg.aster.pl'><body>To
jest test.</body><subject>test</subject></message>
)
XML::Stream: Send: (<message to='ga**********@gg.aster.pl'><body>To jest
test.</body><subject>test</subject></message>
)
XMPP::Conn: Process: timeout(1)
XML::Stream: Read: buff(<message from='ga**********@gg.aster.pl'
to*****@jabber.aster
..pl/SimpleSend' type='error' code='407'><error>Not logged
in</error><body>This is my test.</body></message>)
XMPP::Conn: CallBack: sid(44678BD7) received(<message code='407'
from='gadu-gadu_id@g
g.aster.pl' to*****@jabber.aster.pl/SimpleSend' type='error'><error>Not
logged i
n</error><body>This is my test.</body></message>)
XMPP::Conn: CallBack: tag(message)
XMPP::Conn: CallBack: we either want it or were waiting for it.
XMPP::Conn: CallBack: check directxpath
XMPP::Conn: CallBack: check
directxpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sa
sl"])
XMPP::Conn: CallBack: check
directxpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tl
s"])
XMPP::Conn: BuildObject: tag(message) package(Net::Jabber::Message)
XMPP::Conn: CheckID: tag(message) id()
XMPP::Conn: CallBack: no registry entry
XMPP::Conn: CallBack: goto user function(CODE(0x184ed3c))
XML::Stream: Send: (</stream:stream>)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x184f6a8))
XMPP::Conn: Disconnect: bye bye
And here's my code:

use Net::Jabber;
my $c = new Net::Jabber::Client();
die("Could not connect to Jabber server") unless $c->Connect( 'hostname'
=> 'jabber.aster.pl', 'port' => 5222 );
$c->AuthSend( 'username' => 'jid', 'password' => 'password', 'resource' =>
'resource');
die "Authentication failed" unless ($c->Connected());
$c->Disconnect();
Do I need some kind of special method to log into this gateway?

Waiting for any help!

--
Lucio
May 15 '06 #1
0 3650

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Karuppasamy | last post by:
H I am trying to use the Logging Module provided by Microsoft Application Blocks for .Net I installed everything as per the Instructions given in the 'Development Using the Logging Block' ...
1
by: Hari | last post by:
Hi Friends, Please help me for make a solution for the following problem : - I would like to use SQL server 2000 with my exisitng MFC based data acquision/presentation application. I prefer...
2
by: Charles | last post by:
Hello, I need to ad some reports (Invoicing,AR Aging) to my VB ASP.NET project. And would like to use stored procedures for the data calls. Any suggestions? Charles
7
by: Lucas Campos | last post by:
Hi, I have an ASP.Net application that was developed with VS.Net 2002, Net FWK 1.0 and win 2000 platform. Is there any known drawback to execute it over a Win 2003 server? Does we have to migrate...
5
by: josephrthomas | last post by:
hi.. i am using ASP.NET with VB.NET to connect to a MS Access database... can someone pls tell me how do i make the sql statement to insert a new record into the existing table pls?? also...
6
by: ´ï´ï | last post by:
How to connect asp.net with Oracle Database? Where and How to? Thanks very much.
4
by: hkarthik | last post by:
hi all, My name is karthik. I am doing a project in ASP.NET with MySQL as backend. I am just a beginner in .net. Can you please help me in building a menu in ASP.NET. When i enquired,...
0
by: dhaneshrs | last post by:
Heya guys, i need your urgent help.. Its in ASP .NET with Access DB. I am attaching the file i have done so far from various sources and help from people around me. My friends who have worked with...
8
by: David | last post by:
Hi, I'm looking for advice on where to start with interfacing VB 2005 with Access 2003. For starters I would like to be able to add data to tables and retrieve queries from tables. Thanks, ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.