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

Quốc Huy Nguyễn huy_quocnguyen at live.com
Thu Aug 26 10:27:57 CEST 2010


Hi all,

I have some problem when integrate module xmpp to Kamailio 3.0.1. I have already searched on google and mailing-list but can't find the right way to fix it. 

I install Kamailio 3.0.1 on server 192.168.1.25 (kamailio1.com), Ejabberd on server 192.168.1.21 (ejabberd.com).

Here the config of kamailio1 server:

# ---- xmpp ----
modparam("xmpp", "gateway_domain", "kamailio1.com")
modparam("xmpp", "xmpp_domain", "ejabberd.com")
modparam("xmpp", "xmpp_host", "ejabberd.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 (xmpp_send_message()) {
                        sl_send_reply("200", "Accepted");
                } else {
                        sl_send_reply("404", "Not found");
                }
                return;
        }

        log("*** xmpp: unhandled message type\n");
        sl_send_reply("503", "Service unavailable");
        return;

Here the config of ejabberd server:

  {5347, ejabberd_service, [
                           {access, all},
                           {shaper_rule, fast},
                           {ip, {192, 168, 1, 21}},
                           {hosts, ["kamailio1.com"], [{password, "secret"}]}
                           ]},

I create 1 user on kamailio1 server: 103 at kamailio1.com

And 1 user on ejabberd.com: 102 at ejabberd.com


Test:

- Login with account 103 at kamailio1.com on sip communicator. Add 102*ejabberd.com at kamailio1.com on the sip contact list.

- Login with account 102 at ejabberd.com on pidgin. Add 103*kamailio1.com at ejabberd.com on the buddy list.

- When 103 at kamailio1.com chat to 102*ejabbed.com at kamailio1.com, kamailio1 can't send MESSAGE to ejabberd.com, and here the log on kamailio1 server:

/usr/local/sbin/kamailio[4470]: ERROR: xmpp [xmpp.c:362]: invalid content-type 0x300ff
/usr/local/sbin/kamailio[4463]: ERROR: xmpp [xmpp.c:362]: invalid content-type 0x300ff
/usr/local/sbin/kamailio[4468]: ERROR: xmpp [xmpp.c:362]: invalid content-type 0x300ff
/usr/local/sbin/kamailio[4470]: ERROR: xmpp [xmpp.c:362]: invalid content-type 0x300ff
/usr/local/sbin/kamailio[4468]: ERROR: xmpp [xmpp.c:362]: invalid content-type 0x300ff
/usr/local/sbin/kamailio[4468]: ERROR: xmpp [xmpp.c:362]: invalid content-type 0x300ff
/usr/local/sbin/kamailio[4470]: ERROR: xmpp [xmpp.c:362]: invalid content-type 0x300ff
/usr/local/sbin/kamailio[4462]: ERROR: xmpp [xmpp.c:362]: invalid content-type 0x300ff

I think I had some wrong or miss something  in the configuration of kamailio and ejabberd, please help me to check it.

P/S: I also sent the sip trace on the attached file. In the sip trace file, the ip of sip client is 192.168.1.65, and the ip of pidgin client is 192.168.1.11

Thanks and Best Regards,
Huy Nguyen



Nguyễn Quốc Huy

Post & Telecommunications Institute and Technology
branch Ho Chi Minh City
--------------------------------------------------

Email:   huy_quocnguyen at live.com

Mobile: +84 906755226

Y!M:     huy_quocnguyen1987



 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100826/c4f8e57e/attachment-0001.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sip_trace.txt
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100826/c4f8e57e/attachment-0001.txt>


More information about the sr-users mailing list