<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
On 3/3/12 12:39 PM, Faisal Rehman wrote:
<blockquote
cite="mid:1330774760.95645.YahooMailNeo@web46204.mail.sp1.yahoo.com"
type="cite">
<div style="color: rgb(0, 0, 0); background-color: rgb(255, 255,
255); 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 <a moz-do-not-send="true"
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> 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 style="font-size: 16px; " type="disc">
<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>
</blockquote>
no, server mode means kamailio will accept server-to-server xmpp
connections, which is not the same as client-to-server xmpp
connection. So other xmpp servers can connect to kamailio via xmpp
module.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<br>
<br>
<b style="font-family: 'times new roman', 'new york', times, serif;
"><span style="font-weight:bold;">From:</span></b> Faisal Rehman
<a class="moz-txt-link-rfc2396E" href="mailto:faisal.rehman22@yahoo.com"><faisal.rehman22@yahoo.com></a><br>
<blockquote
cite="mid:1330774760.95645.YahooMailNeo@web46204.mail.sp1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:Courier
New, courier, monaco, monospace, sans-serif;font-size:10pt">
<div>
<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"> <b style="font-family:
'times new roman', 'new york', times, serif; "><span
style="font-weight: bold;">To:</span></b>
<a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com">"miconda@gmail.com"</a> <a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a>; SIP
Router - Kamailio (OpenSER) and SIP Express Router
(SER) - Users Mailing List
<a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></a> <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 & for this I have
to install a separate XMPP server like you've
mentioned Jabber or something right? </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 style="font-family: courier, monaco,
monospace, sans-serif; " size="2">modparam("xmpp",
"domain_separator", "*")</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2">modparam("xmpp",
"gateway_domain", <a moz-do-not-send="true"
target="_blank"
href="http://sip-xmpp.kamailio.org">sip-xmpp.kamailio.org</a>")</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2">modparam("xmpp",
"xmpp_domain", <a moz-do-not-send="true"
target="_blank"
href="http://xmpp-sip.kamailio.org">xmpp-sip.kamailio.org</a>")</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2">modparam("xmpp",
"xmpp_host", <a moz-do-not-send="true"
target="_blank"
href="http://xmpp.kamailio.org">xmpp.kamailio.org</a>")</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2">modparam("xmpp",
"backend", component")</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><br>
</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><br>
</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><br>
</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2">if (uri =~
<a class="moz-txt-link-rfc2396E" href="sip:.+@sip-xmpp\.openser\.org">"sip:.+@sip-xmpp\.openser\.org"</a>)) {</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"> #absorb
transmission</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><span
class="yiv1656368039Apple-tab-span"
style="white-space:pre;"> </span>if
(!t_newtran()){</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><span
class="yiv1656368039Apple-tab-span"
style="white-space:pre;"> </span>sl_reply_error();</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><span
class="yiv1656368039Apple-tab-span"
style="white-space:pre;"> </span>exit;</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><span
class="yiv1656368039Apple-tab-span"
style="white-space:pre;"> </span>}</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><br>
</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2">#Handling
Instant Messaging</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><span
class="yiv1656368039Apple-tab-span"
style="white-space:pre;"> </span>if
(is_method("MESSAGE")){</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><span
class="yiv1656368039Apple-tab-span"
style="white-space:pre;"> </span>xlog("message
to XMPP: from <$fu> ru>\n");</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><span
class="yiv1656368039Apple-tab-span"
style="white-space:pre;"> </span>if
(xmpp_send_message()){</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><span
class="yiv1656368039Apple-tab-span"
style="white-space:pre;"> </span>sl_send_reply("202",
"Accepted");</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><span
class="yiv1656368039Apple-tab-span"
style="white-space:pre;"> </span>} else {</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><span
class="yiv1656368039Apple-tab-span"
style="white-space:pre;"> </span>sl_send_reply("404",
"Not found");</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><span
class="yiv1656368039Apple-tab-span"
style="white-space:pre;"> </span>}</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><span
class="yiv1656368039Apple-tab-span"
style="white-space:pre;"> </span>exit;</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"> }</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2">#Un-supported
Type of SIP Message</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><span
class="yiv1656368039Apple-tab-span"
style="white-space:pre;"> </span>xlog(“message
to XMPP: method [$rm] not supported yet\n");</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><span
class="yiv1656368039Apple-tab-span"
style="white-space:pre;"> </span>sl_send_reply("503",
"Service unavailable");</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2"><span
class="yiv1656368039Apple-tab-span"
style="white-space:pre;"> </span>exit;</font></div>
<div><font style="font-family: courier, monaco,
monospace, sans-serif; " size="2">}</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; "> </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
<a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a><br>
<b><span style="font-weight:bold;">To:</span></b>
Faisal Rehman
<a class="moz-txt-link-rfc2396E" href="mailto:faisal.rehman22@yahoo.com"><faisal.rehman22@yahoo.com></a>; SIP
Router - Kamailio (OpenSER) and SIP
Express Router (SER) - Users Mailing List
<a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></a> <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 &
going to build up Kamailio
server as an XMPP server with
the following
wanted functionalities:</font></span></div>
<div><span style="font-size:small;"><br>
</span></div>
<div><span style="font-size:small;"><span
style=""> -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> <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 & Kamailio
& that's why I am in need of a
bit help & assistance. I have
installed Kamailio on my CentOS
box & 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;"> </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 moz-do-not-send="true" 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>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="yiv1656368039moz-signature">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></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 moz-do-not-send="true"
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 moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
</body>
</html>