<html><body><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:10pt"><div style="font-family: tahoma, 'new york', times, serif; font-size: 10pt; "><span>Hi Daniel,</span></div><div style="font-family: tahoma, 'new york', times, serif; font-size: 10pt; "><span><br></span></div><div style="font-family: tahoma, 'new york', times, serif; font-size: 10pt; ">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-family: tahoma, 'new york', times, serif; font-size: 10pt; "><br></div><div style="font-family: tahoma, 'new york', times, serif; font-size: 10pt; ">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-family: tahoma, 'new york', times, serif; font-size: 10pt; "><br></div><div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;">modparam("xmpp", "domain_separator", "*")</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;">modparam("xmpp", "gateway_domain", sip-xmpp.kamailio.org")</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;">modparam("xmpp", "xmpp_domain", xmpp-sip.kamailio.org")</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;">modparam("xmpp", "xmpp_host", xmpp.kamailio.org")</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;">modparam("xmpp", "backend", component")</font></div><div><font size="2" style="font-family: 'Courier New', courier,
 monaco, monospace, sans-serif;"><br></font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><br></font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><br></font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;">if (uri =~ "sip:.+@sip-xmpp\.openser\.org")) {</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;">&nbsp; #absorb transmission</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><span class="Apple-tab-span" style="white-space:pre">        </span>if (!t_newtran()){</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><span class="Apple-tab-span" style="white-space:pre">                </span>sl_reply_error();</font></div><div><font size="2"
 style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><span class="Apple-tab-span" style="white-space:pre">                </span>exit;</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><span class="Apple-tab-span" style="white-space:pre">        </span>}</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><br></font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;">#Handling Instant Messaging</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><span class="Apple-tab-span" style="white-space:pre">        </span>if (is_method("MESSAGE")){</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><span class="Apple-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 New', courier, monaco, monospace, sans-serif;"><span class="Apple-tab-span" style="white-space:pre">        </span>if (xmpp_send_message()){</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><span class="Apple-tab-span" style="white-space:pre">        </span>sl_send_reply("202", "Accepted");</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><span class="Apple-tab-span" style="white-space:pre">        </span>} else {</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><span class="Apple-tab-span" style="white-space:pre">        </span>sl_send_reply("404", "Not found");</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><span class="Apple-tab-span" style="white-space:pre">
        </span>}</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><span class="Apple-tab-span" style="white-space:pre">        </span>exit;</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;">&nbsp; &nbsp;}</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;">#Un-supported Type of SIP Message</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><span class="Apple-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 New', courier, monaco, monospace, sans-serif;"><span class="Apple-tab-span" style="white-space:pre">        </span>sl_send_reply("503", "Service unavailable");</font></div><div><font size="2" style="font-family: 'Courier New',
 courier, monaco, monospace, sans-serif;"><span class="Apple-tab-span" style="white-space:pre">        </span>exit;</font></div><div><font size="2" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;">}</font></div><div><font size="2"><br></font></div><div style="font-family: tahoma, 'new york', times, serif; font-size: 10pt; "><br></div></div><div style="font-family: tahoma, 'new york', times, serif; font-size: 10pt; ">&nbsp;</div><div style="font-family: tahoma, 'new york', times, serif; font-size: 10pt; ">Regards,<br><br></div><div style="font-family: tahoma, 'new york', times, serif; font-size: 10pt; ">Faisal Rehman<br>  <div style="font-size: 10pt; font-family: tahoma, 'new york', times, serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', 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="yiv1891230568">
  

    
  
  <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, 'new york', 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="yiv1891230568mimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a rel="nofollow" class="yiv1891230568moz-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="yiv1891230568moz-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></body></html>