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(a)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/