[SR-Users] XMPP issue
Nandini madhu
sermj2012 at gmail.com
Thu Aug 29 11:42:47 CEST 2013
Dear All,
I am working on XMPP module of kamailio(4.0.2) server along with Jabberd2
xmpp server (as recommended in XMPP module's README).
I was successful in setting-up Jabberd sever and i can transfer files
through it (using Jitsi's XMPP clients) as a standalone xmpp server.
But the problem is when trying to integrate this jabberd2 server with my
kamailio server.
*Problem*:
After starting Kamailio sever, Syslog is given the error as follows:
Aug 28 19:45:14 kamailio /usr/local/sbin/kamailio[
19648]: ERROR: xmpp [network.c:110]: net_connect(): resolving
xmpp.example.com failed (Unknown host).
And XMPP related Configuration in Kamailio.cfg is as follows:
# ----- XMPP -----
#!ifdef WITH_XMPP
modparam("xmpp", "backend", "component")
modparam("xmpp", "domain_separator", "*")
modparam("xmpp", "gateway_domain", "192.168.2.41")
modparam("xmpp", "xmpp_domain", "192.168.2.41")
modparam("xmpp", "xmpp_host", "192.168.2.41")
modparam("xmpp", "xmpp_port", 5347)
modparam("xmpp", "xmpp_password", "xmpp")
modparam("xmpp", "outbound_proxy", "sip:192.168.2.41;transport=tcp")
modparam("xmpp", "gwmap", "192.168.2.41")
modparam("presence", "db_url", "mysql://kamailio:kamailiorw@kamailio
/kamailio")
modparam("usrloc", "db_url", "mysql://kamailio:kamailiorw@kamailio
/kamailio")
modparam("pua", "db_url", "mysql://kamailio:kamailiorw@kamailio/kamailio")
modparam("pua", "db_table", "pua")
modparam("presence_xml", "db_url", "mysql://kamailio:kamailiorw@kamailio
/kamailio")
#modparam("presence_xml", "integrated_xcap_server", 1)
modparam("presence", "max_expires", 3600)
modparam("presence", "server_address", "sip:192.168.2.41:5060")
modparam("pua_xmpp", "server_address", "sip:192.168.2.41")
#!endif
#-----XMPP----
# Presence server route
route[PRESENCE]
#!ifdef WITH_XMPP
# if ($rd =="192.168.2.41") {
if (!t_newtran())
{
sl_reply_error();
exit;
};
};
# if( is_method("NOTIFY") && uri=~"sip:.+ at 192.168.2.41")
if( is_method("NOTIFY"))
{
xlog("processing NOTIFY...\n");
pua_xmpp_notify();
t_reply("200", "OK");
exit;
}
if(is_method("PUBLISH"))
{
xlog("processing PUBLISH ...\n");
if($hdr(Sender)!= $null)
{
xlog("Sender header found.\n");
}
handle_publish();
t_release();
}
else
if( is_method("SUBSCRIBE"))
{
xlog("processing SUBSCRIBE ...\n");
handle_subscribe();
if( uri=~"sip:.+ at 192.168.2.41" && $hdr(Event)== "presence")
{
xlog("calling pua_xmpp_req_winfo()\n");
pua_xmpp_req_winfo("$ruri", "$hdr(Expires)");
}
t_release();
}
exit;
#!endif
What could be the wrong with this ?
And regarding *File transfer *feature in kamailio, is there any other ways
to get through?
Any help will greatly appreciate.
Regards,
Nandini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130829/94480c56/attachment-0001.html>
More information about the sr-users
mailing list