<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=windows-1258"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello,<br>
    <br>
    the sip trace you attached shows SIP MESSAGE requests sent for key
    typing events. They have xml payload. You must not send them to
    xmpp, they are not real message, just indication the user is typing.
    As said in previous message, you cannot send xml content via XMPP
    IM.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    On 8/27/10 12:34 PM, Huy Nguyen wrote:
    <blockquote cite="mid:SNT143-w3037EFD2DAB0EAAB853AB89E860@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
      Hi all,<br>
      <br>
      I have just changed some things on the config of kamailio:<br>
      <br>
      # ---- xmpp ----<br>
      modparam("xmpp", "gateway_domain", "sip-xmpp.kamailio1.com")<br>
      modparam("xmpp", "xmpp_domain", "xmpp-sip.kamailio1.com")<br>
      modparam("xmpp", "xmpp_host", "xmpp.kamailio1.com")<br>
      modparam("xmpp", "backend", "component")<br>
      modparam("xmpp", "xmpp_password", "secret")<br>
      modparam("xmpp", "domain_separator", "*")<br>
      modparam("xmpp", "xmpp_port", 5347)<br>
      ........................<br>
      <br>
       if (method == "MESSAGE") {<br>
                      log("*** xmpp-handled MESSAGE message.\n");<br>
                      if($ct=~"text/plain") {<br>
                              if (xmpp_send_message()) {<br>
                                      sl_send_reply("200", "Accepted");<br>
                              } else {<br>
                                      sl_send_reply("404", "Not found");<br>
                              }<br>
                              return;<br>
                      }<br>
              }<br>
      <br>
      And ejabberd:<br>
      <br>
      {hosts, ["xmpp.kamailio1.com"]}.<br>
      <br>
      {5347, ejabberd_service, [<br>
                                 {access, all},<br>
                                 {shaper_rule, fast},<br>
                                 {ip, {192, 168, 1, 21}},<br>
                                 {hosts, ["xmpp.kamailio1.com"],
      [{password, "secret"}]}<br>
                                 ]},<br>
      <br>
      Register with sip client: 103*sip.kamailio1.com, cal the buddy
      <a class="moz-txt-link-abbreviated" href="mailto:102*xmpp.kamailio1.com@sip.kamailio1.com">102*xmpp.kamailio1.com@sip.kamailio1.com</a>. On the sip client, it
      appear some pop up to type the account login to sip.kamailio1.com.
      If you fill in, it still appear the other pop up to login again.<br>
      <br>
      Anyone have any suggest for me about this problem?  or detect any
      wrong in my configuration. I think I missed some things on it.<br>
      <br>
      P/S: I installed powerdns on server 192.168.1.26, and config as
      below:<br>
      <br>
      - sip.kamailio1.com   192.168.1.25<br>
      - sip-xmpp.kamailio1.com  192.168.1.25<br>
      - xmpp-sip.kamailio1.com  192.168.1.25<br>
      - xmpp.kamailio1.com  192.168.1.21<br>
      <br>
      The sip_trace is in attached file.<br>
      <br>
      Thanks for your help,<br>
      Huy Nguyen<font style="" color="#e36c09" face="Arial"><b><font
            style="font-size: 12pt;" color="#ff0000" size="3"><br>
          </font></b></font>
      <hr size="2" width="100%">
      <hr size="2" width="100%"><span class="ecxApple-style-span"
        style="border-collapse: separate; color: rgb(0, 0, 0);
        font-family: 'Times New Roman'; font-style: normal;
        font-variant: normal; font-weight: normal; letter-spacing:
        normal; line-height: normal; text-indent: 0px; text-transform:
        none; white-space: normal; word-spacing: 0px; font-size:
        medium;"><span class="ecxApple-style-span"
          style="border-collapse: collapse; font-family:
          arial,sans-serif; font-size: 13px;">
          <div class="ecxim" style="color: rgb(80, 0, 80);">HTK-INC
            Co.,Ltd<br>
            <a moz-do-not-send="true" href="http://www.htk-inc.com/"
              style="color: rgb(42, 93, 176);" target="_blank">www.htk-inc.com</a><br>
            <a moz-do-not-send="true" href="http://pbxvn.com/forum/"
              target="_blank">http://pbxvn.com/forum/</a><br>
          </div>
        </span></span><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>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com/</a>
</pre>
  </body>
</html>