Dear All,
I am working on XMPP module of kamailio server (V-4.0.2), intended to
achieve File transfer, IM features.
Firstly my Kamailio and Jabberd2 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, File transfer functions for Jabberd clients.
But when i integrate both the servers by using xmpp module, i can only send
messages to SIP clients from XMPP client (one way) but i cannot send
messages to xmpp clients from SIP clients.
Off course the *presence is not sharing* between these SIP and XMPP clients.
My clients URI and JID syntax are looking like this:
---> SIP client (registered to kamailio server):
*112@sip_domain*
---> XMPP client (registered to Jabberd server):
* 114*sip_domain@jabber_server *(Is this syntax is correct?)
And in SIP client contact list ,added an XMPP user which look like this:
*sip:114*sip_domain*jabber_server@gateway_domain *
In XMPP clients buddy list, added a SIP client which looks like this:
* 112*sip_domain@xmpp_domain*
Is the above syntaxes are correct ?
Following are my working domain names(for your reference):
sip_domain ---> kamailio.kamailio.test
xmpp_server host ---> xmpp.kamailio.test
gateway_domain ---> sip-xmpp.kamailio.test
xmpp_domain ---> xmpp-sip.kamailio.test.
And my syslog is giving the errors like this:
Oct 1 18:40:57 kamailio /usr/local/sbin/kamailio[18710]: INFO: pua_usrloc
[ul_publish.c:221]: ul_publish(): not marked for publish
Oct 1 18:41:21 kamailio /usr/local/sbin/kamailio[18714]: ERROR: db_mysql
[km_dbase.c:122]: db_mysql_submit_query(): driver error on query: Duplicate
entry '112-kamailio.kamailio.test-presence-*#-OFFLINE-#*' for key
'presentity_idx'
Oct 1 18:41:21 kamailio /usr/local/sbin/kamailio[18714]: ERROR: <core>
[db_query.c:337]: db_do_update(): error while submitting query
Oct 1 18:41:21 kamailio /usr/local/sbin/kamailio[18714]: ERROR: presence
[presentity.c:1281]: mark_presentity_for_delete(): unsuccessful sql update
operation
Oct 1 18:41:21 kamailio /usr/local/sbin/kamailio[18714]: ERROR: presence
[publish.c:171]: msg_presentity_clean(): Marking presentity
Oct 1 18:41:21 kamailio /usr/local/sbin/kamailio[18723]: INFO: presence
[notify.c:1601]: send_notify_request(): NOTIFY
sip:114*kamailio.kamailio.test*xmpp.kamailio.test@sip-xmpp.kamailio.testvia
sip:114*kamailio.kamailio.test*xmpp.kamailio.test@sip-xmpp.kamailio.teston
behalf of sip:112@kamailio.kamailio.testfor event presence.
Please below find the attachment of my kamailio configuration file.
What could be the wrong ?
How can i solve this issue ?
And why the presence is not visible between the clients even after
integrated pua_xmpp module in script ?
PS: set-up credentials are : XMPP client ---> pidgin
SIP client ---> Jitsi
Any help will greatly appreciate.
Regards,
Nandini