Re: How to add a custom attribute
From: Jakob Schroeter <js@xxxxxxxxxx>
Date: Mon, 16 Nov 2009 13:57:08 +0100 (CET)
Quoting rick poot <rick@xxxxxxxxx>:

Hi all,
[...]
But i cant find a method to add the phone-action part, the tag() method
looked like it could do the trick but the documentation stated that the tag
would be independent from my iq  message.

Anyone knows how i can do this?

Hi Rick,

You have to implement StanzaExtension to do that. See http://camaya.net/api/gloox/classgloox_1_1StanzaExtension.html for the details. Then register an 'empty' instance of your derived class with ClientBase (registerStanzaExtension()) to be able to process incoming stanzas with your extension.

cheers,
Jakob