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

Huy Nguyen huy_quocnguyen at live.com
Mon Aug 30 11:10:46 CEST 2010


Have any suggest for me about this ?


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


From: huy_quocnguyen at live.com
To: sr-users at lists.sip-router.org
Subject: RE: Error when integrate xmpp module to Kamailio 3.0.1
Date: Fri, 27 Aug 2010 17:34:45 +0700








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/

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100830/0c16c58b/attachment.htm>


More information about the sr-users mailing list