[JDEV] Net::Jabber and oob

DJ Adams dj.adams at pobox.com
Fri Mar 22 15:35:24 CST 2002


On Fri, Mar 22, 2002 at 08:10:23PM +0100, Rico -mc- Gloeckner wrote:
> Now, i thought, its an x Namespace, so it would be appropriate to get the
> whole jabber:x:oob Entitity via:
>         my @mxspace     = $message->GetX()                 || "";
> I expected any Ref to handle the OOB Data, but all i got was a simple
> "1". Since iam still a bit of unexperienced in advanced Perl Techniques
> i tried to change the Context, i.e. to Scalar, Array and Hash, but none
> seemed to work. Also trying to directly access the $message Object with
> Methods which are valid for jabber:x:oob Objects failed, ofcourse.
> 

Hi

after the above line, all you need is something like this:

$mxspace[0]->GetURL()

and

$mxspace[0]->GetDesc()

to access the two bits of info carried in the x:oob extension

dj



More information about the JDev mailing list