Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1
On 10/20/10 7:33 AM, Huy Nguyen wrote: Hi Daniel and all list, Thanks for your support, but as the below diagram, i still have some confused: xmmp-user --- xmpp-server -- xmpp-to-sip-gateway --- sip-to-xmpp-gateway sip-server --- sip-user - if we use the server mode: the *xmpp-to-sip-gateway* *and* *sip-to-xmpp-gateway* *is the xmpp module*, and they have the same domain with sip-server (because the xmpp module is integrated on kamailio server) e.g kamailio1.com. So, at the xmpp client, we add the buddy as: sip-user*sip-server_dom...@xmpp_domain= sip-user*kamailio1@kamailio1.com = the xmpp-server must establish the s2s connection to xmpp_domain, it mean the connection between xmpp-server and the kamailio-server (because xmpp module is integrated on kamailio-server). But how can settup the s2s connection, if the kamailio-server+xmpp-module don't have any running port 5269 ? Do you run the last version of branch kamailio_3.0? I asked you many time and you come back mentioning an older version. Cheers, Daniel - if we use the component mode: *sip-to-xmpp-gateway is the xmpp module*, how about the xmpp-to-sip-gateway, which is the appliance on the network ? the local-xmpp-server or the xmpp module ? Thanks, Huy Nguyen * * www.htk-inc.com http://www.htk-inc.com/ Date: Tue, 19 Oct 2010 09:52:15 +0200 From: mico...@gmail.com To: huy_quocngu...@live.com CC: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1 Hello, as said in a previous email, first you have to use last git version of kamailio_3.0 branch. There was a fix for xmpp module since release of 3.0.1. Also you can switch to 3.1.0, or wait few days untill 3.0.4 is released. You have to think the architecture like: xmmp-user --- xmpp-server -- xmpp-to-sip-gateway --- sip-to-xmpp-gateway sip-server --- sip-user even some of these components are running in the same application. If you add a buddy in your xmpp user that has the hostname same as xmpp-server domain, then it is clear that xmpp-server will route it locally and not to xmpp-to-sip-gateway. Cheers, Daniel On 10/18/10 10:49 AM, Huy Nguyen wrote: Hi all, Sorry for restore this topic, but i till confused about the guide on xmpp module page. I'm integrating xmpp module to kamailio 3.0.x at my local network, with server mode. The kamailio server have domain: kamailio1.com (192.168.1.26), the xmpp server have domain: xmpp1.com (192.168.1.20). SIP user: 1...@kamailio1.com mailto:1...@kamailio1.com XMPP user: 1...@xmpp1.com mailto:1...@xmpp1.com Below is the part mention in xmpp doc I confused about, so i'm pasting that: In the destination address we need an extra character as a domain separator, apart from @. The address of the XMPP(jabber) client looks like this: sip:usernamedomain_separatorjabber_ser...@gateway_domain. The address of a SIP client has the following pattern : sip_usernamedomain_separatoropenser_dom...@xmpp_domain; A common used character in XMPP transports is %. It mean, from sip client 1...@kamailio1.com mailto:1...@kamailio1.com, if I want to chat with xmpp client 1...@xmpp1.com mailto:1...@xmpp1.com, I'll add 109 to the contact list of 101 as: sip:109%xmpp1@kamailio1.com. It right ? As the similar, i'll add to the buddy list of 109 as: 101%kamailio1@xmpp1.com mailto:101%kamailio1@xmpp1.com ? Can anyone suggest how to test xmpp module ? Thanks, Huy Nguyen * * www.htk-inc.com http://www.htk-inc.com/ ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org mailto:sr-users@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@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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1
Hello, as said in a previous email, first you have to use last git version of kamailio_3.0 branch. There was a fix for xmpp module since release of 3.0.1. Also you can switch to 3.1.0, or wait few days untill 3.0.4 is released. You have to think the architecture like: xmmp-user --- xmpp-server -- xmpp-to-sip-gateway --- sip-to-xmpp-gateway sip-server --- sip-user even some of these components are running in the same application. If you add a buddy in your xmpp user that has the hostname same as xmpp-server domain, then it is clear that xmpp-server will route it locally and not to xmpp-to-sip-gateway. Cheers, Daniel On 10/18/10 10:49 AM, Huy Nguyen wrote: Hi all, Sorry for restore this topic, but i till confused about the guide on xmpp module page. I'm integrating xmpp module to kamailio 3.0.x at my local network, with server mode. The kamailio server have domain: kamailio1.com (192.168.1.26), the xmpp server have domain: xmpp1.com (192.168.1.20). SIP user: 1...@kamailio1.com XMPP user: 1...@xmpp1.com Below is the part mention in xmpp doc I confused about, so i'm pasting that: In the destination address we need an extra character as a domain separator, apart from @. The address of the XMPP(jabber) client looks like this: sip:usernamedomain_separatorjabber_ser...@gateway_domain. The address of a SIP client has the following pattern : sip_usernamedomain_separatoropenser_dom...@xmpp_domain; A common used character in XMPP transports is %. It mean, from sip client 1...@kamailio1.com, if I want to chat with xmpp client 1...@xmpp1.com, I'll add 109 to the contact list of 101 as: sip:109%xmpp1@kamailio1.com. It right ? As the similar, i'll add to the buddy list of 109 as: 101%kamailio1@xmpp1.com ? Can anyone suggest how to test xmpp module ? Thanks, Huy Nguyen * * www.htk-inc.com http://www.htk-inc.com/ ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1
Hello, it is the same domain you use for both xmpp and sip server? You have to use different ones, otherwise each server considers it is a local user and try to look it up in own location database. Cheers, Daniel On 10/15/10 7:27 AM, Huy Nguyen wrote: Hi, Thanks for your quickly support, but after recompile with the lastest git branch 3.0 version, I still meet the same problem. From my xmpp client, i chat to sip client (e.g 101*sip.htk@xmpp.htk.com), the xmpp server looking for its database and not found user 101*sip.htk.com. So, it show the error 503. I don't know why the xmpp server not send message to my sip server ? At the current time, can we use the server mode of xmpp module ? If yes, how can establish the connection between xmpp module (on kamailio server) and the xmpp server, if the xmpp module not running at port 5269 ? Thanks, Huy Nguyen * * www.htk-inc.com http://www.htk-inc.com/ Date: Thu, 14 Oct 2010 19:57:57 +0200 From: mico...@gmail.com To: huy_quocngu...@live.com CC: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1 Hello, take the latest git version from branch kamailio_3.0. There were some fixes to xmpp module after 3.0.1. Cheers, Daniel On 10/14/10 7:41 PM, Huy Nguyen wrote: Hi all, I'm trying to integrate xmpp module to kamailio 3.0.1. But i wondered about the server mode, if not use the local xmpp server, how to establish the s2s connection with the other xmpp server ? I think it must have the running port 5269 on two xmpp servers to setup the connection. Thanks, Huy Nguyen * * www.htk-inc.com http://www.htk-inc.com/ ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org mailto:sr-users@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@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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1
Hi Daniel and list, If i use the different domain for kamailio and xmpp (e.g kamailio1.com and xmpp1.com, i'm testing in my local network). If from my xmpp client, e.g 1...@xmpp1.com, i chat to sip client, e.g 101*kamailio1@xmpp1.com. I think it'll get the previous problem, because the xmpp server saw that the domain of the customer is xmpp1.com -- this is a user on its domain. How can xmpp server recognize that is the sip user from kamailio server and send the message to kamailio ? Have any wrong in my testing scenario ? Or we must change the order of sip buddy name: 101*xmpp1@kamailio1.com ? Thanks, Huy Nguyen www.htk-inc.com Date: Fri, 15 Oct 2010 10:31:28 +0200 From: mico...@gmail.com To: huy_quocngu...@live.com CC: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1 Hello, it is the same domain you use for both xmpp and sip server? You have to use different ones, otherwise each server considers it is a local user and try to look it up in own location database. Cheers, Daniel On 10/15/10 7:27 AM, Huy Nguyen wrote: Hi, Thanks for your quickly support, but after recompile with the lastest git branch 3.0 version, I still meet the same problem. From my xmpp client, i chat to sip client (e.g 101*sip.htk@xmpp.htk.com), the xmpp server looking for its database and not found user 101*sip.htk.com. So, it show the error 503. I don't know why the xmpp server not send message to my sip server ? At the current time, can we use the server mode of xmpp module ? If yes, how can establish the connection between xmpp module (on kamailio server) and the xmpp server, if the xmpp module not running at port 5269 ? Thanks, Huy Nguyen www.htk-inc.com Date: Thu, 14 Oct 2010 19:57:57 +0200 From: mico...@gmail.com To: huy_quocngu...@live.com CC: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1 Hello, take the latest git version from branch kamailio_3.0. There were some fixes to xmpp module after 3.0.1. Cheers, Daniel On 10/14/10 7:41 PM, Huy Nguyen wrote: Hi all, I'm trying to integrate xmpp module to kamailio 3.0.1. But i wondered about the server mode, if not use the local xmpp server, how to establish the s2s connection with the other xmpp server ? I think it must have the running port 5269 on two xmpp servers to setup the connection. Thanks, Huy Nguyen www.htk-inc.com ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@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@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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1
... reply all didn't work first time ... On 10/15/10 10:52 AM, Huy Nguyen wrote: Hi Daniel and list, If i use the different domain for kamailio and xmpp (e.g kamailio1.com and xmpp1.com, i'm testing in my local network). If from my xmpp client, e.g 1...@xmpp1.com, i chat to sip client, e.g 101*kamailio1@xmpp1.com. you still have same domain - xmpp1.com - for both. So when your xmpp client sends to server, the server looks at domain part and says it is my domain so i should have it in my location table. If it is another domain, xmpp2.com, then xmpp server will connect to xmpp2.com to send the message there. Cheers, Daniel I think it'll get the previous problem, because the xmpp server saw that the domain of the customer is xmpp1.com -- this is a user on its domain. How can xmpp server recognize that is the sip user from kamailio server and send the message to kamailio ? Have any wrong in my testing scenario ? Or we must change the order of sip buddy name: 101*xmpp1@kamailio1.com ? Thanks, Huy Nguyen * * www.htk-inc.com http://www.htk-inc.com/ Date: Fri, 15 Oct 2010 10:31:28 +0200 From: mico...@gmail.com To: huy_quocngu...@live.com CC: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1 Hello, it is the same domain you use for both xmpp and sip server? You have to use different ones, otherwise each server considers it is a local user and try to look it up in own location database. Cheers, Daniel On 10/15/10 7:27 AM, Huy Nguyen wrote: Hi, Thanks for your quickly support, but after recompile with the lastest git branch 3.0 version, I still meet the same problem. From my xmpp client, i chat to sip client (e.g 101*sip.htk@xmpp.htk.com mailto:101*sip.htk@xmpp.htk.com), the xmpp server looking for its database and not found user 101*sip.htk.com. So, it show the error 503. I don't know why the xmpp server not send message to my sip server ? At the current time, can we use the server mode of xmpp module ? If yes, how can establish the connection between xmpp module (on kamailio server) and the xmpp server, if the xmpp module not running at port 5269 ? Thanks, Huy Nguyen * * www.htk-inc.com http://www.htk-inc.com/ Date: Thu, 14 Oct 2010 19:57:57 +0200 From: mico...@gmail.com mailto:mico...@gmail.com To: huy_quocngu...@live.com mailto:huy_quocngu...@live.com CC: sr-users@lists.sip-router.org mailto:sr-users@lists.sip-router.org Subject: Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1 Hello, take the latest git version from branch kamailio_3.0. There were some fixes to xmpp module after 3.0.1. Cheers, Daniel On 10/14/10 7:41 PM, Huy Nguyen wrote: Hi all, I'm trying to integrate xmpp module to kamailio 3.0.1. But i wondered about the server mode, if not use the local xmpp server, how to establish the s2s connection with the other xmpp server ? I think it must have the running port 5269 on two xmpp servers to setup the connection. Thanks, Huy Nguyen * * www.htk-inc.com http://www.htk-inc.com/ ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org mailto:sr-users@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@lists.sip-router.org mailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla http://www.asipto.com -- Daniel-Constantin Mierla http://www.asipto.com ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1
Hello, take the latest git version from branch kamailio_3.0. There were some fixes to xmpp module after 3.0.1. Cheers, Daniel On 10/14/10 7:41 PM, Huy Nguyen wrote: Hi all, I'm trying to integrate xmpp module to kamailio 3.0.1. But i wondered about the server mode, if not use the local xmpp server, how to establish the s2s connection with the other xmpp server ? I think it must have the running port 5269 on two xmpp servers to setup the connection. Thanks, Huy Nguyen * * www.htk-inc.com http://www.htk-inc.com/ ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1
Hi, Thanks for your quickly support, but after recompile with the lastest git branch 3.0 version, I still meet the same problem. From my xmpp client, i chat to sip client (e.g 101*sip.htk@xmpp.htk.com), the xmpp server looking for its database and not found user 101*sip.htk.com. So, it show the error 503. I don't know why the xmpp server not send message to my sip server ? At the current time, can we use the server mode of xmpp module ? If yes, how can establish the connection between xmpp module (on kamailio server) and the xmpp server, if the xmpp module not running at port 5269 ? Thanks, Huy Nguyen www.htk-inc.com Date: Thu, 14 Oct 2010 19:57:57 +0200 From: mico...@gmail.com To: huy_quocngu...@live.com CC: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1 Hello, take the latest git version from branch kamailio_3.0. There were some fixes to xmpp module after 3.0.1. Cheers, Daniel On 10/14/10 7:41 PM, Huy Nguyen wrote: Hi all, I'm trying to integrate xmpp module to kamailio 3.0.1. But i wondered about the server mode, if not use the local xmpp server, how to establish the s2s connection with the other xmpp server ? I think it must have the running port 5269 on two xmpp servers to setup the connection. Thanks, Huy Nguyen www.htk-inc.com ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users