<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
ok -- good that it was sorted out with an existing option. Thanks
for reporting back the solution, should help new users facing the
same situation.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 12/02/16 06:36, kevin hifx wrote:<br>
</div>
<blockquote
cite="mid:CACRgjyTMG-_H6VdoPxeS9BF=9ppZYxTGLNL6Ddg3mO4CxL-JSA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hi,<br>
<br>
</div>
<div>The problem is kamailo trying to connect the default port
number 5347. <br>
The ejabbred port number is 5280. <br>
</div>
<div>so I added the following line in configuration file then
the issue resolved. <br>
</div>
<div><br>
" modparam("xmpp", "xmpp_port", 5280) "<br>
<br>
<br>
</div>
<div>Thank you<br>
</div>
<div>kevin <br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Feb 8, 2016 at 1:29 PM,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
<br>
can you run with debug=3 in kamailio.cfg and look at the
log messages? You should get more details about what
happens there.<br>
<br>
Cheers,<br>
Daniel
<div>
<div class="h5"><br>
<br>
<div>On 08/02/16 06:43, kevin hifx wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>Hi Daniel,<br>
<br>
</div>
The kamailio and ejabbred is installed on the
same server and using xmpp and sip client able
to connect.<br>
<br>
<br>
</div>
Thank you<br>
</div>
kevin<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Feb 5, 2016 at
11:04 PM, Daniel-Constantin Mierla <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
<br>
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?<br>
<br>
Cheers,<br>
Daniel
<div>
<div><br>
<br>
<br>
<div>On 05/02/16 07:37, kevin hifx
wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<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
moz-do-not-send="true"
href="http://www.kamailio.org/docs/modules/4.1.x/modules/xmpp.html"
target="_blank"><a class="moz-txt-link-freetext" 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></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 moz-do-not-send="true"
href="http://sip-xmpp.kevin.org"
target="_blank">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 moz-do-not-send="true"
href="http://sip-xmpp.kevin.org"
target="_blank">sip-xmpp.kevin.org</a>")<br>
modparam("xmpp", "xmpp_domain", "<a
moz-do-not-send="true"
href="http://xmpp-sip.kevin.org"
target="_blank">xmpp-sip.kevin.org</a>")<br>
modparam("xmpp", "xmpp_host", "<a
moz-do-not-send="true"
href="http://xmpp.kevin.org"
target="_blank">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>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span><font color="#888888">
</font></span></pre>
<span><font color="#888888"> </font></span></blockquote>
<span><font color="#888888"> <br>
<pre cols="72">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://miconda.eu" target="_blank">http://miconda.eu</a></pre>
</font></span></div>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio
(OpenSER) - sr-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org"
target="_blank">sr-users@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://miconda.eu" target="_blank">http://miconda.eu</a></pre>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://miconda.eu">http://miconda.eu</a></pre>
</body>
</html>