Hi,
Has anyone managed to integrate Kamailio and Jabberd to support presence and messaging functions (XMPP). I've tried to setup based on notes and emails that I found online, but still could'nt make it work. I appreciate if someone can share their configuration or give me a link.
Thanks, sho
It would be helpful if you could expound in additional on what exactly you tried and what did not work for you.
On 09/16/2010 09:58 PM, shoks wrote:
On Fri, Sep 17, 2010 at 10:10 AM, Alex Balashov abalashov@evaristesys.comwrote:
It would be helpful if you could expound in additional on what exactly you tried and what did not work for you.
First off, the Kamailio and Jabberd servers are on the same machine. I managed to separately make them work. Call setup between SIP clients is working and so with messaging/presence functions for Jabberd clients. Currently I have two groups of users, one group for SIP and one for Jabberd. What I want to achieve is that when a SIP client successfully register to Kamailio, its presence information will be also propagated to Jabberd. This allows online Jabberd clients to see registered SIP clients and be able to exchange messages. All SIP clients supports presence, currently I am using Ekiga and X-lite.
I tried to use pua_xmpp and other modules as described in their man pages. Attach is my configuration. Using Ekiga, it got OK for SUBSCRIBE and PUBLISH. However, I could not see any connection attempt to Jabberd (with debugging turned on). Or should I see this? Will this messages trigger Kamailio (via pua_xmpp, xmpp, etc modules) to communicate to Jabberd? Do I have to create an account in Jabberd for each SIP clients?
Thanks
On 9/17/10 5:48 AM, shoks wrote:
have you run kamailio with debug=4, any log messages from *xmpp modules that shows what happens?
Cheers, Daniel
On Fri, Sep 17, 2010 at 6:32 PM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
I tried to add few debugging lines in pua_xmpp, pua and xmpp modules (and re-built) just to see where the problem is. The logs created when I launch the SIP client (now I'm using Twinkle, with user "10001" added to its contact list) are these:
--- Sep 17 07:31:20 sls-ab2p8 /usr/local/sbin/kamailio[87470]: ERROR: <script>: Client is behind NAT Sep 17 07:31:20 sls-ab2p8 /usr/local/sbin/kamailio[87471]: ERROR: <script>: Client is behind NAT Sep 17 07:31:21 sls-ab2p8 /usr/local/sbin/kamailio[87470]: ERROR: <script>: Client is behind NAT Sep 17 07:31:21 sls-ab2p8 /usr/local/sbin/kamailio[87471]: ERROR: <script>: Client is behind NAT Sep 17 07:31:23 sls-ab2p8 /usr/local/sbin/kamailio[87470]: ERROR: <script>: Client is behind NAT Sep 17 07:31:24 sls-ab2p8 /usr/local/sbin/kamailio[87471]: ERROR: <script>: Client is behind NAT Sep 17 07:31:24 sls-ab2p8 /usr/local/sbin/kamailio[87470]: ERROR: <script>: Client is behind NAT Sep 17 07:31:24 sls-ab2p8 /usr/local/sbin/kamailio[87470]: ERROR: <script>: processing PUBLISH ... Sep 17 07:31:24 sls-ab2p8 postgres[87474]: [2-1] WARNING: nonstandard use of \ in a string literal at character 164 Sep 17 07:31:24 sls-ab2p8 postgres[87474]: [2-2] HINT: Use the escape string syntax for backslashes, e.g., E'\'. Sep 17 07:31:24 sls-ab2p8 /usr/local/sbin/kamailio[87471]: ERROR: <script>: Client is behind NAT Sep 17 07:31:24 sls-ab2p8 /usr/local/sbin/kamailio[87471]: ERROR: <script>: processing SUBSCRIBE ... Sep 17 07:31:24 sls-ab2p8 /usr/local/sbin/kamailio[87471]: ERROR: <script>: calling pua_xmpp_req_winfo() Sep 17 07:31:24 sls-ab2p8 /usr/local/sbin/kamailio[87471]: ERROR: pua_xmpp [request_winfo.c:50]: entering request_winfo() Sep 17 07:31:24 sls-ab2p8 /usr/local/sbin/kamailio[87471]: ERROR: pua_xmpp [request_winfo.c:79]: uri= sip:10001@myserver.xyz.comsip%3A10001@myserver.xyz.com : Sep 17 07:31:24 sls-ab2p8 /usr/local/sbin/kamailio[87471]: ERROR: pua_xmpp [request_winfo.c:89]: server_address= sip:myserver.xyz.com: Sep 17 07:31:24 sls-ab2p8 /usr/local/sbin/kamailio[87471]: ERROR: pua [send_subscribe.c:818]: entering send_subscribe() Sep 17 07:31:24 sls-ab2p8 /usr/local/sbin/kamailio[87471]: ERROR: pua [send_subscribe.c:54]: pres_uri= sip:10001@myserver.xyz.comsip%3A10001@myserver.xyz.com- len: 27 Sep 17 07:31:24 sls-ab2p8 /usr/local/sbin/kamailio[87471]: ERROR: pua [send_subscribe.c:57]: watcher_uri= sip:10001@myserver.xyz.comsip%3A10001@myserver.xyz.com- len: 27 Sep 17 07:31:24 sls-ab2p8 /usr/local/sbin/kamailio[87471]: ERROR: pua [send_subscribe.c:864]: presentity is NULL Sep 17 07:31:24 sls-ab2p8 /usr/local/sbin/kamailio[87471]: ERROR: pua [send_subscribe.c:1004]: exiting send_subscribe() Sep 17 07:32:19 sls-ab2p8 /usr/local/sbin/kamailio[87471]: ERROR: <script>: Client is behind NAT Sep 17 07:32:19 sls-ab2p8 /usr/local/sbin/kamailio[87470]: ERROR: <script>: Client is behind NAT Sep 17 07:32:19 sls-ab2p8 /usr/local/sbin/kamailio[87470]: ERROR: <script>: processing SUBSCRIBE ... Sep 17 07:32:19 sls-ab2p8 /usr/local/sbin/kamailio[87471]: ERROR: <script>: Client is behind NAT Sep 17 07:32:19 sls-ab2p8 /usr/local/sbin/kamailio[87471]: ERROR: <script>: processing PUBLISH ...
---
Btw, my system is FreeBSD 7.3. I am using Kamailio 3.0.3. Database is PostgreSQL.
Thanks