Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
msc1987 #1
Member since Jun 2016 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Not able to configure muc room
I am not able to configure muc room, please checks the logs
  1. <x xmlns="jabber:x:data" type="submit">
  2.     <field type="hidden" var="FORM_TYPE">
  3.         <value>http://jabber.org/protocol/muc#roomconfig</value>
  4.     </field>
  5.     <field type="text-single" var="muc#roomconfig_roomname">
  6.         <value>Test</value>
  7.     </field>
  8.     <field type="text-single" var="muc#roomconfig_roomdesc">
  9.         <value>Testing</value>
  10.     </field>
  11.     <field type="boolean" var="muc#roomconfig_changesubject">
  12.         <value>0</value>
  13.     </field>
  14.     <field type="list-single" var="muc#roomconfig_maxusers">
  15.         <value>0</value>
  16.     </field>
  17.     <field type="list-multi" var="muc#roomconfig_presencebroadcast">
  18.         <value>moderator</value>
  19.         <value>participant</value>
  20.         <value>visitor</value>
  21.     </field>
  22.     <field type="boolean" var="muc#roomconfig_publicroom">
  23.         <value>1</value>
  24.     </field>
  25.     <field type="boolean" var="muc#roomconfig_persistentroom">1</field>
  26.     <field type="boolean" var="muc#roomconfig_moderatedroom">
  27.         <value>0</value>
  28.     </field>
  29.     <field type="boolean" var="muc#roomconfig_membersonly">
  30.         <value>0</value>
  31.     </field>
  32.     <field type="boolean" var="muc#roomconfig_allowinvites">
  33.         <value>0</value>
  34.     </field>
  35.     <field type="boolean" var="muc#roomconfig_passwordprotectedroom">
  36.         <value>0</value>
  37.     </field>
  38.     <field type="list-single" var="muc#roomconfig_whois">
  39.         <value>anyone</value>
  40.     </field>
  41.     <field type="boolean" var="muc#roomconfig_enablelogging">
  42.         <value>0</value>
  43.     </field>
  44.     <field type="boolean" var="x-muc#roomconfig_reservednick">
  45.         <value>0</value>
  46.     </field>
  47.     <field type="boolean" var="x-muc#roomconfig_canchangenick">
  48.         <value>1</value>
  49.     </field>
  50.     <field type="boolean" var="x-muc#roomconfig_registration">
  51.         <value>1</value>
  52.     </field>
  53.     <field type="boolean" var="muc#roomconfig_roomowners">lynczsuperadmin@xmppHost.lyncz.com</field>
  54.     <field type="boolean" var="muc#roomconfig_roomsecret">
  55.         <value />
  56.     </field>
  57.     <field type="boolean" var="muc#allow_private_messages">
  58.         <value>1</value>
  59.     </field>
  60.     <field type="boolean" var="muc#allow_query_users">
  61.         <value>1</value>
  62.     </field>
  63. </x>

Response from XMPP-

  1. <iq xmlns="jabber:client" to="lynczsuperadmin@xmpphost.lyncz.com/agsXMPP" id="agsXMPP_8" type="error" from="testid@conference.xmpphost.lyncz.com">
  2.     <query xmlns="http://jabber.org/protocol/muc#owner">
  3.         <x xmlns="jabber:x:data" type="submit">
  4.             <field var="FORM_TYPE" type="hidden">
  5.                 <value>http://jabber.org/protocol/muc#roomconfig</value>
  6.             </field>
  7.             <field var="muc#roomconfig_roomname" type="text-single">
  8.                 <value>Test</value>
  9.             </field>
  10.             <field var="muc#roomconfig_roomdesc" type="text-single">
  11.                 <value>Testing</value>
  12.             </field>
  13.             <field var="muc#roomconfig_changesubject" type="boolean">
  14.                 <value>0</value>
  15.             </field>
  16.             <field var="muc#roomconfig_maxusers" type="list-single">
  17.                 <value>0</value>
  18.             </field>
  19.             <field var="muc#roomconfig_presencebroadcast" type="list-multi">
  20.                 <value>moderator</value>
  21.                 <value>participant</value>
  22.                 <value>visitor</value>
  23.             </field>
  24.             <field var="muc#roomconfig_publicroom" type="boolean">
  25.                 <value>1</value>
  26.             </field>
  27.             <field var="muc#roomconfig_persistentroom" type="boolean">1</field>
  28.             <field var="muc#roomconfig_moderatedroom" type="boolean">
  29.                 <value>0</value>
  30.             </field>
  31.             <field var="muc#roomconfig_membersonly" type="boolean">
  32.                 <value>0</value>
  33.             </field>
  34.             <field var="muc#roomconfig_allowinvites" type="boolean">
  35.                 <value>0</value>
  36.             </field>
  37.             <field var="muc#roomconfig_passwordprotectedroom" type="boolean">
  38.                 <value>0</value>
  39.             </field>
  40.             <field var="muc#roomconfig_whois" type="list-single">
  41.                 <value>anyone</value>
  42.             </field>
  43.             <field var="muc#roomconfig_enablelogging" type="boolean">
  44.                 <value>0</value>
  45.             </field>
  46.             <field var="x-muc#roomconfig_reservednick" type="boolean">
  47.                 <value>0</value>
  48.             </field>
  49.             <field var="x-muc#roomconfig_canchangenick" type="boolean">
  50.                 <value>1</value>
  51.             </field>
  52.             <field var="x-muc#roomconfig_registration" type="boolean">
  53.                 <value>1</value>
  54.             </field>
  55.             <field var="muc#roomconfig_roomowners" type="boolean">lynczsuperadmin@xmppHost.lyncz.com</field>
  56.             <field var="muc#roomconfig_roomsecret" type="boolean">
  57.                 <value />
  58.             </field>
  59.             <field var="muc#allow_private_messages" type="boolean">
  60.                 <value>1</value>
  61.             </field>
  62.             <field var="muc#allow_query_users" type="boolean">
  63.                 <value>1</value>
  64.             </field>
  65.         </x>
  66.     </query>
  67.     <error type="modify" code="406">
  68.         <not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
  69.     </error>
  70. </iq>

Please help me to solve this issue.

Thanks
This post was edited 2 times, last on 2016-06-02, 10:48 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Your request xml does not include the root IQ  tag.
Also the first query to get the xdata fields is missing.

Alex
Avatar
Alex #3
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
took a quick look at your Xml, found 3 errors pretty quick.

Those are:
  1. <field var="muc#roomconfig_persistentroom" type="boolean">1</field>
  2.  
  3. <field var="muc#roomconfig_roomowners" type="boolean">lynczsuperadmin@xmppHost.lyncz.com</field>
  4.  
  5. <field var="muc#roomconfig_roomsecret" type="boolean">
  6.     <value />
  7. </field>

1) Value without value tag
2) Value without value tag, value should be boolean but is string
3) Missing boolean value

Alex
Avatar
msc1987 #4
Member since Jun 2016 · 3 posts
Group memberships: Members
Show profile · Link to this post
I have solved the issue.
Thank you Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS