<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div><span style="font-family: tahoma, 'new york', times, serif; font-weight: bold;">Hi,</span></div><div><span style="font-family: tahoma, 'new york', times, serif;"><br></span></div><div><span style="font-family: tahoma, 'new york', times, serif;">Also here in the link&nbsp;<a href="http://kamailio.org/docs/modules/1.4.x/xmpp.html" style="font-size: 10pt; ">http://kamailio.org/docs/modules/1.4.x/xmpp.html</a>&nbsp;it is mentioned that Kamailio can work in two different modes:</span></div><div><span style="font-family: tahoma, 'new york', times, serif;"><br></span></div><div><ul type="disc" style="font-size: 16px; "><li><div style="text-align: left;font-size: 12px; "><span style="font-family: tahoma, 'new york', times, serif;"><span class="bold"><strong>XMPP Component Mode</strong></span>. In this mode, Kamailio
 connects to an XMPP server using the standardized XMPP component interface, extending your XMPP services. The connection is done over TCP/IP with authorization.</span></div></li><li><div style="text-align: left;font-size: 12px; "><span style="font-family: tahoma, 'new york', times, serif;"><span class="bold"><strong>XMPP Server</strong></span>. In this mode, the Kamailio XMPP module is a stand-alone XMPP server, with no requirement for another XMPP server in the system. This server uses XMPP S2S (Server to Server) connections to connect to other XMPP servers or receive connections from other servers. NOTE: this is limited implementation of a XMPP server, it does not support SRV or TLS so far. This mode is in beta stage for the moment.</span></div><div style="text-align: left;font-size: 12px; "><span style="font-family: tahoma, 'new york', times, serif;"><br></span></div><div style="text-align: left;font-size: 12px; "><span style="font-family: tahoma,
 'new york', times, serif;"><br></span></div><div style="text-align: left;font-size: 12px; "><span style="font-family: tahoma, 'new york', times, serif; font-weight: bold;">So it means that the second mode is not ready yet for Kamailio's standalone XMPP Server functionality?</span></div></li></ul></div><div style="text-align: left; "><span style="font-family: tahoma, 'new york', times, serif;">&nbsp;</span></div><div><span style="font-family: tahoma, 'new york', times, serif;">Regards,<br><br></span></div><div><span style="font-family: tahoma, 'new york', times, serif;"><span style="font-weight: bold;">Faisal Rehman</span><br>  </span><div style="font-size: 10pt; font-family: 'Courier New', courier, monaco, monospace, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2"><span style="font-family: tahoma, 'new york', times, serif;"> </span><hr size="1">  <b
 style="font-family: 'times new roman', 'new york', times, serif; "><span style="font-weight:bold;">From:</span></b> Faisal Rehman &lt;faisal.rehman22@yahoo.com&gt;<br> <b style="font-family: 'times new roman', 'new york', times, serif; "><span style="font-weight: bold;">To:</span></b> "miconda@gmail.com" &lt;miconda@gmail.com&gt;; SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List &lt;sr-users@lists.sip-router.org&gt; <br> <b style="font-family: 'times new roman', 'new york', times, serif; "><span style="font-weight: bold;">Sent:</span></b> Saturday, March 3, 2012 4:27 PM<br> <b style="font-family: 'times new roman', 'new york', times, serif; "><span style="font-weight: bold;">Subject:</span></b> Re: [SR-Users] Building Up a Kamailio Server<br> </font> </div> <br>
