title: XMPP: Ejabberd not forwarding custom IQ with namespace prefix to user
body: <p>I must send a custom IQ from <code>eva@pc377/Smack</code> using my own namespace <code>http://www.test.com/test</code> to a specific user <code>bob@pc377/Smack</code>. When I use OpenFire everything works fine, but Ejabberd does not forward this IQ to the user. In the log file I see, that the IQ is received by the server, internally dispatched to the Session Manager, but not forwarded to the user. If I send a <code>Message</code>, it is forwarded correctly. I am using a Java-based Smack-Client.</p>
  
  <p>Does Ejabberd require a specific configuration for forwarding custom IQs?</p>
  
  <pre><code>    =INFO REPORT==== 2013-09-11 13:55:36 ===
      D(&lt;0.658.0&gt;:ejabberd_receiver:320) : Received XML on stream = 
      "&lt;iq id=\"0j8w6-8\" to=\"bob@pc377/Smack\" type=\"set\"&gt;
          &lt;ts:register-request xmlns:ts=\"http://www.test.com/test\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"&gt;
             &lt;ts:node-id&gt;550e8400-e29b-11d4-a716-446655440000&lt;/ts:node-id&gt;
             &lt;ts:properties&gt;
                &lt;ts:path&gt;.&lt;/ts:path&gt;
                &lt;ts:delivery-mode&gt;1&lt;/ts:delivery-mode&gt;
             &lt;/ts:properties&gt;
         &lt;/ts:register-request&gt;
      &lt;/iq&gt;"
  
  
      =INFO REPORT==== 2013-09-11 13:55:36 ===
      D(&lt;0.659.0&gt;:ejabberd_router:313) : route
  from {jid,"eva","pc377","Smack","eva","pc377","Smack"}
  to {jid,"bob","pc377","Smack","bob","pc377","Smack"}
  packet {xmlelement,"iq",
                 [{"id","0j8w6-8"},
                  {"to","bob@pc377/Smack"},
                  {"type","set"}],
                 [{xmlelement,"ts:register-request",
                      [{"xmlns:ts","http://www.test.com/test"},
                       {"xmlns:xs","http://www.w3.org/2001/XMLSchema"},
                       {"xmlns:xsi",
                        "http://www.w3.org/2001/XMLSchema-instance"}],
                      [{xmlelement,"ts:node-id",[],
                           [{xmlcdata,
                                &lt;&lt;"550e8400-e29b-11d4-a716-446655440000"&gt;&gt;}]},
                       {xmlelement,"ts:properties",[],
                           [{xmlelement,"ts:path",[],[{xmlcdata,&lt;&lt;"."&gt;&gt;}]},
                            {xmlelement,"ts:delivery-mode",[],
                                [{xmlcdata,&lt;&lt;"1"&gt;&gt;}]}]}]}]}
  
  
      =INFO REPORT==== 2013-09-11 13:55:36 ===
      D(&lt;0.659.0&gt;:ejabberd_local:300) : local route
  from {jid,"eva","pc377","Smack","eva","pc377","Smack"}
  to {jid,"bob","pc377","Smack","bob","pc377","Smack"}
  packet {xmlelement,"iq",
                         [{"id","0j8w6-8"},{"to",[...]},{[...],...}],
                         [{xmlelement,[...],...}]}
  
  
      =INFO REPORT==== 2013-09-11 13:55:36 ===
      D(&lt;0.659.0&gt;:ejabberd_sm:411) : session manager
  from {jid,"eva","pc377","Smack","eva","pc377","Smack"}
  to {jid,"bob","pc377","Smack","bob","pc377","Smack"}
  packet {xmlelement,"iq",
                         [{"id","0j8w6-8"},{"to",[...]},{[...],...}],
                         [{xmlelement,[...],...}]}
  
  
      =INFO REPORT==== 2013-09-11 13:55:36 ===
      D(&lt;0.659.0&gt;:ejabberd_sm:510) : sending to process &lt;0.656.0&gt;
  </code></pre>