<div dir="ltr"><div><div><div><div><div><div><div>Dear All,<br><br>I am working on XMPP module of kamailio server (V-4.0.2), intended to achieve File transfer, IM features.  <br></div><br>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. <br>
</div>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. <br></div>Off course the <b>presence is not sharing</b> between these SIP and XMPP clients.<br>
<br></div>My clients URI and JID syntax are looking like this:<br><br></div>---> SIP client (registered to kamailio server):<br></div>      <b>112@sip_domain</b><br><br></div><div>---> XMPP client (registered to Jabberd server):<br>
</div><div>   <b>   114*sip_domain@jabber_server </b>(Is this syntax is correct?)<br><br>And in SIP client contact list ,added an XMPP user which look like this:<br></div><div><b>sip:114*sip_domain*jabber_server@gateway_domain  </b>   <br>
<br></div><div>In XMPP clients buddy list, added a SIP client which looks like this: <br></div><div> <b>    112*sip_domain@xmpp_domain</b><br><br>Is the above syntaxes are correct ?<br><br></div><div>Following are my working domain names(for your reference):<br>
</div><div>sip_domain           ---> kamailio.kamailio.test<br></div><div>xmpp_server host ---> xmpp.kamailio.test<br></div><div>gateway_domain   ---> sip-xmpp.kamailio.test<br></div><div>xmpp_domain       ---> xmpp-sip.kamailio.test.<br>
</div><div><br><br></div><div>And my syslog is giving the errors like this:<br></div><div><br>Oct  1 18:40:57 kamailio /usr/local/sbin/kamailio[18710]: INFO: pua_usrloc [ul_publish.c:221]: ul_publish(): not marked for publish<br>
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'<br>
Oct  1 18:41:21 kamailio /usr/local/sbin/kamailio[18714]: ERROR: <core> [db_query.c:337]: db_do_update(): error while submitting query<br>Oct  1 18:41:21 kamailio /usr/local/sbin/kamailio[18714]: ERROR: presence [presentity.c:1281]: mark_presentity_for_delete(): unsuccessful sql update operation<br>
Oct  1 18:41:21 kamailio /usr/local/sbin/kamailio[18714]: ERROR: presence [publish.c:171]: msg_presentity_clean(): Marking presentity<br>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.test via sip:114*kamailio.kamailio.test*xmpp.kamailio.test@sip-xmpp.kamailio.test on behalf of sip:112@kamailio.kamailio.test for event presence.<br>
<br></div><div>Please below find the attachment of my kamailio configuration file.<br><br></div><div>What could be the wrong ?<br> How can i solve this issue ?<br> And why the presence is not visible between the clients even after integrated pua_xmpp module in script ?<br>
<br></div><div>PS: set-up credentials are : XMPP client  ---> pidgin<br></div><div>                                         SIP client      ---> Jitsi <br></div><div><br></div><div>Any help will greatly appreciate.<br>
<br></div><div>Regards,<br></div><div>Nandini<br></div></div>