<!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>
    in component mode, a subdomain is diverted to respective component,
    so you don't need users in xmpp server.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <br>
    On 8/30/10 2:18 PM, Huy Nguyen wrote:
    <blockquote cite="mid:SNT143-w589A17808BA2A3E0AB90169E890@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
      <font style="" face="Arial">Hi Daniel,<br>
        <br>
        Thanks so much for your help.<br>
        <br>
        Maybe I still don't understand clearly yet about the scenario to
        test with this module (component mode):<br>
        <br>
        I install Kamailio and local ejabberd on server 192.168.1.25
        with the same domain: kamailio1.com.<br>
        <br>
        I also have another ejabberd server for test with domain
        ejabberd.com (192.168.1.26).<br>
        <br>
        <font style="" color="#1f497d">modparam("xmpp",
          "gateway_domain", "kamailio1.com")</font><font style=""
          color="#1f497d"><br>
        </font><font style="" color="#1f497d">modparam("xmpp",
          "xmpp_domain", "kamailio1.com")</font><font style=""
          color="#1f497d"><br>
        </font><font style="" color="#1f497d">modparam("xmpp",
          "xmpp_host", "192.168.1.25")</font><font style=""
          color="#1f497d"><br>
        </font><font style="" color="#1f497d">modparam("xmpp",
          "backend", "component")</font><font style="" color="#1f497d"><br>
        </font><font style="" color="#1f497d">modparam("xmpp",
          "xmpp_password", "secret")</font><font style=""
          color="#1f497d"><br>
        </font><font style="" color="#1f497d">modparam("xmpp",
          "domain_separator", "*")</font><font style="" color="#1f497d"><br>
        </font><font style="" color="#1f497d">modparam("xmpp",
          "xmpp_port", 5347)</font><br>
        <br>
        <br>
        With the guide as <a moz-do-not-send="true"
          href="http://www.kamailio.org/docs/modules/3.0.x/modules_k/xmpp.html">below</a>:<br>
      </font><font style="font-size: 10pt;" color="#1f497d" face="Arial"
        size="2"><span class="Apple-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; orphans: 2;
          text-indent: 0px; text-transform: none; white-space: normal;
          widows: 2; word-spacing: 0px; font-size: medium;"><span
            class="Apple-style-span" style="font-family:
            Helvetica,Arial; text-align: justify;">"The address of the
            XMPP(jabber) client looks like this:
            "<a class="moz-txt-link-freetext" href="sip:username">sip:username</a>&lt;domain_separator&gt;jabber_server@gateway_domain".
            The address of a SIP client has the following pattern :
            "sip_username&lt;domain_separator&gt;openser_domain@xmpp_domain".</span></span></font> 
      "<br>
      <font style="" face="Arial"><br>
        I have one sip client: <a class="moz-txt-link-abbreviated" href="mailto:101@kamailio1.com">101@kamailio1.com</a> and one xmpp client:
        <a class="moz-txt-link-abbreviated" href="mailto:102@ejabberd.com">102@ejabberd.com</a>.<br>
        <br>
        Login on sip-communicator with <a class="moz-txt-link-abbreviated" href="mailto:101@kamailio1.com">101@kamailio1.com</a> and on pidgin
        with <a class="moz-txt-link-abbreviated" href="mailto:102@ejabberd.com:">102@ejabberd.com:</a><br>
        <br>
        If sip client-101 want to chat with ejabberd client-102, I must
        add 102 to sip contact list of 101 as:
        <a class="moz-txt-link-abbreviated" href="mailto:102*ejabberd.com@kamailio1.com">102*ejabberd.com@kamailio1.com</a> or <a class="moz-txt-link-abbreviated" href="mailto:102*kamailio1.com@ejabberd.com">102*kamailio1.com@ejabberd.com</a>
        ?<br>
        <br>
        When <a class="moz-txt-link-abbreviated" href="mailto:102@ejabberd.com">102@ejabberd.com</a> want to chat with sip client 101, on the
        buddy list of 102, will we add <a class="moz-txt-link-abbreviated" href="mailto:101*kamailio1.com@ejabberd.com">101*kamailio1.com@ejabberd.com</a> or
        <a class="moz-txt-link-abbreviated" href="mailto:101*ejabberd.com@kamailio1.com">101*ejabberd.com@kamailio1.com</a> ?<br>
        <br>
        How about the role of the local ejabberd server ? how can
        <a class="moz-txt-link-abbreviated" href="mailto:102@ejabberd.com">102@ejabberd.com</a> chat to <a class="moz-txt-link-abbreviated" href="mailto:101@kamailio1.com">101@kamailio1.com</a> or we need add 101 as
        the user of the local ejabberd server ?<br>
        <br>
        <br>
        Thanks in advanced,<br>
        Huy Nguyen </font><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%"><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>
      <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);"><a
              moz-do-not-send="true" href="http://pbxvn.com/forum/"
              target="_blank">http://pbxvn.com/forum/</a><br>
          </div>
        </span></span><font style="" face="Arial"><br>
      </font><font style="" face="Arial"><br>
      </font><br>
      <br>
      <br>
      <br>
      <hr id="stopSpelling">Date: Mon, 30 Aug 2010 12:06:06 +0200<br>
      From: <a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a><br>
      To: <a class="moz-txt-link-abbreviated" href="mailto:huy_quocnguyen@live.com">huy_quocnguyen@live.com</a><br>
      CC: <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
      Subject: Re: [SR-Users] Error when integrate xmpp module to
      Kamailio 3.0.1<br>
      <br>
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1258">
      <meta name="Generator" content="Microsoft SafeHTML">
      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">
        <style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{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
          moz-do-not-send="true" class="ecxmoz-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><fieldset class="ecxmimeAttachmentHeader"></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
      <br>
      <pre class="ecxmoz-signature">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a>
</pre>
      <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>