On Sat, Aug 17, 2013 at 1:06 PM, Mark Macumber <
mark.m...@gmail.com> wrote:
> Hi Lance,
>
> Thanks for the reply, yeah the To field was just a test, it seems to be more
> associated with the xmlns?
>
> Whatever I seem to do always fails with the error:
>
> Unhandled c2s stanza: iq; xmlns=my namespace goes here
>
> I am trying to extend IQ and send my own payload, like this:
>
> <iq id="abcdefh" to="
te...@mydomain.com.au" type="set">
> <mypayload xmlns="
http://www.mything.com.au" />
> </iq>
>
> should I need to enable anything in prosody to do this?
>
Prosody is behaving as it should be, like Lance mentioned.
<iq to="node@host"> is handled by the server itself, and the server
doesn't know how to handle your specific element and namespace, so it
replies with a service-unavailable error, and logs a message. Such an
IQ is not broadcasted to other connected clients.
<iq to="node@host/resource" would be forwarded to your client, this is
what you need.
From RFC6121:
"8.5.2.1.3. IQ
For an IQ stanza, the server itself MUST reply on behalf of the user
with either an IQ result or an IQ error, and MUST NOT deliver the IQ
stanza to any of the user's available resources. Specifically, if the
semantics of the qualifying namespace define a reply that the server
can provide on behalf of the user, then the server MUST reply to the
stanza on behalf of the user by returning either an IQ stanza of type
"result" or an IQ stanza of type "error" that is appropriate to the
original payload; if not, then the server MUST reply with a
<service-unavailable/> stanza error." - this is what is happening.
So you need to include the resource, which makes the rules in section
8.5.3.1 apply.
--
Waqas Hussain