Dear Sir,

Thank you for the response,

And now 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:.+@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:.+@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 ?

Both the servers(kamailio and jabberd) are working fine as alone , but the
problem is with Integration. 

And regarding File transfer feature in kamailio, is there any other ways to
get through, between two soft clients (either SIP or XMPP)?

Regards,
Nandini



--
View this message in context: 
http://sip-router.1086192.n5.nabble.com/File-transfer-using-Kamailio-tp120695p121055.html
Sent from the Users mailing list archive at Nabble.com.

_______________________________________________
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

Reply via email to