<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-2"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello,<br>
    <br>
    if you run kamailio with debug=3, what log messages are printed when
    the xmpp message arrives to kamailio?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    On 4/4/11 7:19 PM, Martin Pohančeník wrote:
    <blockquote
      cite="mid:BANLkTimETfZx3taa-ZvhRZz9mJxYDg_ajg@mail.gmail.com"
      type="cite">Hello everyone.<br>
      I am a student at University of Žilina (Faculty of Management
      Science and Informatics), which has been recently awarded Kamailio
      2010 Awards for various articles about SIP and KAMAILIO on portal
      <a moz-do-not-send="true" href="http://nil.uniza.sk">nil.uniza.sk</a>.<br>
      I am doing a bachelor thesis on topic SIP/SIMPLE - XMPP traversal,
      but I am experiencing some problems.<br>
      I have a working Kamailio server serving domain <a
        moz-do-not-send="true" href="http://sip.uniza.sk">sip.uniza.sk</a>
      and a working Jabberd2 server serving domain <a
        moz-do-not-send="true" href="http://xmpp.uniza.sk">xmpp.uniza.sk</a>.<br>
      I am running Kamailio 3.1 with XMPP module with following
      configuration:<br>
      <br>
      fork=yes<br>
      children=4<br>
      log_stderror=yes<br>
      alias="<a moz-do-not-send="true" href="http://sip.uniza.sk">sip.uniza.sk</a>"<br>
      ...<br>
      loadmodule "XMPP.so"<br>
      ...<br>
      modparam("xmpp", "backend", "component")<br>
      modparam("xmpp", "domain_separator", "*")<br>
      modparam("xmpp", "gateway_domain", "<a moz-do-not-send="true"
        href="http://sip.uniza.sk">sip.uniza.sk</a>")<br>
      modparam("xmpp", "xmpp_domain", "<a moz-do-not-send="true"
        href="http://xmpp-sip.uniza.sk">xmpp-sip.uniza.sk</a>")<br>
      modparam("xmpp", "xmpp_host", "<a moz-do-not-send="true"
        href="http://server.xmpp.uniza.sk">server.xmpp.uniza.sk</a>")<br>
      modparam("xmpp", "xmpp_password", "secret")<br>
      ...<br>
      #main routing logic<br>
      route {<br>
      ...<br>
       if( uri=~"<a class="moz-txt-link-freetext" href="sip:.+">sip:.+</a>[*].+@<a moz-do-not-send="true"
        href="http://sip.uniza.sk">sip.uniza.sk</a>")<br>
              {<br>
                      # absorb retransmissions ###<br>
                      if (!t_newtran())<br>
                      {<br>
                              sl_reply_error();<br>
                              return;<br>
                      }<br>
                      if (method == "MESSAGE")<br>
                      {<br>
                              log("*** xmpp-handled MESSAGE
      message.\n");<br>
                              if (xmpp_send_message())<br>
                              {<br>
                                      t_reply("200", "Accepted");<br>
                              } else<br>
                              {<br>
                                      t_reply("404", "Not found");<br>
                              }<br>
                              return;<br>
                      } else<br>
                      {<br>
                              t_reply("403","not supported");<br>
                              exit;<br>
                      }<br>
              }<br>
      ...<br>
      }<br>
      <br>
      To my knowledge there is no configuration required on the Jabberd2
      server (except the password, that the XMPP component authenticates
      with).<br>
      I am trying to enable SIP clients to chat with the XMPP clients
      and vice versa.<br>
      SIP clients can send messages to XMPP clients. XMPP modules
      translates SIP to XMPP and forwards the massage to Jabberd2
      server.<br>
      URIs look like:<br>
      XMPP client from SIP view: xmpp_client*<a moz-do-not-send="true"
        href="http://xmpp.uniza.sk">xmpp.uniza.sk</a>@<a
        moz-do-not-send="true" href="http://sip.uniza.sk">sip.uniza.sk</a><br>
      SIP client from XMPP view: sip_client*<a moz-do-not-send="true"
        href="http://sip.uniza.sk">sip.uniza.sk</a>@<a
        moz-do-not-send="true" href="http://xmpp-sip.uniza.sk">xmpp-sip.uniza.sk</a><br>
      The message arrives to XMPP client, but he can not reply.<br>
      I have sniffed the traffic on the Kamailio server. The XMPP
      message arrives to kamailio XMPP module (correct port and
      everything), but the module somehow ignores it, doesn't translate
      XMPP to SIP and doesn't send it to the SIP recipient.<br>
      The sniffed message looks like:<br>
      <br>
      &lt;message xmlns='<a class="moz-txt-link-freetext" href="jabber:client">jabber:client</a>' type='chat' to='SIP_client*<a
        moz-do-not-send="true" href="http://sip.uniza.sk">sip.uniza.sk</a>@<a
        moz-do-not-send="true" href="http://xmpp-sip.uniza.sk">xmpp-sip.uniza.sk</a>'
      id='mir_47' from='<a moz-do-not-send="true"
        href="http://XMPP_client@xmpp.uniza.sk/Miranda">XMPP_client@xmpp.uniza.sk/Miranda</a>'&gt;&lt;body&gt;hello&lt;/body&gt;&lt;/message&gt;<br>
      <br>
      Any suggestions on where can the problem be ??<br>
      Do I have to add some lines to routing logic for XMPP module to
      process the XMPP message (from Jabberd2) for SIP_client ??<br>
      <br>
      Thanks<br>
      Martin<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
  </body>
</html>