Hello everyone.<br>I am a student at University of Žilina (Faculty of Management Science and Informatics), which has been recently awarded Kamailio 2010 Awards for various articles about SIP and KAMAILIO on portal <a href="http://nil.uniza.sk">nil.uniza.sk</a>.<br>
I am doing a bachelor thesis on topic SIP/SIMPLE - XMPP traversal, but I am experiencing some problems.<br>I have a working Kamailio server serving domain <a href="http://sip.uniza.sk">sip.uniza.sk</a> and a working Jabberd2 server serving domain <a href="http://xmpp.uniza.sk">xmpp.uniza.sk</a>.<br>
I am running Kamailio 3.1 with XMPP module with following configuration:<br><br>fork=yes<br>children=4<br>log_stderror=yes<br>alias=&quot;<a href="http://sip.uniza.sk">sip.uniza.sk</a>&quot;<br>...<br>loadmodule &quot;XMPP.so&quot;<br>
...<br>modparam(&quot;xmpp&quot;, &quot;backend&quot;, &quot;component&quot;)<br>modparam(&quot;xmpp&quot;, &quot;domain_separator&quot;, &quot;*&quot;)<br>modparam(&quot;xmpp&quot;, &quot;gateway_domain&quot;, &quot;<a href="http://sip.uniza.sk">sip.uniza.sk</a>&quot;)<br>
modparam(&quot;xmpp&quot;, &quot;xmpp_domain&quot;, &quot;<a href="http://xmpp-sip.uniza.sk">xmpp-sip.uniza.sk</a>&quot;)<br>modparam(&quot;xmpp&quot;, &quot;xmpp_host&quot;, &quot;<a href="http://server.xmpp.uniza.sk">server.xmpp.uniza.sk</a>&quot;)<br>
modparam(&quot;xmpp&quot;, &quot;xmpp_password&quot;, &quot;secret&quot;)<br>...<br>#main routing logic<br>route {<br>...<br> if( uri=~&quot;sip:.+[*].+@<a href="http://sip.uniza.sk">sip.uniza.sk</a>&quot;)<br>        {<br>
                # absorb retransmissions ###<br>                if (!t_newtran())<br>                {<br>                        sl_reply_error();<br>                        return;<br>                }<br>                if (method == &quot;MESSAGE&quot;)<br>
                {<br>                        log(&quot;*** xmpp-handled MESSAGE message.\n&quot;);<br>                        if (xmpp_send_message())<br>                        {<br>                                t_reply(&quot;200&quot;, &quot;Accepted&quot;);<br>
                        } else<br>                        {<br>                                t_reply(&quot;404&quot;, &quot;Not found&quot;);<br>                        }<br>                        return;<br>                } else<br>
                {<br>                        t_reply(&quot;403&quot;,&quot;not supported&quot;);<br>                        exit;<br>                }<br>        }<br>...<br>}<br><br>To my knowledge there is no configuration required on the Jabberd2 server (except the password, that the XMPP component authenticates with).<br>
I am trying to enable SIP clients to chat with the XMPP clients and vice versa.<br>SIP clients can send messages to XMPP clients. XMPP modules translates SIP to XMPP and forwards the massage to Jabberd2 server.<br>URIs look like:<br>
XMPP client from SIP view: xmpp_client*<a href="http://xmpp.uniza.sk">xmpp.uniza.sk</a>@<a href="http://sip.uniza.sk">sip.uniza.sk</a><br>SIP client from XMPP view: sip_client*<a href="http://sip.uniza.sk">sip.uniza.sk</a>@<a href="http://xmpp-sip.uniza.sk">xmpp-sip.uniza.sk</a><br>
The message arrives to XMPP client, but he can not reply.<br>I have sniffed the traffic on the Kamailio server. The XMPP message arrives to kamailio XMPP module (correct port and everything), but the module somehow ignores it, doesn&#39;t translate XMPP to SIP and doesn&#39;t send it to the SIP recipient.<br>
The sniffed message looks like:<br><br>&lt;message xmlns=&#39;jabber:client&#39; type=&#39;chat&#39; to=&#39;SIP_client*<a href="http://sip.uniza.sk">sip.uniza.sk</a>@<a href="http://xmpp-sip.uniza.sk">xmpp-sip.uniza.sk</a>&#39; id=&#39;mir_47&#39; from=&#39;<a href="http://XMPP_client@xmpp.uniza.sk/Miranda">XMPP_client@xmpp.uniza.sk/Miranda</a>&#39;&gt;&lt;body&gt;hello&lt;/body&gt;&lt;/message&gt;<br>
<br>Any suggestions on where can the problem be ??<br>Do I have to add some lines to routing logic for XMPP module to process the XMPP message (from Jabberd2) for SIP_client ??<br><br>Thanks<br>Martin<br>