Hi, The problem is kamailo trying to connect the default port number 5347. The ejabbred port number is 5280. so I added the following line in configuration file then the issue resolved.
" modparam("xmpp", "xmpp_port", 5280) " Thank you kevin On Mon, Feb 8, 2016 at 1:29 PM, Daniel-Constantin Mierla <mico...@gmail.com> wrote: > Hello, > > can you run with debug=3 in kamailio.cfg and look at the log messages? You > should get more details about what happens there. > > Cheers, > Daniel > > > On 08/02/16 06:43, kevin hifx wrote: > > Hi Daniel, > > The kamailio and ejabbred is installed on the same server and using xmpp > and sip client able to connect. > > > Thank you > kevin > > On Fri, Feb 5, 2016 at 11:04 PM, Daniel-Constantin Mierla < > <mico...@gmail.com>mico...@gmail.com> wrote: > >> Hello, >> >> the error message tells that the module cannot connect to the xmpp >> server. Is the xmpp server started and listening on the right port and >> network interface? >> >> Cheers, >> Daniel >> >> >> >> On 05/02/16 07:37, kevin hifx wrote: >> >> Dear friends, >> >> I am facing an issue, when trying to configure xmpp gateway between >> kamailio and ejabbred xmpp server. >> >> I have followed the steps mention in this web site: >> http://www.kamailio.org/docs/modules/4.1.x/modules/xmpp.html >> >> The kamailio service is running but in the log file it show that xmpp >> connection failed. >> >> "*Feb 5 11:32:33 sip-xmpp-server /usr/sbin/kamailio[646]: ERROR: xmpp >> [network.c:122]: net_connect(): connect() failed: Connection refused* " >> >> (Both kamailio and ejabbred installed on the same server in local network >> and have local DNS server) >> >> I have added following entries in the kamailio configuration file. I am >> only mentioning the xmpp section. >> >> >> " >> ####### Global Parameters ######### >> >> alias=sip-xmpp.kevin.org >> >> ####### Modules Section ######## >> #!ifdef WITH_MYSQL >> loadmodule "db_mysql.so" >> #!endif >> >> loadmodule "mi_fifo.so" >> loadmodule "kex.so" >> loadmodule "corex.so" >> loadmodule "tm.so" >> loadmodule "tmx.so" >> loadmodule "sl.so" >> loadmodule "rr.so" >> loadmodule "pv.so" >> loadmodule "maxfwd.so" >> loadmodule "usrloc.so" >> loadmodule "registrar.so" >> loadmodule "textops.so" >> loadmodule "siputils.so" >> loadmodule "xlog.so" >> loadmodule "sanity.so" >> loadmodule "ctl.so" >> loadmodule "cfg_rpc.so" >> loadmodule "mi_rpc.so" >> loadmodule "acc.so" >> >> # XMPP >> loadmodule "xmpp.so" >> >> # ----------------- setting module-specific parameters --------------- >> >> modparam("mi_fifo", "fifo_name", "/var/run/kamailio/kamailio_fifo") >> >> modparam("rr", "enable_full_lr", 1) >> >> # XMPP >> modparam("xmpp", "domain_separator", "*") >> modparam("xmpp", "gateway_domain", "sip-xmpp.kevin.org") >> modparam("xmpp", "xmpp_domain", "xmpp-sip.kevin.org") >> modparam("xmpp", "xmpp_host", "xmpp.kevin.org") >> >> >> >> ###############XMPP >> # initial sanity checks -- messages with >> # max_forwards==0, or excessively long requests >> if (!mf_process_maxfwd_header("10")) { >> sl_send_reply("483","Too Many Hops"); >> exit; >> }; >> >> if (msg:len >= 2048 ) { >> sl_send_reply("513", "Message too big"); >> exit; >> }; >> >> ### absorb retransmissions ### >> if (!t_newtran()) { >> sl_reply_error(); >> return; >> } >> if (method == "MESSAGE") { >> log("*** xmpp-handled MESSAGE message.\n"); >> if (xmpp_send_message()) { >> t_reply("200", "Accepted"); >> } else { >> t_reply("404", "Not found"); >> } >> return; >> } >> >> log("*** xmpp: unhandled message type\n"); >> t_reply("503", "Service unavailable"); >> return; >> ############### >> >> " >> could you please help me solve this issue. >> >> >> >> Thank you >> kevin >> >> >> >> _______________________________________________ >> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing >> listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >> >> >> -- >> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - >> http://www.linkedin.com/in/miconda >> Book: SIP Routing With Kamailio - http://www.asipto.comhttp://miconda.eu >> >> >> _______________________________________________ >> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list >> sr-users@lists.sip-router.org >> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >> >> > > -- > Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - > http://www.linkedin.com/in/miconda > Book: SIP Routing With Kamailio - http://www.asipto.comhttp://miconda.eu > >
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users