Subject: Best way to extract muc errors?
I'm trying to setup a conference. In one case I get the error:
<iq xmlns="jabber:client" from="testroom2@XXXX" to="todd@XXXXX/test" type="error" id="agsXMPP_6"><query xmlns="http://jabber.org/protocol/muc#owner"><x xmlns="jabber:x:data" type="submit" /></query><error code="503" type="cancel"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></iq>
I'm not exactly sure how best to extract this error out in a context that knows what the error is for. In other places I have code that looks like:
if (query.GetType() == typeof(agsXMPP.protocol.iq.privacy.Privacy))
{
if (iq.Type == IqType.error)
{
}
}
I don't see this approach working for a URL based name space. Any thoughts on how to handle this?
thanks
<iq xmlns="jabber:client" from="testroom2@XXXX" to="todd@XXXXX/test" type="error" id="agsXMPP_6"><query xmlns="http://jabber.org/protocol/muc#owner"><x xmlns="jabber:x:data" type="submit" /></query><error code="503" type="cancel"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></iq>
I'm not exactly sure how best to extract this error out in a context that knows what the error is for. In other places I have code that looks like:
if (query.GetType() == typeof(agsXMPP.protocol.iq.privacy.Privacy))
{
if (iq.Type == IqType.error)
{
}
}
I don't see this approach working for a URL based name space. Any thoughts on how to handle this?
thanks