Hi all, I have a DB server, storing SIP users and auth information. 2 freeswitch servers configured with mod_xml_curl , and an attempt of registration on both servers looks for SIP authentication from DB server. At the moment, i am defining 2 domains on DB server (FS-1 IP and FS-2 IP), and creating unique user , 2 times to address both domains. I want to get rid of creating 2 users for both domains. What is the best approach. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Centralized-SIP-directory-tp75... Sent from the freeswitch-users mailing list archive at Nabble.com.
Well, you're only serving the directory xml via the xml_curl. You need to make use of the Freeswitch's abiltity to use a custom database backend for it's registration and presence tables to make it foolproof. Check the core pgsql support or the odbc support in freeswitch for the listed things. What i have done however is to log the registration requests on the server side of the xml_curl servings and then create the bridge commands accordingly to where the user has last registered. It's a more crippled approach, but removes a point of failure for me (maintaining a pgsql server). On Fri, May 24, 2013 at 11:08 AM, mehroz <mehroz.ashraf85@gmail.com> wrote:
Hi all,
I have a DB server, storing SIP users and auth information.
2 freeswitch servers configured with mod_xml_curl , and an attempt of registration on both servers looks for SIP authentication from DB server. At the moment, i am defining 2 domains on DB server (FS-1 IP and FS-2 IP), and creating unique user , 2 times to address both domains.
I want to get rid of creating 2 users for both domains. What is the best approach.
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Centralized-SIP-directory-tp75... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Exactly, that is what i am doing. using ODBC with Mysql. My registration are saving in "sip_registration" table and i can get the IP location of each user (sip_host address). A perl script serving the purpose of fetching records from DB and knowing the IP location of callee and caller. But , i am trapped in "domain" structure of FS. I do not want to create two copies of a single user, like SIP number : 1000 with domain of FS IP-1 SIP number : 1000 with domain of FS IP-2 As both FS instance need to knwo if that user exists in their directory or not, which is depicted in terms of "domain" -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Centralized-SIP-directory-tp75... Sent from the freeswitch-users mailing list archive at Nabble.com.
You might be looking at it the wrong way... You don't need to entries of the user, you need a single entry but with multiple domain values. So the curl lookup selects from the db where user = xx and domain LIKE %xx% something like that -Jm -----Original Message----- From: mehroz <mehroz.ashraf85@gmail.com> To: freeswitch-users <freeswitch-users@lists.freeswitch.org> Sent: Fri, May 24, 2013 9:46 pm Subject: Re: [Freeswitch-users] Centralized SIP directory Exactly, that is what i am doing. using ODBC with Mysql. My registration are saving in "sip_registration" table and i can get the IP location of each user (sip_host address). A perl script serving the purpose of fetching records from DB and knowing the IP location of callee and caller. But , i am trapped in "domain" structure of FS. I do not want to create two copies of a single user, like SIP number : 1000 with domain of FS IP-1 SIP number : 1000 with domain of FS IP-2 As both FS instance need to knwo if that user exists in their directory or not, which is depicted in terms of "domain" -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Centralized-SIP-directory-tp75... Sent from the freeswitch-users mailing list archive at Nabble.com. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Alright, and how do we tell it to support multiple domain with a single user? -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Centralized-SIP-directory-tp75... Sent from the freeswitch-users mailing list archive at Nabble.com.
I'm assuming by 'it' you mean freeswitch. I expect you don't need to, you send a curl request off to the central server from FS01 checking the credentials of the user trying to log in. On the central server it currently does a db lookup for the user that is stored for the domain on the FS01 server. I assume that will be in a column 'domain' or some such. Just expand that column domain to store the domains of both servers and when the lookup comes in match against the value with the mysql LIKE function instead of = Or it's possible that I completely don't understand what you are trying to do. -Jm -----Original Message----- From: mehroz <mehroz.ashraf85@gmail.com> To: freeswitch-users <freeswitch-users@lists.freeswitch.org> Sent: Sat, May 25, 2013 1:04 am Subject: Re: [Freeswitch-users] Centralized SIP directory Alright, and how do we tell it to support multiple domain with a single user? -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Centralized-SIP-directory-tp75... Sent from the freeswitch-users mailing list archive at Nabble.com. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
yes, something like that you mention. But the DB schema and script are imported from Freeswitch-contrib, and it says to define a domain name, and assign an ID to it. and then while declaring directory, associate them to that domain ID. i dont see any way of associated a user with 2 IDs. But, i somehow managaed to do that, i.e, disabling/commenting -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Centralized-SIP-directory-tp75... Sent from the freeswitch-users mailing list archive at Nabble.com.
On 13-05-28 08:59 AM, mehroz wrote:
yes, something like that you mention. But the DB schema and script are imported from Freeswitch-contrib, and it says to define a domain name, and assign an ID to it. and then while declaring directory, associate them to that domain ID. i dont see any way of associated a user with 2 IDs.
If you don't actually need the ability to support multiple domains, you could set the force params on each box so the domain is always the same. If you set the following params with "your.domain.tld" instead of "$${domain}", then it would force the domain to be your.domain.tld no matter which box was requesting the config. you can see the wiki for specifics on the following params. <param name="force-register-domain" value="$${domain}"/> <param name="force-subscription-domain" value="$${domain}"/> <param name="force-register-db-domain" value="$${domain}"/> -Ray
participants (4)
-
Daniel Ivanov
-
John M
-
mehroz
-
Raymond Chandler