[SR-Users] Error when integrate xmpp module to Kamailio 3.0.1

Huy Nguyen huy_quocnguyen at live.com
Mon Aug 30 14:18:38 CEST 2010


Hi Daniel,

Thanks so much for your help.

Maybe I still don't understand clearly yet about the scenario to test with this module (component mode):

I install Kamailio and local ejabberd on server 192.168.1.25 with the same domain: kamailio1.com.

I also have another ejabberd server for test with domain ejabberd.com (192.168.1.26).

modparam("xmpp", "gateway_domain", "kamailio1.com")
modparam("xmpp", "xmpp_domain", "kamailio1.com")
modparam("xmpp", "xmpp_host", "192.168.1.25")
modparam("xmpp", "backend", "component")
modparam("xmpp", "xmpp_password", "secret")
modparam("xmpp", "domain_separator", "*")
modparam("xmpp", "xmpp_port", 5347)


With the guide as below:
"The
 address of the XMPP(jabber) client looks like this: 
"sip:username<domain_separator>jabber_server at gateway_domain". The 
address of a SIP client has the following pattern : 
"sip_username<domain_separator>openser_domain at xmpp_domain".  "

I have one sip client: 101 at kamailio1.com and one xmpp client: 102 at ejabberd.com.

Login on sip-communicator with 101 at kamailio1.com and on pidgin with 102 at ejabberd.com:

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 at kamailio1.com or 102*kamailio1.com at ejabberd.com ?

When 102 at ejabberd.com want to chat with sip client 101, on the buddy list of 102, will we add 101*kamailio1.com at ejabberd.com or 101*ejabberd.com at kamailio1.com ?

How about the role of the local ejabberd server ? how can 102 at ejabberd.com chat to 101 at kamailio1.com or we need add 101 as the user of the local ejabberd server ?


Thanks in advanced,
Huy Nguyen 
www.htk-inc.com
http://pbxvn.com/forum/






Date: Mon, 30 Aug 2010 12:06:06 +0200
From: miconda at gmail.com
To: huy_quocnguyen at live.com
CC: sr-users at lists.sip-router.org
Subject: Re: [SR-Users] Error when integrate xmpp module to Kamailio 3.0.1



  


    
  
  
    Hello,

    

    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.

    

    Cheers,

    Daniel

    

    On 8/27/10 12:34 PM, Huy Nguyen wrote:
    
      
      Hi all,

      

      I have just changed some things on the config of kamailio:

      

      # ---- xmpp ----

      modparam("xmpp", "gateway_domain", "sip-xmpp.kamailio1.com")

      modparam("xmpp", "xmpp_domain", "xmpp-sip.kamailio1.com")

      modparam("xmpp", "xmpp_host", "xmpp.kamailio1.com")

      modparam("xmpp", "backend", "component")

      modparam("xmpp", "xmpp_password", "secret")

      modparam("xmpp", "domain_separator", "*")

      modparam("xmpp", "xmpp_port", 5347)

      ........................

      

       if (method == "MESSAGE") {

                      log("*** xmpp-handled MESSAGE message.\n");

                      if($ct=~"text/plain") {

                              if (xmpp_send_message()) {

                                      sl_send_reply("200", "Accepted");

                              } else {

                                      sl_send_reply("404", "Not found");

                              }

                              return;

                      }

              }

      

      And ejabberd:

      

      {hosts, ["xmpp.kamailio1.com"]}.

      

      {5347, ejabberd_service, [

                                 {access, all},

                                 {shaper_rule, fast},

                                 {ip, {192, 168, 1, 21}},

                                 {hosts, ["xmpp.kamailio1.com"],
      [{password, "secret"}]}

                                 ]},

      

      Register with sip client: 103*sip.kamailio1.com, cal the buddy
      102*xmpp.kamailio1.com at sip.kamailio1.com. 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.

      

      Anyone have any suggest for me about this problem?  or detect any
      wrong in my configuration. I think I missed some things on it.

      

      P/S: I installed powerdns on server 192.168.1.26, and config as
      below:

      

      - sip.kamailio1.com   192.168.1.25

      - sip-xmpp.kamailio1.com  192.168.1.25

      - xmpp-sip.kamailio1.com  192.168.1.25

      - xmpp.kamailio1.com  192.168.1.21

      

      The sip_trace is in attached file.

      

      Thanks for your help,

      Huy Nguyen

          
      
      
          HTK-INC
            Co.,Ltd

            www.htk-inc.com

            http://pbxvn.com/forum/

          
        

      
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users at lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

    
    

    -- 
Daniel-Constantin Mierla
http://www.asipto.com/
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100830/08868874/attachment-0001.htm>


More information about the sr-users mailing list