No subject
Mon Jul 5 11:16:31 CEST 2010
I install my local ejabberd server at the same machine with kamailio server and they have same domain:
modparam("xmpp", "gateway_domain", "kamailio1.com")
modparam("xmpp", "xmpp_domain", "kamailio1.com")
modparam("xmpp", "xmpp_host", "kamailio1.com")
modparam("xmpp", "backend", "component")
modparam("xmpp", "xmpp_password", "secret")
modparam("xmpp", "domain_separator", "*")
modparam("xmpp", "xmpp_port", 5347)
Are there the reason of this error ?
Thanks,
Huy Nguyen
www.htk-inc.com
http://pbxvn.com/forum/
Date: Tue, 31 Aug 2010 23:37:07 +0200
From: miconda at gmail.com
To: huy_quocnguyen at live.com
CC: sr-users at lists.sip-router.org
Subject: Re: [SR-Users] Error when integrate xmpp module to Kamailio 3.0.1
Hello,
in component mode, a subdomain is diverted to respective component,
so you don't need users in xmpp server.
Cheers,
Daniel
On 8/30/10 2:18 PM, Huy Nguyen wrote:
Hi Daniel,
Thanks so much for your help.
Maybe I still don't understand clearly yet about the scenario to
test with this module (component mode):
I install Kamailio and local ejabberd on server 192.168.1.25
with the same domain: kamailio1.com.
I also have another ejabberd server for test with domain
ejabberd.com (192.168.1.26).
modparam("xmpp",
"gateway_domain", "kamailio1.com")
modparam("xmpp",
"xmpp_domain", "kamailio1.com")
modparam("xmpp",
"xmpp_host", "192.168.1.25")
modparam("xmpp",
"backend", "component")
modparam("xmpp",
"xmpp_password", "secret")
modparam("xmpp",
"domain_separator", "*")
modparam("xmpp",
"xmpp_port", 5347)
With the guide as below:
"The address of the
XMPP(jabber) client looks like this:
"sip:username<domain_separator>jabber_server at gateway_domain".
The address of a SIP client has the following pattern :
"sip_username<domain_separator>openser_domain at xmpp_domain".
"
I have one sip client: 101 at kamailio1.com and one xmpp client:
102 at ejabberd.com.
Login on sip-communicator with 101 at kamailio1.com and on pidgin
with 102 at ejabberd.com:
If sip client-101 want to chat with ejabberd client-102, I must
add 102 to sip contact list of 101 as:
102*ejabberd.com at kamailio1.com or 102*kamailio1.com at ejabberd.com
?
When 102 at ejabberd.com want to chat with sip client 101, on the
buddy list of 102, will we add 101*kamailio1.com at ejabberd.com or
101*ejabberd.com at kamailio1.com ?
How about the role of the local ejabberd server ? how can
102 at ejabberd.com chat to 101 at kamailio1.com or we need add 101 as
the user of the local ejabberd server ?
Thanks in advanced,
Huy Nguyen
www.htk-inc.com
http://pbxvn.com/forum/
Date: Mon, 30 Aug 2010 12:06:06 +0200
From: miconda at gmail.com
To: huy_quocnguyen at live.com
CC: sr-users at lists.sip-router.org
Subject: Re: [SR-Users] Error when integrate xmpp module to
Kamailio 3.0.1
Hello,
the sip trace you attached shows SIP MESSAGE requests sent for key
typing events. They have xml payload. You must not send them to
xmpp, they are not real message, just indication the user is
typing. As said in previous message, you cannot send xml content
via XMPP IM.
Cheers,
Daniel
On 8/27/10 12:34 PM, Huy Nguyen wrote:
Hi all,
I have just changed some things on the config of kamailio:
# ---- xmpp ----
modparam("xmpp", "gateway_domain", "sip-xmpp.kamailio1.com")
modparam("xmpp", "xmpp_domain", "xmpp-sip.kamailio1.com")
modparam("xmpp", "xmpp_host", "xmpp.kamailio1.com")
modparam("xmpp", "backend", "component")
modparam("xmpp", "xmpp_password", "secret")
modparam("xmpp", "domain_separator", "*")
modparam("xmpp", "xmpp_port", 5347)
........................
if (method == "MESSAGE") {
log("*** xmpp-handled MESSAGE message.\n");
if($ct=~"text/plain") {
if (xmpp_send_message()) {
sl_send_reply("200",
"Accepted");
} else {
sl_send_reply("404", "Not
found");
}
return;
}
}
And ejabberd:
{hosts, ["xmpp.kamailio1.com"]}.
{5347, ejabberd_service, [
{access, all},
{shaper_rule, fast},
{ip, {192, 168, 1, 21}},
{hosts, ["xmpp.kamailio1.com"],
[{password, "secret"}]}
]},
Register with sip client: 103*sip.kamailio1.com, cal the buddy 102*xmpp.kamailio1.com at sip.kamailio1.com.
On the sip client, it appear some pop up to type the account
login to sip.kamailio1.com. If you fill in, it still appear the
other pop up to login again.
Anyone have any suggest for me about this problem? or detect
any wrong in my configuration. I think I missed some things on
it.
P/S: I installed powerdns on server 192.168.1.26, and config as
below:
- sip.kamailio1.com 192.168.1.25
- sip-xmpp.kamailio1.com 192.168.1.25
- xmpp-sip.kamailio1.com 192.168.1.25
- xmpp.kamailio1.com 192.168.1.21
The sip_trace is in attached file.
Thanks for your help,
Huy Nguyen
HTK-INC
Co.,Ltd
www.htk-inc.com
http://pbxvn.com/forum/
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users at lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://www.asipto.com/
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users at lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://www.asipto.com/
--_11c2dcf9-f4a4-4925-9ce6-5d162cc3a454_
Content-Type: text/html; charset="windows-1258"
Content-Transfer-Encoding: 8bit
<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<font style="" face="Arial">Hi Daniel and All list,</font><br><br>From my sip client, if I chat to ejabberd client, I recognized that: the MESSAGE can't authorized with SIP/2.0 407 Proxy Authentication Required. So, the MESSAGE was droped before sent to xmpp server. If my sip client chat to the other sip client, I don't see any 407 message, and the MESSAGE sent successful.<br><br>I install my local ejabberd server at the same machine with kamailio server and they have same domain: <br><br>modparam("xmpp", "gateway_domain", "kamailio1.com")<br>modparam("xmpp", "xmpp_domain", "kamailio1.com")<br>modparam("xmpp", "xmpp_host", "kamailio1.com")<br>modparam("xmpp", "backend", "component")<br>modparam("xmpp", "xmpp_password", "secret")<br>modparam("xmpp", "domain_separator", "*")<br>modparam("xmpp", "xmpp_port", 5347)<br><br>Are there the reason of this error ?<br><br><br>Thanks,<br>Huy Nguyen<font style="" color="#e36c09" face="Arial"><b><font style="font-size: 12pt;" color="#ff0000" size="3"><br></font></b></font><hr width="100%" size="2"><font style="" color="#e36c09" face="Arial"><b></b></font><hr width="100%" size="2"><a href="http://www.htk-inc.com/" style="color: rgb(42, 93, 176);" target="_blank">www.htk-inc.com</a><br><span class="ecxApple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; font-size: medium;"><span class="ecxApple-style-span" style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;"><div class="ecxim" style="color: rgb(80, 0, 80);"><a href="http://pbxvn.com/forum/" target="_blank">http://pbxvn.com/forum/</a><br></div></span></span><font style="" face="Arial"><br></font><font style="" face="Arial"><br></font><br><br><br><br><hr id="stopSpelling">Date: Tue, 31 Aug 2010 23:37:07 +0200<br>From: miconda at gmail.com<br>To: huy_quocnguyen at live.com<br>CC: sr-users at lists.sip-router.org<br>Subject: Re: [SR-Users] Error when integrate xmpp module to Kamailio 3.0.1<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
Hello,<br>
<br>
in component mode, a subdomain is diverted to respective component,
so you don't need users in xmpp server.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<br>
On 8/30/10 2:18 PM, Huy Nguyen wrote:
<blockquote cite="mid:SNT143-w589A17808BA2A3E0AB90169E890 at phx.gbl">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<font style="" face="Arial">Hi Daniel,<br>
<br>
Thanks so much for your help.<br>
<br>
Maybe I still don't understand clearly yet about the scenario to
test with this module (component mode):<br>
<br>
I install Kamailio and local ejabberd on server 192.168.1.25
with the same domain: kamailio1.com.<br>
<br>
I also have another ejabberd server for test with domain
ejabberd.com (192.168.1.26).<br>
<br>
<font style="" color="#1f497d">modparam("xmpp",
"gateway_domain", "kamailio1.com")</font><font style="" color="#1f497d"><br>
</font><font style="" color="#1f497d">modparam("xmpp",
"xmpp_domain", "kamailio1.com")</font><font style="" color="#1f497d"><br>
</font><font style="" color="#1f497d">modparam("xmpp",
"xmpp_host", "192.168.1.25")</font><font style="" color="#1f497d"><br>
</font><font style="" color="#1f497d">modparam("xmpp",
"backend", "component")</font><font style="" color="#1f497d"><br>
</font><font style="" color="#1f497d">modparam("xmpp",
"xmpp_password", "secret")</font><font style="" color="#1f497d"><br>
</font><font style="" color="#1f497d">modparam("xmpp",
"domain_separator", "*")</font><font style="" color="#1f497d"><br>
</font><font style="" color="#1f497d">modparam("xmpp",
"xmpp_port", 5347)</font><br>
<br>
<br>
With the guide as <a href="http://www.kamailio.org/docs/modules/3.0.x/modules_k/xmpp.html" target="_blank">below</a>:<br>
</font><font style="font-size: 10pt;" color="#1f497d" face="Arial" size="2"><span class="ecxApple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; font-size: medium;"><span class="ecxApple-style-span" style="font-family: Helvetica,Arial; text-align: justify;">"The address of the
XMPP(jabber) client looks like this:
"<a class="ecxmoz-txt-link-freetext" target="_blank">sip:username</a><domain_separator>jabber_server at gateway_domain".
The address of a SIP client has the following pattern :
"sip_username<domain_separator>openser_domain at xmpp_domain".</span></span></font>
"<br>
<font style="" face="Arial"><br>
I have one sip client: <a class="ecxmoz-txt-link-abbreviated" href="mailto:101 at kamailio1.com">101 at kamailio1.com</a> and one xmpp client:
<a class="ecxmoz-txt-link-abbreviated" href="mailto:102 at ejabberd.com">102 at ejabberd.com</a>.<br>
<br>
Login on sip-communicator with <a class="ecxmoz-txt-link-abbreviated" href="mailto:101 at kamailio1.com">101 at kamailio1.com</a> and on pidgin
with <a class="ecxmoz-txt-link-abbreviated" href="mailto:102 at ejabberd.com:">102 at ejabberd.com:</a><br>
<br>
If sip client-101 want to chat with ejabberd client-102, I must
add 102 to sip contact list of 101 as:
<a class="ecxmoz-txt-link-abbreviated" href="mailto:102*ejabberd.com at kamailio1.com">102*ejabberd.com at kamailio1.com</a> or <a class="ecxmoz-txt-link-abbreviated" href="mailto:102*kamailio1.com at ejabberd.com">102*kamailio1.com at ejabberd.com</a>
?<br>
<br>
When <a class="ecxmoz-txt-link-abbreviated" href="mailto:102 at ejabberd.com">102 at ejabberd.com</a> want to chat with sip client 101, on the
buddy list of 102, will we add <a class="ecxmoz-txt-link-abbreviated" href="mailto:101*kamailio1.com at ejabberd.com">101*kamailio1.com at ejabberd.com</a> or
<a class="ecxmoz-txt-link-abbreviated" href="mailto:101*ejabberd.com at kamailio1.com">101*ejabberd.com at kamailio1.com</a> ?<br>
<br>
How about the role of the local ejabberd server ? how can
<a class="ecxmoz-txt-link-abbreviated" href="mailto:102 at ejabberd.com">102 at ejabberd.com</a> chat to <a class="ecxmoz-txt-link-abbreviated" href="mailto:101 at kamailio1.com">101 at kamailio1.com</a> or we need add 101 as
the user of the local ejabberd server ?<br>
<br>
<br>
Thanks in advanced,<br>
Huy Nguyen </font><font style="" color="#e36c09" face="Arial"><b><font style="font-size: 12pt;" color="#ff0000" size="3"><br>
</font></b></font>
<hr width="100%" size="2">
<hr width="100%" size="2"><a href="http://www.htk-inc.com/" style="color: rgb(42, 93, 176);" target="_blank">www.htk-inc.com</a><br>
<span class="ecxApple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; font-size: medium;"><span class="ecxApple-style-span" style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;">
<div class="ecxim" style="color: rgb(80, 0, 80);"><a href="http://pbxvn.com/forum/" target="_blank">http://pbxvn.com/forum/</a><br>
</div>
</span></span><font style="" face="Arial"><br>
</font><font style="" face="Arial"><br>
</font><br>
<br>
<br>
<br>
<hr id="ecxstopSpelling">Date: Mon, 30 Aug 2010 12:06:06 +0200<br>
From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:miconda at gmail.com">miconda at gmail.com</a><br>
To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:huy_quocnguyen at live.com">huy_quocnguyen at live.com</a><br>
CC: <a class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users at lists.sip-router.org">sr-users at lists.sip-router.org</a><br>
Subject: Re: [SR-Users] Error when integrate xmpp module to
Kamailio 3.0.1<br>
<br>
Hello,<br>
<br>
the sip trace you attached shows SIP MESSAGE requests sent for key
typing events. They have xml payload. You must not send them to
xmpp, they are not real message, just indication the user is
typing. As said in previous message, you cannot send xml content
via XMPP IM.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 8/27/10 12:34 PM, Huy Nguyen wrote:
<blockquote cite="mid:SNT143-w3037EFD2DAB0EAAB853AB89E860 at phx.gbl">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style> Hi all,<br>
<br>
I have just changed some things on the config of kamailio:<br>
<br>
# ---- xmpp ----<br>
modparam("xmpp", "gateway_domain", "sip-xmpp.kamailio1.com")<br>
modparam("xmpp", "xmpp_domain", "xmpp-sip.kamailio1.com")<br>
modparam("xmpp", "xmpp_host", "xmpp.kamailio1.com")<br>
modparam("xmpp", "backend", "component")<br>
modparam("xmpp", "xmpp_password", "secret")<br>
modparam("xmpp", "domain_separator", "*")<br>
modparam("xmpp", "xmpp_port", 5347)<br>
........................<br>
<br>
if (method == "MESSAGE") {<br>
log("*** xmpp-handled MESSAGE message.\n");<br>
if($ct=~"text/plain") {<br>
if (xmpp_send_message()) {<br>
sl_send_reply("200",
"Accepted");<br>
} else {<br>
sl_send_reply("404", "Not
found");<br>
}<br>
return;<br>
}<br>
}<br>
<br>
And ejabberd:<br>
<br>
{hosts, ["xmpp.kamailio1.com"]}.<br>
<br>
{5347, ejabberd_service, [<br>
{access, all},<br>
{shaper_rule, fast},<br>
{ip, {192, 168, 1, 21}},<br>
{hosts, ["xmpp.kamailio1.com"],
[{password, "secret"}]}<br>
]},<br>
<br>
Register with sip client: 103*sip.kamailio1.com, cal the buddy <a class="ecxmoz-txt-link-abbreviated" href="mailto:102*xmpp.kamailio1.com at sip.kamailio1.com">102*xmpp.kamailio1.com at sip.kamailio1.com</a>.
On the sip client, it appear some pop up to type the account
login to sip.kamailio1.com. If you fill in, it still appear the
other pop up to login again.<br>
<br>
Anyone have any suggest for me about this problem? or detect
any wrong in my configuration. I think I missed some things on
it.<br>
<br>
P/S: I installed powerdns on server 192.168.1.26, and config as
below:<br>
<br>
- sip.kamailio1.com 192.168.1.25<br>
- sip-xmpp.kamailio1.com 192.168.1.25<br>
- xmpp-sip.kamailio1.com 192.168.1.25<br>
- xmpp.kamailio1.com 192.168.1.21<br>
<br>
The sip_trace is in attached file.<br>
<br>
Thanks for your help,<br>
Huy Nguyen<font style="" color="#e36c09" face="Arial"><b><font style="font-size: 12pt;" color="#ff0000" size="3"><br>
</font></b></font>
<hr width="100%" size="2">
<hr width="100%" size="2"><span class="ecxApple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; font-size: medium;"><span class="ecxApple-style-span" style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;">
<div class="ecxim" style="color: rgb(80, 0, 80);">HTK-INC
Co.,Ltd<br>
<a href="http://www.htk-inc.com/" style="color: rgb(42, 93, 176);" target="_blank">www.htk-inc.com</a><br>
<a href="http://pbxvn.com/forum/" target="_blank">http://pbxvn.com/forum/</a><br>
</div>
</span></span><br>
<pre><fieldset class="ecxmimeAttachmentHeader"></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users at lists.sip-router.org">sr-users at lists.sip-router.org</a>
<a class="ecxmoz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="ecxmoz-signature">--
Daniel-Constantin Mierla
<a class="ecxmoz-txt-link-freetext" href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a>
</pre>
<pre><fieldset class="ecxmimeAttachmentHeader"></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users at lists.sip-router.org">sr-users at lists.sip-router.org</a>
<a class="ecxmoz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="ecxmoz-signature">--
Daniel-Constantin Mierla
<a class="ecxmoz-txt-link-freetext" href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a>
</pre> </body>
</html>
--_11c2dcf9-f4a4-4925-9ce6-5d162cc3a454_--
More information about the sr-users
mailing list