<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<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 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: 
"sip:username&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>&nbsp; "<br><font style="" face="Arial"><br>I have one sip client: 101@kamailio1.com and one xmpp client: 102@ejabberd.com.<br><br>Login on sip-communicator with 101@kamailio1.com and on pidgin with 102@ejabberd.com:<br><br>If sip client-101 want to chat with ejabberd client-102, I must add 102 to sip contact list of 101 as: 102*ejabberd.com@kamailio1.com or 102*kamailio1.com@ejabberd.com ?<br><br>When 102@ejabberd.com want to chat with sip client 101, on the buddy list of 102, will we add 101*kamailio1.com@ejabberd.com or 101*ejabberd.com@kamailio1.com ?<br><br>How about the role of the local ejabberd server ? how can 102@ejabberd.com chat to 101@kamailio1.com 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%"><font style="" color="#e36c09" face="Arial"><b></b></font><hr size="2" width="100%"><a 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 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: miconda@gmail.com<br>To: huy_quocnguyen@live.com<br>CC: sr-users@lists.sip-router.org<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=unicode">
<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>
      &nbsp;if (method == "MESSAGE") {<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log("*** xmpp-handled MESSAGE message.\n");<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if($ct=~"text/plain") {<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (xmpp_send_message()) {<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply("200", "Accepted");<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else {<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply("404", "Not found");<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
      <br>
      And ejabberd:<br>
      <br>
      {hosts, ["xmpp.kamailio1.com"]}.<br>
      <br>
      {5347, ejabberd_service, [<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {access, all},<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {shaper_rule, fast},<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ip, {192, 168, 1, 21}},<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {hosts, ["xmpp.kamailio1.com"],
      [{password, "secret"}]}<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]},<br>
      <br>
      Register with sip client: 103*sip.kamailio1.com, cal the buddy
      <a 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?&nbsp; 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&nbsp;&nbsp; 192.168.1.25<br>
      - sip-xmpp.kamailio1.com&nbsp; 192.168.1.25<br>
      - xmpp-sip.kamailio1.com&nbsp; 192.168.1.25<br>
      - xmpp.kamailio1.com&nbsp; 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 href="http://www.htk-inc.com/" style="color: rgb(42, 93, 176);" target="_blank">www.htk-inc.com</a><br>
            <a href="http://pbxvn.com/forum/" target="_blank">http://pbxvn.com/forum/</a><br>
          </div>
        </span></span><br>
      <pre><fieldset class="ecxmimeAttachmentHeader"></fieldset><br>_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br><a class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br><a 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><br></pre>
    </blockquote>
    <br>
    <pre class="ecxmoz-signature">-- <br>Daniel-Constantin Mierla<br><a class="ecxmoz-txt-link-freetext" href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a><br></pre>                                               </body>
</html>