[SR-Users] Error when integrate xmpp module to Kamailio 3.0.1

Daniel-Constantin Mierla miconda at gmail.com
Mon Aug 30 12:06:06 CEST 2010


  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://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/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100830/f08119fd/attachment-0001.htm>


More information about the sr-users mailing list