<div id="yiv1656368039" style="font-family: 'times new roman', 'new york', times, serif; "><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: tahoma, 'new york', times, serif; "><div style="font-size: 10pt; font-family: tahoma, times, serif; "><span>Hi Daniel,</span></div><div style="font-size: 10pt; font-family: tahoma, times, serif; "><span><br></span></div><div style="font-size: 10pt; font-family: tahoma, times, serif; ">Okay I got it that Kamailio is a SIP server so it means that it can not behave as an independent XMPP server &amp; for this I have to install a separate XMPP server like you've mentioned Jabber or something right?&nbsp;</div><div style="font-size: 10pt; font-family: tahoma, times, serif; "><br></div><div style="font-size: 10pt; font-family: tahoma, times, serif; ">Do I need to have MySQL support for the project that I want to do or it will be okay without it? I have seen some
 configuration for configuring Kamailio as a gateway which
 you can see below:</div><div style="font-size: 10pt; font-family: tahoma, times, serif; "><br></div><div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; ">modparam("xmpp", "domain_separator", "*")</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; ">modparam("xmpp", "gateway_domain", <a target="_blank" href="http://sip-xmpp.kamailio.org">sip-xmpp.kamailio.org</a>")</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; ">modparam("xmpp", "xmpp_domain", <a target="_blank" href="http://xmpp-sip.kamailio.org">xmpp-sip.kamailio.org</a>")</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; ">modparam("xmpp", "xmpp_host", <a target="_blank" href="http://xmpp.kamailio.org">xmpp.kamailio.org</a>")</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; ">modparam("xmpp",
 "backend", component")</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><br></font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><br></font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><br></font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; ">if (uri =~ "sip:.+@sip-xmpp\.openser\.org")) {</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; ">&nbsp; #absorb transmission</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><span class="yiv1656368039Apple-tab-span" style="white-space:pre;">        </span>if (!t_newtran()){</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><span class="yiv1656368039Apple-tab-span" style="white-space:pre;">        
        </span>sl_reply_error();</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><span class="yiv1656368039Apple-tab-span" style="white-space:pre;">                </span>exit;</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><span class="yiv1656368039Apple-tab-span" style="white-space:pre;">        </span>}</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><br></font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; ">#Handling Instant Messaging</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><span class="yiv1656368039Apple-tab-span" style="white-space:pre;">        </span>if (is_method("MESSAGE")){</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><span class="yiv1656368039Apple-tab-span" style="white-space:pre;">
        </span>xlog("message to XMPP: from
 &lt;$fu&gt; ru&gt;\n");</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><span class="yiv1656368039Apple-tab-span" style="white-space:pre;">        </span>if (xmpp_send_message()){</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><span class="yiv1656368039Apple-tab-span" style="white-space:pre;">        </span>sl_send_reply("202", "Accepted");</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><span class="yiv1656368039Apple-tab-span" style="white-space:pre;">        </span>} else {</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><span class="yiv1656368039Apple-tab-span" style="white-space:pre;">        </span>sl_send_reply("404", "Not found");</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><span class="yiv1656368039Apple-tab-span" style="white-space:pre;">
        </span>}</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><span class="yiv1656368039Apple-tab-span" style="white-space:pre;">        </span>exit;</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; ">&nbsp; &nbsp;}</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; ">#Un-supported Type of SIP Message</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><span class="yiv1656368039Apple-tab-span" style="white-space:pre;">        </span>xlog(“message to XMPP: method [$rm] not supported yet\n");</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><span class="yiv1656368039Apple-tab-span" style="white-space:pre;">        </span>sl_send_reply("503", "Service unavailable");</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; "><span
 class="yiv1656368039Apple-tab-span" style="white-space:pre;">        </span>exit;</font></div><div><font size="2" style="font-family: courier, monaco, monospace, sans-serif; ">}</font></div><div><font size="2"><br></font></div><div style="font-size: 10pt; font-family: tahoma, times, serif; "><br></div></div><div style="font-size: 10pt; font-family: tahoma, times, serif; ">&nbsp;</div><div style="font-size: 10pt; font-family: tahoma, times, serif; ">Regards,<br><br></div><div style="font-size: 10pt; font-family: tahoma, times, serif; ">Faisal Rehman<br>  <div style="font-size: 10pt; font-family: tahoma, times, serif; "> <div style="font-size: 12pt; font-family: times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Daniel-Constantin Mierla
 &lt;miconda@gmail.com&gt;<br> <b><span style="font-weight:bold;">To:</span></b> Faisal Rehman &lt;faisal.rehman22@yahoo.com&gt;; SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List &lt;sr-users@lists.sip-router.org&gt; <br> <b><span style="font-weight:bold;">Sent:</span></b> Friday, March 2, 2012 1:59 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [SR-Users] Building Up a Kamailio Server<br> </font> </div> <br>
<div id="yiv1656368039">
  

    
  
  <div>
    Hello,<br>
    <br>
    Kamailio is a SIP server, it has a module for gatewaying instant
    messaging and pressence to xmpp (see xmpp/pua_xmpp modules), but it
    cannot be used to register xmpp clients to it. You have to use a
    xmpp server for that (e.g., jabberd, prosody, ...).<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    On 3/1/12 8:46 PM, Faisal Rehman wrote:
    <blockquote type="cite">
      <div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: tahoma, times, serif; ">
        <div><span style="font-size:13px;">Hi Everyone,</span></div>
        <div><span style="font-size:small;"><br>
          </span></div>
        <div><span style="font-size:small;"><font>I am totally new to
              Kamailio &amp; going to build up Kamailio server as an
              XMPP server with the following wanted&nbsp;functionalities:</font></span></div>
        <div><span style="font-size:small;"><br>
          </span></div>
        <div><span style="font-size:small;"><span style="">&nbsp;-Have
              XMPP client to register to my kamailio server</span><br style="">
            <span style="">- The XMPP clients should all be able to see
              each others presence</span><br style="">
            <span style="">- The XMPP clients should be able to IM other
              XMPP clients</span><br style="">
            <span style="">- The registered sip client will be able to
              just dial any other sip client. No need for any gateway or
              trunk for now</span>&nbsp;<br>
          </span></div>
        <div><span style="font-size:small;"><br>
          </span></div>
        <div><span style="font-size:13px;">I have a good previous
            background with SIP but its my first time to work with XMPP
            &amp; Kamailio &amp; that's why I am in need of a bit help
            &amp; assistance. I have installed Kamailio on my CentOS box
            &amp; now going to start to configure it in order to
            complete the above requirements, so any links or any
            refferals will be highly appreciated.</span></div>
        <div><span style="font-size:13px;"><br>
          </span></div>
        <div><span style="font-size:small;">&nbsp;</span></div>
        <div><span style="font-size:small;">Regards,<br>
            <br>
          </span></div>
        <div><span style="font-size:small;">Faisal Rehman</span></div>
      </div>
      <br>
      <fieldset class="yiv1656368039mimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a rel="nofollow" class="yiv1656368039moz-txt-link-abbreviated" ymailto="mailto:sr-users@lists.sip-router.org" target="_blank" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
</pre>
    </blockquote>
    <br>
    <pre class="yiv1656368039moz-signature">-- 
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda</pre>
  </div>

</div><br><br> </div> </div>  </div></div></div></div><br>_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br><a ymailto="mailto:sr-users@lists.sip-router.org" href="mailto:sr-users@lists.sip-router.org" style="font-family: 'times new roman', 'new york', times, serif; ">sr-users@lists.sip-router.org</a><br><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" style="font-family: 'times new roman', 'new york', times, serif; ">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br><br><br> </div> </div>  </div></div></body></html>