<div dir="ltr"><div><div><div><div><div>Dear friends,<br><br></div>I am facing an issue, when trying to configure xmpp gateway between kamailio and ejabbred xmpp server. <br><br></div>I have followed the steps mention in this web site: <a href="http://www.kamailio.org/docs/modules/4.1.x/modules/xmpp.html">http://www.kamailio.org/docs/modules/4.1.x/modules/xmpp.html</a><br><br></div>The kamailio service is running but in the log file it show that xmpp connection failed.<br><br>"<b>Feb  5 11:32:33 sip-xmpp-server /usr/sbin/kamailio[646]: ERROR: xmpp [network.c:122]: net_connect(): connect() failed: Connection refused</b> "<br><br>(Both kamailio and ejabbred installed on the same server in local network and have local DNS server)<br><br></div>I have added following entries in the kamailio configuration file. I am only mentioning the xmpp section. <br><br></div><br><div>"<br>####### Global Parameters #########<br><br>alias=<a href="http://sip-xmpp.kevin.org">sip-xmpp.kevin.org</a><br><br>####### Modules Section ########<br>#!ifdef WITH_MYSQL<br>loadmodule "db_mysql.so"<br>#!endif<br><br>loadmodule "mi_fifo.so"<br>loadmodule "kex.so"<br>loadmodule "corex.so"<br>loadmodule "tm.so"<br>loadmodule "tmx.so"<br>loadmodule "sl.so"<br>loadmodule "rr.so"<br>loadmodule "pv.so"<br>loadmodule "maxfwd.so"<br>loadmodule "usrloc.so"<br>loadmodule "registrar.so"<br>loadmodule "textops.so"<br>loadmodule "siputils.so"<br>loadmodule "xlog.so"<br>loadmodule "sanity.so"<br>loadmodule "ctl.so"<br>loadmodule "cfg_rpc.so"<br>loadmodule "mi_rpc.so"<br>loadmodule "acc.so"<br><br># XMPP<br>loadmodule "xmpp.so"<br><br># ----------------- setting module-specific parameters ---------------<br><br>modparam("mi_fifo", "fifo_name", "/var/run/kamailio/kamailio_fifo")<br><br>modparam("rr", "enable_full_lr", 1)<br><br># XMPP<br>modparam("xmpp", "domain_separator", "*")<br>modparam("xmpp", "gateway_domain", "<a href="http://sip-xmpp.kevin.org">sip-xmpp.kevin.org</a>")<br>modparam("xmpp", "xmpp_domain", "<a href="http://xmpp-sip.kevin.org">xmpp-sip.kevin.org</a>")<br>modparam("xmpp", "xmpp_host", "<a href="http://xmpp.kevin.org">xmpp.kevin.org</a>")<br><br><br><br>###############XMPP<br># initial sanity checks -- messages with<br>        # max_forwards==0, or excessively long requests<br>        if (!mf_process_maxfwd_header("10")) {<br>                sl_send_reply("483","Too Many Hops");<br>                exit;<br>        };<br><br>        if (msg:len >=  2048 ) {<br>                sl_send_reply("513", "Message too big");<br>                exit;<br>        };<br><br>        ### absorb retransmissions ###<br>        if (!t_newtran()) {<br>                sl_reply_error();<br>                return;<br>        }<br>        if (method == "MESSAGE") {<br>                log("*** xmpp-handled MESSAGE message.\n");<br>                if (xmpp_send_message()) {<br>                        t_reply("200", "Accepted");<br>                } else {<br>                        t_reply("404", "Not found");<br>                }<br>                return;<br>        }<br><br>        log("*** xmpp: unhandled message type\n");<br>        t_reply("503", "Service unavailable");<br>        return;<br>###############<br><br>"<br><div>could you please help me solve this issue.<br><br><br><br></div><div>Thank you<br></div><div>kevin<br></div><div><br></div></div></div>