From anthony.minessale at gmail.com Tue May 1 00:04:15 2018 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Mon, 30 Apr 2018 19:04:15 -0500 Subject: [Freeswitch-users] FSBlue / FreeSWITCH 1.8 In-Reply-To: References: Message-ID: Its challenging to maintain multiple websites so we folded them together and are working towards a unified freeswitch.com with everything under one roof. The previous freeswitch.org site still exists as freeswitch.com/oss and donations are as welcome as ever: https://freeswitch.com/oss/donate/ If there are any other known broken links published somewhere prominent, feel free to point to the source page and we can work to resolve them. On Mon, Apr 30, 2018 at 6:13 PM, jungle Boogie wrote: > On 30 April 2018 at 14:16, Michael Jerris wrote: > > We think we’ve found a good balance that allows for customers to get > early access to the core teams work, while still proving for a vibrant open > source experience and allow everyone access to public contributions in a > timely manner. All code submitted through pull requests of course remains > 100% open source, and the core teams contributions will continue to make > their way into the open source releases. This helps solidify the stability > and funding for the project, while maintaining its availability as open > source software for all. We have seen that the open source contributions > continue to be a vibrant and dynamic addition to the FreeSWITCH ecosystem > as they always have been, and we look forward to more of the same in the > future. If you have any questions or concerns, feel free to reach out to > me privately and I would be happy to discuss. > > > > With freeswitch.org being redirected to your freeswitch.com, are you > no longer taking donations? > https://freeswitch.com/donate > > That doesn't exist. > > I think most of us want to see the company grow and foster and see > your customer list increase, it's already quite impressive. How about > a cluecon call that talks about your current customers and your future > plans with FS advantage? > > > Mike > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -- Anthony Minessale II Founder, FreeSWITCH. http://freeswitch.com https://youtu.be/l_hOxzCt6X4 https://www.youtube.com/watch?v=oAxXgyx5jUw https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at infomedia.si Tue May 1 13:47:57 2018 From: gregor at infomedia.si (Gregor Nanger) Date: Tue, 01 May 2018 13:47:57 +0000 Subject: [Freeswitch-users] FSBlue / FreeSWITCH 1.8 In-Reply-To: References: Message-ID: Unfortunately this was just a matter of time. But can you please make some rules and let community knows? You know, we all love you. Best regards, Gregor On Mon, Apr 30, 2018, 22:55 Steven Ayre wrote: > When you say on a 'delayed' basis, what timeframe are we talking about? > > > On 30 April 2018 at 17:15, Michael Jerris wrote: > >> FreeSWITCH Advantage does indeed have fixes that are not yet released >> into our public repositories. One of the advantages to FreeSWITCH >> Advantage would be that you can advanced access to some fixes and >> releases. All of these will eventually make it down to the public >> releases, but on a delayed basis. >> >> Mike >> >> >> On Apr 30, 2018, at 10:13 AM, Steven Ayre wrote: >> >> There is also a FreeSWITCH Advantage repository ( >> https://freeswitch.com/index.php/freeswitch-advantage/). This might be >> ahead of the public master branch? >> >> On 30 April 2018 at 14:34, Stanislav Sinyagin >> wrote: >> >>> 1.8 is not released yet, but all source code is available in master >>> branch. There are also .deb packages for 1.9.0 which are made from the >>> master branch on a regular (daily?) basis. >>> >>> >>> >>> On Mon, Apr 30, 2018 at 11:37 AM, Markus Bönke wrote: >>> > Hello, >>> > >>> > I just saw that the freeswitch team is offering now a hosting service >>> FSBlue >>> > (https://freeswitch.com/index.php/fs-blue/). In the description it is >>> > mentioned that the manages instances are based on Freeswitch 1.8. So is >>> > there now a commercial, closed source branch for Freeswitch 1.8 and a >>> > community edition based on the 1.6 branch? >>> > >>> > Thanks and regards >>> > >>> > Markus >>> > >>> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -- Gregor Nanger *CTO* t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si -------------- next part -------------- An HTML attachment was scrubbed... URL: From mario_fs at mgtech.com Tue May 1 15:09:43 2018 From: mario_fs at mgtech.com (Mario) Date: Tue, 1 May 2018 08:09:43 -0700 Subject: [Freeswitch-users] FSBlue / FreeSWITCH 1.8 In-Reply-To: References: Message-ID: <3F59BC98-EA94-4028-8BA7-30BA3639D30A@mgtech.com> Thought you should know: freeswitch.com/oss is a blank page, it starts at https://freeswitch.com/oss/getting-started/ And…. The page has community spelled wrong: JOINING THE COMUNNITY > On Apr 30, 2018, at 5:04 PM, Anthony Minessale wrote: > > Its challenging to maintain multiple websites so we folded them together and are working towards a unified freeswitch.com with everything under one roof. > The previous freeswitch.org site still exists as freeswitch.com/oss and donations are as welcome as ever: https://freeswitch.com/oss/donate/ > > If there are any other known broken links published somewhere prominent, feel free to point to the source page and we can work to resolve them. > > > > > > > On Mon, Apr 30, 2018 at 6:13 PM, jungle Boogie > wrote: > On 30 April 2018 at 14:16, Michael Jerris > wrote: > > We think we’ve found a good balance that allows for customers to get early access to the core teams work, while still proving for a vibrant open source experience and allow everyone access to public contributions in a timely manner. All code submitted through pull requests of course remains 100% open source, and the core teams contributions will continue to make their way into the open source releases. This helps solidify the stability and funding for the project, while maintaining its availability as open source software for all. We have seen that the open source contributions continue to be a vibrant and dynamic addition to the FreeSWITCH ecosystem as they always have been, and we look forward to more of the same in the future. If you have any questions or concerns, feel free to reach out to me privately and I would be happy to discuss. > > > > With freeswitch.org being redirected to your freeswitch.com , are you > no longer taking donations? > https://freeswitch.com/donate > > That doesn't exist. > > I think most of us want to see the company grow and foster and see > your customer list increase, it's already quite impressive. How about > a cluecon call that talks about your current customers and your future > plans with FS advantage? > > > Mike > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > -- > Anthony Minessale II > Founder, FreeSWITCH. > http://freeswitch.com > > > https://youtu.be/l_hOxzCt6X4 > https://www.youtube.com/watch?v=oAxXgyx5jUw > https://www.youtube.com/watch?v=9XXgW34t40s > https://www.youtube.com/watch?v=NLaDpGQuZDA > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mario_fs at mgtech.com Tue May 1 15:12:11 2018 From: mario_fs at mgtech.com (Mario) Date: Tue, 1 May 2018 08:12:11 -0700 Subject: [Freeswitch-users] FSBlue / FreeSWITCH 1.8 In-Reply-To: <3F59BC98-EA94-4028-8BA7-30BA3639D30A@mgtech.com> References: <3F59BC98-EA94-4028-8BA7-30BA3639D30A@mgtech.com> Message-ID: <8C55F540-06ED-443F-9B73-0003B54AA4BA@mgtech.com> Thought you should know: freeswitch.com/oss is a “page not found", it starts at https://freeswitch.com/oss/getting-started/ There is no sign-on option on the page, only a setup new account. And…. The page has community spelled wrong: JOINING THE COMUNNITY > On May 1, 2018, at 8:09 AM, Mario wrote: > > Thought you should know: freeswitch.com/oss is a blank page, it starts at https://freeswitch.com/oss/getting-started/ > > And…. The page has community spelled wrong: > > JOINING THE COMUNNITY > > > >> On Apr 30, 2018, at 5:04 PM, Anthony Minessale > wrote: >> >> Its challenging to maintain multiple websites so we folded them together and are working towards a unified freeswitch.com with everything under one roof. >> The previous freeswitch.org site still exists as freeswitch.com/oss and donations are as welcome as ever: https://freeswitch.com/oss/donate/ >> >> If there are any other known broken links published somewhere prominent, feel free to point to the source page and we can work to resolve them. >> >> >> >> >> >> >> On Mon, Apr 30, 2018 at 6:13 PM, jungle Boogie > wrote: >> On 30 April 2018 at 14:16, Michael Jerris > wrote: >> > We think we’ve found a good balance that allows for customers to get early access to the core teams work, while still proving for a vibrant open source experience and allow everyone access to public contributions in a timely manner. All code submitted through pull requests of course remains 100% open source, and the core teams contributions will continue to make their way into the open source releases. This helps solidify the stability and funding for the project, while maintaining its availability as open source software for all. We have seen that the open source contributions continue to be a vibrant and dynamic addition to the FreeSWITCH ecosystem as they always have been, and we look forward to more of the same in the future. If you have any questions or concerns, feel free to reach out to me privately and I would be happy to discuss. >> > >> >> With freeswitch.org being redirected to your freeswitch.com , are you >> no longer taking donations? >> https://freeswitch.com/donate >> >> That doesn't exist. >> >> I think most of us want to see the company grow and foster and see >> your customer list increase, it's already quite impressive. How about >> a cluecon call that talks about your current customers and your future >> plans with FS advantage? >> >> > Mike >> > >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> >> >> -- >> Anthony Minessale II >> Founder, FreeSWITCH. >> http://freeswitch.com >> >> >> https://youtu.be/l_hOxzCt6X4 >> https://www.youtube.com/watch?v=oAxXgyx5jUw >> https://www.youtube.com/watch?v=9XXgW34t40s >> https://www.youtube.com/watch?v=NLaDpGQuZDA >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at freeswitch.com Tue May 1 15:51:30 2018 From: brian at freeswitch.com (Brian West) Date: Tue, 1 May 2018 10:51:30 -0500 Subject: [Freeswitch-users] FSBlue / FreeSWITCH 1.8 In-Reply-To: <8C55F540-06ED-443F-9B73-0003B54AA4BA@mgtech.com> References: <3F59BC98-EA94-4028-8BA7-30BA3639D30A@mgtech.com> <8C55F540-06ED-443F-9B73-0003B54AA4BA@mgtech.com> Message-ID: Thats fixed, I had missed a rule in the ipv6 config for non-https connections. /b On Tue, May 1, 2018 at 10:12 AM, Mario wrote: > Thought you should know: freeswitch.com/oss is a “page not found", it > starts at https://freeswitch.com/oss/getting-started/ > > There is no sign-on option on the page, only a setup new account. > > And…. The page has community spelled wrong: > > JOINING THE COMUNNITY > > > > On May 1, 2018, at 8:09 AM, Mario wrote: > > Thought you should know: freeswitch.com/oss is a blank page, it starts at > https://freeswitch.com/oss/getting-started/ > > And…. The page has community spelled wrong: > > JOINING THE COMUNNITY > > > On Apr 30, 2018, at 5:04 PM, Anthony Minessale < > anthony.minessale at gmail.com> wrote: > > Its challenging to maintain multiple websites so we folded them together > and are working towards a unified freeswitch.com with everything under > one roof. > The previous freeswitch.org site still exists as freeswitch.com/oss and > donations are as welcome as ever: https://freeswitch.com/oss/donate/ > > If there are any other known broken links published somewhere prominent, > feel free to point to the source page and we can work to resolve them. > > > > > > > On Mon, Apr 30, 2018 at 6:13 PM, jungle Boogie > wrote: > >> On 30 April 2018 at 14:16, Michael Jerris wrote: >> > We think we’ve found a good balance that allows for customers to get >> early access to the core teams work, while still proving for a vibrant open >> source experience and allow everyone access to public contributions in a >> timely manner. All code submitted through pull requests of course remains >> 100% open source, and the core teams contributions will continue to make >> their way into the open source releases. This helps solidify the stability >> and funding for the project, while maintaining its availability as open >> source software for all. We have seen that the open source contributions >> continue to be a vibrant and dynamic addition to the FreeSWITCH ecosystem >> as they always have been, and we look forward to more of the same in the >> future. If you have any questions or concerns, feel free to reach out to >> me privately and I would be happy to discuss. >> > >> >> With freeswitch.org being redirected to your freeswitch.com, are you >> no longer taking donations? >> https://freeswitch.com/donate >> >> That doesn't exist. >> >> I think most of us want to see the company grow and foster and see >> your customer list increase, it's already quite impressive. How about >> a cluecon call that talks about your current customers and your future >> plans with FS advantage? >> >> > Mike >> > >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > > > > -- > Anthony Minessale II > Founder, FreeSWITCH. > http://freeswitch.com > > > https://youtu.be/l_hOxzCt6X4 > https://www.youtube.com/watch?v=oAxXgyx5jUw > https://www.youtube.com/watch?v=9XXgW34t40s > https://www.youtube.com/watch?v=NLaDpGQuZDA > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -- Brian West | Co-founder and Developer Need Commercial support? email sales at freeswitch.com FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 Email: brian at freeswitch.com Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com [image: https://www.facebook.com/signalwireinc?src=email] [image: https://twitter.com/freeswitch] -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at mailworks.org Tue May 1 15:57:03 2018 From: michael at mailworks.org (Michael Avers) Date: Tue, 01 May 2018 08:57:03 -0700 Subject: [Freeswitch-users] FSBlue / FreeSWITCH 1.8 In-Reply-To: References: Message-ID: <1525190223.2530614.1357044776.719CA65F@webmail.messagingengine.com> How is this a surprise to anyone? I'm actually surprised they didn't make these moves sooner. Look at what NGINX, MongoDB, etc. have done. FS folks should have gone enterprisey a long time ago. They deserve to get paid the big bucks from the very many companies out there earning real money thanks in big part to FS (Ooma, Dialpad, Fuze, too many to list). The only thing I'd add is that it would be nice to see some clarity on pricing and availability of things like Advantage, Blue, etc. Right now it's just a vague concept. Also the website folks need to step it up a few notches... Mike On Tue, May 1, 2018, at 6:47 AM, Gregor Nanger wrote: > Unfortunately this was just a matter of time. But can you please make > some rules and let community knows? You know, we all love you.> > Best regards, Gregor > > On Mon, Apr 30, 2018, 22:55 Steven Ayre wrote: >> When you say on a 'delayed' basis, what timeframe are we >> talking about?>> >> >> On 30 April 2018 at 17:15, Michael Jerris wrote: >>> FreeSWITCH Advantage does indeed have fixes that are not yet >>> released into our public repositories. One of the advantages to >>> FreeSWITCH Advantage would be that you can advanced access to some >>> fixes and releases. All of these will eventually make it down to >>> the public releases, but on a delayed basis.>>> >>> Mike >>> >>> >>>> On Apr 30, 2018, at 10:13 AM, Steven Ayre >>>> wrote:>>>> >>>> There is also a FreeSWITCH Advantage repository >>>> (https://freeswitch.com/index.php/freeswitch-advantage/). This >>>> might be ahead of the public master branch?>>>> >>>> On 30 April 2018 at 14:34, Stanislav Sinyagin >>>> wrote:>>>>> 1.8 is not released yet, but all source code is available in >>>>> master branch. There are also .deb packages for 1.9.0 which are >>>>> made from the master branch on a regular (daily?) basis.>>>>> >>>>> >>>>> >>>>> On Mon, Apr 30, 2018 at 11:37 AM, Markus Bönke >>>>> wrote: >>>>> > Hello, >>>>> > >>>>> > I just saw that the freeswitch team is offering now a hosting >>>>> > service FSBlue (https://freeswitch.com/index.php/fs-blue/). In >>>>> > the description it is mentioned that the manages instances are >>>>> > based on Freeswitch 1.8. So is there now a commercial, closed >>>>> > source branch for Freeswitch 1.8 and a community edition based >>>>> > on the 1.6 branch? >>>>> > >>>>> > Thanks and regards >>>>> > >>>>> > Markus >>>>> >>>> >>> >>> ___________________________________________________________________- >>> ______>>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE: >>> http://lists.freeswitch.org/mailman/options/freeswitch-users>>> http://www.freeswitch.org >> >> __________________________________________________________________- >> _______>> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE: >> http://lists.freeswitch.org/mailman/options/freeswitch-users>> http://www.freeswitch.org > -- > Gregor Nanger > > *CTO* > t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia > d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si[1]> ___________________________________________________________________- > ________> Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE: > http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org Links: 1. http://www.infomedia.si/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From anthony.minessale at gmail.com Tue May 1 16:57:33 2018 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Tue, 1 May 2018 11:57:33 -0500 Subject: [Freeswitch-users] FSBlue / FreeSWITCH 1.8 In-Reply-To: <8C55F540-06ED-443F-9B73-0003B54AA4BA@mgtech.com> References: <3F59BC98-EA94-4028-8BA7-30BA3639D30A@mgtech.com> <8C55F540-06ED-443F-9B73-0003B54AA4BA@mgtech.com> Message-ID: On Tue, May 1, 2018 at 10:12 AM, Mario wrote: > Thought you should know: freeswitch.com/oss is a “page not found", it > starts at https://freeswitch.com/oss/getting-started/ > IPV6 Issue, resolved. > > There is no sign-on option on the page, only a setup new account. > There is nothing to really sign into as each page like jira and confluence already ask you to sign in once its needed. > > > And…. The page has community spelled wrong: > > JOINING THE COMUNNITY > > > Good eye, Best part. This has been like this for an entire year. =D That page was created May of 2017 > > On May 1, 2018, at 8:09 AM, Mario wrote: > > Thought you should know: freeswitch.com/oss is a blank page, it starts at > https://freeswitch.com/oss/getting-started/ > > And…. The page has community spelled wrong: > > JOINING THE COMUNNITY > > > On Apr 30, 2018, at 5:04 PM, Anthony Minessale < > anthony.minessale at gmail.com> wrote: > > Its challenging to maintain multiple websites so we folded them together > and are working towards a unified freeswitch.com with everything under > one roof. > The previous freeswitch.org site still exists as freeswitch.com/oss and > donations are as welcome as ever: https://freeswitch.com/oss/donate/ > > If there are any other known broken links published somewhere prominent, > feel free to point to the source page and we can work to resolve them. > > > > > > > On Mon, Apr 30, 2018 at 6:13 PM, jungle Boogie > wrote: > >> On 30 April 2018 at 14:16, Michael Jerris wrote: >> > We think we’ve found a good balance that allows for customers to get >> early access to the core teams work, while still proving for a vibrant open >> source experience and allow everyone access to public contributions in a >> timely manner. All code submitted through pull requests of course remains >> 100% open source, and the core teams contributions will continue to make >> their way into the open source releases. This helps solidify the stability >> and funding for the project, while maintaining its availability as open >> source software for all. We have seen that the open source contributions >> continue to be a vibrant and dynamic addition to the FreeSWITCH ecosystem >> as they always have been, and we look forward to more of the same in the >> future. If you have any questions or concerns, feel free to reach out to >> me privately and I would be happy to discuss. >> > >> >> With freeswitch.org being redirected to your freeswitch.com, are you >> no longer taking donations? >> https://freeswitch.com/donate >> >> That doesn't exist. >> >> I think most of us want to see the company grow and foster and see >> your customer list increase, it's already quite impressive. How about >> a cluecon call that talks about your current customers and your future >> plans with FS advantage? >> >> > Mike >> > >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > > > > -- > Anthony Minessale II > Founder, FreeSWITCH. > http://freeswitch.com > > > https://youtu.be/l_hOxzCt6X4 > https://www.youtube.com/watch?v=oAxXgyx5jUw > https://www.youtube.com/watch?v=9XXgW34t40s > https://www.youtube.com/watch?v=NLaDpGQuZDA > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -- Anthony Minessale II Founder, FreeSWITCH. http://freeswitch.com https://youtu.be/l_hOxzCt6X4 https://www.youtube.com/watch?v=oAxXgyx5jUw https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA -------------- next part -------------- An HTML attachment was scrubbed... URL: From anthony.minessale at gmail.com Tue May 1 17:17:31 2018 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Tue, 1 May 2018 12:17:31 -0500 Subject: [Freeswitch-users] FSBlue / FreeSWITCH 1.8 In-Reply-To: <1525190223.2530614.1357044776.719CA65F@webmail.messagingengine.com> References: <1525190223.2530614.1357044776.719CA65F@webmail.messagingengine.com> Message-ID: On Tue, May 1, 2018 at 10:57 AM, Michael Avers wrote: > How is this a surprise to anyone? I'm actually surprised they didn't make > these moves sooner. Look at what NGINX, MongoDB, etc. have done. FS folks > should have gone enterprisey a long time ago. They deserve to get paid the > big bucks from the very many companies out there earning real money thanks > in big part to FS (Ooma, Dialpad, Fuze, too many to list). > > I appreciate your vote of confidence. Our mission to distributed telecom is only increasing. > The only thing I'd add is that it would be nice to see some clarity on > pricing and availability of things like Advantage, Blue, etc. Right now > it's just a vague concept. Also the website folks need to step it up a few > notches... > We're working through it. FSA is actually about a year old at this point so we have been so busy keeping up with maintaining everything that its quite a challenge. Pardon our dust while we try to unite some of our web properties and make a cohesive site. The website folks at this stage is basically us working after hours =D Resume's welcome! The overhead to run the project has become quite extensive and we have more employees than volunteers so the best path for the future of the project is to have commercial services to subsidize taking things to the next level which I think everyone will quite enjoy as the next several months unfold. There is a lot of wiggle room between our commercial offerings and the original prices of telecom FreeSWITCH helped take down 20 notches in the 12 years it has existed. > > Mike > > > On Tue, May 1, 2018, at 6:47 AM, Gregor Nanger wrote: > > Unfortunately this was just a matter of time. But can you please make some > rules and let community knows? You know, we all love you. > > Best regards, Gregor > > On Mon, Apr 30, 2018, 22:55 Steven Ayre wrote: > > When you say on a 'delayed' basis, what timeframe are we talking about? > > > On 30 April 2018 at 17:15, Michael Jerris wrote: > > FreeSWITCH Advantage does indeed have fixes that are not yet released into > our public repositories. One of the advantages to FreeSWITCH Advantage > would be that you can advanced access to some fixes and releases. All of > these will eventually make it down to the public releases, but on a delayed > basis. > > Mike > > > On Apr 30, 2018, at 10:13 AM, Steven Ayre wrote: > > There is also a FreeSWITCH Advantage repository ( > https://freeswitch.com/index.php/freeswitch-advantage/). This might be > ahead of the public master branch? > > On 30 April 2018 at 14:34, Stanislav Sinyagin wrote: > > 1.8 is not released yet, but all source code is available in master > branch. There are also .deb packages for 1.9.0 which are made from the > master branch on a regular (daily?) basis. > > > > On Mon, Apr 30, 2018 at 11:37 AM, Markus Bönke wrote: > > Hello, > > > > I just saw that the freeswitch team is offering now a hosting service > FSBlue > > (https://freeswitch.com/index.php/fs-blue/). In the description it is > > mentioned that the manages instances are based on Freeswitch 1.8. So is > > there now a commercial, closed source branch for Freeswitch 1.8 and a > > community edition based on the 1.6 branch? > > > > Thanks and regards > > > > Markus > > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > -- > Gregor Nanger > > *CTO* > t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 > • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia > • www.infomedia.si > *_________________________________________________________________________* > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -- Anthony Minessale II Founder, FreeSWITCH. http://freeswitch.com https://youtu.be/l_hOxzCt6X4 https://www.youtube.com/watch?v=oAxXgyx5jUw https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA -------------- next part -------------- An HTML attachment was scrubbed... URL: From jprangi at didforsale.com Tue May 1 18:47:02 2018 From: jprangi at didforsale.com (Jai Rangi) Date: Tue, 1 May 2018 11:47:02 -0700 Subject: [Freeswitch-users] FSBlue / FreeSWITCH 1.8 In-Reply-To: <1525190223.2530614.1357044776.719CA65F@webmail.messagingengine.com> References: <1525190223.2530614.1357044776.719CA65F@webmail.messagingengine.com> Message-ID: +1 to this one. These people work their butt off, so definitely deserve to get something of it. *Jai Rangi* Cebod Technologies LLC dba DIDforSale/Cebod Telecom O 949-471-0102 | C 949-419-7634 <1-949-419-7634> | F 949-269-0449 / 949-232-1410 | jprangi at didforsale.com www.cebod.com | www.didforsale.com |2372 Morse Ave., Ste. 124, Irvine, CA 92614| On Tue, May 1, 2018 at 8:57 AM, Michael Avers wrote: > How is this a surprise to anyone? I'm actually surprised they didn't make > these moves sooner. Look at what NGINX, MongoDB, etc. have done. FS folks > should have gone enterprisey a long time ago. They deserve to get paid the > big bucks from the very many companies out there earning real money thanks > in big part to FS (Ooma, Dialpad, Fuze, too many to list). > > The only thing I'd add is that it would be nice to see some clarity on > pricing and availability of things like Advantage, Blue, etc. Right now > it's just a vague concept. Also the website folks need to step it up a few > notches... > > Mike > > > On Tue, May 1, 2018, at 6:47 AM, Gregor Nanger wrote: > > Unfortunately this was just a matter of time. But can you please make some > rules and let community knows? You know, we all love you. > > Best regards, Gregor > > On Mon, Apr 30, 2018, 22:55 Steven Ayre wrote: > > When you say on a 'delayed' basis, what timeframe are we talking about? > > > On 30 April 2018 at 17:15, Michael Jerris wrote: > > FreeSWITCH Advantage does indeed have fixes that are not yet released into > our public repositories. One of the advantages to FreeSWITCH Advantage > would be that you can advanced access to some fixes and releases. All of > these will eventually make it down to the public releases, but on a delayed > basis. > > Mike > > > On Apr 30, 2018, at 10:13 AM, Steven Ayre wrote: > > There is also a FreeSWITCH Advantage repository ( > https://freeswitch.com/index.php/freeswitch-advantage/). This might be > ahead of the public master branch? > > On 30 April 2018 at 14:34, Stanislav Sinyagin wrote: > > 1.8 is not released yet, but all source code is available in master > branch. There are also .deb packages for 1.9.0 which are made from the > master branch on a regular (daily?) basis. > > > > On Mon, Apr 30, 2018 at 11:37 AM, Markus Bönke wrote: > > Hello, > > > > I just saw that the freeswitch team is offering now a hosting service > FSBlue > > (https://freeswitch.com/index.php/fs-blue/). In the description it is > > mentioned that the manages instances are based on Freeswitch 1.8. So is > > there now a commercial, closed source branch for Freeswitch 1.8 and a > > community edition based on the 1.6 branch? > > > > Thanks and regards > > > > Markus > > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > -- > Gregor Nanger > > *CTO* > t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 > • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia > • www.infomedia.si > *_________________________________________________________________________* > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfd-fs at fohn.org Wed May 2 02:10:09 2018 From: cfd-fs at fohn.org (Charlie DeTar) Date: Tue, 01 May 2018 20:10:09 -0600 Subject: [Freeswitch-users] youtube broadcast from freeswitch audio quality Message-ID: <1525227009.1206530.1357641208.25F15543@webmail.messagingengine.com> Hi, I'm trying to broadcast multiparty audio and video through youtube, using this stack: Browser (Chrome) -> Custom webapp using Verto -> mod_conference -> record to rtmp -> youtube live However, I'm getting poor audio quality on youtube in the live broadcast. Here's an example (this video is screen-capped from the live player, because youtube seems to clean up the recorded file after the fact. I've tested with multiple computers/browsers that this is how it sounds to everyone during the live broadcast.): https://youtu.be/bO8t78YXxjc That is using the "Low Latency" setting in youtube. The conference.conf.xml "interval" parameter seems to also have an effect; I have it set to 10 here as that seemed to get fewer pops than the default 20. Using youtube's "Ultra-low latency" setting, things are even worse: https://youtu.be/ShuitSWYy5A The "Normal latency" setting is better, but still has more frequent popping than I'd like: https://youtu.be/cyZQTWDctEs The same configuration when pointed at UStream endpoint instead of YouTube produces fine audio quality (the following example is screencapped from a live ustream player then uploaded to youtube): https://www.youtube.com/watch?v=Ng9boh_5_ik I've been trying to tweak all of the audio parameters I can find to discern some magic combination that makes youtube happy -- but I haven't been able to find something that gets rid of the popping. The fact that UStream likes the audio just fine tells me that there's some incompatibility between freeswitch's stream and youtube, and not just brokenness on the webrtc or mux setup. I've tried 48kHZ, 44.1kHz, and lower; stereo and mono; various interval settings; and a lot of other parameters that appear to be unrelated (does rtmp.conf.xml get involved in recording a conference at all, or is that just for incoming rtmp calls?). Any ideas on what I might need to change to make freeswitch-to-youtube live audio smooth? The following is my conference.conf.xml in its entirety. Happy to share other configs if helpful.                                                                               From joes.mailing.lists at gmail.com Wed May 2 08:52:44 2018 From: joes.mailing.lists at gmail.com ( .) Date: Wed, 2 May 2018 10:52:44 +0200 Subject: [Freeswitch-users] FreeSWITCH/UniMRCP: Using multiple mrcp profiles in a single dialplan: how to switch/destroy session Message-ID: Hi, I am trying to use two separate MRCP profiles in the context of the same dialplan. The configurations work fine as long as a given dialplan only uses _one_ of the profiles during a given call. However I currently I have a dialplan where I would like to use profile A. (connecting to MRCP server 1) to field one question, and profile B. (connecting to MRCP server 2) to field another question. I issue the following command for profile A. and question 1: - %[current_grammar=s0]/usr/local/freeswitch/scripts/test-ivr/prompts/prompt.wav detect:unimrcp:profile-a {start-input-timers=false,no- input-timeout=3000,speech-incomplete-timeout=3500, recognition-timeout=5000,define-grammar=true,save- waveform=true,speech-language=es-MX}builtin:speech/grammar1 and the next one for profile B. and question 2: - %[current_grammar=s1]/usr/local/freeswitch/scripts/test-ivr/prompts/prompt.wav detect:unimrcp:profile-b {start-input-timers=false,no- input-timeout=3000,speech-incomplete-timeout=1500, recognition-timeout=5000,define-grammar=true,save- waveform=true}builtin:grammar/grammar2?language=es-MX Again, these both work fine if I only use one profile for a given dialplan application or call. However, in the current case, I can see in my FreeSWITCH logs, in my ESL logs, and in the respective UniMRCP server logs, that the second request is apparently somehow reusing the session and profile details from the first request. In my log I see the correct command is sent, but FreeSWITCH/the UniMRCP client still sends the second request using the connection details from the first profile, which then fails because grammar2 is not available via profile A [because it is handled by the server sitting behind profile B]. If I reverse the order, I see that both requests again arrive at the MRCP server attached to profile B. I dug around the confluence wiki and found some references to parameters being sticky: - https://freeswitch.org/confluence/display/FREESWITCH/ mod_dptools%3A+play_and_detect_speech#mod_dptools: play_and_detect_speech-Lua and also tried manually setting "play_and_detect_speech_close_asr=true", but nothing seems to close the session. Any hints would be greatly appreciated; alternatively if this impossible without digging around in the mod_ source that would be good to know too. Best regards, Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From anthony.minessale at gmail.com Wed May 2 18:55:26 2018 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Wed, 2 May 2018 13:55:26 -0500 Subject: [Freeswitch-users] youtube broadcast from freeswitch audio quality In-Reply-To: <1525227009.1206530.1357641208.25F15543@webmail.messagingengine.com> References: <1525227009.1206530.1357641208.25F15543@webmail.messagingengine.com> Message-ID: mod_rtmp is not related to recording over rtmp its a legacy endpoint for flash audio embedded in a browser. We broadcast ClueCon weekly on our youtube page every week and we have no audio issues but we do make sure we have at least 4-5mb stream for 1080p quality. https://www.youtube.com/watch?v=gJqkld_C0dk Maybe try recording to an mp4 and compare. BTW, I haven't heard from you in 2 years! Are you still doing the MIT thing? Ping me offline maybe. On Tue, May 1, 2018 at 9:10 PM, Charlie DeTar wrote: > Hi, > > I'm trying to broadcast multiparty audio and video through youtube, using > this stack: > > Browser (Chrome) -> Custom webapp using Verto -> mod_conference -> > record to rtmp -> youtube live > > However, I'm getting poor audio quality on youtube in the live broadcast. > Here's an example (this video is screen-capped from the live player, > because youtube seems to clean up the recorded file after the fact. I've > tested with multiple computers/browsers that this is how it sounds to > everyone during the live broadcast.): > https://youtu.be/bO8t78YXxjc > > That is using the "Low Latency" setting in youtube. The > conference.conf.xml "interval" parameter seems to also have an effect; I > have it set to 10 here as that seemed to get fewer pops than the default 20. > > Using youtube's "Ultra-low latency" setting, things are even worse: > https://youtu.be/ShuitSWYy5A > > The "Normal latency" setting is better, but still has more frequent > popping than I'd like: > https://youtu.be/cyZQTWDctEs > > The same configuration when pointed at UStream endpoint instead of YouTube > produces fine audio quality (the following example is screencapped from a > live ustream player then uploaded to youtube): > https://www.youtube.com/watch?v=Ng9boh_5_ik > > I've been trying to tweak all of the audio parameters I can find to > discern some magic combination that makes youtube happy -- but I haven't > been able to find something that gets rid of the popping. The fact that > UStream likes the audio just fine tells me that there's some > incompatibility between freeswitch's stream and youtube, and not just > brokenness on the webrtc or mux setup. I've tried 48kHZ, 44.1kHz, and > lower; stereo and mono; various interval settings; and a lot of other > parameters that appear to be unrelated (does rtmp.conf.xml get involved in > recording a conference at all, or is that just for incoming rtmp calls?). > > > Any ideas on what I might need to change to make freeswitch-to-youtube > live audio smooth? > > > The following is my conference.conf.xml in its entirety. Happy to share > other configs if helpful. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -- Anthony Minessale II Founder, FreeSWITCH. http://freeswitch.com https://youtu.be/l_hOxzCt6X4 https://www.youtube.com/watch?v=oAxXgyx5jUw https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefano.bertuola at athonet.com Thu May 3 11:47:24 2018 From: stefano.bertuola at athonet.com (Stefano Bertuola) Date: Thu, 3 May 2018 11:47:24 +0000 Subject: [Freeswitch-users] In proxy_media mode, RTCP is not proxied or activated Message-ID: Hi all. On February last year there was a discussion related to proxy_media mode and RTCP and I understood this is not actually supported. I am actually facing the same issue and I would like to understand if there is any way to get it working; since RTP is using an even port and RTCP the following one (RTP port + 1), is there any way to get both ports proxied? Br. Stefano From alex at freeswitch.com Thu May 3 12:49:49 2018 From: alex at freeswitch.com (Alexey Sibyakin) Date: Thu, 3 May 2018 21:49:49 +0900 Subject: [Freeswitch-users] In proxy_media mode, RTCP is not proxied or activated In-Reply-To: References: Message-ID: Hi These days FreeSWITCH has full support of video codecs and t.38. There is no point of using proxy mode or putting any efforts in it. Regards, Alex On Thu, May 3, 2018 at 8:47 PM, Stefano Bertuola < stefano.bertuola at athonet.com> wrote: > Hi all. > > On February last year there was a discussion related to proxy_media mode > and RTCP and I understood this is not actually supported. > > I am actually facing the same issue and I would like to understand if > there is any way to get it working; since RTP is using an even port and > RTCP the following one (RTP port + 1), is there any way to get both ports > proxied? > > Br. Stefano > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -- Alex Sibyakin | Support Engineer FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 Email: alex at freeswitch.com Website: https://www.FreeSWITCH.com Need commercial support? Contact sales at freeswitch.com for details. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfd-fs at fohn.org Thu May 3 14:28:08 2018 From: cfd-fs at fohn.org (Charlie DeTar) Date: Thu, 03 May 2018 08:28:08 -0600 Subject: [Freeswitch-users] youtube broadcast from freeswitch audio quality Message-ID: <1525357688.3574445.1359635896.2B77BE08@webmail.messagingengine.com> Any chance you could share pertinent details of the freeswitch config you use when broadcasting ClueCon to youtube? I'd love to compare differences with the mod_conference config I posted below to see if there's something obvious we're missing. Also, apart from conference.conf.xml, are there other confs that would be involved with determining details of the audio encoding for record-to-rtmp? Recording to a local mp4 file works flawlessly (just as broadcasting rtmp to UStream does). Bandwidth shouldn't be an issue, this is indeed running on MIT's fairly beefy networking pipes. It has been some time; we're still struggling to find an adequate multiparty video broadcast solution. We've ditched nginx-rtmp-module (it's been abandoned by its author) and are now attempting to use youtube's broadcast infrastructure instead. Because our multiparty video system has been so buggy, most of our users just use a single-point broadcast for real-time parts. But we'd really like to get multiparty working more smoothly. The project: https://unhangout.media.mit.edu best, Charlie On Wed, May 2, 2018, at 12:55 PM, Anthony Minessale wrote: > mod_rtmp is not related to recording over rtmp its a legacy endpoint > for flash audio embedded in a browser.> > We broadcast ClueCon weekly on our youtube page every week and we have > no audio issues but we do make sure we have at least 4-5mb stream for > 1080p quality.> https://www.youtube.com/watch?v=gJqkld_C0dk > > Maybe try recording to an mp4 and compare. > > BTW, I haven't heard from you in 2 years! Are you still doing the > MIT thing? Ping me offline maybe.> > > > On Tue, May 1, 2018 at 9:10 PM, Charlie DeTar wrote:>> Hi, >> >> I'm trying to broadcast multiparty audio and video through youtube, >> using this stack:>> >> Browser (Chrome) -> Custom webapp using Verto -> mod_conference -> >> record to rtmp -> youtube live>> >> However, I'm getting poor audio quality on youtube in the live >> broadcast. Here's an example (this video is screen-capped from the >> live player, because youtube seems to clean up the recorded file >> after the fact. I've tested with multiple computers/browsers that >> this is how it sounds to everyone during the live broadcast.):>> https://youtu.be/bO8t78YXxjc >> >> That is using the "Low Latency" setting in youtube. The >> conference.conf.xml "interval" parameter seems to also have an >> effect; I have it set to 10 here as that seemed to get fewer pops >> than the default 20.>> >> Using youtube's "Ultra-low latency" setting, things are even worse: >> https://youtu.be/ShuitSWYy5A >> >> The "Normal latency" setting is better, but still has more frequent >> popping than I'd like:>> https://youtu.be/cyZQTWDctEs >> >> The same configuration when pointed at UStream endpoint instead of >> YouTube produces fine audio quality (the following example is >> screencapped from a live ustream player then uploaded to youtube):>> https://www.youtube.com/watch?v=Ng9boh_5_ik >> >> I've been trying to tweak all of the audio parameters I can find to >> discern some magic combination that makes youtube happy -- but I >> haven't been able to find something that gets rid of the popping. >> The fact that UStream likes the audio just fine tells me that there's >> some incompatibility between freeswitch's stream and youtube, and not >> just brokenness on the webrtc or mux setup. I've tried 48kHZ, >> 44.1kHz, and lower; stereo and mono; various interval settings; and a >> lot of other parameters that appear to be unrelated (does >> rtmp.conf.xml get involved in recording a conference at all, or is >> that just for incoming rtmp calls?).>> >> >> Any ideas on what I might need to change to make freeswitch-to- >> youtube live audio smooth?>> >> >> The following is my conference.conf.xml in its entirety. Happy to >> share other configs if helpful.>> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > value='rtmp://a.rtmp.youtube.com/live2/<... youtube secret >> streaming key ...>'/>>> >> >> >> >> >> __________________________________________________________________- >> _______>> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE: >> http://lists.freeswitch.org/mailman/options/freeswitch-users>> http://www.freeswitch.org > > > > -- > Anthony Minessale II > Founder, FreeSWITCH. > http://freeswitch.com > > > https://youtu.be/l_hOxzCt6X4 > https://www.youtube.com/watch?v=oAxXgyx5jUw > https://www.youtube.com/watch?v=9XXgW34t40s > https://www.youtube.com/watch?v=NLaDpGQuZDA > ___________________________________________________________________- > ________> Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE: > http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefano.bertuola at gmail.com Thu May 3 13:17:10 2018 From: stefano.bertuola at gmail.com (Stefano Bertuola) Date: Thu, 3 May 2018 15:17:10 +0200 Subject: [Freeswitch-users] In proxy_media mode, RTCP is not proxied or activated In-Reply-To: References: Message-ID: Hi. It is not just an issue of supporting codecs, but also to preserve certain information inside the SDP like QoS and BandWidth. Without proxy-mode, many of the info in the SDP description (an example here) are removed from incoming to outgoing INVITE. Br. Stefano v=0 o=SAMSUNG-IMS-UE 12345643 0 IN IP4 172.17.143.124 s=SS IMS c=IN IP4 172.17.143.124 b=AS:41 b=RS:512 b=RR:1537 t=0 0 m=audio 30330 RTP/AVP 116 118 111 110 b=AS:41 b=RS:512 b=RR:1537 a=rtpmap:116 AMR-WB/16000/1 a=fmtp:116 mode-change-capability=2;max-red=0 a=rtpmap:118 AMR/8000/1 a=fmtp:118 mode-change-capability=2;max-red=0 a=rtpmap:111 telephone-event/16000 a=fmtp:111 0-15 a=rtpmap:110 telephone-event/8000 a=fmtp:110 0-15 a=curr:qos local none a=curr:qos remote none a=des:qos mandatory local sendrecv a=des:qos optional remote sendrecv a=ptime:20 a=maxptime:240 a=sendrecv a=rtcp:30331 On Thu, May 3, 2018 at 2:49 PM, Alexey Sibyakin wrote: > Hi > > These days FreeSWITCH has full support of video codecs and t.38. There is > no point of using proxy mode or putting any efforts in it. > > Regards, > > Alex > > On Thu, May 3, 2018 at 8:47 PM, Stefano Bertuola < > stefano.bertuola at athonet.com> wrote: > >> Hi all. >> >> On February last year there was a discussion related to proxy_media mode >> and RTCP and I understood this is not actually supported. >> >> I am actually facing the same issue and I would like to understand if >> there is any way to get it working; since RTP is using an even port and >> RTCP the following one (RTP port + 1), is there any way to get both ports >> proxied? >> >> Br. Stefano >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > > > > -- > Alex Sibyakin | Support Engineer > FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 > > Email: alex at freeswitch.com > Website: https://www.FreeSWITCH.com > Need commercial support? Contact sales at freeswitch.com for details. > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From krice at freeswitch.org Thu May 3 14:47:19 2018 From: krice at freeswitch.org (Ken Rice) Date: Thu, 3 May 2018 09:47:19 -0500 Subject: [Freeswitch-users] In proxy_media mode, RTCP is not proxied or activated In-Reply-To: References: Message-ID: <1f7101d3e2ed$a3d8b050$eb8a10f0$@freeswitch.org> With things like that you should probably contact consulting at freeswitch.org and get the pros involved. This gets you the direct support you need and supports moving the project forward. K From: FreeSWITCH-users On Behalf Of Stefano Bertuola Sent: Thursday, May 3, 2018 8:17 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] In proxy_media mode, RTCP is not proxied or activated Hi. It is not just an issue of supporting codecs, but also to preserve certain information inside the SDP like QoS and BandWidth. Without proxy-mode, many of the info in the SDP description (an example here) are removed from incoming to outgoing INVITE. Br. Stefano v=0 o=SAMSUNG-IMS-UE 12345643 0 IN IP4 172.17.143.124 s=SS IMS c=IN IP4 172.17.143.124 b=AS:41 b=RS:512 b=RR:1537 t=0 0 m=audio 30330 RTP/AVP 116 118 111 110 b=AS:41 b=RS:512 b=RR:1537 a=rtpmap:116 AMR-WB/16000/1 a=fmtp:116 mode-change-capability=2;max-red=0 a=rtpmap:118 AMR/8000/1 a=fmtp:118 mode-change-capability=2;max-red=0 a=rtpmap:111 telephone-event/16000 a=fmtp:111 0-15 a=rtpmap:110 telephone-event/8000 a=fmtp:110 0-15 a=curr:qos local none a=curr:qos remote none a=des:qos mandatory local sendrecv a=des:qos optional remote sendrecv a=ptime:20 a=maxptime:240 a=sendrecv a=rtcp:30331 On Thu, May 3, 2018 at 2:49 PM, Alexey Sibyakin > wrote: Hi These days FreeSWITCH has full support of video codecs and t.38. There is no point of using proxy mode or putting any efforts in it. Regards, Alex On Thu, May 3, 2018 at 8:47 PM, Stefano Bertuola > wrote: Hi all. On February last year there was a discussion related to proxy_media mode and RTCP and I understood this is not actually supported. I am actually facing the same issue and I would like to understand if there is any way to get it working; since RTP is using an even port and RTCP the following one (RTP port + 1), is there any way to get both ports proxied? Br. Stefano _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Alex Sibyakin | Support Engineer FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 Email: alex at freeswitch.com Website: https://www.FreeSWITCH.com Need commercial support? Contact sales at freeswitch.com for details. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From jungleboogie0 at gmail.com Fri May 4 15:32:17 2018 From: jungleboogie0 at gmail.com (jungle Boogie) Date: Fri, 4 May 2018 08:32:17 -0700 Subject: [Freeswitch-users] FSBlue / FreeSWITCH 1.8 In-Reply-To: References: <1525190223.2530614.1357044776.719CA65F@webmail.messagingengine.com> Message-ID: On 1 May 2018 at 10:17, Anthony Minessale wrote: > > We're working through it. FSA is actually about a year old at this point so we have been so busy keeping up with maintaining everything that its quite a challenge. > Pardon our dust while we try to unite some of our web properties and make a cohesive site. The website folks at this stage is basically us working after hours =D Resume's welcome! > The overhead to run the project has become quite extensive and we have more employees than volunteers so the best path for the future of the project is to have commercial services to subsidize taking things to the next level which I think everyone will quite enjoy as the next several months unfold. There is a lot of wiggle room between our commercial offerings and the original prices of telecom FreeSWITCH helped take down 20 notches in the 12 years it has existed. > Do you think your company will write anymore books regarding freeswitch? They're quite enjoyable and cover so much detail. From mike at jerris.com Fri May 4 15:37:35 2018 From: mike at jerris.com (Michael Jerris) Date: Fri, 4 May 2018 11:37:35 -0400 Subject: [Freeswitch-users] FSBlue / FreeSWITCH 1.8 In-Reply-To: References: <1525190223.2530614.1357044776.719CA65F@webmail.messagingengine.com> Message-ID: The books happen when the publisher approaches us about wanting to do another one. They are typically a mostly volunteer labor of love. Its certainly possible but we don’t have any that are in process right now. > On May 4, 2018, at 11:32 AM, jungle Boogie wrote: > > On 1 May 2018 at 10:17, Anthony Minessale wrote: >> >> We're working through it. FSA is actually about a year old at this point so we have been so busy keeping up with maintaining everything that its quite a challenge. >> Pardon our dust while we try to unite some of our web properties and make a cohesive site. The website folks at this stage is basically us working after hours =D Resume's welcome! >> The overhead to run the project has become quite extensive and we have more employees than volunteers so the best path for the future of the project is to have commercial services to subsidize taking things to the next level which I think everyone will quite enjoy as the next several months unfold. There is a lot of wiggle room between our commercial offerings and the original prices of telecom FreeSWITCH helped take down 20 notches in the 12 years it has existed. >> > > > Do you think your company will write anymore books regarding > freeswitch? They're quite enjoyable and cover so much detail. > From hggh96.hg at gmail.com Fri May 4 16:43:48 2018 From: hggh96.hg at gmail.com (Hossein Gholi) Date: Fri, 4 May 2018 21:13:48 +0430 Subject: [Freeswitch-users] FSBlue / FreeSWITCH 1.8 In-Reply-To: References: <1525190223.2530614.1357044776.719CA65F@webmail.messagingengine.com> Message-ID: Hi I'm new in FreeSwitch ... I want to start voice call project in .Net but found no sample for it anywhere ... someone said when downloading source of freeswitch there is a sample project for .Net in libs/esl/managed but there is no folders like these ... Please if it's possible for anyone help me ... i do'nt have any sample project for it If you have send me Thank's On Fri, May 4, 2018 at 8:07 PM, Michael Jerris wrote: > The books happen when the publisher approaches us about wanting to do > another one. They are typically a mostly volunteer labor of love. Its > certainly possible but we don’t have any that are in process right now. > > > On May 4, 2018, at 11:32 AM, jungle Boogie > wrote: > > > > On 1 May 2018 at 10:17, Anthony Minessale > wrote: > >> > >> We're working through it. FSA is actually about a year old at this > point so we have been so busy keeping up with maintaining everything that > its quite a challenge. > >> Pardon our dust while we try to unite some of our web properties and > make a cohesive site. The website folks at this stage is basically us > working after hours =D Resume's welcome! > >> The overhead to run the project has become quite extensive and we have > more employees than volunteers so the best path for the future of the > project is to have commercial services to subsidize taking things to the > next level which I think everyone will quite enjoy as the next several > months unfold. There is a lot of wiggle room between our commercial > offerings and the original prices of telecom FreeSWITCH helped take down 20 > notches in the 12 years it has existed. > >> > > > > > > Do you think your company will write anymore books regarding > > freeswitch? They're quite enjoyable and cover so much detail. > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From JHChinn at TheNavisWay.com Fri May 4 22:52:14 2018 From: JHChinn at TheNavisWay.com (Jerry Chinn) Date: Fri, 4 May 2018 22:52:14 +0000 Subject: [Freeswitch-users] WebRTC using rtp_sdes_suites=AES_CM_128_HMAC_SHA1_80 Message-ID: Good Day, Running FS 1.6.17 on CentOS 7.4 We are running WebRTC and are required to use AEAD_AES_256_GCM_8 or AEAD_AES_128_GCM_8 for security. I have eliminated all of the options in the vars file except rtp_sdes_suites=AEAD_AES_256_GCM_8|AEAD_AES_128_GCM_8. Calls are successfully completing, however, in debug we are seeing AES_CM_128_HMAC_SHA1_80 as the sdes suite for srtp:dtls. 2018-05-04 22:38:30.429310 [INFO] switch_rtp.c:3185 Changing audio DTLS state from HANDSHAKE to SETUP 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3094 audio Fingerprint Verified. 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3908 Activating audio Secure RTP SEND 2018-05-04 22:38:30.450549 [DEBUG] switch_core_sqldb.c:2617 Secure Type: srtp:dtls:AES_CM_128_HMAC_SHA1_80 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3886 Activating audio Secure RTP RECV 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3134 Changing audio DTLS state from SETUP to READY 2018-05-04 22:38:30.450549 [DEBUG] switch_core_sqldb.c:2617 Secure Type: srtp:dtls:AES_CM_128_HMAC_SHA1_80 2018-05-04 22:38:30.450549 [DEBUG] switch_rtp.c:1885 rtcp_stats_init: audio ssrc[3910337773] base_seq[2433] Any ideas on how or where to change this to the desired encryption protocol? Jerry Chinn Telecom VoIP Specialist NAVIS More Performance. More Profit. tel 541-330-3562 www.TheNavisWay.com Facebook | Twitter | LinkedIn | Blog -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at infomedia.si Fri May 4 23:16:07 2018 From: gregor at infomedia.si (Gregor Nanger) Date: Fri, 04 May 2018 23:16:07 +0000 Subject: [Freeswitch-users] FSBlue / FreeSWITCH 1.8 In-Reply-To: References: <1525190223.2530614.1357044776.719CA65F@webmail.messagingengine.com> Message-ID: There is not a lot of support about FS on Windows and .Net. Not that community don't want to support, but not a lot of community using this kind of configuration. Although it works like a charm. If you need some help, mail me. Best regards, Gregor On Fri, May 4, 2018, 18:51 Hossein Gholi wrote: > Hi > I'm new in FreeSwitch ... I want to start voice call project in .Net but > found no sample for it anywhere ... someone said when downloading source of > freeswitch there is a sample project for .Net in libs/esl/managed but > there is no folders like these ... Please if it's possible for anyone help > me ... i do'nt have any sample project for it If you have send me > Thank's > > > On Fri, May 4, 2018 at 8:07 PM, Michael Jerris wrote: > >> The books happen when the publisher approaches us about wanting to do >> another one. They are typically a mostly volunteer labor of love. Its >> certainly possible but we don’t have any that are in process right now. >> >> > On May 4, 2018, at 11:32 AM, jungle Boogie >> wrote: >> > >> > On 1 May 2018 at 10:17, Anthony Minessale >> wrote: >> >> >> >> We're working through it. FSA is actually about a year old at this >> point so we have been so busy keeping up with maintaining everything that >> its quite a challenge. >> >> Pardon our dust while we try to unite some of our web properties and >> make a cohesive site. The website folks at this stage is basically us >> working after hours =D Resume's welcome! >> >> The overhead to run the project has become quite extensive and we have >> more employees than volunteers so the best path for the future of the >> project is to have commercial services to subsidize taking things to the >> next level which I think everyone will quite enjoy as the next several >> months unfold. There is a lot of wiggle room between our commercial >> offerings and the original prices of telecom FreeSWITCH helped take down 20 >> notches in the 12 years it has existed. >> >> >> > >> > >> > Do you think your company will write anymore books regarding >> > freeswitch? They're quite enjoyable and cover so much detail. >> > >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -- Gregor Nanger *CTO* t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si -------------- next part -------------- An HTML attachment was scrubbed... URL: From babak.freeswitch at gmail.com Sat May 5 09:13:12 2018 From: babak.freeswitch at gmail.com (Babak Yakhchali) Date: Sat, 5 May 2018 13:43:12 +0430 Subject: [Freeswitch-users] How to playbak a file in a conference? Message-ID: Hi I'm using the following lua script to add some users taken as argument to a conference: session:execute('answer'); session:setVariable('api_hangup_hook','conference paging kick all'); --kick out all page devices on hangup session:setVariable('conference_auto_outcall_timeout','5'); --?? session:setVariable('conference_auto_outcall_flags','none') --you can mute page devices session:setVariable('conference_auto_outcall_announce','tone_stream://%(500,200,800);loops=3') for i,v in ipairs(argv) do session:execute('conference_set_auto_outcall','user/'..v) end session:execute('conference','paging at default'); this is working fine and all members are connected to conference. now I need to start playing a file into conference. currently I'm using caller-controls part of conference.conf.xml to play the file when a caller presses the 0 key: ... ... .... now when each member presses 0 the file is played but just to the member which pressed the 0 key. how can I make it to play the file for all conference members? -------------- next part -------------- An HTML attachment was scrubbed... URL: From babak.freeswitch at gmail.com Sat May 5 10:21:02 2018 From: babak.freeswitch at gmail.com (Babak Yakhchali) Date: Sat, 5 May 2018 14:51:02 +0430 Subject: [Freeswitch-users] How to playbak a file in a conference? In-Reply-To: References: Message-ID: I changed caller-controlls to this: ... ... and it is working now but I donno if this is a good solution :) On Sat, May 5, 2018 at 1:43 PM, Babak Yakhchali wrote: > Hi > I'm using the following lua script to add some users taken as argument to > a conference: > > session:execute('answer'); > session:setVariable('api_hangup_hook','conference paging kick all'); --kick > out all page devices on hangup > session:setVariable('conference_auto_outcall_timeout','5'); --?? > session:setVariable('conference_auto_outcall_flags','none') --you can > mute page devices > session:setVariable('conference_auto_outcall_announce','tone_stream://%( > 500,200,800);loops=3') > > for i,v in ipairs(argv) do > session:execute('conference_set_auto_outcall','user/'..v) > end > session:execute('conference','paging at default'); > > this is working fine and all members are connected to conference. now I > need to start playing a file into conference. currently I'm using > caller-controls part of conference.conf.xml to play the file when a caller > presses the 0 key: > > ... > > > > ... > > > .... > now when each member presses 0 the file is played but just to the member > which pressed the 0 key. how can I make it to play the file for all > conference members? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anthony.minessale at gmail.com Sat May 5 12:08:33 2018 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Sat, 05 May 2018 12:08:33 +0000 Subject: [Freeswitch-users] How to playbak a file in a conference? In-Reply-To: References: Message-ID: Yep, that’s fine. You could also opt to make the conf name a var too. On Sat, May 5, 2018 at 7:08 AM Babak Yakhchali wrote: > I changed caller-controlls to this: > ... > > ... > and it is working now but I donno if this is a good solution :) > > On Sat, May 5, 2018 at 1:43 PM, Babak Yakhchali < > babak.freeswitch at gmail.com> wrote: > >> Hi >> I'm using the following lua script to add some users taken as argument to >> a conference: >> >> session:execute('answer'); >> session:setVariable('api_hangup_hook','conference paging kick all'); --kick >> out all page devices on hangup >> session:setVariable('conference_auto_outcall_timeout','5'); --?? >> session:setVariable('conference_auto_outcall_flags','none') --you can >> mute page devices >> >> session:setVariable('conference_auto_outcall_announce','tone_stream://%(500,200,800);loops=3') >> >> for i,v in ipairs(argv) do >> session:execute('conference_set_auto_outcall','user/'..v) >> end >> session:execute('conference','paging at default'); >> >> this is working fine and all members are connected to conference. now I >> need to start playing a file into conference. currently I'm using >> caller-controls part of conference.conf.xml to play the file when a caller >> presses the 0 key: >> >> ... >> >> >> >> ... >> >> >> .... >> now when each member presses 0 the file is played but just to the member >> which pressed the 0 key. how can I make it to play the file for all >> conference members? >> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -- Anthony Minessale II Founder, FreeSWITCH. http://freeswitch.com https://youtu.be/l_hOxzCt6X4 https://www.youtube.com/watch?v=oAxXgyx5jUw https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA -------------- next part -------------- An HTML attachment was scrubbed... URL: From raimundo.perez.cuba at gmail.com Mon May 7 12:01:54 2018 From: raimundo.perez.cuba at gmail.com (=?utf-8?Q?Raimundo_P=C3=A9rez_Nieves?=) Date: Mon, 7 May 2018 14:01:54 +0200 Subject: [Freeswitch-users] Strange warning continuously Can't find user Message-ID: Hi, Iam having this issue, 2018-05-07 07:55:28.846712 [WARNING] sofia_reg.c:2906 Can't find user [627 at 68.20.172.152] from 220.230.85.18 You must define a domain called '68.20.172.152' in your directory and add a user with the id="627" attribute and you must configure your device to use the proper domain in it's authentication credentials. 2018-05-07 07:55:28.886694 [WARNING] sofia_reg.c:2906 Can't find user [627 at 68.20.172.152] from 220.230.85.18 You must define a domain called '68.20.172.152' in your directory and add a user with the id="627" attribute and you must configure your device to use the proper domain in it's authentication credentials. 2018-05-07 07:55:28.926681 [WARNING] sofia_reg.c:2906 Can't find user [627 at 68.20.172.152] from 220.230.85.18 You must define a domain called '68.20.172.152' in your directory and add a user with the id="627" attribute and you must configure your device to use the proper domain in it's authentication credentials. I don’t use this user, so I don’t need to configure it, did anybody knows how stop this warning?, it is been very insistent for several days, some time change the user id to another that I don't use neither of them. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From asilva at wirelessmundi.com Mon May 7 12:04:18 2018 From: asilva at wirelessmundi.com (antonio) Date: Mon, 7 May 2018 14:04:18 +0200 Subject: [Freeswitch-users] Strange warning continuously Can't find user In-Reply-To: References: Message-ID: <020bc27b-c6c5-4d4b-8ecf-0b649d969a75@wirelessmundi.com> not sure if it could be done... you could try to add the ip to firewall and block the request. On 05/07/2018 02:01 PM, Raimundo Pérez Nieves wrote: > Hi, Iam having this issue, > > 2018-05-07 07:55:28.846712 [WARNING] sofia_reg.c:2906 Can't find user > [627 at 68.20.172.152 ] from 220.230.85.18 > You must define a domain called '68.20.172.152' in your directory and > add a user with the id="627" attribute > and you must configure your device to use the proper domain in it's > authentication credentials. > 2018-05-07 07:55:28.886694 [WARNING] sofia_reg.c:2906 Can't find user > [627 at 68.20.172.152 ] from 220.230.85.18 > You must define a domain called '68.20.172.152' in your directory and > add a user with the id="627" attribute > and you must configure your device to use the proper domain in it's > authentication credentials. > 2018-05-07 07:55:28.926681 [WARNING] sofia_reg.c:2906 Can't find user > [627 at 68.20.172.152 ] from 220.230.85.18 > You must define a domain called '68.20.172.152' in your directory and > add a user with the id="627" attribute > and you must configure your device to use the proper domain in it's > authentication credentials. > > I don’t use this user, so I don’t need to configure it, did anybody > knows how stop this warning?, it is been very insistent for several > days, some time change the user id to another that I don't use neither > of them. > Thanks > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -- Saludos / Regards / Cumprimentos Anónio Silva -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo.alonso at quobis.com Mon May 7 12:58:29 2018 From: eduardo.alonso at quobis.com (Eduardo Alonso) Date: Mon, 7 May 2018 14:58:29 +0200 Subject: [Freeswitch-users] FreeSwitch does not free memory Message-ID: Hi list: Some time ago I openned an issue: https://freeswitch.org/jira/browse/FS-11000, related to a problem with the memory.This problem seems to be related to the RTP read packets proccess. When a call reached the 3 hours of conversation aprox. FS begin to catch memory constantly. Someone sufffered this behaviour? If I restart FS the memory si freeing. You can to obtain more info in the Jira issue. Thanks in advance. -- *Eduardo Alonso Gil* Operations Technical Lead @ Quobis | e: eduardo.alonso at quobis.com | t: +34902 999 465 *NEW ADDRESS: **P.I A Granxa-**Rua D-Paralela 1-"Casa de Pedra"-**36400 O Porriño* -------------- next part -------------- An HTML attachment was scrubbed... URL: From ksrigo at gmail.com Mon May 7 15:02:24 2018 From: ksrigo at gmail.com (Srigo Kanapathipillai) Date: Mon, 07 May 2018 17:02:24 +0200 Subject: [Freeswitch-users] Strange warning continuously Can't find user In-Reply-To: References: Message-ID: Someone is trying to scan your freeswitch. This is a brut force attack. If it's coming from the same IP, you can start by blocking it in your acl conf. ⁣Srigo Kana​ On 7 May 2018, 14:54, at 14:54, "Raimundo Pérez Nieves" wrote: >Hi, Iam having this issue, > >2018-05-07 07:55:28.846712 [WARNING] sofia_reg.c:2906 Can't find user >[627 at 68.20.172.152] from 220.230.85.18 >You must define a domain called '68.20.172.152' in your directory and >add a user with the id="627" attribute >and you must configure your device to use the proper domain in it's >authentication credentials. >2018-05-07 07:55:28.886694 [WARNING] sofia_reg.c:2906 Can't find user >[627 at 68.20.172.152] from 220.230.85.18 >You must define a domain called '68.20.172.152' in your directory and >add a user with the id="627" attribute >and you must configure your device to use the proper domain in it's >authentication credentials. >2018-05-07 07:55:28.926681 [WARNING] sofia_reg.c:2906 Can't find user >[627 at 68.20.172.152] from 220.230.85.18 >You must define a domain called '68.20.172.152' in your directory and >add a user with the id="627" attribute >and you must configure your device to use the proper domain in it's >authentication credentials. > >I don’t use this user, so I don’t need to configure it, did anybody >knows how stop this warning?, it is been very insistent for several >days, some time change the user id to another that I don't use neither >of them. >Thanks > > > >------------------------------------------------------------------------ > >_________________________________________________________________________ >Professional FreeSWITCH Consulting Services: >consulting at freeswitch.org >http://www.freeswitchsolutions.com > >Official FreeSWITCH Sites >http://www.freeswitch.org >http://confluence.freeswitch.org >http://www.cluecon.com > >FreeSWITCH-users mailing list >FreeSWITCH-users at lists.freeswitch.org >http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From hggh96.hg at gmail.com Fri May 4 16:57:15 2018 From: hggh96.hg at gmail.com (Hossein Gholi) Date: Fri, 4 May 2018 21:27:15 +0430 Subject: [Freeswitch-users] ESL in .Net Message-ID: Hi I'm new in FreeSwitch ... I want to start voice call project in .Net but found no sample for it anywhere ... someone said when downloading source of freeswitch there is a sample project for .Net in libs/esl/managed but there is no folders like these ... Please if it's possible for anyone help me ... i do'nt have any sample project for it If you have send me Thank's -------------- next part -------------- An HTML attachment was scrubbed... URL: From hggh96.hg at gmail.com Mon May 7 13:39:34 2018 From: hggh96.hg at gmail.com (Hossein.g96) Date: Mon, 7 May 2018 06:39:34 -0700 (MST) Subject: [Freeswitch-users] Freeswitch Fax for .Net Message-ID: <1525700374669-0.post@n2.nabble.com> Hi ... I want to start working with fax in freeswitch ... i want to use ESL for it but i cannot start because have no sample project in .Net for fax ... if possible for every one has a sample ca you send me the sample??? i didn't find sample for .Net -- Sent from: http://freeswitch-users.2379917.n2.nabble.com/ From alexanderhenryperkins at gmail.com Mon May 7 16:35:22 2018 From: alexanderhenryperkins at gmail.com (Alexander Perkins) Date: Mon, 7 May 2018 16:35:22 +0000 Subject: [Freeswitch-users] Tone Stream and G729 Message-ID: Hi All. I am wondering if somebody can point me in the right direction. I am playing back tone_stream on my call, but noticed that if the codec is in G729, the call fails because of a codec negotiation error (I am loading the G729 mod). Does anybody know how tone_stream can work with G279? Here's the line from my dialplan (NumberOfLoops depends on how long it takes us to find the user, historical average): Thanks, Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From alihaider.4189 at gmail.com Mon May 7 17:30:48 2018 From: alihaider.4189 at gmail.com (Ali Haider) Date: Mon, 7 May 2018 22:30:48 +0500 Subject: [Freeswitch-users] ESL in .Net In-Reply-To: References: Message-ID: What is OS for freeswitch I’m using Ubuntu 14.04 Sent from my iPhone > On 04-May-2018, at 21:57, Hossein Gholi wrote: > > Hi > I'm new in FreeSwitch ... I want to start voice call project in .Net but found no sample for it anywhere ... someone said when downloading source of freeswitch there is a sample project for .Net in libs/esl/managed but there is no folders like these ... Please if it's possible for anyone help me ... i do'nt have any sample project for it If you have send me > Thank's > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From grcamauer at gmail.com Mon May 7 17:38:48 2018 From: grcamauer at gmail.com (Guillermo Ruiz Camauer) Date: Mon, 7 May 2018 14:38:48 -0300 Subject: [Freeswitch-users] Tone Stream and G729 In-Reply-To: References: Message-ID: Inline (audible tones in the audio stream) tones will not work with G.729. You need to use RFC2833 for best results. Try with send_dtmf [@] If your tones are not standard DTMF, you can try to record them in a file, convert it to G.729 offline, and then play the file back in the call. There is a file conversion utility in FS calles fs_convert if I recall correctly which you can use to convert the file. You will need one G.729 license to do this, or find some other program to convert your file. Regards, Guillermo On Mon, May 7, 2018 at 1:35 PM, Alexander Perkins < alexanderhenryperkins at gmail.com> wrote: > Hi All. I am wondering if somebody can point me in the right direction. > I am playing back tone_stream on my call, but noticed that if the codec is > in G729, the call fails because of a codec negotiation error (I am loading > the G729 mod). > > Does anybody know how tone_stream can work with G279? Here's the line > from my dialplan (NumberOfLoops depends on how long it takes us to find the > user, historical average): > > > > > > Thanks, > Alex > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -- Guillermo Ruiz Camauer -------------- next part -------------- An HTML attachment was scrubbed... URL: From covici at ccs.covici.com Mon May 7 19:31:15 2018 From: covici at ccs.covici.com (John Covici) Date: Mon, 07 May 2018 15:31:15 -0400 Subject: [Freeswitch-users] ESL in .Net In-Reply-To: References: Message-ID: In my source there is a directory called libs/esl/managed and this may help you. On Fri, 04 May 2018 12:57:15 -0400, Hossein Gholi wrote: > > [1 ] > [1.1 ] > [1.2 ] > Hi > I'm new in FreeSwitch ... I want to start voice call project in .Net but found no sample for it anywhere ... someone said when downloading source of freeswitch there is a sample project for .Net in libs/esl/managed but there is no > folders like these ... Please if it's possible for anyone help me ... i do'nt have any sample project for it If you have send me > Thank's > [2 ] > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici wb2una covici at ccs.covici.com From francesco at delagarda.com Tue May 8 12:46:27 2018 From: francesco at delagarda.com (Francesco Facco de Lagarda) Date: Tue, 8 May 2018 14:46:27 +0200 Subject: [Freeswitch-users] eavesdrop Message-ID: <04e801d3e6ca$957213e0$c0563ba0$@delagarda.com> I need to enable client to eavesdrop on certain calls. The fs is in a penitentiary institute and certain types of criminals (i..e mafia related) must be listened. I am trying to implement eavesdropping like so: api originate {sip_secure_media=true}user/$ext &eavesdrop($uid) (where, I hope, $ext and $uid are self-explicatory) Is there ANY way to mute the microphone of the eavesdropper? It's a bit of a give-away if the criminal can hear the background noise Thanks Francesco -------------- next part -------------- An HTML attachment was scrubbed... URL: From shaun.stokes at itec-support.co.uk Tue May 8 14:30:20 2018 From: shaun.stokes at itec-support.co.uk (Shaun Stokes) Date: Tue, 8 May 2018 14:30:20 +0000 Subject: [Freeswitch-users] eavesdrop In-Reply-To: <04e801d3e6ca$957213e0$c0563ba0$@delagarda.com> References: <04e801d3e6ca$957213e0$c0563ba0$@delagarda.com> Message-ID: <1525789820568.61518@itec-support.co.uk> We use a LUA script for Eavesdrop and never had this issue. Looking at the FS documentation, you can use ?w1 at ext to speak with the callee or w2 at ext to speak with the caller. Here are the DTMF signals during eavesdrop 2 to speak with the uuid 1 to speak with the other half 3 to engage a three way 0 to restore eavesdrop. * to next channel. Is it possible you pressed any DTMF key during the call? If not, you could perhaps you could try w0 at ext ? ________________________________ From: FreeSWITCH-users on behalf of Francesco Facco de Lagarda Sent: 08 May 2018 13:46 To: 'FreeSWITCH Users Help' Subject: [Freeswitch-users] eavesdrop I need to enable client to eavesdrop on certain calls. The fs is in a penitentiary institute and certain types of criminals (i..e mafia related) must be listened. I am trying to implement eavesdropping like so: api originate {sip_secure_media=true}user/$ext &eavesdrop($uid) (where, I hope, $ext and $uid are self-explicatory) Is there ANY way to mute the microphone of the eavesdropper? It's a bit of a give-away if the criminal can hear the background noise Thanks Francesco ______________________________________________________________________ This message has been checked for all known viruses by MessageLabs Virus Scanning Service. ______________________________________________________________________ ______________________________________________________________________ This message has been checked for all known viruses by MessageLabs Virus Scanning Service. ______________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From drk at drkngs.net Tue May 8 14:26:32 2018 From: drk at drkngs.net (Dave Kompel) Date: Tue, 8 May 2018 10:26:32 -0400 Subject: [Freeswitch-users] ESL in .Net In-Reply-To: References: Message-ID: <87c6c220-008a-4677-89be-a2d44fe452eb@drkngs.net> I remember there was a problem compiling it. If I get a little time, I can build it for .NET framework, and .NET core, and push to NUGET if there is some interest... --Dave -----Original Message----- From: FreeSWITCH-users On Behalf Of John Covici Sent: Monday, May 7, 2018 3:31 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] ESL in .Net In my source there is a directory called libs/esl/managed and this may help you. On Fri, 04 May 2018 12:57:15 -0400, Hossein Gholi wrote: > > [1 ] > [1.1 ] > [1.2 ] Hi I'm new in FreeSwitch > ... I want to start voice call project in .Net but found no sample for > it anywhere ... someone said when downloading source of freeswitch > there is a sample project for .Net in libs/esl/managed but there is > no folders like these ... Please if it's possible for anyone help me > ... i do'nt have any sample project for it If you have send me Thank's > [2 ] > ______________________________________________________________________ > ___ Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-use > rs > http://www.freeswitch.org -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici wb2una covici at ccs.covici.com _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org From francesco at delagarda.com Tue May 8 15:57:51 2018 From: francesco at delagarda.com (Francesco Facco de Lagarda) Date: Tue, 8 May 2018 17:57:51 +0200 Subject: [Freeswitch-users] eavesdrop In-Reply-To: <1525789820568.61518@itec-support.co.uk> References: <04e801d3e6ca$957213e0$c0563ba0$@delagarda.com> <1525789820568.61518@itec-support.co.uk> Message-ID: Thanks for very interesting answer! I’m initiating the eavesdrop with a command sent via php to the control port Where do I put the parameter you’re saying? Francesco Facco de Lagarda > On 8 May 2018, at 16:30, Shaun Stokes wrote: > > We use a LUA script for Eavesdrop and never had this issue. > > Looking at the FS documentation, you can use ​w1 at ext to speak with the callee or w2 at ext to speak with the caller. > > Here are the DTMF signals during eavesdrop > 2 to speak with the uuid > 1 to speak with the other half > 3 to engage a three way > 0 to restore eavesdrop. > * to next channel. > > Is it possible you pressed any DTMF key during the call? If not, you could perhaps you could try w0 at ext ? > > > From: FreeSWITCH-users on behalf of Francesco Facco de Lagarda > Sent: 08 May 2018 13:46 > To: 'FreeSWITCH Users Help' > Subject: [Freeswitch-users] eavesdrop > > I need to enable client to eavesdrop on certain calls. The fs is in a penitentiary institute and certain types of criminals (i..e mafia related) must be listened. > > > > I am trying to implement eavesdropping like so: > > > > api originate {sip_secure_media=true}user/$ext &eavesdrop($uid) > > > > (where, I hope, $ext and $uid are self-explicatory) > > Is there ANY way to mute the microphone of the eavesdropper? It’s a bit of a give-away if the criminal can hear the background noise > > > > Thanks > > > > Francesco > > > > > > > > > > > ______________________________________________________________________ > This message has been checked for all known viruses by MessageLabs Virus Scanning Service. > ______________________________________________________________________ > > ______________________________________________________________________ > This message has been checked for all known viruses by MessageLabs Virus Scanning Service. > ______________________________________________________________________ > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at infomedia.si Tue May 8 16:02:57 2018 From: gregor at infomedia.si (Gregor Nanger) Date: Tue, 8 May 2018 18:02:57 +0200 Subject: [Freeswitch-users] ESL in .Net In-Reply-To: <87c6c220-008a-4677-89be-a2d44fe452eb@drkngs.net> References: <87c6c220-008a-4677-89be-a2d44fe452eb@drkngs.net> Message-ID: Hi Dave! Nice to reading from you :-) You used to have dll somwhere and skel.cs for quick integration. Do you still have it? Best regards, Gregor 2018-05-08 16:26 GMT+02:00 Dave Kompel : > I remember there was a problem compiling it. If I get a little time, I can > build it for .NET framework, and .NET core, and push to NUGET if there is > some interest... > > --Dave > > -----Original Message----- > From: FreeSWITCH-users On > Behalf Of John Covici > Sent: Monday, May 7, 2018 3:31 PM > To: FreeSWITCH Users Help > Subject: Re: [Freeswitch-users] ESL in .Net > > In my source there is a directory called libs/esl/managed and this may > help you. > > On Fri, 04 May 2018 12:57:15 -0400, > Hossein Gholi wrote: > > > > [1 ] > > [1.1 ] > > [1.2 ] Hi I'm new in FreeSwitch > > ... I want to start voice call project in .Net but found no sample for > > it anywhere ... someone said when downloading source of freeswitch > > there is a sample project for .Net in libs/esl/managed but there is > > no folders like these ... Please if it's possible for anyone help me > > ... i do'nt have any sample project for it If you have send me Thank's > > [2 ] > > ______________________________________________________________________ > > ___ Professional FreeSWITCH Consulting Services: > > consulting at freeswitch.org > > http://www.freeswitchsolutions.com > > > > Official FreeSWITCH Sites > > http://www.freeswitch.org > > http://confluence.freeswitch.org > > http://www.cluecon.com > > > > FreeSWITCH-users mailing list > > FreeSWITCH-users at lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-use > > rs > > http://www.freeswitch.org > > -- > Your life is like a penny. You're going to lose it. The question is: > How do > you spend it? > > John Covici wb2una > covici at ccs.covici.com > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -- Gregor Nanger *CTO* t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si -------------- next part -------------- An HTML attachment was scrubbed... URL: From JHChinn at TheNavisWay.com Tue May 8 17:11:51 2018 From: JHChinn at TheNavisWay.com (Jerry Chinn) Date: Tue, 8 May 2018 17:11:51 +0000 Subject: [Freeswitch-users] WebRTC using rtp_sdes_suites=AES_CM_128_HMAC_SHA1_80 Message-ID: Good Day, Running FS 1.6.17 on CentOS 7.4 We are running WebRTC and are required to use AEAD_AES_256_GCM_8 or AEAD_AES_128_GCM_8 for security. I have eliminated all of the options in the vars file except rtp_sdes_suites=AEAD_AES_256_GCM_8|AEAD_AES_128_GCM_8. Calls are successfully completing, however, in debug we are seeing AES_CM_128_HMAC_SHA1_80 as the sdes suite for srtp:dtls. 2018-05-04 22:38:30.429310 [INFO] switch_rtp.c:3185 Changing audio DTLS state from HANDSHAKE to SETUP 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3094 audio Fingerprint Verified. 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3908 Activating audio Secure RTP SEND 2018-05-04 22:38:30.450549 [DEBUG] switch_core_sqldb.c:2617 Secure Type: srtp:dtls:AES_CM_128_HMAC_SHA1_80 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3886 Activating audio Secure RTP RECV 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3134 Changing audio DTLS state from SETUP to READY 2018-05-04 22:38:30.450549 [DEBUG] switch_core_sqldb.c:2617 Secure Type: srtp:dtls:AES_CM_128_HMAC_SHA1_80 2018-05-04 22:38:30.450549 [DEBUG] switch_rtp.c:1885 rtcp_stats_init: audio ssrc[3910337773] base_seq[2433] Any ideas on how or where to change this to the desired encryption protocol? Jerry Chinn Telecom VoIP Specialist . -------------- next part -------------- An HTML attachment was scrubbed... URL: From aqsyounas at gmail.com Tue May 8 19:44:13 2018 From: aqsyounas at gmail.com (Aqs Younas) Date: Wed, 9 May 2018 00:44:13 +0500 Subject: [Freeswitch-users] WebRTC using rtp_sdes_suites=AES_CM_128_HMAC_SHA1_80 In-Reply-To: References: Message-ID: I would also be interested to know if you make this work. Best Regards, Aqs Younas On 8 May 2018 at 22:11, Jerry Chinn wrote: > Good Day, > > Running FS 1.6.17 on CentOS 7.4 > > > > We are running WebRTC and are required to use AEAD_AES_256_GCM_8 or > AEAD_AES_128_GCM_8 for security. > > I have eliminated all of the options in the vars file except > rtp_sdes_suites=AEAD_AES_256_GCM_8|AEAD_AES_128_GCM_8. > > > > Calls are successfully completing, however, in debug we are seeing > AES_CM_128_HMAC_SHA1_80 as the sdes suite for srtp:dtls. > > > > 2018-05-04 22:38:30.429310 [INFO] switch_rtp.c:3185 Changing audio DTLS > state from HANDSHAKE to SETUP > > 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3094 audio Fingerprint > Verified. > > 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3908 Activating audio > Secure RTP SEND > > 2018-05-04 22:38:30.450549 [DEBUG] switch_core_sqldb.c:2617 Secure Type: > srtp:dtls:AES_CM_128_HMAC_SHA1_80 > > 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3886 Activating audio > Secure RTP RECV > > 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3134 Changing audio DTLS > state from SETUP to READY > > 2018-05-04 22:38:30.450549 [DEBUG] switch_core_sqldb.c:2617 Secure Type: > srtp:dtls:AES_CM_128_HMAC_SHA1_80 > > 2018-05-04 22:38:30.450549 [DEBUG] switch_rtp.c:1885 rtcp_stats_init: > audio ssrc[3910337773] base_seq[2433] > > > > Any ideas on how or where to change this to the desired encryption > protocol? > > > > Jerry Chinn > > Telecom VoIP Specialist > > . > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jignesh.vasoya at gslab.com Tue May 8 21:38:00 2018 From: jignesh.vasoya at gslab.com (Jignesh Vasoya) Date: Tue, 08 May 2018 21:38:00 +0000 Subject: [Freeswitch-users] how to use single port per call with ASR unimrcp module using mrcp-v1 protocol? Message-ID: Hi, How to configure and use "unimrcp" where it will use a single port(resource) with MRCP server throughout the call. Idea is to use only single port between FreeSwitch and MRCP server for each call. FreeSwitch will load/unload required grammar files during the call. I am looking to use this with mrcp-v1 protocol, is it possible? -- *Thanks,* *Jignesh* -------------- next part -------------- An HTML attachment was scrubbed... URL: From shaun.stokes at itec-support.co.uk Wed May 9 08:17:44 2018 From: shaun.stokes at itec-support.co.uk (Shaun Stokes) Date: Wed, 9 May 2018 08:17:44 +0000 Subject: [Freeswitch-users] eavesdrop In-Reply-To: References: <04e801d3e6ca$957213e0$c0563ba0$@delagarda.com> <1525789820568.61518@itec-support.co.uk>, Message-ID: <1525853863753.26990@itec-support.co.uk> I've just tested this myself, using the command: api originate {sip_secure_media=true}user/$ext &eavesdrop($uid) Eavesdrop is by default in silent mode, so neither the caller or callee can hear the microphone of the person listening in. It should actually be w0 at 500 (not @ext) which I've tested and does work but you will need to adjust your command as follows: api originate {sip_secure_media=true}user/$ext 'queue_dtmf:w0 at 500,eavesdrop:$uid inline ________________________________ From: FreeSWITCH-users on behalf of Francesco Facco de Lagarda Sent: 08 May 2018 16:57 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] eavesdrop Thanks for very interesting answer! I'm initiating the eavesdrop with a command sent via php to the control port Where do I put the parameter you're saying? Francesco Facco de Lagarda On 8 May 2018, at 16:30, Shaun Stokes > wrote: We use a LUA script for Eavesdrop and never had this issue. Looking at the FS documentation, you can use ?w1 at ext to speak with the callee or w2 at ext to speak with the caller. Here are the DTMF signals during eavesdrop 2 to speak with the uuid 1 to speak with the other half 3 to engage a three way 0 to restore eavesdrop. * to next channel. Is it possible you pressed any DTMF key during the call? If not, you could perhaps you could try w0 at ext ? ________________________________ From: FreeSWITCH-users > on behalf of Francesco Facco de Lagarda > Sent: 08 May 2018 13:46 To: 'FreeSWITCH Users Help' Subject: [Freeswitch-users] eavesdrop I need to enable client to eavesdrop on certain calls. The fs is in a penitentiary institute and certain types of criminals (i..e mafia related) must be listened. I am trying to implement eavesdropping like so: api originate {sip_secure_media=true}user/$ext &eavesdrop($uid) (where, I hope, $ext and $uid are self-explicatory) Is there ANY way to mute the microphone of the eavesdropper? It's a bit of a give-away if the criminal can hear the background noise Thanks Francesco ______________________________________________________________________ This message has been checked for all known viruses by MessageLabs Virus Scanning Service. ______________________________________________________________________ ______________________________________________________________________ This message has been checked for all known viruses by MessageLabs Virus Scanning Service. ______________________________________________________________________ _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ______________________________________________________________________ This message has been checked for all known viruses by MessageLabs Virus Scanning Service. ______________________________________________________________________ ______________________________________________________________________ This message has been checked for all known viruses by MessageLabs Virus Scanning Service. ______________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From francesco at delagarda.com Wed May 9 09:14:44 2018 From: francesco at delagarda.com (Francesco Facco de Lagarda) Date: Wed, 9 May 2018 11:14:44 +0200 Subject: [Freeswitch-users] eavesdrop In-Reply-To: <1525853863753.26990@itec-support.co.uk> References: <04e801d3e6ca$957213e0$c0563ba0$@delagarda.com> <1525789820568.61518@itec-support.co.uk>, <1525853863753.26990@itec-support.co.uk> Message-ID: <002001d3e776$2cabf360$8603da20$@delagarda.com> YES!!! It WORKS!! Thank you soooo much! F From: FreeSWITCH-users On Behalf Of Shaun Stokes Sent: mercoledì 9 maggio 2018 10:18 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] eavesdrop I've just tested this myself, using the command: api originate {sip_secure_media=true}user/$ext &eavesdrop($uid) Eavesdrop is by default in silent mode, so neither the caller or callee can hear the microphone of the person listening in. It should actually be w0 at 500 (not @ext) which I've tested and does work but you will need to adjust your command as follows: api originate {sip_secure_media=true}user/$ext 'queue_dtmf:w0 at 500,eavesdrop:$uid inline _____ From: FreeSWITCH-users > on behalf of Francesco Facco de Lagarda > Sent: 08 May 2018 16:57 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] eavesdrop Thanks for very interesting answer! I’m initiating the eavesdrop with a command sent via php to the control port Where do I put the parameter you’re saying? Francesco Facco de Lagarda On 8 May 2018, at 16:30, Shaun Stokes > wrote: We use a LUA script for Eavesdrop and never had this issue. Looking at the FS documentation, you can use ​w1 at ext to speak with the callee or w2 at ext to speak with the caller. Here are the DTMF signals during eavesdrop 2 to speak with the uuid 1 to speak with the other half 3 to engage a three way 0 to restore eavesdrop. * to next channel. Is it possible you pressed any DTMF key during the call? If not, you could perhaps you could try w0 at ext ? _____ From: FreeSWITCH-users > on behalf of Francesco Facco de Lagarda > Sent: 08 May 2018 13:46 To: 'FreeSWITCH Users Help' Subject: [Freeswitch-users] eavesdrop I need to enable client to eavesdrop on certain calls. The fs is in a penitentiary institute and certain types of criminals (i..e mafia related) must be listened. I am trying to implement eavesdropping like so: api originate {sip_secure_media=true}user/$ext &eavesdrop($uid) (where, I hope, $ext and $uid are self-explicatory) Is there ANY way to mute the microphone of the eavesdropper? It’s a bit of a give-away if the criminal can hear the background noise Thanks Francesco ______________________________________________________________________ This message has been checked for all known viruses by MessageLabs Virus Scanning Service. ______________________________________________________________________ ______________________________________________________________________ This message has been checked for all known viruses by MessageLabs Virus Scanning Service. ______________________________________________________________________ _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ______________________________________________________________________ This message has been checked for all known viruses by MessageLabs Virus Scanning Service. ______________________________________________________________________ ______________________________________________________________________ This message has been checked for all known viruses by MessageLabs Virus Scanning Service. ______________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mirkobrankovic at gmail.com Wed May 9 18:21:27 2018 From: mirkobrankovic at gmail.com (Mirko Brankovic) Date: Wed, 09 May 2018 18:21:27 +0000 Subject: [Freeswitch-users] WebRTC using rtp_sdes_suites=AES_CM_128_HMAC_SHA1_80 In-Reply-To: References: Message-ID: Hi, I had a same problem. Was debugging a different handshake problem, and wanted to try other chipers, but failed. Looks like the setting is not applied at all, and would be nice to use cheeper (network wise) encroption On Wed, May 9, 2018, 00:52 Aqs Younas wrote: > I would also be interested to know if you make this work. > > Best Regards, > > Aqs Younas > > On 8 May 2018 at 22:11, Jerry Chinn wrote: > >> Good Day, >> >> Running FS 1.6.17 on CentOS 7.4 >> >> >> >> We are running WebRTC and are required to use AEAD_AES_256_GCM_8 or >> AEAD_AES_128_GCM_8 for security. >> >> I have eliminated all of the options in the vars file except >> rtp_sdes_suites=AEAD_AES_256_GCM_8|AEAD_AES_128_GCM_8. >> >> >> >> Calls are successfully completing, however, in debug we are seeing >> AES_CM_128_HMAC_SHA1_80 as the sdes suite for srtp:dtls. >> >> >> >> 2018-05-04 22:38:30.429310 [INFO] switch_rtp.c:3185 Changing audio DTLS >> state from HANDSHAKE to SETUP >> >> 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3094 audio Fingerprint >> Verified. >> >> 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3908 Activating audio >> Secure RTP SEND >> >> 2018-05-04 22:38:30.450549 [DEBUG] switch_core_sqldb.c:2617 Secure Type: >> srtp:dtls:AES_CM_128_HMAC_SHA1_80 >> >> 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3886 Activating audio >> Secure RTP RECV >> >> 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3134 Changing audio DTLS >> state from SETUP to READY >> >> 2018-05-04 22:38:30.450549 [DEBUG] switch_core_sqldb.c:2617 Secure Type: >> srtp:dtls:AES_CM_128_HMAC_SHA1_80 >> >> 2018-05-04 22:38:30.450549 [DEBUG] switch_rtp.c:1885 rtcp_stats_init: >> audio ssrc[3910337773] base_seq[2433] >> >> >> >> Any ideas on how or where to change this to the desired encryption >> protocol? >> >> >> >> Jerry Chinn >> >> Telecom VoIP Specialist >> >> . >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Wed May 9 19:01:51 2018 From: mike at jerris.com (Michael Jerris) Date: Wed, 9 May 2018 15:01:51 -0400 Subject: [Freeswitch-users] WebRTC using rtp_sdes_suites=AES_CM_128_HMAC_SHA1_80 In-Reply-To: References: Message-ID: on DTLS this setting is currently a no-op and the suites it uses are hard coded. > On May 9, 2018, at 2:21 PM, Mirko Brankovic wrote: > > Hi, > I had a same problem. > Was debugging a different handshake problem, and wanted to try other chipers, but failed. > Looks like the setting is not applied at all, and would be nice to use cheeper (network wise) encroption > > On Wed, May 9, 2018, 00:52 Aqs Younas > wrote: > I would also be interested to know if you make this work. > > Best Regards, > > Aqs Younas > > On 8 May 2018 at 22:11, Jerry Chinn > wrote: > Good Day, > > Running FS 1.6.17 on CentOS 7.4 > > > > We are running WebRTC and are required to use AEAD_AES_256_GCM_8 or AEAD_AES_128_GCM_8 for security. > > I have eliminated all of the options in the vars file except rtp_sdes_suites=AEAD_AES_256_GCM_8|AEAD_AES_128_GCM_8. > > > > Calls are successfully completing, however, in debug we are seeing AES_CM_128_HMAC_SHA1_80 as the sdes suite for srtp:dtls. > > > > 2018-05-04 22:38:30.429310 [INFO] switch_rtp.c:3185 Changing audio DTLS state from HANDSHAKE to SETUP > > 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3094 audio Fingerprint Verified. > > 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3908 Activating audio Secure RTP SEND > > 2018-05-04 22:38:30.450549 [DEBUG] switch_core_sqldb.c:2617 Secure Type: srtp:dtls:AES_CM_128_HMAC_SHA1_80 > > 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3886 Activating audio Secure RTP RECV > > 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3134 Changing audio DTLS state from SETUP to READY > > 2018-05-04 22:38:30.450549 [DEBUG] switch_core_sqldb.c:2617 Secure Type: srtp:dtls:AES_CM_128_HMAC_SHA1_80 > > 2018-05-04 22:38:30.450549 [DEBUG] switch_rtp.c:1885 rtcp_stats_init: audio ssrc[3910337773] base_seq[2433] > > > > Any ideas on how or where to change this to the desired encryption protocol? > > > > Jerry Chinn > > Telecom VoIP Specialist > > . > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From JHChinn at TheNavisWay.com Wed May 9 19:54:25 2018 From: JHChinn at TheNavisWay.com (Jerry Chinn) Date: Wed, 9 May 2018 19:54:25 +0000 Subject: [Freeswitch-users] WebRTC using rtp_sdes_suites=AES_CM_128_HMAC_SHA1_80 In-Reply-To: References: Message-ID: <6d914978815048b8b14ba3c74b88b91d@hil-vs-exdag02.buehner-fry.com> Michael, Thanks for answering my question. Since the SHA-1 hash function is considered vulnerable, will there be an effort to modify the hard coded entry to one that isn't as vulnerable? Starting with version 56, Google Chrome will mark all SHA-1-signed HTTPS certificates as unsafe. Other major browser vendors plan to do the same. Since we are using this for WebRTC it seems that a modification to the code is warranted. Your thoughts? Jerry Chinn Telecom VoIP Specialist NAVIS More Performance. More Profit. tel 541-330-3562 www.TheNavisWay.com Facebook | Twitter | LinkedIn | Blog From: FreeSWITCH-users [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael Jerris Sent: Wednesday, May 09, 2018 12:02 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] WebRTC using rtp_sdes_suites=AES_CM_128_HMAC_SHA1_80 on DTLS this setting is currently a no-op and the suites it uses are hard coded. On May 9, 2018, at 2:21 PM, Mirko Brankovic > wrote: Hi, I had a same problem. Was debugging a different handshake problem, and wanted to try other chipers, but failed. Looks like the setting is not applied at all, and would be nice to use cheeper (network wise) encroption On Wed, May 9, 2018, 00:52 Aqs Younas > wrote: I would also be interested to know if you make this work. Best Regards, Aqs Younas On 8 May 2018 at 22:11, Jerry Chinn > wrote: Good Day, Running FS 1.6.17 on CentOS 7.4 We are running WebRTC and are required to use AEAD_AES_256_GCM_8 or AEAD_AES_128_GCM_8 for security. I have eliminated all of the options in the vars file except rtp_sdes_suites=AEAD_AES_256_GCM_8|AEAD_AES_128_GCM_8. Calls are successfully completing, however, in debug we are seeing AES_CM_128_HMAC_SHA1_80 as the sdes suite for srtp:dtls. 2018-05-04 22:38:30.429310 [INFO] switch_rtp.c:3185 Changing audio DTLS state from HANDSHAKE to SETUP 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3094 audio Fingerprint Verified. 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3908 Activating audio Secure RTP SEND 2018-05-04 22:38:30.450549 [DEBUG] switch_core_sqldb.c:2617 Secure Type: srtp:dtls:AES_CM_128_HMAC_SHA1_80 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3886 Activating audio Secure RTP RECV 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3134 Changing audio DTLS state from SETUP to READY 2018-05-04 22:38:30.450549 [DEBUG] switch_core_sqldb.c:2617 Secure Type: srtp:dtls:AES_CM_128_HMAC_SHA1_80 2018-05-04 22:38:30.450549 [DEBUG] switch_rtp.c:1885 rtcp_stats_init: audio ssrc[3910337773] base_seq[2433] Any ideas on how or where to change this to the desired encryption protocol? Jerry Chinn Telecom VoIP Specialist . _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Wed May 9 19:58:01 2018 From: mike at jerris.com (Michael Jerris) Date: Wed, 9 May 2018 15:58:01 -0400 Subject: [Freeswitch-users] WebRTC using rtp_sdes_suites=AES_CM_128_HMAC_SHA1_80 In-Reply-To: <6d914978815048b8b14ba3c74b88b91d@hil-vs-exdag02.buehner-fry.com> References: <6d914978815048b8b14ba3c74b88b91d@hil-vs-exdag02.buehner-fry.com> Message-ID: I’m not sure exactly what it will take resource wise. I will say that this has nothing to do with https certificates and what is accepted for that in the browser. We took a peek at it today and see for sure its hardcoded and needs some work. Mike > On May 9, 2018, at 3:54 PM, Jerry Chinn wrote: > > Michael, > > Thanks for answering my question. > Since the SHA-1 hash function is considered vulnerable, will there be an effort to modify the hard coded entry to one that isn’t as vulnerable? > Starting with version 56, Google Chrome will mark all SHA-1-signed HTTPS certificates as unsafe. Other major browser vendors plan to do the same. > Since we are using this for WebRTC it seems that a modification to the code is warranted. > > Your thoughts? > > > Jerry Chinn > Telecom VoIP Specialist > NAVIS More Performance. More Profit. > tel 541-330-3562 > www.TheNavisWay.com > Facebook | Twitter | LinkedIn | Blog > > From: FreeSWITCH-users [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael Jerris > Sent: Wednesday, May 09, 2018 12:02 PM > To: FreeSWITCH Users Help > Subject: Re: [Freeswitch-users] WebRTC using rtp_sdes_suites=AES_CM_128_HMAC_SHA1_80 > > on DTLS this setting is currently a no-op and the suites it uses are hard coded. > > > On May 9, 2018, at 2:21 PM, Mirko Brankovic > wrote: > > Hi, > I had a same problem. > Was debugging a different handshake problem, and wanted to try other chipers, but failed. > Looks like the setting is not applied at all, and would be nice to use cheeper (network wise) encroption > > On Wed, May 9, 2018, 00:52 Aqs Younas > wrote: > I would also be interested to know if you make this work. > > Best Regards, > > Aqs Younas > > On 8 May 2018 at 22:11, Jerry Chinn > wrote: > Good Day, > Running FS 1.6.17 on CentOS 7.4 > > We are running WebRTC and are required to use AEAD_AES_256_GCM_8 or AEAD_AES_128_GCM_8 for security. > I have eliminated all of the options in the vars file except rtp_sdes_suites=AEAD_AES_256_GCM_8|AEAD_AES_128_GCM_8. > > Calls are successfully completing, however, in debug we are seeing AES_CM_128_HMAC_SHA1_80 as the sdes suite for srtp:dtls. > > 2018-05-04 22:38:30.429310 [INFO] switch_rtp.c:3185 Changing audio DTLS state from HANDSHAKE to SETUP > 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3094 audio Fingerprint Verified. > 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3908 Activating audio Secure RTP SEND > 2018-05-04 22:38:30.450549 [DEBUG] switch_core_sqldb.c:2617 Secure Type: srtp:dtls:AES_CM_128_HMAC_SHA1_80 > 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3886 Activating audio Secure RTP RECV > 2018-05-04 22:38:30.450549 [INFO] switch_rtp.c:3134 Changing audio DTLS state from SETUP to READY > 2018-05-04 22:38:30.450549 [DEBUG] switch_core_sqldb.c:2617 Secure Type: srtp:dtls:AES_CM_128_HMAC_SHA1_80 > 2018-05-04 22:38:30.450549 [DEBUG] switch_rtp.c:1885 rtcp_stats_init: audio ssrc[3910337773] base_seq[2433] > > Any ideas on how or where to change this to the desired encryption protocol? > > Jerry Chinn > Telecom VoIP Specialist > . > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From atulthosar at gmail.com Thu May 10 15:02:38 2018 From: atulthosar at gmail.com (Atul Thosar) Date: Thu, 10 May 2018 20:32:38 +0530 Subject: [Freeswitch-users] Configuring timer-T1X64 Message-ID: Hi All, I want to change the timer B of INVITE Client Transaction. So I set following in conf/sip_profiles/external.xml Restarted freeswitch and observed following debug line in logs 2018-05-10 16:57:43.799719 [DEBUG] sofia.c:4629 timer-T1X64 [4000] However, INVITE Client Transaction is not timing out in 4 sec. It still takes 32 sec to timed out. What could be the reason? Did I miss anything? Btw I am using external Lua client to control the freeswitch call flow. My Lua script connects to freeswitch over ESL connection and fires following command to make outbound call [DEBUG Thu May 10 17:00:17 2018] : command for outbound call is: lua ~freeswitch.Session('{origination_uuid=197422a3-e29e-452a-bf4e-86a6895a8cd5,sip_invite_route_uri=}sofia/external/ sip:18447770001 at domain.com', freeswitch.Session('0b4aaab6-cee8-1236-d897-005056b308ba')) 0b4aaab6-cee8-1236-d897-005056b308ba is call-id of my incoming call to freeswitch. I am using following version of freeswitch freeswitch at as80> version FreeSWITCH Version 1.8.0~64bit ( 64bit) ​​ -- BR, Atul -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at k4gvo.com Thu May 10 16:11:07 2018 From: jim at k4gvo.com (Jim Lynch) Date: Thu, 10 May 2018 12:11:07 -0400 Subject: [Freeswitch-users] Is cidlookup asynchronous? Message-ID: <1e8b9a05-15cd-ffe5-65b7-25893d33b30b@k4gvo.com> I am calling cidlookup in my dial plan like this: And in my log I see: a6a3d389-245d-4705-9a1e-91d74d491dd1 Dialplan: sofia/external/+12297960236 at 4.59.156.121:5060 Action set(effective_caller_id_name=${cidlookup(${caller_id_number})}) I'm trying to use it in an lua script that is called right after the above action line but the log seems to indicate that it doesn't actually get executed until some time later. a6a3d389-245d-4705-9a1e-91d74d491dd1 Dialplan: sofia/external/+12297960236 at 4.59.156.121:5060 Action info() a6a3d389-245d-4705-9a1e-91d74d491dd1 Dialplan: sofia/external/+12297960236 at 4.59.156.121:5060 Action lua(cid.lua ${caller_id_number} ${effective_caller_id_name}) INLINE a6a3d389-245d-4705-9a1e-91d74d491dd1 EXECUTE sofia/external/+12297960236 at 4.59.156.121:5060 lua(cid.lua +12297960236 ) 2018-05-09 20:28:02.349228 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fefd0092e70 Connected. a6a3d389-245d-4705-9a1e-91d74d491dd1 2018-05-09 20:28:02.349228 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable(effective_caller_id_name, ALL LOCATION CZ) How can I get the data into my lua script? Thanks, Jim. -------------- next part -------------- An HTML attachment was scrubbed... URL: From abaci64 at gmail.com Thu May 10 22:02:14 2018 From: abaci64 at gmail.com (Abaci B) Date: Thu, 10 May 2018 18:02:14 -0400 Subject: [Freeswitch-users] stream a file multicast with mod_esf In-Reply-To: References: <191c3a031001081848w9036207yf6a4b473ec233243@mail.gmail.com> <85C74329-0D7C-48B2-B7A8-D4AA67C6E3F2@freeswitch.org> <795CD2F3-1395-4C08-A0E7-F5A7BA85F938@jerris.com> <8A3C6D64-9215-47A5-8FCD-7A328770772D@jerris.com> Message-ID: Hi, I'm looking for something similar and was wondering if you ever completed this project. Thanks On Mon, Feb 22, 2010 at 6:56 AM, MohammedShehzad wrote: > Actually I don't want to change anything from Multicaster, I am talking > about the changes required on Listener side (the format module I am going > to develo). I think I should discuss further on developer's mailing list, > please let me know you ideas there. > > Thanks for your response. > > On Mon, Feb 22, 2010 at 12:49 PM, Michael Jerris wrote: > >> You would just change the PCMU to whatever codec you want. This should >> have nothing to do with file io, take a look at the line that has PCMU >> hardcoded, thats all you should need to change. >> >> Mike >> >> On Feb 22, 2010, at 1:47 AM, MohammedShehzad wrote: >> >> Yes, PCMU is hardcoded currently from multicaster. I looked into >> mod_sndfile for decoding PCMU to other codec, but it seems that module is >> using libsndfile, which reads sound file directly and decode them to L16. >> If something similar to libsndfile is available, which work on stream >> instead of file io, then it would surely work. >> >> I don't know how exactly Freeswitch's codec structures & functions work, >> I am sure decoding can be done by using that, but don't know how to use >> them. >> >> On Sun, Feb 21, 2010 at 7:17 AM, Michael Jerris wrote: >> >>> You will need to create the codec for what you need, I think it is >>> hardcoded in there to PCMU at the moment, correct? This will of course >>> need to match the stream its reading. >>> >>> Mike >>> >>> On Feb 20, 2010, at 12:50 AM, MohammedShehzad wrote: >>> >>> >>> >>> On Fri, Feb 19, 2010 at 1:32 PM, MohammedShehzad >>> wrote: >>> >>>> >>>> >>>> On Fri, Feb 19, 2010 at 12:59 PM, Michael Jerris >>>> wrote: >>>> >>>>> Listening on multicast is noting special for multicast, it is just >>>>> like reading any other udp socket >>>>> >>>>> Mike >>>>> >>>>> Correct, but I have to play those audio stream back to caller taking >>>> care of the audio codec and other things, do anybody have any idea in that >>>> part? Please let me know that. >>>> -- >>>> >>>> -MohammedShehzad >>>> >>> >>> I am able to receive the play the multicasted RAW PCMU RTP (modified the >>> skel of format provided by brian), so that caller can hear the multicast >>> which done by other Freeswitch server using mod_esf application, but when i >>> change the caller's codec from PCMU to something else, it breaks. >>> >>> >>> >> >> _______________________________________________ >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> >> > > > -- > > -MohammedShehzad > > _______________________________________________ > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jon111882 at aol.com Fri May 11 18:59:52 2018 From: jon111882 at aol.com (Jon Neuffer) Date: Fri, 11 May 2018 09:59:52 -0900 Subject: No subject Message-ID: <1526065202.HDGpfysEbEY61HDGsfLETv@mf-smf-ucb025c3> http://total.tipadvisor.org Jon Neuffer -------------- next part -------------- An HTML attachment was scrubbed... URL: From steveayre at gmail.com Sat May 12 12:31:11 2018 From: steveayre at gmail.com (Steven Ayre) Date: Sat, 12 May 2018 13:31:11 +0100 Subject: [Freeswitch-users] Is cidlookup asynchronous? In-Reply-To: <1e8b9a05-15cd-ffe5-65b7-25893d33b30b@k4gvo.com> References: <1e8b9a05-15cd-ffe5-65b7-25893d33b30b@k4gvo.com> Message-ID: Dialplan is parsed in a hunting and execution phase. First it collects the list of actions to run, then it executes them. In your script you're calling the lua script "inline" which means it executes during the hunting phase. If you aren't setting effective_caller_id_name until the execution phase then the lua script will run first. I suggest avoiding inline unless you actually require it so the logic is easier to follow. If you do need to run that inline then set effective_caller_id_name inline as well. On 10 May 2018 at 17:11, Jim Lynch wrote: > I am calling cidlookup in my dial plan like this: > > inline="true"/> > > And in my log I see: > > a6a3d389-245d-4705-9a1e-91d74d491dd1 Dialplan: > sofia/external/+12297960236 at 4.59.156.121:5060 Action > set(effective_caller_id_name=${cidlookup(${caller_id_number})}) > > I'm trying to use it in an lua script that is called right after the above > action line but the log seems to indicate that it doesn't actually get > executed until some time later. > > a6a3d389-245d-4705-9a1e-91d74d491dd1 Dialplan: sofia/external/+12297960236 at 4.59.156.121:5060 Action info() > a6a3d389-245d-4705-9a1e-91d74d491dd1 Dialplan: sofia/external/+12297960236 at 4.59.156.121:5060 Action lua(cid.lua ${caller_id_number} ${effective_caller_id_name}) INLINE > a6a3d389-245d-4705-9a1e-91d74d491dd1 EXECUTE sofia/external/+12297960236 at 4.59.156.121:5060 lua(cid.lua +12297960236 ) > 2018-05-09 20:28:02.349228 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fefd0092e70 Connected. > a6a3d389-245d-4705-9a1e-91d74d491dd1 2018-05-09 20:28:02.349228 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable(effective_caller_id_name, ALL LOCATION CZ) > > > How can I get the data into my lua script? > > Thanks, > Jim. > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From atulthosar at gmail.com Sun May 13 17:04:29 2018 From: atulthosar at gmail.com (Atul Thosar) Date: Sun, 13 May 2018 22:34:29 +0530 Subject: [Freeswitch-users] Configuring timer-T1X64 In-Reply-To: References: Message-ID: Any pointers? ​Thanks.​ -- ​ Atul On 10 May 2018 at 20:32, Atul Thosar wrote: > Hi All, > I want to change the timer B of INVITE Client Transaction. So I set > following in conf/sip_profiles/external.xml > > > > Restarted freeswitch and observed following debug line in logs > > 2018-05-10 16:57:43.799719 [DEBUG] sofia.c:4629 timer-T1X64 [4000] > > However, INVITE Client Transaction is not timing out in 4 sec. It still > takes 32 sec to timed out. What could be the reason? Did I miss anything? > > Btw I am using external Lua client to control the freeswitch call flow. My > Lua script connects to freeswitch over ESL connection and fires following > command to make outbound call > > > [DEBUG Thu May 10 17:00:17 2018] : command for outbound call is: lua > ~freeswitch.Session('{origination_uuid=197422a3- > e29e-452a-bf4e-86a6895a8cd5,sip_invite_route_uri= 147.174.99;lr=on;ftag=K9ZF9aXv8ra1e>}sofia/external/ > sip:18447770001 at domain.com', freeswitch.Session('0b4aaab6- > cee8-1236-d897-005056b308ba')) > > 0b4aaab6-cee8-1236-d897-005056b308ba is call-id of my incoming call to > freeswitch. > > I am using following version of freeswitch > > freeswitch at as80> version > FreeSWITCH Version 1.8.0~64bit ( 64bit) > ​​ > > > -- > BR, > Atul > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at freeswitch.com Mon May 14 01:44:29 2018 From: alex at freeswitch.com (Alexey Sibyakin) Date: Mon, 14 May 2018 10:44:29 +0900 Subject: [Freeswitch-users] Tone Stream and G729 In-Reply-To: References: Message-ID: Hi, "mod_g729" works only passthrough, you can't play tones or files with it. You need "mod_com_g729" if you want to decode media stream. Also inband DTMF with g729 is not good idea overall. Use RFC2833. Regards, Alex On Tue, May 8, 2018 at 2:38 AM, Guillermo Ruiz Camauer wrote: > Inline (audible tones in the audio stream) tones will not work with > G.729. You need to use RFC2833 for best results. > > Try with > > send_dtmf [@] > > If your tones are not standard DTMF, you can try to record them in a file, > convert it to G.729 offline, and then play the file back in the call. > There is a file conversion utility in FS calles fs_convert if I recall > correctly which you can use to convert the file. You will need one G.729 > license to do this, or find some other program to convert your file. > > > > Regards, > > Guillermo > > On Mon, May 7, 2018 at 1:35 PM, Alexander Perkins < > alexanderhenryperkins at gmail.com> wrote: > >> Hi All. I am wondering if somebody can point me in the right direction. >> I am playing back tone_stream on my call, but noticed that if the codec is >> in G729, the call fails because of a codec negotiation error (I am loading >> the G729 mod). >> >> Does anybody know how tone_stream can work with G279? Here's the line >> from my dialplan (NumberOfLoops depends on how long it takes us to find the >> user, historical average): >> >> >> >> >> >> Thanks, >> Alex >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > -- > Guillermo Ruiz Camauer > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -- Alex Sibyakin | Support Engineer FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 Email: alex at freeswitch.com Website: https://www.FreeSWITCH.com Need commercial support? Contact sales at freeswitch.com for details. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Mon May 14 16:59:12 2018 From: mike at jerris.com (Michael Jerris) Date: Mon, 14 May 2018 12:59:12 -0400 Subject: [Freeswitch-users] Configuring timer-T1X64 In-Reply-To: References: Message-ID: <01B46841-070E-49FF-8C20-FC5BB19BD609@jerris.com> The config looks right, maybe the additional sofia log level will tell more, i know this used to work, but its not something i see people change often. > On May 13, 2018, at 1:04 PM, Atul Thosar wrote: > > Any pointers? > ​Thanks.​ > > --​ > Atul > > > On 10 May 2018 at 20:32, Atul Thosar > wrote: > Hi All, > I want to change the timer B of INVITE Client Transaction. So I set following in conf/sip_profiles/external.xml > > > > Restarted freeswitch and observed following debug line in logs > > 2018-05-10 16:57:43.799719 [DEBUG] sofia.c:4629 timer-T1X64 [4000] > > However, INVITE Client Transaction is not timing out in 4 sec. It still takes 32 sec to timed out. What could be the reason? Did I miss anything? > > Btw I am using external Lua client to control the freeswitch call flow. My Lua script connects to freeswitch over ESL connection and fires following command to make outbound call > > > [DEBUG Thu May 10 17:00:17 2018] : command for outbound call is: lua ~freeswitch.Session('{origination_uuid=197422a3-e29e-452a-bf4e-86a6895a8cd5,sip_invite_route_uri=}sofia/external/sip:18447770001 at domain.com ', freeswitch.Session('0b4aaab6-cee8-1236-d897-005056b308ba')) > > 0b4aaab6-cee8-1236-d897-005056b308ba is call-id of my incoming call to freeswitch. > > I am using following version of freeswitch > > freeswitch at as80> version > FreeSWITCH Version 1.8.0~64bit ( 64bit) > ​​ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mouli123 at gmail.com Fri May 11 05:34:01 2018 From: mouli123 at gmail.com (Chandramouli P) Date: Fri, 11 May 2018 11:04:01 +0530 Subject: [Freeswitch-users] Use GStreamer instead of FreeSwitch? Message-ID: Hello, I am using Kamailio as registration server and FreeSwitch for signalling (RTP packet handling). Can I use GStreamer instead of Freeswitch or Asterisk? Thank you. Regards, CM -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Mon May 14 17:00:37 2018 From: mike at jerris.com (Michael Jerris) Date: Mon, 14 May 2018 13:00:37 -0400 Subject: [Freeswitch-users] Use GStreamer instead of FreeSwitch? In-Reply-To: References: Message-ID: <01F891DF-2D0A-4688-ADAC-ED4EF46DB748@jerris.com> What exactly are you trying to accomplish? What would make you prefer one to another solution? Mike > On May 11, 2018, at 1:34 AM, Chandramouli P wrote: > > Hello, > > I am using Kamailio as registration server and FreeSwitch for signalling (RTP packet handling). Can I use GStreamer instead of Freeswitch or Asterisk? -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick at hkcradio.com Tue May 15 00:18:10 2018 From: nick at hkcradio.com (Nick Giannak III) Date: Mon, 14 May 2018 20:18:10 -0400 Subject: [Freeswitch-users] file.exists in Freeswitch 1.8/1.9 Message-ID: Greetings.     In Freeswitch 1.6, the file.exist module does not appear to be implemented in V8. The console shows it as "not implemented". This, however, is a function listed in the documentation. Is it implemented for Freeswitch 1.8? Or, alternatively, are we doing something wrong? Thanks, Nick From akshaya18j at gmail.com Tue May 15 05:35:13 2018 From: akshaya18j at gmail.com (Akshaya j) Date: Tue, 15 May 2018 11:05:13 +0530 Subject: [Freeswitch-users] caching dialplan in xml_curl Message-ID: Hi All, I just need to cache the dialplan response in xml_curl module. The wiki has an example of caching the directory response setting "cacheable=true" in user-id tag which perfectly works. I'm just curious to know is there a similar way to cache the dialplan as in setting same tag in tag? I worked around placing cacheable in
,, nothing seems recognising it. I feel having the cacheable in tag is meaningful but even tat doesn't work. How do u people make this caching work in dialplans? Any thoughts on this would be helpful.! Regards, Akshaya J -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick at magicmail.mooo.com Tue May 15 11:37:45 2018 From: rick at magicmail.mooo.com (Rick Jarvis) Date: Tue, 15 May 2018 12:37:45 +0100 Subject: [Freeswitch-users] External authentication Message-ID: <76D6075C-0A5F-4AEB-B05E-B91BEB957D18@magicmail.mooo.com> Now, I’m sure I’ve read about this somewhere, and now I need to do it, I can’t find it of course! Basically need to hand the user authentication off to another server, via https. Got this kind of thing working nicely in the dialplan using httapi, but can’t figure out how to do it for user registration? Needs to be real time, so exporting directory XML *to* FS isn’t going to do it. Any ideas? From josedavid at zennio.com Tue May 15 12:01:05 2018 From: josedavid at zennio.com (Jose David Jurado Alonso) Date: Tue, 15 May 2018 14:01:05 +0200 Subject: [Freeswitch-users] External authentication In-Reply-To: <76D6075C-0A5F-4AEB-B05E-B91BEB957D18@magicmail.mooo.com> References: <76D6075C-0A5F-4AEB-B05E-B91BEB957D18@magicmail.mooo.com> Message-ID: Hi Rick, I use this library: https://github.com/soulhunter1987/freeswitch-curl to handle the real time user authentication vía http with the data into a mysql database. José David Jurado Alonso *Área de Desarrollo de Software de Alto Nivel* *Dpto. Ingeniería* Zennio Avance y Tecnología, S.L. C/ Rio Jarama,132 . Nave P-8.11 45007 - Toledo (Spain) T: +34 925 232 002 <+34%20925%2023%2020%2002> www.zennio.com [image: Descripción: Descripción: C:\Users\jjmanjarres\Desktop\Z zennio.jpg] [image: Descripción: Descripción: C:\Users\jjmanjarres\Desktop\twitter.jpg] [image: Descripción: Descripción: C:\Users\jjmanjarres\Desktop\descarga.jpg] [image: Descripción: Descripción: C:\Users\jjmanjarres\Desktop\linkedin.png] [image: Descripción: Descripción: C:\Users\jjmanjarres\Desktop\youtube.jpg] Zennio Avance y Tecnología S.L le informa de los siguientes extremos: Los datos por usted suministrados pasarán a formar parte de un fichero cuyo responsable es Zennio Avance y Tecnología S.L. Dicho fichero se encuentra legalmente inscrito en el Registro General de Protección de Datos de la Agencia Española de Protección de Datos. Los datos por usted suministrados serán empleados con fines de gestión, Zennio Avance y Tecnología S.L ha adoptado las medidas de seguridad exigidas en función del nivel de los datos suministrados, instalando las medidas técnicas y organizativas necesarias, habida cuenta del estado de la tecnología, a fin de evitar su pérdida, alteración, uso inadecuado o accesos no autorizados a los mismos. Para el ejercicio de sus derechos de acceso, rectificación, cancelación y oposición deberá dirigirse a la dirección del Responsable de Fichero Zennio Avance y Tecnología S.L C/ Rio Jarama, 132. Nave P-8.11, 45007, TOLEDO o a la dirección de correo electrónico: info at zennio.com Please, consider the environment before printing this e-mail... Save energy! Por favor, piensa en el medio ambiente antes de imprimir este e-mail... ¡Ahorra energía! Disclaimer: This message and any attached files transmitted with it, is confidential, especially as regards personal data. It is intended solely for the use of the individual or entity to whom it is addressed. If you are not the intended recipient and have received this information in error or have accessed it for any reason, please notify us of this fact by email reply and then destroy or delete the message, refraining from any reproduction, use, alteration, filing or communication to third parties of this message and attached files on penalty of incurring legal responsibilities. The opinions contained in this message and the attached archives, belong exclusively to their sender and they do not represent the opinion of the company unless it is said specifically and the sender is authorized for it. The sender does not guarantee the integrity, the accuracy, the swift delivery or the security of this email transmission, and assumes no responsibility for any possible damage incurred through data capture, virus incorporation or any manipulation carried out by third parties. Advertencia legal: Este mensaje y, en su caso, los ficheros anexos son confidenciales, especialmente en lo que respecta a los datos personales, y se dirigen exclusivamente al destinatario referenciado. Si usted no lo es y lo ha recibido por error o tiene conocimiento del mismo por cualquier motivo, le rogamos que nos lo comunique por este medio y proceda a destruirlo o borrarlo, y que en todo caso se abstenga de utilizar, reproducir, alterar, archivar o comunicar a terceros el presente mensaje y ficheros anexos, todo ello bajo pena de incurrir en responsabilidades legales. Las opiniones contenidas en este mensaje y en los archivos adjuntos, pertenecen exclusivamente a su remitente y no representan la opinión de la empresa salvo que se diga expresamente y el remitente esté autorizado para ello. El emisor no garantiza la integridad, rapidez o seguridad del presente correo, ni se responsabiliza de posibles perjuicios derivados de la captura, incorporaciones de virus o cualesquiera otras manipulaciones efectuadas por terceros. 2018-05-15 13:37 GMT+02:00 Rick Jarvis : > Now, I’m sure I’ve read about this somewhere, and now I need to do it, I > can’t find it of course! > > Basically need to hand the user authentication off to another server, via > https. > > Got this kind of thing working nicely in the dialplan using httapi, but > can’t figure out how to do it for user registration? Needs to be real time, > so exporting directory XML *to* FS isn’t going to do it. > > Any ideas? > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From andywolk at gmail.com Tue May 15 12:17:13 2018 From: andywolk at gmail.com (Andrey Wolk) Date: Tue, 15 May 2018 15:17:13 +0300 Subject: [Freeswitch-users] file.exists in Freeswitch 1.8/1.9 Message-ID: You're not doing anything wrong, Nick. As I can see here: https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/languages/mod_v8/src/fsfile.cpp#172 the whole File class is dummy and wasn't implemented yet in neither v1.6 nor v1.8. > From: Nick Giannak III > To: freeswitch-users at lists.freeswitch.org > Greetings. > In Freeswitch 1.6, the file.exist module does not appear to be > implemented in V8. The console shows it as "not implemented". This, > however, is a function listed in the documentation. Is it implemented for > Freeswitch 1.8? Or, alternatively, are we doing something wrong? > Thanks, > Nick > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick at magicmail.mooo.com Tue May 15 18:44:01 2018 From: rick at magicmail.mooo.com (Rick Jarvis) Date: Tue, 15 May 2018 19:44:01 +0100 Subject: [Freeswitch-users] External authentication In-Reply-To: References: <76D6075C-0A5F-4AEB-B05E-B91BEB957D18@magicmail.mooo.com> Message-ID: Thanks José, It’s the XML_CURL binding bit that’s relevant to me then, as the server it’s querying is something we've written already. So I’m seeing posts come into my server from general stuff, but nothing when I try and authenticate with it (via Verto). On the FS console I’m seeing: "jsonrpc": "2.0", "id": 1, "error": { "code": -32000, "message": "Authentication Required" } So I guess either it’s not working, or maybe FS doesn’t support Curl directories for Verto? > On 15 May 2018, at 13:01, Jose David Jurado Alonso wrote: > > Hi Rick, > > I use this library: > > https://github.com/soulhunter1987/freeswitch-curl > > to handle the real time user authentication vía http with the data into a mysql database. > > José David Jurado Alonso > > > Área de Desarrollo de Software de Alto Nivel > > Dpto. Ingeniería > > > > Zennio Avance y Tecnología, S.L. > > C/ Rio Jarama,132 . Nave P-8.11 > > 45007 - Toledo (Spain) > > T: +34 925 232 002 > > www.zennio.com > > > Zennio Avance y Tecnología S.L le informa de los siguientes extremos: > Los datos por usted suministrados pasarán a formar parte de un fichero cuyo responsable es Zennio Avance y Tecnología S.L. Dicho fichero se encuentra legalmente inscrito en el Registro General de Protección de Datos de la Agencia Española de Protección de Datos. Los datos por usted suministrados serán empleados con fines de gestión, Zennio Avance y Tecnología S.L ha adoptado las medidas de seguridad exigidas en función del nivel de los datos suministrados, instalando las medidas técnicas y organizativas necesarias, habida cuenta del estado de la tecnología, a fin de evitar su pérdida, alteración, uso inadecuado o accesos no autorizados a los mismos. > Para el ejercicio de sus derechos de acceso, rectificación, cancelación y oposición deberá dirigirse a la dirección del Responsable de Fichero Zennio Avance y Tecnología S.L C/ Rio Jarama, 132. Nave P-8.11, 45007, TOLEDO o a la dirección de correo electrónico: info at zennio.com > > Please, consider the environment before printing this e-mail... Save energy! > Por favor, piensa en el medio ambiente antes de imprimir este e-mail... ¡Ahorra energía! > Disclaimer: > This message and any attached files transmitted with it, is confidential, especially as regards personal data. It is intended solely for the use of the individual or entity to whom it is addressed. If you are not the intended recipient and have received this information in error or have accessed it for any reason, please notify us of this fact by email reply and then destroy or delete the message, refraining from any reproduction, use, alteration, filing or communication to third parties of this message and attached files on penalty of incurring legal responsibilities. The opinions contained in this message and the attached archives, belong exclusively to their sender and they do not represent the opinion of the company unless it is said specifically and the sender is authorized for it. The sender does not guarantee the integrity, the accuracy, the swift delivery or the security of this email transmission, and assumes no responsibility for any possible damage incurred through data capture, virus incorporation or any manipulation carried out by third parties. > Advertencia legal: > Este mensaje y, en su caso, los ficheros anexos son confidenciales, especialmente en lo que respecta a los datos personales, y se dirigen exclusivamente al destinatario referenciado. Si usted no lo es y lo ha recibido por error o tiene conocimiento del mismo por cualquier motivo, le rogamos que nos lo comunique por este medio y proceda a destruirlo o borrarlo, y que en todo caso se abstenga de utilizar, reproducir, alterar, archivar o comunicar a terceros el presente mensaje y ficheros anexos, todo ello bajo pena de incurrir en responsabilidades legales. Las opiniones contenidas en este mensaje y en los archivos adjuntos, pertenecen exclusivamente a su remitente y no representan la opinión de la empresa salvo que se diga expresamente y el remitente esté autorizado para ello. El emisor no garantiza la integridad, rapidez o seguridad del presente correo, ni se responsabiliza de posibles perjuicios derivados de la captura, incorporaciones de virus o cualesquiera otras manipulaciones efectuadas por terceros. > > 2018-05-15 13:37 GMT+02:00 Rick Jarvis >: > Now, I’m sure I’ve read about this somewhere, and now I need to do it, I can’t find it of course! > > Basically need to hand the user authentication off to another server, via https. > > Got this kind of thing working nicely in the dialplan using httapi, but can’t figure out how to do it for user registration? Needs to be real time, so exporting directory XML *to* FS isn’t going to do it. > > Any ideas? > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Tue May 15 19:40:21 2018 From: mike at jerris.com (Michael Jerris) Date: Tue, 15 May 2018 15:40:21 -0400 Subject: [Freeswitch-users] External authentication In-Reply-To: References: <76D6075C-0A5F-4AEB-B05E-B91BEB957D18@magicmail.mooo.com> Message-ID: <33D77F07-83F2-48EC-893C-1FA8D77E9F11@jerris.com> it certainly can do curl directory lookups with verto. if you do the api command “xml_curl debug_on” it will provide more details of the requests and responses, it looks like you are not handling the request in your cgi the way we expect. > On May 15, 2018, at 2:44 PM, Rick Jarvis wrote: > > Thanks José, > > It’s the XML_CURL binding bit that’s relevant to me then, as the server it’s querying is something we've written already. > > > > > > > > So I’m seeing posts come into my server from general stuff, but nothing when I try and authenticate with it (via Verto). > > On the FS console I’m seeing: > > "jsonrpc": "2.0", > "id": 1, > "error": { > "code": -32000, > "message": "Authentication Required" > } > > So I guess either it’s not working, or maybe FS doesn’t support Curl directories for Verto? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick at magicmail.mooo.com Tue May 15 20:17:11 2018 From: rick at magicmail.mooo.com (Rick Jarvis) Date: Tue, 15 May 2018 21:17:11 +0100 Subject: [Freeswitch-users] External authentication In-Reply-To: <33D77F07-83F2-48EC-893C-1FA8D77E9F11@jerris.com> References: <76D6075C-0A5F-4AEB-B05E-B91BEB957D18@magicmail.mooo.com> <33D77F07-83F2-48EC-893C-1FA8D77E9F11@jerris.com> Message-ID: <6F2E7286-1242-4F3B-BE6E-F4D6E559776B@magicmail.mooo.com> What am I looking for exactly? I am seeing: mod_verto.c:1876 BAD READ -1000 …which sounds relevant. But I’m not seeing anything on my app receiving the request (I’ve got that simply console logging anything that hits the URL, and nothing happens when doing the Verto login…) > On 15 May 2018, at 20:40, Michael Jerris wrote: > > it certainly can do curl directory lookups with verto. if you do the api command “xml_curl debug_on” it will provide more details of the requests and responses, it looks like you are not handling the request in your cgi the way we expect. > >> On May 15, 2018, at 2:44 PM, Rick Jarvis > wrote: >> >> Thanks José, >> >> It’s the XML_CURL binding bit that’s relevant to me then, as the server it’s querying is something we've written already. >> >> >> >> >> >> >> >> So I’m seeing posts come into my server from general stuff, but nothing when I try and authenticate with it (via Verto). >> >> On the FS console I’m seeing: >> >> "jsonrpc": "2.0", >> "id": 1, >> "error": { >> "code": -32000, >> "message": "Authentication Required" >> } >> >> So I guess either it’s not working, or maybe FS doesn’t support Curl directories for Verto? > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Tue May 15 20:22:31 2018 From: mike at jerris.com (Michael Jerris) Date: Tue, 15 May 2018 16:22:31 -0400 Subject: [Freeswitch-users] External authentication In-Reply-To: <6F2E7286-1242-4F3B-BE6E-F4D6E559776B@magicmail.mooo.com> References: <76D6075C-0A5F-4AEB-B05E-B91BEB957D18@magicmail.mooo.com> <33D77F07-83F2-48EC-893C-1FA8D77E9F11@jerris.com> <6F2E7286-1242-4F3B-BE6E-F4D6E559776B@magicmail.mooo.com> Message-ID: <7D1E0817-841A-4DFD-AE06-E6BB492FFF13@jerris.com> if you have it not hitting curl at all (and you have xml_curl debug_on enabled) and you see nothing, it sounds like the connection is failing before it even gets that far. Its hard to tell why with tiny snippets of information cherry picked out like below. Something in verto settings i would suspect. You can try to enable verto debug to get some more info possibly. > On May 15, 2018, at 4:17 PM, Rick Jarvis wrote: > > What am I looking for exactly? I am seeing: > > mod_verto.c:1876 BAD READ -1000 > > …which sounds relevant. But I’m not seeing anything on my app receiving the request (I’ve got that simply console logging anything that hits the URL, and nothing happens when doing the Verto login…) > > >> On 15 May 2018, at 20:40, Michael Jerris > wrote: >> >> it certainly can do curl directory lookups with verto. if you do the api command “xml_curl debug_on” it will provide more details of the requests and responses, it looks like you are not handling the request in your cgi the way we expect. >> >>> On May 15, 2018, at 2:44 PM, Rick Jarvis > wrote: >>> >>> Thanks José, >>> >>> It’s the XML_CURL binding bit that’s relevant to me then, as the server it’s querying is something we've written already. >>> >>> >>> >>> >>> >>> >>> >>> So I’m seeing posts come into my server from general stuff, but nothing when I try and authenticate with it (via Verto). >>> >>> On the FS console I’m seeing: >>> >>> "jsonrpc": "2.0", >>> "id": 1, >>> "error": { >>> "code": -32000, >>> "message": "Authentication Required" >>> } >>> >>> So I guess either it’s not working, or maybe FS doesn’t support Curl directories for Verto? >> >> _ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivanov.evtim at gmail.com Tue May 15 17:36:22 2018 From: ivanov.evtim at gmail.com (Evtim Ivanov) Date: Tue, 15 May 2018 18:36:22 +0100 Subject: [Freeswitch-users] how to make FS to listen for 2 RTP streams on one call ? Message-ID: Hello all, I'm trying to implement this (shown in the picture) scenario, but to use FS instead of OrekaTR: There are several small bumps on the road, which I successfully overcame, but finally I met a challenge which is bigger, than my skills, so I need the community help. The problem is, that RtpProxy can't mix the media, so instead of one mixed stream on the forked call, I have 2 separate RTP streams. I have no idea how to make FS to listen both of them. Is this possible and how? Any advice is highly appreciated. Best! Evtim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: siprec-architecture.png Type: image/png Size: 35415 bytes Desc: not available URL: From j4v28bsjtp43hnf865 at gmail.com Wed May 16 09:21:38 2018 From: j4v28bsjtp43hnf865 at gmail.com (Xenia Obolenskaya) Date: Wed, 16 May 2018 09:21:38 +0000 Subject: [Freeswitch-users] Answering to sip2sip.info INVITE Freeswitch sends strange SDP: 'm=audio 0 RTP/AVP 19' Message-ID: recv 1815 bytes from tls/[81.23.228.150]:443 at 07:59:52.249297: ------------------------------------------------------------------------ INVITE sip:gw+sip2sip@ Record-Route: Record-Route: Record-Route: Record-Route: Record-Route: Via: SIP/2.0/TLS 81.23.228.150:443;branch=z9hG4bK9a88.2adb9c55.0 Via: SIP/2.0/UDP 81.23.228.129:5060;branch=z9hG4bK9a88.40d983a7.0 Via: SIP/2.0/UDP 81.23.228.150:5060;branch=z9hG4bK9a88.1adb9c55.0 Via: SIP/2.0/UDP 85.17.186.7:5060;branch=z9hG4bK9a88.80ff70a4.0;i=62a32 Via: SIP/2.0/TCP 81.23.228.160:57446;rport=55026;received=81.23.228.160;branch=z9hG4bKKBNcH3r9B48Xr Max-Forwards: 66 From: "Victor" ;tag=KKQaHvjDvKecF To: Call-ID: f45c2a4a-d381-1236-1298-047d7b87609e CSeq: 933861599 INVITE Contact: User-Agent: SylkRTC (Firefox 60.0 on Windows 8.1) Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, UPDATE Content-Type: application/sdp Content-Disposition: session Content-Length: 474 v=0 o=mozilla...THIS_IS_SDPARTA-60.0 3887687583368393798 5225707675845380188 IN IP4 81.23.228.160 s=- t=0 0 a=sendrecv m=audio 54672 RTP/AVP 109 9 0 8 101 c=IN IP4 81.23.228.129 a=rtpmap:109 opus/48000/2 a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1 a=rtpmap:9 G722/8000/1 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:WIsk0UoOzvahjfdFEDDgAVd5hXFmUnUpvBoPK1eY In Freeswitch debug I see the correct local SDP: [DEBUG] mod_sofia.c:850 Local SDP sofia/sip2sip/rCodzvTEQK+uupE5QSBudQ at guest.sip2sip.info: v=0 o=FreeSWITCH 1526429009 1526429010 IN IP4 s=FreeSWITCH c=IN IP4 t=0 0 m=audio 28590 RTP/SAVP 8 101 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=sendrecv a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:7MKm6yBppNSDw1IJDgyl0a2xkkvmashJVyTACq89 but in siptrace I see that really Freeswitch sends this strange SDP (and nothing else): send 1529 bytes to tls/[81.23.228.150]:443 at 07:59:59.082373: ------------------------------------------------------------------------ SIP/2.0 200 OK Via: SIP/2.0/TLS 81.23.228.150:443;branch=z9hG4bK9a88.2adb9c55.0;rport=443 Via: SIP/2.0/UDP 81.23.228.129:5060;branch=z9hG4bK9a88.40d983a7.0 Via: SIP/2.0/UDP 81.23.228.150:5060;branch=z9hG4bK9a88.1adb9c55.0 Via: SIP/2.0/UDP 85.17.186.7:5060;branch=z9hG4bK9a88.80ff70a4.0;i=62a32 Via: SIP/2.0/TCP 81.23.228.160:57446;rport=55026;received=81.23.228.160;branch=z9hG4bKKBNcH3r9B48Xr Record-Route: Record-Route: Record-Route: Record-Route: Record-Route: Record-Route: From: "Victor" ;tag=KKQaHvjDvKecF To: ;tag=p8SyjjgjH5HZB Call-ID: f45c2a4a-d381-1236-1298-047d7b87609e CSeq: 933861599 INVITE Contact: :5061;transport=tls> User-Agent: Freeswitch Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY Supported: timer, outbound, path, replaces Allow-Events: talk, hold, conference, refer Content-Type: application/sdp Content-Disposition: session Content-Length: 129 v=0 o=FreeSWITCH 1526429009 1526429010 IN IP4 s=FreeSWITCH c=IN IP4 t=0 0 m=audio 0 RTP/AVP 19 Bearing in mind that sip2sip includes a=crypto attribute in RTP/AVP I added this string in dialplan: othewise I always received [ERR] switch_core_media.c:4316 a=crypto in RTP/AVP, refer to rfc3711 [NOTICE] switch_channel.c:3812 Hangup sofia/sip2sip/wFxwmegJTLu4n6kK8DpXjw at guest.sip2sip.info [CS_EXECUTE] [INCOMPATIBLE_DESTINATION] But now Freeswitch doesn't send the correct SDP with RTP/SAVP (I see it just in debug). FreeSWITCH Version 1.6.19+git~20171120T163416Z~b1b21d0695~64bit (git b1b21d0 2017-11-20 16:34:16Z 64bit) -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Wed May 16 12:42:22 2018 From: mike at jerris.com (Michael Jerris) Date: Wed, 16 May 2018 08:42:22 -0400 Subject: [Freeswitch-users] caching dialplan in xml_curl In-Reply-To: References: Message-ID: <4B8B0268-7350-4538-BA57-F169A186348B@jerris.com> There is not. > On May 15, 2018, at 1:35 AM, Akshaya j wrote: > > Hi All, > > I just need to cache the dialplan response in xml_curl module. > > The wiki has an example of caching the directory response setting "cacheable=true" in user-id tag which perfectly works. > > I'm just curious to know is there a similar way to cache the dialplan as in setting same tag in tag? > I worked around placing cacheable in
,, nothing seems recognising it. > > I feel having the cacheable in tag is meaningful but even tat doesn't work. > > How do u people make this caching work in dialplans? Any thoughts on this would be helpful.! > From mike at jerris.com Wed May 16 12:56:43 2018 From: mike at jerris.com (Michael Jerris) Date: Wed, 16 May 2018 08:56:43 -0400 Subject: [Freeswitch-users] Answering to sip2sip.info INVITE Freeswitch sends strange SDP: 'm=audio 0 RTP/AVP 19' In-Reply-To: References: Message-ID: I will be responding to this question for community corner on todays Cluecon Weekly. Mike > On May 16, 2018, at 5:21 AM, Xenia Obolenskaya wrote: > > recv 1815 bytes from tls/[81.23.228.150]:443 at 07:59:52.249297: > ------------------------------------------------------------------------ > INVITE sip:gw+sip2sip@ <> Record-Route: <> > Record-Route: <> > Record-Route: <> > Record-Route: <> > Record-Route: <> > Record-Route: <> > Via: SIP/2.0/TLS 81.23.228.150:443;branch=z9hG4bK9a88.2adb9c55.0 > Via: SIP/2.0/UDP 81.23.228.129:5060;branch=z9hG4bK9a88.40d983a7.0 > Via: SIP/2.0/UDP 81.23.228.150:5060;branch=z9hG4bK9a88.1adb9c55.0 > Via: SIP/2.0/UDP 85.17.186.7:5060;branch=z9hG4bK9a88.80ff70a4.0;i=62a32 > Via: SIP/2.0/TCP 81.23.228.160:57446;rport=55026;received=81.23.228.160;branch=z9hG4bKKBNcH3r9B48Xr > Max-Forwards: 66 > From: "Victor" <>;tag=KKQaHvjDvKecF > To: <> > Call-ID: f45c2a4a-d381-1236-1298-047d7b87609e > CSeq: 933861599 INVITE > Contact: <> > User-Agent: SylkRTC (Firefox 60.0 on Windows 8.1) > Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, UPDATE > Content-Type: application/sdp > Content-Disposition: session > Content-Length: 474 > > v=0 > o=mozilla...THIS_IS_SDPARTA-60.0 3887687583368393798 5225707675845380188 IN IP4 81.23.228.160 > s=- > t=0 0 > a=sendrecv > m=audio 54672 RTP/AVP 109 9 0 8 101 > c=IN IP4 81.23.228.129 > a=rtpmap:109 opus/48000/2 > a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1 > a=rtpmap:9 G722/8000/1 > a=rtpmap:0 PCMU/8000 > a=rtpmap:8 PCMA/8000 > a=rtpmap:101 telephone-event/8000 > a=fmtp:101 0-15 > a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:WIsk0UoOzvahjfdFEDDgAVd5hXFmUnUpvBoPK1eY > > In Freeswitch debug I see the correct local SDP: > > [DEBUG] mod_sofia.c:850 Local SDP sofia/sip2sip/rCodzvTEQK+uupE5QSBudQ at guest.sip2sip.info : > v=0 > o=FreeSWITCH 1526429009 1526429010 IN IP4 > s=FreeSWITCH > c=IN IP4 > t=0 0 > m=audio 28590 RTP/SAVP 8 101 > a=rtpmap:8 PCMA/8000 > a=rtpmap:101 telephone-event/8000 > a=fmtp:101 0-16 > a=ptime:20 > a=sendrecv > a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:7MKm6yBppNSDw1IJDgyl0a2xkkvmashJVyTACq89 > > but in siptrace I see that really Freeswitch sends this strange SDP (and nothing else): > > send 1529 bytes to tls/[81.23.228.150]:443 at 07:59:59.082373: > ------------------------------------------------------------------------ > SIP/2.0 200 OK > Via: SIP/2.0/TLS 81.23.228.150:443;branch=z9hG4bK9a88.2adb9c55.0;rport=443 > Via: SIP/2.0/UDP 81.23.228.129:5060;branch=z9hG4bK9a88.40d983a7.0 > Via: SIP/2.0/UDP 81.23.228.150:5060;branch=z9hG4bK9a88.1adb9c55.0 > Via: SIP/2.0/UDP 85.17.186.7:5060;branch=z9hG4bK9a88.80ff70a4.0;i=62a32 > Via: SIP/2.0/TCP 81.23.228.160:57446;rport=55026;received=81.23.228.160;branch=z9hG4bKKBNcH3r9B48Xr > Record-Route: <> > Record-Route: <> > Record-Route: <> > Record-Route: <> > Record-Route: <> > Record-Route: <> > From: "Victor" <>;tag=KKQaHvjDvKecF > To: <>;tag=p8SyjjgjH5HZB > Call-ID: f45c2a4a-d381-1236-1298-047d7b87609e > CSeq: 933861599 INVITE > Contact: :5061;transport=tls> > User-Agent: Freeswitch > Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY > Supported: timer, outbound, path, replaces > Allow-Events: talk, hold, conference, refer > Content-Type: application/sdp > Content-Disposition: session > Content-Length: 129 > > v=0 > o=FreeSWITCH 1526429009 1526429010 IN IP4 > s=FreeSWITCH > c=IN IP4 > t=0 0 > m=audio 0 RTP/AVP 19 > > > Bearing in mind that sip2sip includes a=crypto attribute in RTP/AVP > > I added this string in dialplan: > > > > othewise I always received [ERR] switch_core_media.c:4316 a=crypto in RTP/AVP, refer to rfc3711 > [NOTICE] switch_channel.c:3812 Hangup sofia/sip2sip/wFxwmegJTLu4n6kK8DpXjw at guest.sip2sip.info [CS_EXECUTE] [INCOMPATIBLE_DESTINATION] > > But now Freeswitch doesn't send the correct SDP with RTP/SAVP (I see it just in debug). > > FreeSWITCH Version 1.6.19+git~20171120T163416Z~b1b21d0695~64bit (git b1b21d0 2017-11-20 16:34:16Z 64bit) > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From kaiduanx at yahoo.ca Wed May 16 13:11:35 2018 From: kaiduanx at yahoo.ca (kaiduan xie) Date: Wed, 16 May 2018 13:11:35 +0000 (UTC) Subject: [Freeswitch-users] how to make FS to listen for 2 RTP streams on one call ? In-Reply-To: References: Message-ID: <519686936.1881217.1526476295739@mail.yahoo.com> Does RTP proxy use same IP address/port to send/receive the two RTP streams? /Kaiduan On Wednesday, May 16, 2018, 8:37:29 a.m. EDT, Evtim Ivanov wrote: Hello all, I'm trying to implement this (shown in the picture) scenario, but to use FS instead of OrekaTR: There are several small bumps on the road, which I successfully overcame, but finally I met a challenge which is bigger, than my skills, so I need the community help. The problem is, that RtpProxy can't mix the media, so instead of one mixed stream on the forked call, I have 2 separate RTP streams. I have no idea how to make FS to listen both of them. Is this possible and how?Any advice is highly appreciated. Best!Evtim     _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: siprec-architecture.png Type: image/png Size: 35415 bytes Desc: not available URL: From mike at jerris.com Wed May 16 13:17:10 2018 From: mike at jerris.com (Michael Jerris) Date: Wed, 16 May 2018 09:17:10 -0400 Subject: [Freeswitch-users] how to make FS to listen for 2 RTP streams on one call ? In-Reply-To: References: Message-ID: <518B4FBC-7BA9-4CFD-B83F-FC827C29759D@jerris.com> Its not possible currently to handle multiple media streams for one call. > On May 15, 2018, at 1:36 PM, Evtim Ivanov wrote: > > Hello all, > > I'm trying to implement this (shown in the picture) scenario, but to use FS instead of OrekaTR: > > > There are several small bumps on the road, which I successfully overcame, but finally I met a challenge which is bigger, than my skills, so I need the community help. The problem is, that RtpProxy can't mix the media, so instead of one mixed stream on the forked call, I have 2 separate RTP streams. I have no idea how to make FS to listen both of them. Is this possible and how? > Any advice is highly appreciated. > > Best! > Evtim -------------- next part -------------- An HTML attachment was scrubbed... URL: From jurijs.ivolga at gmail.com Wed May 16 13:20:39 2018 From: jurijs.ivolga at gmail.com (Jurijs Ivolga) Date: Wed, 16 May 2018 16:20:39 +0300 Subject: [Freeswitch-users] how to make FS to listen for 2 RTP streams on one call ? In-Reply-To: <518B4FBC-7BA9-4CFD-B83F-FC827C29759D@jerris.com> References: <518B4FBC-7BA9-4CFD-B83F-FC827C29759D@jerris.com> Message-ID: Hi, Why you need OrekaTR/freeswitch at all? Rtpproxy should be able to do recording. With kind regards, Jurijs On Wed, May 16, 2018 at 4:17 PM, Michael Jerris wrote: > Its not possible currently to handle multiple media streams for one call. > > On May 15, 2018, at 1:36 PM, Evtim Ivanov wrote: > > Hello all, > > I'm trying to implement this (shown in the picture) scenario, but to use > FS instead of OrekaTR: > > > There are several small bumps on the road, which I successfully overcame, > but finally I met a challenge which is bigger, than my skills, so I need > the community help. The problem is, that RtpProxy can't mix the media, so > instead of one mixed stream on the forked call, I have 2 separate RTP > streams. I have no idea how to make FS to listen both of them. Is this > possible and how? > Any advice is highly appreciated. > > Best! > Evtim > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick at magicmail.mooo.com Wed May 16 13:47:21 2018 From: rick at magicmail.mooo.com (Rick Jarvis) Date: Wed, 16 May 2018 14:47:21 +0100 Subject: [Freeswitch-users] External authentication In-Reply-To: <7D1E0817-841A-4DFD-AE06-E6BB492FFF13@jerris.com> References: <76D6075C-0A5F-4AEB-B05E-B91BEB957D18@magicmail.mooo.com> <33D77F07-83F2-48EC-893C-1FA8D77E9F11@jerris.com> <6F2E7286-1242-4F3B-BE6E-F4D6E559776B@magicmail.mooo.com> <7D1E0817-841A-4DFD-AE06-E6BB492FFF13@jerris.com> Message-ID: Ok, so I’ve stripped everything out to a very basic verto setup. - I *am* seeing the POST requests for a ‘normal’ sip authentication attempt, eg from an ip phone. - I am not however seeing any POST requests for the verto auth request I am seeing a ‘reconnect’, even after restarting FS, so I’m wondering if that’s part of my problem - do the sessions persist after a restart? How would I force a new session? Still getting ‘authentication required’ and ‘missing or improper credentials’ Debug & js below: // fs output 2018-05-16 14:38:03.656190 [DEBUG] mod_verto.c:4139 x.x.x.x:65349 Client Connect from x.x.x.x:65349 accepted 2018-05-16 14:38:03.656190 [DEBUG] mod_verto.c:1992 x.x.x.x:65349 Starting client thread. 2018-05-16 14:38:03.696189 [ALERT] mod_verto.c:1384 READ x.x.x.x:65349 [{ "jsonrpc": "2.0", "method": "login", "params": { "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" }, "id": 2 }] 2018-05-16 14:38:03.696189 [DEBUG] mod_verto.c:1281 x.x.x.x:65349 re-connecting session c674980b-27ca-4c3e-37d1-3421736b990f 2018-05-16 14:38:03.696189 [ALERT] mod_verto.c:604 WRITE x.x.x.x:65349 [{ "jsonrpc": "2.0", "id": 2, "error": { "code": -32000, "message": "Authentication Required" } }] 2018-05-16 14:38:03.696189 [ALERT] mod_verto.c:1384 READ x.x.x.x:65349 [{ "jsonrpc": "2.0", "method": "login", "params": { "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" }, "id": 1 }] 2018-05-16 14:38:03.696189 [ALERT] mod_verto.c:604 WRITE x.x.x.x:65349 [{ "jsonrpc": "2.0", "id": 1, "error": { "code": -32000, "message": "Authentication Required" } }] 2018-05-16 14:38:03.696189 [ALERT] mod_verto.c:1384 READ x.x.x.x:65349 [{ "jsonrpc": "2.0", "method": "login", "params": { "login": “203 at xxxx", "passwd": "password", "loginParams": { }, "userVariables": { }, "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" }, "id": 3 }] 2018-05-16 14:38:03.696189 [ALERT] mod_verto.c:604 WRITE x.x.x.x:65349 [{ "jsonrpc": "2.0", "id": 3, "error": { "code": -32001, "message": "Missing or improper credentials" } }] //verto_client.js var vertoHandle, vertoCallbacks; vertoCallbacks = { onWSLogin: onWSLogin, onWSClose: onWSClose, onDialogState: onDialogState }; $(document).ready(function() { $.verto.init({}, bootstrap); }); function onWSLogin(verto, success) { console.log('onWSLogin', success); }; function onWSClose(verto, success) { console.log('onWSClose', success); }; function onDialogState(d) { console.log ("XXXX DIALOG: ", d.state.name); }; function bootstrap(status) { console.log('bootstrap'); vertoHandle = new jQuery.verto({ login: ‘203 at xxxx', passwd: 'password', socketUrl: 'wss://redio.siplink.uk:8082', ringFile: 'sounds/bell_ring2.wav', iceServers: [ { url: 'stun:stun.freeswitch.org', }, ], deviceParams: { useMic: 'any', useSpeak: 'any', }, tag: "video-container" }, vertoCallbacks); }; > On 15 May 2018, at 21:22, Michael Jerris wrote: > > if you have it not hitting curl at all (and you have xml_curl debug_on enabled) and you see nothing, it sounds like the connection is failing before it even gets that far. Its hard to tell why with tiny snippets of information cherry picked out like below. Something in verto settings i would suspect. You can try to enable verto debug to get some more info possibly. > > >> On May 15, 2018, at 4:17 PM, Rick Jarvis > wrote: >> >> What am I looking for exactly? I am seeing: >> >> mod_verto.c:1876 BAD READ -1000 >> >> …which sounds relevant. But I’m not seeing anything on my app receiving the request (I’ve got that simply console logging anything that hits the URL, and nothing happens when doing the Verto login…) >> >> >>> On 15 May 2018, at 20:40, Michael Jerris > wrote: >>> >>> it certainly can do curl directory lookups with verto. if you do the api command “xml_curl debug_on” it will provide more details of the requests and responses, it looks like you are not handling the request in your cgi the way we expect. >>> >>>> On May 15, 2018, at 2:44 PM, Rick Jarvis > wrote: >>>> >>>> Thanks José, >>>> >>>> It’s the XML_CURL binding bit that’s relevant to me then, as the server it’s querying is something we've written already. >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> So I’m seeing posts come into my server from general stuff, but nothing when I try and authenticate with it (via Verto). >>>> >>>> On the FS console I’m seeing: >>>> >>>> "jsonrpc": "2.0", >>>> "id": 1, >>>> "error": { >>>> "code": -32000, >>>> "message": "Authentication Required" >>>> } >>>> >>>> So I guess either it’s not working, or maybe FS doesn’t support Curl directories for Verto? >>> >>> _ > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From grcamauer at gmail.com Wed May 16 15:22:10 2018 From: grcamauer at gmail.com (Guillermo Ruiz Camauer) Date: Wed, 16 May 2018 12:22:10 -0300 Subject: [Freeswitch-users] how to make FS to listen for 2 RTP streams on one call ? In-Reply-To: References: <518B4FBC-7BA9-4CFD-B83F-FC827C29759D@jerris.com> Message-ID: Have you looked into mod_oreka for FS? Guillermo On Wed, May 16, 2018 at 10:20 AM, Jurijs Ivolga wrote: > Hi, > > Why you need OrekaTR/freeswitch at all? Rtpproxy should be able to do > recording. > > With kind regards, > > Jurijs > > On Wed, May 16, 2018 at 4:17 PM, Michael Jerris wrote: > >> Its not possible currently to handle multiple media streams for one call. >> >> On May 15, 2018, at 1:36 PM, Evtim Ivanov wrote: >> >> Hello all, >> >> I'm trying to implement this (shown in the picture) scenario, but to use >> FS instead of OrekaTR: >> >> >> There are several small bumps on the road, which I successfully overcame, >> but finally I met a challenge which is bigger, than my skills, so I need >> the community help. The problem is, that RtpProxy can't mix the media, so >> instead of one mixed stream on the forked call, I have 2 separate RTP >> streams. I have no idea how to make FS to listen both of them. Is this >> possible and how? >> Any advice is highly appreciated. >> >> Best! >> Evtim >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -- Guillermo Ruiz Camauer -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at freeswitch.com Wed May 16 16:12:58 2018 From: brian at freeswitch.com (Brian West) Date: Wed, 16 May 2018 11:12:58 -0500 Subject: [Freeswitch-users] how to make FS to listen for 2 RTP streams on one call ? In-Reply-To: References: <518B4FBC-7BA9-4CFD-B83F-FC827C29759D@jerris.com> Message-ID: That absolutely doesn't do what you think it does. /b On Wed, May 16, 2018 at 10:22 AM, Guillermo Ruiz Camauer < grcamauer at gmail.com> wrote: > Have you looked into mod_oreka for FS? > > Guillermo > > On Wed, May 16, 2018 at 10:20 AM, Jurijs Ivolga > wrote: > >> Hi, >> >> Why you need OrekaTR/freeswitch at all? Rtpproxy should be able to do >> recording. >> >> With kind regards, >> >> Jurijs >> >> On Wed, May 16, 2018 at 4:17 PM, Michael Jerris wrote: >> >>> Its not possible currently to handle multiple media streams for one call. >>> >>> On May 15, 2018, at 1:36 PM, Evtim Ivanov >>> wrote: >>> >>> Hello all, >>> >>> I'm trying to implement this (shown in the picture) scenario, but to use >>> FS instead of OrekaTR: >>> >>> >>> There are several small bumps on the road, which I successfully >>> overcame, but finally I met a challenge which is bigger, than my skills, so >>> I need the community help. The problem is, that RtpProxy can't mix the >>> media, so instead of one mixed stream on the forked call, I have 2 separate >>> RTP streams. I have no idea how to make FS to listen both of them. Is this >>> possible and how? >>> Any advice is highly appreciated. >>> >>> Best! >>> Evtim >>> >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > -- > Guillermo Ruiz Camauer > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -- Brian West | Co-founder and Developer Need Commercial support? email sales at freeswitch.com FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 Email: brian at freeswitch.com Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com [image: https://www.facebook.com/signalwireinc?src=email] [image: https://twitter.com/freeswitch] -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivanov.evtim at gmail.com Wed May 16 19:23:07 2018 From: ivanov.evtim at gmail.com (Evtim Ivanov) Date: Wed, 16 May 2018 20:23:07 +0100 Subject: [Freeswitch-users] how to make FS to listen for 2 RTP streams on one call ? In-Reply-To: References: <518B4FBC-7BA9-4CFD-B83F-FC827C29759D@jerris.com> Message-ID: Hi Jurijs, I don't know if it is possible and how to record in Rtpproxy. If I exhaust all FS related options, probably will give it a try, but it would have been nice, if it was possible to do it with the FS, as there is some business logic for those recordings there already. Best, Evtim On 16 May 2018 at 14:20, Jurijs Ivolga wrote: > Hi, > > Why you need OrekaTR/freeswitch at all? Rtpproxy should be able to do > recording. > > With kind regards, > > Jurijs > > On Wed, May 16, 2018 at 4:17 PM, Michael Jerris wrote: > >> Its not possible currently to handle multiple media streams for one call. >> >> On May 15, 2018, at 1:36 PM, Evtim Ivanov wrote: >> >> Hello all, >> >> I'm trying to implement this (shown in the picture) scenario, but to use >> FS instead of OrekaTR: >> >> >> There are several small bumps on the road, which I successfully overcame, >> but finally I met a challenge which is bigger, than my skills, so I need >> the community help. The problem is, that RtpProxy can't mix the media, so >> instead of one mixed stream on the forked call, I have 2 separate RTP >> streams. I have no idea how to make FS to listen both of them. Is this >> possible and how? >> Any advice is highly appreciated. >> >> Best! >> Evtim >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivanov.evtim at gmail.com Wed May 16 19:27:51 2018 From: ivanov.evtim at gmail.com (Evtim Ivanov) Date: Wed, 16 May 2018 20:27:51 +0100 Subject: [Freeswitch-users] how to make FS to listen for 2 RTP streams on one call ? In-Reply-To: <518B4FBC-7BA9-4CFD-B83F-FC827C29759D@jerris.com> References: <518B4FBC-7BA9-4CFD-B83F-FC827C29759D@jerris.com> Message-ID: Thank you Michael! That's what I hoped for - unambiguous answer, was it even negative. Fair enough. Now I know this is dead end. Best, Evtim On 16 May 2018 at 14:17, Michael Jerris wrote: > Its not possible currently to handle multiple media streams for one call. > > On May 15, 2018, at 1:36 PM, Evtim Ivanov wrote: > > Hello all, > > I'm trying to implement this (shown in the picture) scenario, but to use > FS instead of OrekaTR: > > > There are several small bumps on the road, which I successfully overcame, > but finally I met a challenge which is bigger, than my skills, so I need > the community help. The problem is, that RtpProxy can't mix the media, so > instead of one mixed stream on the forked call, I have 2 separate RTP > streams. I have no idea how to make FS to listen both of them. Is this > possible and how? > Any advice is highly appreciated. > > Best! > Evtim > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivanov.evtim at gmail.com Wed May 16 19:30:18 2018 From: ivanov.evtim at gmail.com (Evtim Ivanov) Date: Wed, 16 May 2018 20:30:18 +0100 Subject: [Freeswitch-users] how to make FS to listen for 2 RTP streams on one call ? In-Reply-To: References: Message-ID: Yes for the IP address , no for the port. On 16 May 2018 at 14:12, kaiduan xie via FreeSWITCH-users < freeswitch-users at lists.freeswitch.org> wrote: > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > ---------- Forwarded message ---------- > From: kaiduan xie > To: FreeSWITCH Users Help > Cc: > Bcc: > Date: Wed, 16 May 2018 13:11:35 +0000 (UTC) > Subject: Re: [Freeswitch-users] how to make FS to listen for 2 RTP streams > on one call ? > Does RTP proxy use same IP address/port to send/receive the two RTP > streams? > > /Kaiduan > > On Wednesday, May 16, 2018, 8:37:29 a.m. EDT, Evtim Ivanov < > ivanov.evtim at gmail.com> wrote: > > > Hello all, > > I'm trying to implement this (shown in the picture) scenario, but to use > FS instead of OrekaTR: > > > There are several small bumps on the road, which I successfully overcame, > but finally I met a challenge which is bigger, than my skills, so I need > the community help. The problem is, that RtpProxy can't mix the media, so > instead of one mixed stream on the forked call, I have 2 separate RTP > streams. I have no idea how to make FS to listen both of them. Is this > possible and how? > Any advice is highly appreciated. > > Best! > Evtim > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: siprec-architecture.png Type: image/png Size: 35415 bytes Desc: not available URL: From jurijs.ivolga at gmail.com Wed May 16 19:39:06 2018 From: jurijs.ivolga at gmail.com (Jurijs Ivolga) Date: Wed, 16 May 2018 22:39:06 +0300 Subject: [Freeswitch-users] how to make FS to listen for 2 RTP streams on one call ? In-Reply-To: References: <518B4FBC-7BA9-4CFD-B83F-FC827C29759D@jerris.com> Message-ID: Hi, I don't know your requirements, but I think you do not need both Rtpproxy and Freeswitch. Spend some time on design and it will save you some time later. If you need some functionality what freeswtich has only, drop rtpproxy and use freeswitch only, I don't see a point to have them both. With kind regards, Jurijs On Wed, May 16, 2018 at 10:23 PM, Evtim Ivanov wrote: > Hi Jurijs, > > I don't know if it is possible and how to record in Rtpproxy. If I exhaust > all FS related options, probably will give it a try, but it would have been > nice, if it was possible to do it with the FS, as there is some business > logic for those recordings there already. > > Best, > Evtim > > On 16 May 2018 at 14:20, Jurijs Ivolga wrote: > >> Hi, >> >> Why you need OrekaTR/freeswitch at all? Rtpproxy should be able to do >> recording. >> >> With kind regards, >> >> Jurijs >> >> On Wed, May 16, 2018 at 4:17 PM, Michael Jerris wrote: >> >>> Its not possible currently to handle multiple media streams for one call. >>> >>> On May 15, 2018, at 1:36 PM, Evtim Ivanov >>> wrote: >>> >>> Hello all, >>> >>> I'm trying to implement this (shown in the picture) scenario, but to use >>> FS instead of OrekaTR: >>> >>> >>> There are several small bumps on the road, which I successfully >>> overcame, but finally I met a challenge which is bigger, than my skills, so >>> I need the community help. The problem is, that RtpProxy can't mix the >>> media, so instead of one mixed stream on the forked call, I have 2 separate >>> RTP streams. I have no idea how to make FS to listen both of them. Is this >>> possible and how? >>> Any advice is highly appreciated. >>> >>> Best! >>> Evtim >>> >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anthony.minessale at gmail.com Wed May 16 21:59:05 2018 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Wed, 16 May 2018 16:59:05 -0500 Subject: [Freeswitch-users] how to make FS to listen for 2 RTP streams on one call ? In-Reply-To: References: <518B4FBC-7BA9-4CFD-B83F-FC827C29759D@jerris.com> Message-ID: This doesn't support SIP forking but if you are forking the call from inside FS you can do something like {bridge_early_media=true}sofia/internal/bob1 at gateway.com,sofia/internal/ bob2 at gateway.com If they both have early media at the same time it will mux it, some people use this to play strange music from another server super-imposed over the other ringing. On Wed, May 16, 2018 at 2:39 PM, Jurijs Ivolga wrote: > Hi, > > I don't know your requirements, but I think you do not need both Rtpproxy > and Freeswitch. Spend some time on design and it will save you some time > later. If you need some functionality what freeswtich has only, drop > rtpproxy and use freeswitch only, I don't see a point to have them both. > > With kind regards, > > Jurijs > > On Wed, May 16, 2018 at 10:23 PM, Evtim Ivanov > wrote: > >> Hi Jurijs, >> >> I don't know if it is possible and how to record in Rtpproxy. If I >> exhaust all FS related options, probably will give it a try, but it would >> have been nice, if it was possible to do it with the FS, as there is some >> business logic for those recordings there already. >> >> Best, >> Evtim >> >> On 16 May 2018 at 14:20, Jurijs Ivolga wrote: >> >>> Hi, >>> >>> Why you need OrekaTR/freeswitch at all? Rtpproxy should be able to do >>> recording. >>> >>> With kind regards, >>> >>> Jurijs >>> >>> On Wed, May 16, 2018 at 4:17 PM, Michael Jerris wrote: >>> >>>> Its not possible currently to handle multiple media streams for one >>>> call. >>>> >>>> On May 15, 2018, at 1:36 PM, Evtim Ivanov >>>> wrote: >>>> >>>> Hello all, >>>> >>>> I'm trying to implement this (shown in the picture) scenario, but to >>>> use FS instead of OrekaTR: >>>> >>>> >>>> There are several small bumps on the road, which I successfully >>>> overcame, but finally I met a challenge which is bigger, than my skills, so >>>> I need the community help. The problem is, that RtpProxy can't mix the >>>> media, so instead of one mixed stream on the forked call, I have 2 separate >>>> RTP streams. I have no idea how to make FS to listen both of them. Is this >>>> possible and how? >>>> Any advice is highly appreciated. >>>> >>>> Best! >>>> Evtim >>>> >>>> >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>> switch-users >>>> http://www.freeswitch.org >>>> >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -- Anthony Minessale II Founder, FreeSWITCH. http://freeswitch.com https://youtu.be/l_hOxzCt6X4 https://www.youtube.com/watch?v=oAxXgyx5jUw https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA -------------- next part -------------- An HTML attachment was scrubbed... URL: From bilaln018 at gmail.com Thu May 17 10:14:56 2018 From: bilaln018 at gmail.com (Bilal Abbasi) Date: Thu, 17 May 2018 15:14:56 +0500 Subject: [Freeswitch-users] [VAD events][conference call] Message-ID: Hi Users, I want to get the VAD events on a conference call, i want to join a conference call silently and just wanted to get vad events. What i did is to land the conference call in a context and run echo application.(as vad events appears on b leg) But that caused noise in conference, so i droped the rtp packets using iptables rules. Problem: Everything works great, but now i want to traverse in conference(like pin etc) and i send dtmf 2833 which also get droped by iptables. Question: is there a way i can get vad events and be as a silent listener of conference as well. P.S: previously i used originate conference and landed on park(), but that do not generate vad events. So i switched to echo() Regards Abbasi -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick at magicmail.mooo.com Thu May 17 16:14:03 2018 From: rick at magicmail.mooo.com (Rick Jarvis) Date: Thu, 17 May 2018 17:14:03 +0100 Subject: [Freeswitch-users] xml_curl for directory with verto Message-ID: <81BD7101-D83C-40CD-93CC-88186AA0C594@magicmail.mooo.com> Ok I am now seeing post requests (small steps!), but cannot get an authentication success. Maybe something I’m misunderstanding (most likely!). This is the XML I’m sending back to FS:
And this is what I’m getting on FS console (with xml_curl debug_on): 2018-05-17 17:09:34.902788 [DEBUG] mod_verto.c:1876 BAD READ -1000 2018-05-17 17:09:34.902788 [DEBUG] mod_verto.c:2019 x.x.x.x:49935 Ending client thread. 2018-05-17 17:09:34.902788 [DEBUG] mod_verto.c:2027 x.x.x.x:49935 Thread ended 2018-05-17 17:10:34.402793 [DEBUG] mod_verto.c:4139 x.x.x.x:50348 Client Connect from x.x.x.x:50348 accepted 2018-05-17 17:10:34.402793 [DEBUG] mod_verto.c:1992 x.x.x.x:50348 Starting client thread. 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:1384 READ x.x.x.x:50348 [{ "jsonrpc": "2.0", "method": "login", "params": { "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" }, "id": 2 }] 2018-05-17 17:10:34.482797 [DEBUG] mod_verto.c:1281 x.x.x.x:50348 re-connecting session c674980b-27ca-4c3e-37d1-3421736b990f 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:604 WRITE x.x.x.x:50348 [{ "jsonrpc": "2.0", "id": 2, "error": { "code": -32000, "message": "Authentication Required" } }] 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:1384 READ x.x.x.x:50348 [{ "jsonrpc": "2.0", "method": "login", "params": { "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" }, "id": 1 }] 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:604 WRITE x.x.x.x:50348 [{ "jsonrpc": "2.0", "id": 1, "error": { "code": -32000, "message": "Authentication Required" } }] 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:1384 READ x.x.x.x:50348 [{ "jsonrpc": "2.0", "method": "login", "params": { "login": "203", "passwd": "password", "loginParams": { }, "userVariables": { }, "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" }, "id": 3 }] 2018-05-17 17:10:34.542787 [ALERT] mod_verto.c:604 WRITE x.x.x.x:50348 [{ "jsonrpc": "2.0", "id": 3, "error": { "code": -32001, "message": "Login Incorrect" } }] -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Thu May 17 17:13:23 2018 From: mike at jerris.com (Michael Jerris) Date: Thu, 17 May 2018 13:13:23 -0400 Subject: [Freeswitch-users] xml_curl for directory with verto In-Reply-To: <81BD7101-D83C-40CD-93CC-88186AA0C594@magicmail.mooo.com> References: <81BD7101-D83C-40CD-93CC-88186AA0C594@magicmail.mooo.com> Message-ID: what params are you getting in the request? > On May 17, 2018, at 12:14 PM, Rick Jarvis wrote: > > Ok I am now seeing post requests (small steps!), but cannot get an authentication success. Maybe something I’m misunderstanding (most likely!). > > This is the XML I’m sending back to FS: > > >
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
>
> > And this is what I’m getting on FS console (with xml_curl debug_on): > > 2018-05-17 17:09:34.902788 [DEBUG] mod_verto.c:1876 BAD READ -1000 > 2018-05-17 17:09:34.902788 [DEBUG] mod_verto.c:2019 x.x.x.x:49935 Ending client thread. > 2018-05-17 17:09:34.902788 [DEBUG] mod_verto.c:2027 x.x.x.x:49935 Thread ended > 2018-05-17 17:10:34.402793 [DEBUG] mod_verto.c:4139 x.x.x.x:50348 Client Connect from x.x.x.x:50348 accepted > 2018-05-17 17:10:34.402793 [DEBUG] mod_verto.c:1992 x.x.x.x:50348 Starting client thread. > 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:1384 READ x.x.x.x:50348 [{ > "jsonrpc": "2.0", > "method": "login", > "params": { > "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" > }, > "id": 2 > }] > 2018-05-17 17:10:34.482797 [DEBUG] mod_verto.c:1281 x.x.x.x:50348 re-connecting session c674980b-27ca-4c3e-37d1-3421736b990f > 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:604 WRITE x.x.x.x:50348 [{ > "jsonrpc": "2.0", > "id": 2, > "error": { > "code": -32000, > "message": "Authentication Required" > } > }] > 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:1384 READ x.x.x.x:50348 [{ > "jsonrpc": "2.0", > "method": "login", > "params": { > "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" > }, > "id": 1 > }] > 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:604 WRITE x.x.x.x:50348 [{ > "jsonrpc": "2.0", > "id": 1, > "error": { > "code": -32000, > "message": "Authentication Required" > } > }] > 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:1384 READ x.x.x.x:50348 [{ > "jsonrpc": "2.0", > "method": "login", > "params": { > "login": "203", > "passwd": "password", > "loginParams": { > }, > "userVariables": { > }, > "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" > }, > "id": 3 > }] > 2018-05-17 17:10:34.542787 [ALERT] mod_verto.c:604 WRITE x.x.x.x:50348 [{ > "jsonrpc": "2.0", > "id": 3, > "error": { > "code": -32001, > "message": "Login Incorrect" > } > }] > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick at magicmail.mooo.com Thu May 17 18:56:34 2018 From: rick at magicmail.mooo.com (Rick Jarvis) Date: Thu, 17 May 2018 19:56:34 +0100 Subject: [Freeswitch-users] xml_curl for directory with verto In-Reply-To: References: <81BD7101-D83C-40CD-93CC-88186AA0C594@magicmail.mooo.com> Message-ID: <08237F06-009C-410D-8EA5-041E6333D019@magicmail.mooo.com> { hostname: 'verto', section: 'directory', tag_name: 'domain', key_name: 'name', key_value: ‘x.x.x.x', 'Event-Name': 'REQUEST_PARAMS', 'Core-UUID': '9a5477aa-ea0f-433f-9c27-007a99de8529', 'FreeSWITCH-Hostname': 'verto', 'FreeSWITCH-Switchname': 'verto', 'FreeSWITCH-IPv4': ‘x.x.x.x', 'FreeSWITCH-IPv6': '::1', 'Event-Date-Local': '2018-05-17 19:53:23', 'Event-Date-GMT': 'Thu, 17 May 2018 18:53:23 GMT', 'Event-Date-Timestamp': '1526583203902782', 'Event-Calling-File': 'mod_verto.c', 'Event-Calling-Function': 'check_auth', 'Event-Calling-Line-Number': '947', 'Event-Sequence': '1743', action: 'jsonrpc-authenticate', key: 'id', user: '203', domain: ‘x.x.x.x' } > On 17 May 2018, at 18:13, Michael Jerris wrote: > > what params are you getting in the request? > >> On May 17, 2018, at 12:14 PM, Rick Jarvis > wrote: >> >> Ok I am now seeing post requests (small steps!), but cannot get an authentication success. Maybe something I’m misunderstanding (most likely!). >> >> This is the XML I’m sending back to FS: >> >> >>
>> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>
>>
>> >> And this is what I’m getting on FS console (with xml_curl debug_on): >> >> 2018-05-17 17:09:34.902788 [DEBUG] mod_verto.c:1876 BAD READ -1000 >> 2018-05-17 17:09:34.902788 [DEBUG] mod_verto.c:2019 x.x.x.x:49935 Ending client thread. >> 2018-05-17 17:09:34.902788 [DEBUG] mod_verto.c:2027 x.x.x.x:49935 Thread ended >> 2018-05-17 17:10:34.402793 [DEBUG] mod_verto.c:4139 x.x.x.x:50348 Client Connect from x.x.x.x:50348 accepted >> 2018-05-17 17:10:34.402793 [DEBUG] mod_verto.c:1992 x.x.x.x:50348 Starting client thread. >> 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:1384 READ x.x.x.x:50348 [{ >> "jsonrpc": "2.0", >> "method": "login", >> "params": { >> "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" >> }, >> "id": 2 >> }] >> 2018-05-17 17:10:34.482797 [DEBUG] mod_verto.c:1281 x.x.x.x:50348 re-connecting session c674980b-27ca-4c3e-37d1-3421736b990f >> 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:604 WRITE x.x.x.x:50348 [{ >> "jsonrpc": "2.0", >> "id": 2, >> "error": { >> "code": -32000, >> "message": "Authentication Required" >> } >> }] >> 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:1384 READ x.x.x.x:50348 [{ >> "jsonrpc": "2.0", >> "method": "login", >> "params": { >> "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" >> }, >> "id": 1 >> }] >> 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:604 WRITE x.x.x.x:50348 [{ >> "jsonrpc": "2.0", >> "id": 1, >> "error": { >> "code": -32000, >> "message": "Authentication Required" >> } >> }] >> 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:1384 READ x.x.x.x:50348 [{ >> "jsonrpc": "2.0", >> "method": "login", >> "params": { >> "login": "203", >> "passwd": "password", >> "loginParams": { >> }, >> "userVariables": { >> }, >> "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" >> }, >> "id": 3 >> }] >> 2018-05-17 17:10:34.542787 [ALERT] mod_verto.c:604 WRITE x.x.x.x:50348 [{ >> "jsonrpc": "2.0", >> "id": 3, >> "error": { >> "code": -32001, >> "message": "Login Incorrect" >> } >> }] >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Thu May 17 18:59:33 2018 From: mike at jerris.com (Michael Jerris) Date: Thu, 17 May 2018 14:59:33 -0400 Subject: [Freeswitch-users] xml_curl for directory with verto In-Reply-To: <08237F06-009C-410D-8EA5-041E6333D019@magicmail.mooo.com> References: <81BD7101-D83C-40CD-93CC-88186AA0C594@magicmail.mooo.com> <08237F06-009C-410D-8EA5-041E6333D019@magicmail.mooo.com> Message-ID: The problem is that your domain in your return is incorrect. It should say as that is the domain of the user being looked up. Its not authing because you are not returning a user that matches the lookup. > On May 17, 2018, at 2:56 PM, Rick Jarvis wrote: > > { hostname: 'verto', > section: 'directory', > tag_name: 'domain', > key_name: 'name', > key_value: ‘x.x.x.x', > 'Event-Name': 'REQUEST_PARAMS', > 'Core-UUID': '9a5477aa-ea0f-433f-9c27-007a99de8529', > 'FreeSWITCH-Hostname': 'verto', > 'FreeSWITCH-Switchname': 'verto', > 'FreeSWITCH-IPv4': ‘x.x.x.x', > 'FreeSWITCH-IPv6': '::1', > 'Event-Date-Local': '2018-05-17 19:53:23', > 'Event-Date-GMT': 'Thu, 17 May 2018 18:53:23 GMT', > 'Event-Date-Timestamp': '1526583203902782', > 'Event-Calling-File': 'mod_verto.c', > 'Event-Calling-Function': 'check_auth', > 'Event-Calling-Line-Number': '947', > 'Event-Sequence': '1743', > action: 'jsonrpc-authenticate', > key: 'id', > user: '203', > domain: ‘x.x.x.x' } > >> On 17 May 2018, at 18:13, Michael Jerris > wrote: >> >> what params are you getting in the request? >> >>> On May 17, 2018, at 12:14 PM, Rick Jarvis > wrote: >>> >>> Ok I am now seeing post requests (small steps!), but cannot get an authentication success. Maybe something I’m misunderstanding (most likely!). >>> >>> This is the XML I’m sending back to FS: >>> >>> >>>
>>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>>
>>>
>>> >>> And this is what I’m getting on FS console (with xml_curl debug_on): >>> >>> 2018-05-17 17:09:34.902788 [DEBUG] mod_verto.c:1876 BAD READ -1000 >>> 2018-05-17 17:09:34.902788 [DEBUG] mod_verto.c:2019 x.x.x.x:49935 Ending client thread. >>> 2018-05-17 17:09:34.902788 [DEBUG] mod_verto.c:2027 x.x.x.x:49935 Thread ended >>> 2018-05-17 17:10:34.402793 [DEBUG] mod_verto.c:4139 x.x.x.x:50348 Client Connect from x.x.x.x:50348 accepted >>> 2018-05-17 17:10:34.402793 [DEBUG] mod_verto.c:1992 x.x.x.x:50348 Starting client thread. >>> 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:1384 READ x.x.x.x:50348 [{ >>> "jsonrpc": "2.0", >>> "method": "login", >>> "params": { >>> "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" >>> }, >>> "id": 2 >>> }] >>> 2018-05-17 17:10:34.482797 [DEBUG] mod_verto.c:1281 x.x.x.x:50348 re-connecting session c674980b-27ca-4c3e-37d1-3421736b990f >>> 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:604 WRITE x.x.x.x:50348 [{ >>> "jsonrpc": "2.0", >>> "id": 2, >>> "error": { >>> "code": -32000, >>> "message": "Authentication Required" >>> } >>> }] >>> 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:1384 READ x.x.x.x:50348 [{ >>> "jsonrpc": "2.0", >>> "method": "login", >>> "params": { >>> "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" >>> }, >>> "id": 1 >>> }] >>> 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:604 WRITE x.x.x.x:50348 [{ >>> "jsonrpc": "2.0", >>> "id": 1, >>> "error": { >>> "code": -32000, >>> "message": "Authentication Required" >>> } >>> }] >>> 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:1384 READ x.x.x.x:50348 [{ >>> "jsonrpc": "2.0", >>> "method": "login", >>> "params": { >>> "login": "203", >>> "passwd": "password", >>> "loginParams": { >>> }, >>> "userVariables": { >>> }, >>> "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" >>> }, >>> "id": 3 >>> }] >>> 2018-05-17 17:10:34.542787 [ALERT] mod_verto.c:604 WRITE x.x.x.x:50348 [{ >>> "jsonrpc": "2.0", >>> "id": 3, >>> "error": { >>> "code": -32001, >>> "message": "Login Incorrect" >>> } >>> }] -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick at magicmail.mooo.com Thu May 17 19:10:18 2018 From: rick at magicmail.mooo.com (Rick Jarvis) Date: Thu, 17 May 2018 20:10:18 +0100 Subject: [Freeswitch-users] xml_curl for directory with verto In-Reply-To: References: <81BD7101-D83C-40CD-93CC-88186AA0C594@magicmail.mooo.com> <08237F06-009C-410D-8EA5-041E6333D019@magicmail.mooo.com> Message-ID: Ah right ok, I had thought that the ```name=“all” alias=“true”``` in the sip profile would sort that. So logging in, although still seeing an error just before it grants access - what would cause this, something in the wrong order maybe? Error: {code: -32000, message: "Authentication Required"} code : -32000 message : "Authentication Required" __proto__ : Object > On 17 May 2018, at 19:59, Michael Jerris wrote: > > The problem is that your domain in your return is incorrect. It should say as that is the domain of the user being looked up. Its not authing because you are not returning a user that matches the lookup. > > >> On May 17, 2018, at 2:56 PM, Rick Jarvis > wrote: >> >> { hostname: 'verto', >> section: 'directory', >> tag_name: 'domain', >> key_name: 'name', >> key_value: ‘x.x.x.x', >> 'Event-Name': 'REQUEST_PARAMS', >> 'Core-UUID': '9a5477aa-ea0f-433f-9c27-007a99de8529', >> 'FreeSWITCH-Hostname': 'verto', >> 'FreeSWITCH-Switchname': 'verto', >> 'FreeSWITCH-IPv4': ‘x.x.x.x', >> 'FreeSWITCH-IPv6': '::1', >> 'Event-Date-Local': '2018-05-17 19:53:23', >> 'Event-Date-GMT': 'Thu, 17 May 2018 18:53:23 GMT', >> 'Event-Date-Timestamp': '1526583203902782', >> 'Event-Calling-File': 'mod_verto.c', >> 'Event-Calling-Function': 'check_auth', >> 'Event-Calling-Line-Number': '947', >> 'Event-Sequence': '1743', >> action: 'jsonrpc-authenticate', >> key: 'id', >> user: '203', >> domain: ‘x.x.x.x' } >> >>> On 17 May 2018, at 18:13, Michael Jerris > wrote: >>> >>> what params are you getting in the request? >>> >>>> On May 17, 2018, at 12:14 PM, Rick Jarvis > wrote: >>>> >>>> Ok I am now seeing post requests (small steps!), but cannot get an authentication success. Maybe something I’m misunderstanding (most likely!). >>>> >>>> This is the XML I’m sending back to FS: >>>> >>>> >>>>
>>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>
>>>>
>>>> >>>> And this is what I’m getting on FS console (with xml_curl debug_on): >>>> >>>> 2018-05-17 17:09:34.902788 [DEBUG] mod_verto.c:1876 BAD READ -1000 >>>> 2018-05-17 17:09:34.902788 [DEBUG] mod_verto.c:2019 x.x.x.x:49935 Ending client thread. >>>> 2018-05-17 17:09:34.902788 [DEBUG] mod_verto.c:2027 x.x.x.x:49935 Thread ended >>>> 2018-05-17 17:10:34.402793 [DEBUG] mod_verto.c:4139 x.x.x.x:50348 Client Connect from x.x.x.x:50348 accepted >>>> 2018-05-17 17:10:34.402793 [DEBUG] mod_verto.c:1992 x.x.x.x:50348 Starting client thread. >>>> 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:1384 READ x.x.x.x:50348 [{ >>>> "jsonrpc": "2.0", >>>> "method": "login", >>>> "params": { >>>> "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" >>>> }, >>>> "id": 2 >>>> }] >>>> 2018-05-17 17:10:34.482797 [DEBUG] mod_verto.c:1281 x.x.x.x:50348 re-connecting session c674980b-27ca-4c3e-37d1-3421736b990f >>>> 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:604 WRITE x.x.x.x:50348 [{ >>>> "jsonrpc": "2.0", >>>> "id": 2, >>>> "error": { >>>> "code": -32000, >>>> "message": "Authentication Required" >>>> } >>>> }] >>>> 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:1384 READ x.x.x.x:50348 [{ >>>> "jsonrpc": "2.0", >>>> "method": "login", >>>> "params": { >>>> "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" >>>> }, >>>> "id": 1 >>>> }] >>>> 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:604 WRITE x.x.x.x:50348 [{ >>>> "jsonrpc": "2.0", >>>> "id": 1, >>>> "error": { >>>> "code": -32000, >>>> "message": "Authentication Required" >>>> } >>>> }] >>>> 2018-05-17 17:10:34.482797 [ALERT] mod_verto.c:1384 READ x.x.x.x:50348 [{ >>>> "jsonrpc": "2.0", >>>> "method": "login", >>>> "params": { >>>> "login": "203", >>>> "passwd": "password", >>>> "loginParams": { >>>> }, >>>> "userVariables": { >>>> }, >>>> "sessid": "c674980b-27ca-4c3e-37d1-3421736b990f" >>>> }, >>>> "id": 3 >>>> }] >>>> 2018-05-17 17:10:34.542787 [ALERT] mod_verto.c:604 WRITE x.x.x.x:50348 [{ >>>> "jsonrpc": "2.0", >>>> "id": 3, >>>> "error": { >>>> "code": -32001, >>>> "message": "Login Incorrect" >>>> } >>>> }] > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Thu May 17 19:44:20 2018 From: mike at jerris.com (Michael Jerris) Date: Thu, 17 May 2018 15:44:20 -0400 Subject: [Freeswitch-users] xml_curl for directory with verto In-Reply-To: References: <81BD7101-D83C-40CD-93CC-88186AA0C594@magicmail.mooo.com> <08237F06-009C-410D-8EA5-041E6333D019@magicmail.mooo.com> Message-ID: <2D0CFEAA-8B38-4AC4-AB77-C1525326E934@jerris.com> Thats the auth challenge? > On May 17, 2018, at 3:10 PM, Rick Jarvis wrote: > > Ah right ok, I had thought that the ```name=“all” alias=“true”``` in the sip profile would sort that. So logging in, although still seeing an error just before it grants access - what would cause this, something in the wrong order maybe? > > Error: > {code: -32000, message: "Authentication Required"} > code > : > -32000 > message > : > "Authentication Required" > __proto__ > : > Object > >> On 17 May 2018, at 19:59, Michael Jerris > wrote: >> >> The problem is that your domain in your return is incorrect. It should say as that is the domain of the user being looked up. Its not authing because you are not returning a user that matches the lookup. >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick at magicmail.mooo.com Thu May 17 20:17:49 2018 From: rick at magicmail.mooo.com (Rick Jarvis) Date: Thu, 17 May 2018 21:17:49 +0100 Subject: [Freeswitch-users] xml_curl for directory with verto In-Reply-To: <2D0CFEAA-8B38-4AC4-AB77-C1525326E934@jerris.com> References: <81BD7101-D83C-40CD-93CC-88186AA0C594@magicmail.mooo.com> <08237F06-009C-410D-8EA5-041E6333D019@magicmail.mooo.com> <2D0CFEAA-8B38-4AC4-AB77-C1525326E934@jerris.com> Message-ID: <558E71E8-7BA4-4D07-B031-FCAA8E53C63A@magicmail.mooo.com> Yes of course, makes sense! Now reading the domains via xml_curl too - works nicely. I notice it loads the domains this way when it starts up. Does it periodically reload this info? > On 17 May 2018, at 20:44, Michael Jerris wrote: > > Thats the auth challenge? > > >> On May 17, 2018, at 3:10 PM, Rick Jarvis > wrote: >> >> Ah right ok, I had thought that the ```name=“all” alias=“true”``` in the sip profile would sort that. So logging in, although still seeing an error just before it grants access - what would cause this, something in the wrong order maybe? >> >> Error: >> {code: -32000, message: "Authentication Required"} >> code >> : >> -32000 >> message >> : >> "Authentication Required" >> __proto__ >> : >> Object >> >>> On 17 May 2018, at 19:59, Michael Jerris > wrote: >>> >>> The problem is that your domain in your return is incorrect. It should say as that is the domain of the user being looked up. Its not authing because you are not returning a user that matches the lookup. >>> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Thu May 17 20:26:23 2018 From: mike at jerris.com (Michael Jerris) Date: Thu, 17 May 2018 16:26:23 -0400 Subject: [Freeswitch-users] xml_curl for directory with verto In-Reply-To: <558E71E8-7BA4-4D07-B031-FCAA8E53C63A@magicmail.mooo.com> References: <81BD7101-D83C-40CD-93CC-88186AA0C594@magicmail.mooo.com> <08237F06-009C-410D-8EA5-041E6333D019@magicmail.mooo.com> <2D0CFEAA-8B38-4AC4-AB77-C1525326E934@jerris.com> <558E71E8-7BA4-4D07-B031-FCAA8E53C63A@magicmail.mooo.com> Message-ID: in raw xml config it loads it once when you start, and again anytime you call the reloadxml command, or something indirectly does. After that it traverses the in memory xml tree for each request. When using dynamic config of any type, it looks it up for each use, as you see in verto. As for config section, those are typically read at module load, and as needed based on individual module commands such as the ones that manipulate mod_sofia profiles. > On May 17, 2018, at 4:17 PM, Rick Jarvis wrote: > > Yes of course, makes sense! > > Now reading the domains via xml_curl too - works nicely. I notice it loads the domains this way when it starts up. Does it periodically reload this info? > >> On 17 May 2018, at 20:44, Michael Jerris > wrote: >> >> Thats the auth challenge? >> >> >>> On May 17, 2018, at 3:10 PM, Rick Jarvis > wrote: >>> >>> Ah right ok, I had thought that the ```name=“all” alias=“true”``` in the sip profile would sort that. So logging in, although still seeing an error just before it grants access - what would cause this, something in the wrong order maybe? >>> >>> Error: >>> {code: -32000, message: "Authentication Required"} >>> code >>> : >>> -32000 >>> message >>> : >>> "Authentication Required" >>> __proto__ >>> : >>> Object >>> >>>> On 17 May 2018, at 19:59, Michael Jerris > wrote: >>>> >>>> The problem is that your domain in your return is incorrect. It should say as that is the domain of the user being looked up. Its not authing because you are not returning a user that matches the lookup. >>>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at cassidywebservices.co.uk Thu May 17 20:48:08 2018 From: andrew at cassidywebservices.co.uk (Andrew Cassidy) Date: Thu, 17 May 2018 21:48:08 +0100 Subject: [Freeswitch-users] FreeSWITCH offering SRTP on Re-INVITE Message-ID: Good afternoon All, I have experienced the following issue with Zoiper specifically (I have a support ticket open with them currently) and was wondering if it's something that could/should be fixed FreeSWITCH side. If rtp_secure_media is set to optional, and SRTP is disabled on Zoiper, when FreeSWITCH sends the Re-INVITE, it sends crypto lines. Zoiper then replies with a 514 Unsupported Media Type and the timer refresh fails, causing Zoiper to hang up the call. My current feeling is that as Zoiper ignored the crypto on the initial INVITE it should be them that then handles the Re-INVITE consistently by also ignoring the crypto lines but I'm not familiar enough with the RFCs to make a judgement. The workaround is to either enable SRTP in Zoiper or don't set rtp_secure_media to optional when Zoiper is in use. Kind regards, -- *Andrew Cassidy BSc (Hons) MBCS* Managing Director 0330 44 55 960 <+443304455960> andrew at cassidyweb.co.uk www.cassidyweb.co.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivanov.evtim at gmail.com Thu May 17 20:55:08 2018 From: ivanov.evtim at gmail.com (Evtim Ivanov) Date: Thu, 17 May 2018 21:55:08 +0100 Subject: [Freeswitch-users] how to make FS to listen for 2 RTP streams on one call ? In-Reply-To: References: <518B4FBC-7BA9-4CFD-B83F-FC827C29759D@jerris.com> Message-ID: Thank you Anthony! Interesting to know. Best, Evtim On 16 May 2018 at 22:59, Anthony Minessale wrote: > This doesn't support SIP forking but if you are forking the call from > inside FS you can do something like > > > {bridge_early_media=true}sofia/internal/bob1 at gateway.com,sofia/internal/ > bob2 at gateway.com > > If they both have early media at the same time it will mux it, some people > use this to play strange music from another server super-imposed over the > other ringing. > > > On Wed, May 16, 2018 at 2:39 PM, Jurijs Ivolga > wrote: > >> Hi, >> >> I don't know your requirements, but I think you do not need both Rtpproxy >> and Freeswitch. Spend some time on design and it will save you some time >> later. If you need some functionality what freeswtich has only, drop >> rtpproxy and use freeswitch only, I don't see a point to have them both. >> >> With kind regards, >> >> Jurijs >> >> On Wed, May 16, 2018 at 10:23 PM, Evtim Ivanov >> wrote: >> >>> Hi Jurijs, >>> >>> I don't know if it is possible and how to record in Rtpproxy. If I >>> exhaust all FS related options, probably will give it a try, but it would >>> have been nice, if it was possible to do it with the FS, as there is some >>> business logic for those recordings there already. >>> >>> Best, >>> Evtim >>> >>> On 16 May 2018 at 14:20, Jurijs Ivolga wrote: >>> >>>> Hi, >>>> >>>> Why you need OrekaTR/freeswitch at all? Rtpproxy should be able to do >>>> recording. >>>> >>>> With kind regards, >>>> >>>> Jurijs >>>> >>>> On Wed, May 16, 2018 at 4:17 PM, Michael Jerris >>>> wrote: >>>> >>>>> Its not possible currently to handle multiple media streams for one >>>>> call. >>>>> >>>>> On May 15, 2018, at 1:36 PM, Evtim Ivanov >>>>> wrote: >>>>> >>>>> Hello all, >>>>> >>>>> I'm trying to implement this (shown in the picture) scenario, but to >>>>> use FS instead of OrekaTR: >>>>> >>>>> >>>>> There are several small bumps on the road, which I successfully >>>>> overcame, but finally I met a challenge which is bigger, than my skills, so >>>>> I need the community help. The problem is, that RtpProxy can't mix the >>>>> media, so instead of one mixed stream on the forked call, I have 2 separate >>>>> RTP streams. I have no idea how to make FS to listen both of them. Is this >>>>> possible and how? >>>>> Any advice is highly appreciated. >>>>> >>>>> Best! >>>>> Evtim >>>>> >>>>> >>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>> switch-users >>>>> http://www.freeswitch.org >>>>> >>>> >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>> switch-users >>>> http://www.freeswitch.org >>>> >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > -- > Anthony Minessale II > Founder, FreeSWITCH. > http://freeswitch.com > > > https://youtu.be/l_hOxzCt6X4 > https://www.youtube.com/watch?v=oAxXgyx5jUw > https://www.youtube.com/watch?v=9XXgW34t40s > https://www.youtube.com/watch?v=NLaDpGQuZDA > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick at magicmail.mooo.com Thu May 17 20:58:10 2018 From: rick at magicmail.mooo.com (Rick Jarvis) Date: Thu, 17 May 2018 21:58:10 +0100 Subject: [Freeswitch-users] xml_curl for directory with verto In-Reply-To: References: <81BD7101-D83C-40CD-93CC-88186AA0C594@magicmail.mooo.com> <08237F06-009C-410D-8EA5-041E6333D019@magicmail.mooo.com> <2D0CFEAA-8B38-4AC4-AB77-C1525326E934@jerris.com> <558E71E8-7BA4-4D07-B031-FCAA8E53C63A@magicmail.mooo.com> Message-ID: Fab, thanks Mike. Interestingly when I first coded the server response to getting domains (ie responding to domain_exists from cli on FS) it didn’t work - turned out it was because I was nesting the nodes under a parent (as they are in the sip profiles), but I had to remove in the XML to get domain_exists to return the correct result. I’m sure there must be a hierarchical reason for this that I can’t get my head around right now! > On 17 May 2018, at 21:26, Michael Jerris wrote: > > in raw xml config it loads it once when you start, and again anytime you call the reloadxml command, or something indirectly does. After that it traverses the in memory xml tree for each request. When using dynamic config of any type, it looks it up for each use, as you see in verto. As for config section, those are typically read at module load, and as needed based on individual module commands such as the ones that manipulate mod_sofia profiles. > > >> On May 17, 2018, at 4:17 PM, Rick Jarvis > wrote: >> >> Yes of course, makes sense! >> >> Now reading the domains via xml_curl too - works nicely. I notice it loads the domains this way when it starts up. Does it periodically reload this info? >> >>> On 17 May 2018, at 20:44, Michael Jerris > wrote: >>> >>> Thats the auth challenge? >>> >>> >>>> On May 17, 2018, at 3:10 PM, Rick Jarvis > wrote: >>>> >>>> Ah right ok, I had thought that the ```name=“all” alias=“true”``` in the sip profile would sort that. So logging in, although still seeing an error just before it grants access - what would cause this, something in the wrong order maybe? >>>> >>>> Error: >>>> {code: -32000, message: "Authentication Required"} >>>> code >>>> : >>>> -32000 >>>> message >>>> : >>>> "Authentication Required" >>>> __proto__ >>>> : >>>> Object >>>> >>>>> On 17 May 2018, at 19:59, Michael Jerris > wrote: >>>>> >>>>> The problem is that your domain in your return is incorrect. It should say as that is the domain of the user being looked up. Its not authing because you are not returning a user that matches the lookup. >>>>> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From bilaln018 at gmail.com Thu May 17 21:10:17 2018 From: bilaln018 at gmail.com (Bilal Abbasi) Date: Fri, 18 May 2018 02:10:17 +0500 Subject: [Freeswitch-users] [VAD events][conference call] In-Reply-To: References: Message-ID: Anybody to help me with this please. Br Abbasi On Thu, 17 May 2018 at 3:14 PM, Bilal Abbasi wrote: > Hi Users, > I want to get the VAD events on a conference call, i want to join a > conference call silently and just wanted to get vad events. > What i did is to land the conference call in a context and run echo > application.(as vad events appears on b leg) > But that caused noise in conference, so i droped the rtp packets using > iptables rules. > > Problem: Everything works great, but now i want to traverse in > conference(like pin etc) and i send dtmf 2833 which also get droped by > iptables. > > Question: is there a way i can get vad events and be as a silent listener > of conference as well. > > P.S: previously i used originate conference and landed on park(), but that > do not generate vad events. So i switched to echo() > > Regards > Abbasi > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Thu May 17 21:34:34 2018 From: mike at jerris.com (Michael Jerris) Date: Thu, 17 May 2018 17:34:34 -0400 Subject: [Freeswitch-users] FreeSWITCH offering SRTP on Re-INVITE In-Reply-To: References: Message-ID: <3BBDC4AE-0119-4473-8CB4-463A0E7E7C33@jerris.com> I’d need to see a full sip trace of the entire thing to answer this. > On May 17, 2018, at 4:48 PM, Andrew Cassidy wrote: > > Good afternoon All, > > I have experienced the following issue with Zoiper specifically (I have a support ticket open with them currently) and was wondering if it's something that could/should be fixed FreeSWITCH side. > > If rtp_secure_media is set to optional, and SRTP is disabled on Zoiper, when FreeSWITCH sends the Re-INVITE, it sends crypto lines. Zoiper then replies with a 514 Unsupported Media Type and the timer refresh fails, causing Zoiper to hang up the call. > > My current feeling is that as Zoiper ignored the crypto on the initial INVITE it should be them that then handles the Re-INVITE consistently by also ignoring the crypto lines but I'm not familiar enough with the RFCs to make a judgement. > > The workaround is to either enable SRTP in Zoiper or don't set rtp_secure_media to optional when Zoiper is in use. > > Kind regards, > From garrett.allen at teotech.com Thu May 17 22:27:25 2018 From: garrett.allen at teotech.com (Garrett Allen) Date: Thu, 17 May 2018 22:27:25 +0000 Subject: [Freeswitch-users] [VAD events][conference call] In-Reply-To: References: Message-ID: I would start by evaluating your design, you can get start-talking and stop-talking events from the event socket for the conference, you shouldn’t need to call in for that. https://freeswitch.org/confluence/display/FREESWITCH/mod_conference#mod_conference-EventSocketUse From: FreeSWITCH-users [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Bilal Abbasi Sent: Thursday, May 17, 2018 14:10 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] [VAD events][conference call] Anybody to help me with this please. Br Abbasi On Thu, 17 May 2018 at 3:14 PM, Bilal Abbasi > wrote: Hi Users, I want to get the VAD events on a conference call, i want to join a conference call silently and just wanted to get vad events. What i did is to land the conference call in a context and run echo application.(as vad events appears on b leg) But that caused noise in conference, so i droped the rtp packets using iptables rules. Problem: Everything works great, but now i want to traverse in conference(like pin etc) and i send dtmf 2833 which also get droped by iptables. Question: is there a way i can get vad events and be as a silent listener of conference as well. P.S: previously i used originate conference and landed on park(), but that do not generate vad events. So i switched to echo() Regards Abbasi -------------- next part -------------- An HTML attachment was scrubbed... URL: From s.safarov at gmail.com Fri May 18 04:17:04 2018 From: s.safarov at gmail.com (Sergey Safarov) Date: Fri, 18 May 2018 07:17:04 +0300 Subject: [Freeswitch-users] FreeSWITCH offering SRTP on Re-INVITE In-Reply-To: <3BBDC4AE-0119-4473-8CB4-463A0E7E7C33@jerris.com> References: <3BBDC4AE-0119-4473-8CB4-463A0E7E7C33@jerris.com> Message-ID: You can disable SRTP in dialplan using SIP agent info. If agen is Zoiper, then need change rtp_secure_media value пт, 18 мая 2018 г., 1:21 Michael Jerris : > I’d need to see a full sip trace of the entire thing to answer this. > > > On May 17, 2018, at 4:48 PM, Andrew Cassidy < > andrew at cassidywebservices.co.uk> wrote: > > > > Good afternoon All, > > > > I have experienced the following issue with Zoiper specifically (I have > a support ticket open with them currently) and was wondering if it's > something that could/should be fixed FreeSWITCH side. > > > > If rtp_secure_media is set to optional, and SRTP is disabled on Zoiper, > when FreeSWITCH sends the Re-INVITE, it sends crypto lines. Zoiper then > replies with a 514 Unsupported Media Type and the timer refresh fails, > causing Zoiper to hang up the call. > > > > My current feeling is that as Zoiper ignored the crypto on the initial > INVITE it should be them that then handles the Re-INVITE consistently by > also ignoring the crypto lines but I'm not familiar enough with the RFCs to > make a judgement. > > > > The workaround is to either enable SRTP in Zoiper or don't set > rtp_secure_media to optional when Zoiper is in use. > > > > Kind regards, > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From bilaln018 at gmail.com Fri May 18 07:33:21 2018 From: bilaln018 at gmail.com (Bilal Abbasi) Date: Fri, 18 May 2018 12:33:21 +0500 Subject: [Freeswitch-users] [VAD events][conference call] In-Reply-To: References: Message-ID: Actually i am dialing out on a conference number, by originate command(simple outbound dialing) I am not using conference function Regards Abbasi On Fri, 18 May 2018 at 4:35 AM, Garrett Allen wrote: > I would start by evaluating your design, you can get start-talking and > stop-talking events from the event socket for the conference, you shouldn’t > need to call in for that. > https://freeswitch.org/confluence/display/FREESWITCH/mod_conference#mod_conference-EventSocketUse > > > > *From:* FreeSWITCH-users [mailto: > freeswitch-users-bounces at lists.freeswitch.org] *On Behalf Of *Bilal Abbasi > *Sent:* Thursday, May 17, 2018 14:10 > *To:* FreeSWITCH Users Help > *Subject:* Re: [Freeswitch-users] [VAD events][conference call] > > > > Anybody to help me with this please. > > > > Br > > Abbasi > > > > On Thu, 17 May 2018 at 3:14 PM, Bilal Abbasi wrote: > > Hi Users, > > I want to get the VAD events on a conference call, i want to join a > conference call silently and just wanted to get vad events. > > What i did is to land the conference call in a context and run echo > application.(as vad events appears on b leg) > > But that caused noise in conference, so i droped the rtp packets using > iptables rules. > > > > Problem: Everything works great, but now i want to traverse in > conference(like pin etc) and i send dtmf 2833 which also get droped by > iptables. > > > > Question: is there a way i can get vad events and be as a silent listener > of conference as well. > > > > P.S: previously i used originate conference and landed on park(), but that > do not generate vad events. So i switched to echo() > > > > Regards > > Abbasi > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From enp at itx.ru Thu May 17 06:59:37 2018 From: enp at itx.ru (Eugene Prokopiev) Date: Thu, 17 May 2018 09:59:37 +0300 Subject: [Freeswitch-users] How to remove recorded files with silence Message-ID: Hi, Is it possible to automatically remove recorded files which contains nothing except silence? Can mod_dptools:record do this just after recoding attempt? -- WBR, Eugene Prokopiev From both at antek.it Thu May 17 08:48:20 2018 From: both at antek.it (Petr Both) Date: Thu, 17 May 2018 10:48:20 +0200 Subject: [Freeswitch-users] More info about invalid xml configuration file. In-Reply-To: References: Message-ID: <21c5e386-fded-d521-c937-a915b0aa93e0@antek.it> Hello FS community, I'm completely new in FreeSWITCH (working now with open source version 1.6). I'm searching for answers in documentation but in some cases it is too large to find quickly what I need. I have added into etc/freeswitch/dialplan/default.xml configuration then new element intentionally without closing at the end. Doing reloadxml command in fs_cli I can see freeswitch at debianfs> reloadxml +OK [[error near line 7707]: unexpected closing tag
] Please, is there any way to get more info about such error? Mainly I'm interesting which configuration file is invalid. Are there any logs with more detailed info about trouble? Thank you in advance for any answer. Regards Petr B. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Fri May 18 14:41:06 2018 From: mike at jerris.com (Michael Jerris) Date: Fri, 18 May 2018 10:41:06 -0400 Subject: [Freeswitch-users] FreeSWITCH offering SRTP on Re-INVITE In-Reply-To: References: Message-ID: <072D43CE-1B92-41DE-B3B3-070FE01305F3@jerris.com> After review of the sip trace, I’d report that one to the zoiper guys. There is no reason they should reject the call in that case. > On May 17, 2018, at 4:48 PM, Andrew Cassidy wrote: > > Good afternoon All, > > I have experienced the following issue with Zoiper specifically (I have a support ticket open with them currently) and was wondering if it's something that could/should be fixed FreeSWITCH side. > > If rtp_secure_media is set to optional, and SRTP is disabled on Zoiper, when FreeSWITCH sends the Re-INVITE, it sends crypto lines. Zoiper then replies with a 514 Unsupported Media Type and the timer refresh fails, causing Zoiper to hang up the call. > > My current feeling is that as Zoiper ignored the crypto on the initial INVITE it should be them that then handles the Re-INVITE consistently by also ignoring the crypto lines but I'm not familiar enough with the RFCs to make a judgement. > > The workaround is to either enable SRTP in Zoiper or don't set rtp_secure_media to optional when Zoiper is in use. > > Kind regards, > From mike at jerris.com Fri May 18 14:58:14 2018 From: mike at jerris.com (Michael Jerris) Date: Fri, 18 May 2018 10:58:14 -0400 Subject: [Freeswitch-users] How to remove recorded files with silence In-Reply-To: References: Message-ID: That exact feature is not there, but you might be able to do some math of length against silence hits to figure out if its all silence or not. Take a look at how silence_hits are figured out in switch_ivr_record_file to understand the math you have to do to length. Mike > On May 17, 2018, at 2:59 AM, Eugene Prokopiev wrote: > > Hi, > > Is it possible to automatically remove recorded files which contains > nothing except silence? Can mod_dptools:record do this just after > recoding attempt? > From garrett.allen at teotech.com Fri May 18 15:39:11 2018 From: garrett.allen at teotech.com (Garrett Allen) Date: Fri, 18 May 2018 15:39:11 +0000 Subject: [Freeswitch-users] More info about invalid xml configuration file. In-Reply-To: <21c5e386-fded-d521-c937-a915b0aa93e0@antek.it> References: <21c5e386-fded-d521-c937-a915b0aa93e0@antek.it> Message-ID: Hi Petr, You must close all tags or you are not generating valid XML. This error is telling you it didn’t expect to see the before the you left out. The XML dial plan guide is your friend. https://freeswitch.org/confluence/display/FREESWITCH/XML+Dialplan From: FreeSWITCH-users [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Petr Both Sent: Thursday, May 17, 2018 01:48 To: freeswitch-users at lists.freeswitch.org Subject: [Freeswitch-users] More info about invalid xml configuration file. Hello FS community, I'm completely new in FreeSWITCH (working now with open source version 1.6). I'm searching for answers in documentation but in some cases it is too large to find quickly what I need. I have added into etc/freeswitch/dialplan/default.xml configuration then new element intentionally without closing at the end. Doing reloadxml command in fs_cli I can see freeswitch at debianfs> reloadxml +OK [[error near line 7707]: unexpected closing tag ] Please, is there any way to get more info about such error? Mainly I'm interesting which configuration file is invalid. Are there any logs with more detailed info about trouble? Thank you in advance for any answer. Regards Petr B. -------------- next part -------------- An HTML attachment was scrubbed... URL: From prestonh at gmail.com Fri May 18 15:54:53 2018 From: prestonh at gmail.com (Preston Hagar) Date: Fri, 18 May 2018 10:54:53 -0500 Subject: [Freeswitch-users] Adding SIP Headers in Javascript Message-ID: Quick Version: Is there some special way to set custom SIP headers when you are bridging a call from Javascript instead of XML? Full Details: We am using Voice Operator Panel (VOP) as a receptionist console. We have multiple external numbers that all funnel into a few receptionist desks. If I add a SIP Diversion header, then VOP will use that to show the receptionist which number the caller dialed to reach them, which would help things out a lot. If I add it in an XML dialplan and then do a direct bridge to one of the receptionist numbers, it works great (snip of working direct dialplan): The problem is I need a bit of advanced logic to figure out which receptionist are online and then ring those, then fail over to other numbers and ultimately IVR if no one answers, so I instead pass calls to them off to javascript, so the bridge line above becomes something link: I've tried setting the SIP header in the XML above the javascript line and then exporting it and setting it in the Javascript: var diversionHeader = 'sip_h_Diversion=;privacy=off;reason=unconditional;counter=1;screen=no'; session.execute('set',diversionHeader); session.execute('export','sip_h_Diversion'); but in both cases (or with both in place), the SIP header is never written. Is there some magic to setting SIP headers in Javascript? I can't seem to find any examples or documentation about it. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From ap at gen-ip.fr Fri May 18 18:20:38 2018 From: ap at gen-ip.fr (Alexis) Date: Fri, 18 May 2018 20:20:38 +0200 Subject: [Freeswitch-users] More info about invalid xml configuration file. In-Reply-To: <21c5e386-fded-d521-c937-a915b0aa93e0@antek.it> References: <21c5e386-fded-d521-c937-a915b0aa93e0@antek.it> Message-ID: Hi, You can find the complete generated XML file in /var/log/freeswitch/freeswitch.xml.fsxml. Your error says the error is near line 7707 of this file. Be careful: you can open this file but DO NOT try to edit it :) If you open this file with an editor that support xml syntax coloration (vim/sublime text), then that's quite easy to find where error is. Alexis Le 17/05/2018 à 10:48, Petr Both a écrit : > Hello FS community, > > I'm completely new in FreeSWITCH (working now with open source version > 1.6). I'm searching for answers in documentation but in some cases it > is too large to find quickly what I need. > > I have added into etc/freeswitch/dialplan/default.xml configuration > then new element intentionally without closing > at the end. Doing reloadxml command in fs_cli I can see > > freeswitch at debianfs> reloadxml > +OK [[error near line 7707]: unexpected closing tag ] > > Please, is there any way to get more info about such error? Mainly I'm > interesting which configuration file is invalid. Are there any logs > with more detailed info about trouble? > > Thank you in advance for any answer. > > Regards > Petr B. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bilaln018 at gmail.com Fri May 18 19:08:09 2018 From: bilaln018 at gmail.com (Bilal Abbasi) Date: Sat, 19 May 2018 00:08:09 +0500 Subject: [Freeswitch-users] [VAD events][conference call] In-Reply-To: References: Message-ID: Here are the details, Dial an outbound number(in my case that number is landing on a conference call), and just get the talk/no-talk events with silent listener on that number. Point is when i use echo function on dialed number i get the talk/no-talk events, But thats not the solution as echo will make noise in the conference call. Other than echo i need something that really make the silence plus i can make the dtmf_send to traverse the conference(as i need to enter conference pin on dialed conference number). P.S: Park does not work, it dials the conference number as silent listener but i could not get talk/no talk events. Really looking for a solution here. On Fri, May 18, 2018 at 12:33 PM, Bilal Abbasi wrote: > Actually i am dialing out on a conference number, by originate > command(simple outbound dialing) > I am not using conference function > > Regards > Abbasi > > On Fri, 18 May 2018 at 4:35 AM, Garrett Allen > wrote: > >> I would start by evaluating your design, you can get start-talking and >> stop-talking events from the event socket for the conference, you shouldn’t >> need to call in for that. https://freeswitch.org/ >> confluence/display/FREESWITCH/mod_conference#mod_conference- >> EventSocketUse >> >> >> >> *From:* FreeSWITCH-users [mailto:freeswitch-users- >> bounces at lists.freeswitch.org] *On Behalf Of *Bilal Abbasi >> *Sent:* Thursday, May 17, 2018 14:10 >> *To:* FreeSWITCH Users Help >> *Subject:* Re: [Freeswitch-users] [VAD events][conference call] >> >> >> >> Anybody to help me with this please. >> >> >> >> Br >> >> Abbasi >> >> >> >> On Thu, 17 May 2018 at 3:14 PM, Bilal Abbasi wrote: >> >> Hi Users, >> >> I want to get the VAD events on a conference call, i want to join a >> conference call silently and just wanted to get vad events. >> >> What i did is to land the conference call in a context and run echo >> application.(as vad events appears on b leg) >> >> But that caused noise in conference, so i droped the rtp packets using >> iptables rules. >> >> >> >> Problem: Everything works great, but now i want to traverse in >> conference(like pin etc) and i send dtmf 2833 which also get droped by >> iptables. >> >> >> >> Question: is there a way i can get vad events and be as a silent listener >> of conference as well. >> >> >> >> P.S: previously i used originate conference and landed on park(), but >> that do not generate vad events. So i switched to echo() >> >> >> >> Regards >> >> Abbasi >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From covici at ccs.covici.com Fri May 18 20:14:28 2018 From: covici at ccs.covici.com (John Covici) Date: Fri, 18 May 2018 16:14:28 -0400 Subject: [Freeswitch-users] [VAD events][conference call] In-Reply-To: References: Message-ID: Can't you join as muted or mute yourself, maybe that would work. On Fri, 18 May 2018 15:08:09 -0400, Bilal Abbasi wrote: > > [1 ] > [1.1 ] > [1.2 ] > Here are the details, > Dial an outbound number(in my case that number is landing on a conference call), and just get the talk/no-talk events with silent listener on that number. > Point is when i use echo function on dialed number i get the talk/no-talk events, But thats not the solution as echo will make noise in the conference call. Other than echo i need something that really make the silence plus i can make > the dtmf_send to traverse the conference(as i need to enter conference pin on dialed conference number). > > P.S: Park does not work, it dials the conference number as silent listener but i could not get talk/no talk events. > > Really looking for a solution here. > > On Fri, May 18, 2018 at 12:33 PM, Bilal Abbasi wrote: > > Actually i am dialing out on a conference number, by originate command(simple outbound dialing) > I am not using conference function > > Regards > Abbasi > > On Fri, 18 May 2018 at 4:35 AM, Garrett Allen wrote: > > I would start by evaluating your design, you can get start-talking and stop-talking events from the event socket for the conference, you shouldn’t need to call in for that. > https://freeswitch.org/confluence/display/FREESWITCH/mod_conference#mod_conference-EventSocketUse > > > > From: FreeSWITCH-users [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Bilal Abbasi > Sent: Thursday, May 17, 2018 14:10 > To: FreeSWITCH Users Help > Subject: Re: [Freeswitch-users] [VAD events][conference call] > > > > Anybody to help me with this please. > > > > Br > > Abbasi > > > > On Thu, 17 May 2018 at 3:14 PM, Bilal Abbasi wrote: > > Hi Users, > > I want to get the VAD events on a conference call, i want to join a conference call silently and just wanted to get vad events. > > What i did is to land the conference call in a context and run echo application.(as vad events appears on b leg) > > But that caused noise in conference, so i droped the rtp packets using iptables rules. > > > > Problem: Everything works great, but now i want to traverse in conference(like pin etc) and i send dtmf 2833 which also get droped by iptables. > > > > Question: is there a way i can get vad events and be as a silent listener of conference as well. > > > > P.S: previously i used originate conference and landed on park(), but that do not generate vad events. So i switched to echo() > > > > Regards > > Abbasi > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > [2 ] > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici wb2una covici at ccs.covici.com From bilaln018 at gmail.com Fri May 18 22:23:39 2018 From: bilaln018 at gmail.com (Bilal Abbasi) Date: Sat, 19 May 2018 03:23:39 +0500 Subject: [Freeswitch-users] [VAD events][conference call] In-Reply-To: References: Message-ID: @Natan on local i have echo command and i am connecting to remote conference. Regards Abbasi On Sat, May 19, 2018, 01:20 John Covici wrote: > Can't you join as muted or mute yourself, maybe that would work. > > On Fri, 18 May 2018 15:08:09 -0400, > Bilal Abbasi wrote: > > > > [1 ] > > [1.1 ] > > [1.2 ] > > Here are the details, > > Dial an outbound number(in my case that number is landing on a > conference call), and just get the talk/no-talk events with silent listener > on that number. > > Point is when i use echo function on dialed number i get the > talk/no-talk events, But thats not the solution as echo will make noise in > the conference call. Other than echo i need something that really make the > silence plus i can make > > the dtmf_send to traverse the conference(as i need to enter conference > pin on dialed conference number). > > > > P.S: Park does not work, it dials the conference number as silent > listener but i could not get talk/no talk events. > > > > Really looking for a solution here. > > > > On Fri, May 18, 2018 at 12:33 PM, Bilal Abbasi > wrote: > > > > Actually i am dialing out on a conference number, by originate > command(simple outbound dialing) > > I am not using conference function > > > > Regards > > Abbasi > > > > On Fri, 18 May 2018 at 4:35 AM, Garrett Allen < > garrett.allen at teotech.com> wrote: > > > > I would start by evaluating your design, you can get start-talking and > stop-talking events from the event socket for the conference, you shouldn’t > need to call in for that. > > > https://freeswitch.org/confluence/display/FREESWITCH/mod_conference#mod_conference-EventSocketUse > > > > > > > > From: FreeSWITCH-users [mailto: > freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Bilal Abbasi > > Sent: Thursday, May 17, 2018 14:10 > > To: FreeSWITCH Users Help > > Subject: Re: [Freeswitch-users] [VAD events][conference call] > > > > > > > > Anybody to help me with this please. > > > > > > > > Br > > > > Abbasi > > > > > > > > On Thu, 17 May 2018 at 3:14 PM, Bilal Abbasi > wrote: > > > > Hi Users, > > > > I want to get the VAD events on a conference call, i want to join a > conference call silently and just wanted to get vad events. > > > > What i did is to land the conference call in a context and run echo > application.(as vad events appears on b leg) > > > > But that caused noise in conference, so i droped the rtp packets using > iptables rules. > > > > > > > > Problem: Everything works great, but now i want to traverse in > conference(like pin etc) and i send dtmf 2833 which also get droped by > iptables. > > > > > > > > Question: is there a way i can get vad events and be as a silent > listener of conference as well. > > > > > > > > P.S: previously i used originate conference and landed on park(), but > that do not generate vad events. So i switched to echo() > > > > > > > > Regards > > > > Abbasi > > > > > > > > > _________________________________________________________________________ > > Professional FreeSWITCH Consulting Services: > > consulting at freeswitch.org > > http://www.freeswitchsolutions.com > > > > Official FreeSWITCH Sites > > http://www.freeswitch.org > > http://confluence.freeswitch.org > > http://www.cluecon.com > > > > FreeSWITCH-users mailing list > > FreeSWITCH-users at lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE: > http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > [2 ] > > _________________________________________________________________________ > > Professional FreeSWITCH Consulting Services: > > consulting at freeswitch.org > > http://www.freeswitchsolutions.com > > > > Official FreeSWITCH Sites > > http://www.freeswitch.org > > http://confluence.freeswitch.org > > http://www.cluecon.com > > > > FreeSWITCH-users mailing list > > FreeSWITCH-users at lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > -- > Your life is like a penny. You're going to lose it. The question is: > How do > you spend it? > > John Covici wb2una > covici at ccs.covici.com > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From bilaln018 at gmail.com Fri May 18 22:24:53 2018 From: bilaln018 at gmail.com (Bilal Abbasi) Date: Sat, 19 May 2018 03:24:53 +0500 Subject: [Freeswitch-users] [VAD events][conference call] In-Reply-To: References: Message-ID: Jhon, When i do mute using uuid audio it stops the talk no talk events as well. Regards Abbasi On Sat, May 19, 2018, 03:23 Bilal Abbasi wrote: > @Natan on local i have echo command and i am connecting to remote > conference. > > Regards > Abbasi > > On Sat, May 19, 2018, 01:20 John Covici wrote: > >> Can't you join as muted or mute yourself, maybe that would work. >> >> On Fri, 18 May 2018 15:08:09 -0400, >> Bilal Abbasi wrote: >> > >> > [1 ] >> > [1.1 ] >> > [1.2 ] >> > Here are the details, >> > Dial an outbound number(in my case that number is landing on a >> conference call), and just get the talk/no-talk events with silent listener >> on that number. >> > Point is when i use echo function on dialed number i get the >> talk/no-talk events, But thats not the solution as echo will make noise in >> the conference call. Other than echo i need something that really make the >> silence plus i can make >> > the dtmf_send to traverse the conference(as i need to enter conference >> pin on dialed conference number). >> > >> > P.S: Park does not work, it dials the conference number as silent >> listener but i could not get talk/no talk events. >> > >> > Really looking for a solution here. >> > >> > On Fri, May 18, 2018 at 12:33 PM, Bilal Abbasi >> wrote: >> > >> > Actually i am dialing out on a conference number, by originate >> command(simple outbound dialing) >> > I am not using conference function >> > >> > Regards >> > Abbasi >> > >> > On Fri, 18 May 2018 at 4:35 AM, Garrett Allen < >> garrett.allen at teotech.com> wrote: >> > >> > I would start by evaluating your design, you can get start-talking and >> stop-talking events from the event socket for the conference, you shouldn’t >> need to call in for that. >> > >> https://freeswitch.org/confluence/display/FREESWITCH/mod_conference#mod_conference-EventSocketUse >> > >> > >> > >> > From: FreeSWITCH-users [mailto: >> freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Bilal Abbasi >> > Sent: Thursday, May 17, 2018 14:10 >> > To: FreeSWITCH Users Help >> > Subject: Re: [Freeswitch-users] [VAD events][conference call] >> > >> > >> > >> > Anybody to help me with this please. >> > >> > >> > >> > Br >> > >> > Abbasi >> > >> > >> > >> > On Thu, 17 May 2018 at 3:14 PM, Bilal Abbasi >> wrote: >> > >> > Hi Users, >> > >> > I want to get the VAD events on a conference call, i want to join a >> conference call silently and just wanted to get vad events. >> > >> > What i did is to land the conference call in a context and run echo >> application.(as vad events appears on b leg) >> > >> > But that caused noise in conference, so i droped the rtp packets using >> iptables rules. >> > >> > >> > >> > Problem: Everything works great, but now i want to traverse in >> conference(like pin etc) and i send dtmf 2833 which also get droped by >> iptables. >> > >> > >> > >> > Question: is there a way i can get vad events and be as a silent >> listener of conference as well. >> > >> > >> > >> > P.S: previously i used originate conference and landed on park(), but >> that do not generate vad events. So i switched to echo() >> > >> > >> > >> > Regards >> > >> > Abbasi >> > >> > >> > >> > >> _________________________________________________________________________ >> > Professional FreeSWITCH Consulting Services: >> > consulting at freeswitch.org >> > http://www.freeswitchsolutions.com >> > >> > Official FreeSWITCH Sites >> > http://www.freeswitch.org >> > http://confluence.freeswitch.org >> > http://www.cluecon.com >> > >> > FreeSWITCH-users mailing list >> > FreeSWITCH-users at lists.freeswitch.org >> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> > UNSUBSCRIBE: >> http://lists.freeswitch.org/mailman/options/freeswitch-users >> > http://www.freeswitch.org >> > [2 ] >> > >> _________________________________________________________________________ >> > Professional FreeSWITCH Consulting Services: >> > consulting at freeswitch.org >> > http://www.freeswitchsolutions.com >> > >> > Official FreeSWITCH Sites >> > http://www.freeswitch.org >> > http://confluence.freeswitch.org >> > http://www.cluecon.com >> > >> > FreeSWITCH-users mailing list >> > FreeSWITCH-users at lists.freeswitch.org >> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> > UNSUBSCRIBE: >> http://lists.freeswitch.org/mailman/options/freeswitch-users >> > http://www.freeswitch.org >> >> -- >> Your life is like a penny. You're going to lose it. The question is: >> How do >> you spend it? >> >> John Covici wb2una >> covici at ccs.covici.com >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jignesh.vasoya at gslab.com Fri May 18 23:20:55 2018 From: jignesh.vasoya at gslab.com (Jignesh Vasoya) Date: Fri, 18 May 2018 18:20:55 -0500 Subject: [Freeswitch-users] How to achieve MRCP server load balancing from FreeSwitch?? Message-ID: Hi, I was exploring an option to use mod-distributor for using a simple round robin load balancing between different MRCP speech servers. I have tried to fill in "default asr profile" using mod-distributor placeholders(variables). But it is not working?? Is there any way to achieve simple load balancing between different Speech Servers in FreeSwitch? -- *Thanks,* *Jignesh* -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at cassidywebservices.co.uk Sat May 19 07:12:17 2018 From: andrew at cassidywebservices.co.uk (Andrew Cassidy) Date: Sat, 19 May 2018 08:12:17 +0100 Subject: [Freeswitch-users] FreeSWITCH offering SRTP on Re-INVITE In-Reply-To: <072D43CE-1B92-41DE-B3B3-070FE01305F3@jerris.com> References: <072D43CE-1B92-41DE-B3B3-070FE01305F3@jerris.com> Message-ID: Thanks Michael, They're basically being all high and mighty about it. I've suggested that handling the call should be consistent, they either don't reject the reinvite, or they reject the initial invite but have told me this issue is "by design". We have workarounds as previously mentioned so it's not the end of the world. I might have to reconsider whether I continue to use them in the long term. Kind regards, On Fri, 18 May 2018, 16:19 Michael Jerris, wrote: > After review of the sip trace, I’d report that one to the zoiper guys. > There is no reason they should reject the call in that case. > > > On May 17, 2018, at 4:48 PM, Andrew Cassidy < > andrew at cassidywebservices.co.uk> wrote: > > > > Good afternoon All, > > > > I have experienced the following issue with Zoiper specifically (I have > a support ticket open with them currently) and was wondering if it's > something that could/should be fixed FreeSWITCH side. > > > > If rtp_secure_media is set to optional, and SRTP is disabled on Zoiper, > when FreeSWITCH sends the Re-INVITE, it sends crypto lines. Zoiper then > replies with a 514 Unsupported Media Type and the timer refresh fails, > causing Zoiper to hang up the call. > > > > My current feeling is that as Zoiper ignored the crypto on the initial > INVITE it should be them that then handles the Re-INVITE consistently by > also ignoring the crypto lines but I'm not familiar enough with the RFCs to > make a judgement. > > > > The workaround is to either enable SRTP in Zoiper or don't set > rtp_secure_media to optional when Zoiper is in use. > > > > Kind regards, > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From both at antek.it Mon May 21 09:11:51 2018 From: both at antek.it (Petr Both) Date: Mon, 21 May 2018 11:11:51 +0200 Subject: [Freeswitch-users] More info about invalid xml configuration file. In-Reply-To: References: <21c5e386-fded-d521-c937-a915b0aa93e0@antek.it> Message-ID: <6d4bf98f-4e6e-ec59-dec6-55cfda48782a@antek.it> Hi Alexis, Thank you very much, this is very useful info. If I understand correctly the whole FS configuration is during reloadxml "copied" to freeswitch.xml.fsxml and then it is evaluated and if necessary the error report is generated to CLI. Related line value is reported in this message and is related to freeswitch.xml.fsxml. Regards Petr B. Dne 18.05.2018 v 20:20 Alexis napsal(a): > > Hi, > > You can find the complete generated XML file in > /var/log/freeswitch/freeswitch.xml.fsxml. Your error says the error is > near line 7707 of this file. Be careful: you can open this file but DO > NOT try to edit it :) > > If you open this file with an editor that support xml syntax > coloration (vim/sublime text), then that's quite easy to find where > error is. > > Alexis > Le 17/05/2018 à 10:48, Petr Both a écrit : >> Hello FS community, >> >> I'm completely new in FreeSWITCH (working now with open source >> version 1.6). I'm searching for answers in documentation but in some >> cases it is too large to find quickly what I need. >> >> I have added into etc/freeswitch/dialplan/default.xml configuration >> then new element intentionally without closing >> at the end. Doing reloadxml command in fs_cli I can see >> >> freeswitch at debianfs> reloadxml >> +OK [[error near line 7707]: unexpected closing tag ] >> >> Please, is there any way to get more info about such error? Mainly >> I'm interesting which configuration file is invalid. Are there any >> logs with more detailed info about trouble? >> >> Thank you in advance for any answer. >> >> Regards >> Petr B. > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From ap at gen-ip.fr Mon May 21 12:37:09 2018 From: ap at gen-ip.fr (Alexis) Date: Mon, 21 May 2018 14:37:09 +0200 Subject: [Freeswitch-users] More info about invalid xml configuration file. In-Reply-To: <6d4bf98f-4e6e-ec59-dec6-55cfda48782a@antek.it> References: <21c5e386-fded-d521-c937-a915b0aa93e0@antek.it> <6d4bf98f-4e6e-ec59-dec6-55cfda48782a@antek.it> Message-ID: That's it. You can find more informations here : https://freeswitch.org/confluence/display/FREESWITCH/Configuring+FreeSWITCH#ConfiguringFreeSWITCH-HowConfigurationFilesAreParsed Alexis Le 21/05/2018 à 11:11, Petr Both a écrit : > Hi Alexis, > > Thank you very much, this is very useful info. > > If I understand correctly the whole FS configuration is during > reloadxml "copied" to freeswitch.xml.fsxml and then it is evaluated > and if necessary the error report is generated to CLI. Related line > value is reported in this message and is related to freeswitch.xml.fsxml. > > Regards > Petr B. > > Dne 18.05.2018 v 20:20 Alexis napsal(a): >> >> Hi, >> >> You can find the complete generated XML file in >> /var/log/freeswitch/freeswitch.xml.fsxml. Your error says the error >> is near line 7707 of this file. Be careful: you can open this file >> but DO NOT try to edit it :) >> >> If you open this file with an editor that support xml syntax >> coloration (vim/sublime text), then that's quite easy to find where >> error is. >> >> Alexis >> Le 17/05/2018 à 10:48, Petr Both a écrit : >>> Hello FS community, >>> >>> I'm completely new in FreeSWITCH (working now with open source >>> version 1.6). I'm searching for answers in documentation but in some >>> cases it is too large to find quickly what I need. >>> >>> I have added into etc/freeswitch/dialplan/default.xml configuration >>> then new element intentionally without closing >>> at the end. Doing reloadxml command in fs_cli I can see >>> >>> freeswitch at debianfs> reloadxml >>> +OK [[error near line 7707]: unexpected closing tag ] >>> >>> Please, is there any way to get more info about such error? Mainly >>> I'm interesting which configuration file is invalid. Are there any >>> logs with more detailed info about trouble? >>> >>> Thank you in advance for any answer. >>> >>> Regards >>> Petr B. >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nneul at mst.edu Fri May 18 19:37:42 2018 From: nneul at mst.edu (Nathan Neulinger) Date: Fri, 18 May 2018 14:37:42 -0500 Subject: [Freeswitch-users] [VAD events][conference call] In-Reply-To: References: Message-ID: Are you saying that you're using a conference on your local FS server as a means to make an outbound call to another external conference, and then using it's events to tell you when there is audio/talking on that remote conference? -- Nathan On 5/18/18 2:08 PM, Bilal Abbasi wrote: > Here are the details, > Dial an outbound number(in my case that number is landing on a conference call), and just get the talk/no-talk events > with silent listener on that number. > Point is when i use echo function on dialed number i get the talk/no-talk events, But thats not the solution as echo > will make noise in the conference call. Other than echo i need something that really make the silence plus i can make > the dtmf_send to traverse the conference(as i need to enter conference pin on dialed conference number). > > P.S: Park does not work, it dials the conference number as silent listener but i could not get talk/no talk events. > > Really looking for a solution here. > > On Fri, May 18, 2018 at 12:33 PM, Bilal Abbasi > wrote: > > Actually i am dialing out on a conference number, by originate command(simple outbound dialing) > I am not using conference function > > Regards > Abbasi > > On Fri, 18 May 2018 at 4:35 AM, Garrett Allen > wrote: > > I would start by evaluating your design, you can get start-talking and stop-talking events from the event > socket for the conference, you shouldn’t need to call in for that. > https://freeswitch.org/confluence/display/FREESWITCH/mod_conference#mod_conference-EventSocketUse > > > *From:*FreeSWITCH-users [mailto:freeswitch-users-bounces at lists.freeswitch.org > ] *On Behalf Of *Bilal Abbasi > *Sent:* Thursday, May 17, 2018 14:10 > *To:* FreeSWITCH Users Help > *Subject:* Re: [Freeswitch-users] [VAD events][conference call] > > Anybody to help me with this please. > > Br > > Abbasi > > On Thu, 17 May 2018 at 3:14 PM, Bilal Abbasi > wrote: > > Hi Users, > > I want to get the VAD events on a conference call, i want to join a conference call silently and just > wanted to get vad events. > > What i did is to land the conference call in a context and run echo application.(as vad events appears on > b leg) > > But that caused noise in conference, so i droped the rtp packets using iptables rules. > > Problem: Everything works great, but now i want to traverse in conference(like pin etc) and i send dtmf > 2833 which also get droped by iptables. > > Question: is there a way i can get vad events and be as a silent listener of conference as well. > > P.S: previously i used originate conference and landed on park(), but that do not generate vad events. So > i switched to echo() > > Regards > > Abbasi > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -- ------------------------------------------------------------ Nathan Neulinger nneul at mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssinyagin at gmail.com Mon May 21 16:39:10 2018 From: ssinyagin at gmail.com (Stanislav Sinyagin) Date: Mon, 21 May 2018 18:39:10 +0200 Subject: [Freeswitch-users] How to remove recorded files with silence In-Reply-To: References: Message-ID: I would do this outside of freeswitch with nice priority. I guess "sox" should be able to do the job. This will preserve CPU cycles for important real-time work. On Fri, May 18, 2018, 16:58 Michael Jerris wrote: > That exact feature is not there, but you might be able to do some math of > length against silence hits to figure out if its all silence or not. Take > a look at how silence_hits are figured out in switch_ivr_record_file to > understand the math you have to do to length. > > Mike > > > On May 17, 2018, at 2:59 AM, Eugene Prokopiev wrote: > > > > Hi, > > > > Is it possible to automatically remove recorded files which contains > > nothing except silence? Can mod_dptools:record do this just after > > recoding attempt? > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Mon May 21 20:15:30 2018 From: mike at jerris.com (Michael Jerris) Date: Mon, 21 May 2018 16:15:30 -0400 Subject: [Freeswitch-users] How to remove recorded files with silence In-Reply-To: References: Message-ID: <8D149752-3B0B-453D-B844-351C583D03A5@jerris.com> I think it would be a cool feature to add in to the api, and we can do it much cheaper compute wise as we go as we are already doing the silence calculations anyways, it just doesn’t exist today. Patches welcome. > On May 21, 2018, at 12:39 PM, Stanislav Sinyagin wrote: > > I would do this outside of freeswitch with nice priority. I guess "sox" should be able to do the job. This will preserve CPU cycles for important real-time work. > > > > > On Fri, May 18, 2018, 16:58 Michael Jerris > wrote: > That exact feature is not there, but you might be able to do some math of length against silence hits to figure out if its all silence or not. Take a look at how silence_hits are figured out in switch_ivr_record_file to understand the math you have to do to length. > > Mike > > > On May 17, 2018, at 2:59 AM, Eugene Prokopiev > wrote: > > > > Hi, > > > > Is it possible to automatically remove recorded files which contains > > nothing except silence? Can mod_dptools:record do this just after > > recoding attempt? > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From BJordan at E-Teleco.com Mon May 21 23:57:36 2018 From: BJordan at E-Teleco.com (Branden Jordan) Date: Mon, 21 May 2018 23:57:36 +0000 Subject: [Freeswitch-users] Adding SIP Headers in Javascript In-Reply-To: References: Message-ID: Not sure if you still need help with this but could you post some more of your javascript code? Something about this line is off to me but maybe it makes sense in the grander scheme of things. var diversionHeader = 'sip_h_Diversion=>;privacy=off;reason=unconditional;counter=1;screen=no'; I have not used javascript with freeswitch in a little while, so I might be totally wrong but did you declare $destination_number? Because its possible its undefined if you didn’t declare that specifically equal to the value you passed in via args and thus javascript does you a solid and makes the whole string undefined which sets the sip_h_Diversion to null which is why it isn’t exporting. Maybe try argv[3] or argv[2] (console them out I am not sure which one it’ll be) instead of $destination_number in your concatenation? If that isn’t it and you are still having an issue we can try some other stuff. Thanks, Branden Jordan From: FreeSWITCH-users On Behalf Of Preston Hagar Sent: Friday, May 18, 2018 8:55 AM To: FreeSWITCH Users Help Subject: [Freeswitch-users] Adding SIP Headers in Javascript Quick Version: Is there some special way to set custom SIP headers when you are bridging a call from Javascript instead of XML? Full Details: We am using Voice Operator Panel (VOP) as a receptionist console. We have multiple external numbers that all funnel into a few receptionist desks. If I add a SIP Diversion header, then VOP will use that to show the receptionist which number the caller dialed to reach them, which would help things out a lot. If I add it in an XML dialplan and then do a direct bridge to one of the receptionist numbers, it works great (snip of working direct dialplan): The problem is I need a bit of advanced logic to figure out which receptionist are online and then ring those, then fail over to other numbers and ultimately IVR if no one answers, so I instead pass calls to them off to javascript, so the bridge line above becomes something link: I've tried setting the SIP header in the XML above the javascript line and then exporting it and setting it in the Javascript: var diversionHeader = 'sip_h_Diversion=>;privacy=off;reason=unconditional;counter=1;screen=no'; session.execute('set',diversionHeader); session.execute('export','sip_h_Diversion'); but in both cases (or with both in place), the SIP header is never written. Is there some magic to setting SIP headers in Javascript? I can't seem to find any examples or documentation about it. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From prestonh at gmail.com Tue May 22 01:53:22 2018 From: prestonh at gmail.com (Preston Hagar) Date: Mon, 21 May 2018 20:53:22 -0500 Subject: [Freeswitch-users] Adding SIP Headers in Javascript In-Reply-To: References: Message-ID: Thanks for responding! Below is a bit more code to fill in the gaps. I'm passing the destination_number from the XML as a third argument. When I test out the code below, the console_log does in fact print out a "correct" Diversion header line. If I use the exact same Diversion header, set in my XML dialplan, it shows up in the SIP packet and the VOP software reads it. When I set it using session.execute in javascript, then no Diversion header, even an incorrect one, gets added to the SIP packet. I don't think it is in the variable substitution or anything like that. I've also tried not passing a variable to session.execute and just putting the string in the command, as well as just hard coding a test number. In all cases, no Diversion header ever shows up. Either I'm not setting it right for javascript or there is something different about setting it in Javascript vs XML that I haven't figured out. Here is more expanded code: var $extension = argv[0]; var $pbx_domain = argv[1]; var $destination_number = argv[2]; var diversionHeader = 'sip_h_Diversion=;privacy=off;reason=unconditional;counter=1;screen=no'; session.execute('set',diversionHeader); session.execute('export','sip_h_Diversion'); onsole_log("notice","Trying receptionist"); console_log("notice",session.state); console_log("notice",diversionHeader); session.execute('set', 'call_timeout=15'); var logic = '{ignore_early_media=true}user/1003@' + $pbx_domain; session.execute('bridge', logic); console_log("notice","Trying Kim"); console_log("notice",session.state); session.execute('set', 'call_timeout=10'); session.execute('bridge', 'user/2741@' + $pbx_domain); // No one answered, send to IVR console_log("notice","No one is answering"); console_log("notice",session.state); if (session.state == "CS_EXECUTE") { console_log("notice","Trying IVR"); session.execute('transfer', 'ivr'); } On Mon, May 21, 2018 at 6:57 PM, Branden Jordan wrote: > Not sure if you still need help with this but could you post some more of > your javascript code? Something about this line is off to me but maybe it > makes sense in the grander scheme of things. > > var diversionHeader = 'sip_h_Diversion= '@pbx.example.org>;privacy=off;reason=unconditional;counter=1;screen=no'; > > > > I have not used javascript with freeswitch in a little while, so I might > be totally wrong but did you declare $destination_number? Because its > possible its undefined if you didn’t declare that specifically equal to the > value you passed in via args and thus javascript does you a solid and makes > the whole string undefined which sets the sip_h_Diversion to null which is > why it isn’t exporting. Maybe try argv[3] or argv[2] (console them out I am > not sure which one it’ll be) instead of $destination_number in your > concatenation? > > > > If that isn’t it and you are still having an issue we can try some other > stuff. > > > > Thanks, > > Branden Jordan > > > > > > *From:* FreeSWITCH-users *On > Behalf Of *Preston Hagar > *Sent:* Friday, May 18, 2018 8:55 AM > *To:* FreeSWITCH Users Help > *Subject:* [Freeswitch-users] Adding SIP Headers in Javascript > > > > Quick Version: Is there some special way to set custom SIP headers when > you are bridging a call from Javascript instead of XML? > > > > Full Details: > > We am using Voice Operator Panel (VOP) as a receptionist console. We have > multiple external numbers that all funnel into a few receptionist desks. > If I add a SIP Diversion header, then VOP will use that to show the > receptionist which number the caller dialed to reach them, which would help > things out a lot. > > > > If I add it in an XML dialplan and then do a direct bridge to one of the > receptionist numbers, it works great (snip of working direct dialplan): > > > > > > > > > > The problem is I need a bit of advanced logic to figure out which > receptionist are online and then ring those, then fail over to other > numbers and ultimately IVR if no one answers, so I instead pass calls to > them off to javascript, so the bridge line above becomes something link: > > > > > > > > I've tried setting the SIP header in the XML above the javascript line and > then exporting it > > > > > > > > > and setting it in the Javascript: > > > > var diversionHeader = 'sip_h_Diversion= '@pbx.example.org>;privacy=off;reason=unconditional;counter=1;screen=no'; > > > > session.execute('set',diversionHeader); > > session.execute('export','sip_h_Diversion'); > > > > but in both cases (or with both in place), the SIP header is never written. > > > > Is there some magic to setting SIP headers in Javascript? I can't seem to > find any examples or documentation about it. > > > > Thanks! > > > > > > > > > > > > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From francesco at delagarda.com Tue May 22 09:56:47 2018 From: francesco at delagarda.com (Francesco Facco de Lagarda) Date: Tue, 22 May 2018 11:56:47 +0200 Subject: [Freeswitch-users] javascript choose external channel Message-ID: <009a01d3f1b3$33e0d910$9ba28b30$@delagarda.com> I'm developing a call app using javascript I have 2 possibile gateways for outgoing calls: one is a RealTone FXO box on analogue line one is a MessageNet SIP account.. in JS I THOUGHT I could use them as follows: for the realtone FXO var sessOut = new Session("sofia/gateway/realtoneFXO/" + dialedNum + "@192.168.0.216:5060"); for messageNet SIP ACCOUNT var sessOut = new Session("sofia/gateway/messagenet/" + dialedNum + "@192.168.0.216:5060"); But FS ALWAYS dials out on the FXO, in fs_cli I see: switch_channel.c:1104 New Channel sofia/external/069087651 at 192.168.0.216:5060 why not New Channel sofia/gateway/Messagenet/sofia/external/069087651 at 192.168.0.216:5060 As I'm specifying n the "new Session" code ??? -------------- next part -------------- An HTML attachment was scrubbed... URL: From lapa at novatec.de Tue May 22 13:53:50 2018 From: lapa at novatec.de (Lars Paulsen) Date: Tue, 22 May 2018 15:53:50 +0200 Subject: [Freeswitch-users] Troubleshooting REGISTER Message-ID: <00e001d3f1d4$5048deb0$f0da9c10$@novatec.de> Hi All, I am having trouble with a gateway configuration. The REGISTER coming from the gateway to FreeSWITCH is being rejected ("Forbidden"). Now I noticed that I do not see any output in fs_cli on an incoming REGISTER message. The debug level is already set to 7. What else do I need to do to enable some output for REGISTER messages? Thanks in advance for any help. Best Regards, Lars Paulsen -------------- next part -------------- An HTML attachment was scrubbed... URL: From vma at vallimamod.org Tue May 22 14:59:10 2018 From: vma at vallimamod.org (Vallimamod Abdullah) Date: Tue, 22 May 2018 16:59:10 +0200 Subject: [Freeswitch-users] Troubleshooting REGISTER In-Reply-To: <00e001d3f1d4$5048deb0$f0da9c10$@novatec.de> References: <00e001d3f1d4$5048deb0$f0da9c10$@novatec.de> Message-ID: <475F8B98-895D-44A0-8AB5-FB900608006B@vallimamod.org> Hi, Have you checked if you have anything in the log files? The standard console debugging commands are: fsctl loglevel 7 console loglevel 7 sofia global siptrace on Have a look on the wiki for more details: https://freeswitch.org/confluence/display/FREESWITCH/Troubleshooting+Debugging Best Regards, -- Vallimamod Abdullah SIP Solutions vma at sip.solutions linkedin.com/in/vallimamod . > On 22 May 2018, at 15:53, Lars Paulsen wrote: > > Hi All, > > I am having trouble with a gateway configuration. The REGISTER coming from the gateway to FreeSWITCH is being rejected (“Forbidden”). > Now I noticed that I do not see any output in fs_cli on an incoming REGISTER message. The debug level is already set to 7. > > What else do I need to do to enable some output for REGISTER messages? > Thanks in advance for any help. > > Best Regards, > Lars Paulsen From both at antek.it Tue May 22 15:00:18 2018 From: both at antek.it (Petr Both) Date: Tue, 22 May 2018 17:00:18 +0200 Subject: [Freeswitch-users] Lua script with arguments called from Dialplan In-Reply-To: <00e001d3f1d4$5048deb0$f0da9c10$@novatec.de> References: <00e001d3f1d4$5048deb0$f0da9c10$@novatec.de> Message-ID: <6d5567ee-c22b-cf20-4d21-6668d5fda8b8@antek.it> Hi all, I'm trying to call Lua script from the dialplan using the following section in etc/freeswitch/diaplan/default.xml                           I.e. the TxCall.lua is called with argument 3000 and should be available in lua script intself in argv[1] member of the argv field. However trying to use argv[1] the lua reports nil in this member of this field. argv[0] contains correctly name of the script but argv[1] seems to be empty. Seems like arguments are not delivered to lua script from dialplan. I have also found the description if FS manual where such usage of dialplan is described but as I described above it doesn't work for me. Location in manual is https://freeswitch.org/confluence/display/FREESWITCH/mod_lua chapter "Sample Dialplan" Is there any special trick to deliver arguments into the script from Dialplan? Regards Petr B. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexandr.popov at iqoption.com Tue May 22 15:53:00 2018 From: alexandr.popov at iqoption.com (Alexandr Popov) Date: Tue, 22 May 2018 18:53:00 +0300 Subject: [Freeswitch-users] Lua script with arguments called from Dialplan In-Reply-To: <6d5567ee-c22b-cf20-4d21-6668d5fda8b8@antek.it> References: <00e001d3f1d4$5048deb0$f0da9c10$@novatec.de> <6d5567ee-c22b-cf20-4d21-6668d5fda8b8@antek.it> Message-ID: it must work 2018-05-22 18:00 GMT+03:00 Petr Both : > Hi all, > > I'm trying to call Lua script from the dialplan using the following > section in etc/freeswitch/diaplan/default.xml > > > > > > > > I.e. the TxCall.lua is called with argument 3000 and should be available > in lua script intself in argv[1] member of the argv field. However trying > to use argv[1] the lua reports nil in this member of this field. argv[0] > contains correctly name of the script but argv[1] seems to be empty. Seems > like arguments are not delivered to lua script from dialplan. > > I have also found the description if FS manual where such usage of > dialplan is described but as I described above it doesn't work for me. > > Location in manual is > https://freeswitch.org/confluence/display/FREESWITCH/mod_lua > chapter "Sample Dialplan" > > Is there any special trick to deliver arguments into the script from > Dialplan? > > Regards > Petr B. > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chenxiemin at gmail.com Tue May 22 02:14:49 2018 From: chenxiemin at gmail.com (Xiemin Chen) Date: Tue, 22 May 2018 10:14:49 +0800 Subject: [Freeswitch-users] Does verto supports live broadcasting? Message-ID: Hi all, I want to achieve a live broadcasting system with verto and webrtc, Is it able to? It seems that if I don't enable video in verto session then I cannot receive other's video too, Anything I missed? Sincerely Xiemin -------------- next part -------------- An HTML attachment was scrubbed... URL: From Markus.Hammerer at infotech.at Tue May 22 05:16:44 2018 From: Markus.Hammerer at infotech.at (Markus Hammerer) Date: Tue, 22 May 2018 05:16:44 +0000 Subject: [Freeswitch-users] DUAL NIC Message-ID: Helo I have a Server with two nics And the freeswitch works with the wrong nic How can i configure this with the other NIC? Where i can do this? Thanks Markus -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5541 bytes Desc: not available URL: From hggh96.hg at gmail.com Tue May 22 06:31:57 2018 From: hggh96.hg at gmail.com (Hossein Gholizadeh) Date: Tue, 22 May 2018 11:01:57 +0430 Subject: [Freeswitch-users] Fax by javascript Message-ID: Hi ... I'm using faxlib for fax in freeswitch but as in api docs is mentioned, it's out-of-date . is that good to use it ? if not what can i do ? is there any sample for fax by javascript ? and last question : is it simple to use freeswitch by javascript? -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at freeswitch.com Tue May 22 16:24:09 2018 From: brian at freeswitch.com (Brian West) Date: Tue, 22 May 2018 11:24:09 -0500 Subject: [Freeswitch-users] DUAL NIC In-Reply-To: References: Message-ID: You tell a sofia profile or what ever technology you're using to bind to the IP bound to that NIC. FreeSWITCH by default will NOT bind to INADDR_ANY. /b On Tue, May 22, 2018 at 12:16 AM, Markus Hammerer < Markus.Hammerer at infotech.at> wrote: > Helo > > > > I have a Server with two nics > > And the freeswitch works with the wrong nic > > How can i configure this with the other NIC? > > Where i can do this? > > Thanks > > > > Markus > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -- Brian West | Co-founder and Developer Need Commercial support? email sales at freeswitch.com FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 Email: brian at freeswitch.com Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com [image: https://www.facebook.com/signalwireinc?src=email] [image: https://twitter.com/freeswitch] -------------- next part -------------- An HTML attachment was scrubbed... URL: From mario_fs at mgtech.com Tue May 22 16:37:28 2018 From: mario_fs at mgtech.com (Mario) Date: Tue, 22 May 2018 09:37:28 -0700 Subject: [Freeswitch-users] Lua script with arguments called from Dialplan In-Reply-To: References: <00e001d3f1d4$5048deb0$f0da9c10$@novatec.de> <6d5567ee-c22b-cf20-4d21-6668d5fda8b8@antek.it> Message-ID: <22E8CB9E-8495-409C-BD12-BD5D56C8D807@mgtech.com> I agree it should work, I call Lua in incoming and outgoing dial plans using the literal CALLIN and others and it works fine. > > > > > > I.e. the TxCall.lua is called with argument 3000 and should be available in lua script intself in argv[1] member of the argv field. However trying to use argv[1] the lua reports nil in this member of this field. argv[0] contains correctly name of the script but argv[1] seems to be empty. Seems like arguments are not delivered to lua script from dialplan. > > I have also found the description if FS manual where such usage of dialplan is described but as I described above it doesn't work for me. > > Location in manual is > https://freeswitch.org/confluence/display/FREESWITCH/mod_lua > chapter "Sample Dialplan" > > Is there any special trick to deliver arguments into the script from Dialplan? > > Regards > Petr B. > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From gmaruzz at gmail.com Tue May 22 17:55:57 2018 From: gmaruzz at gmail.com (Giovanni Maruzzelli) Date: Tue, 22 May 2018 19:55:57 +0200 Subject: [Freeswitch-users] DUAL NIC In-Reply-To: References: Message-ID: Youmust assign the address explicitly (eg, the number) in your sip profile. Or, you can edit vars.xml to change which ethernet card use to get the address that is the assigned On Tue, May 22, 2018, 19:24 Markus Hammerer wrote: > Helo > > > > I have a Server with two nics > > And the freeswitch works with the wrong nic > > How can i configure this with the other NIC? > > Where i can do this? > > Thanks > > > > Markus > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From BJordan at E-Teleco.com Tue May 22 21:01:15 2018 From: BJordan at E-Teleco.com (Branden Jordan) Date: Tue, 22 May 2018 21:01:15 +0000 Subject: [Freeswitch-users] Adding SIP Headers in Javascript In-Reply-To: References: Message-ID: I don’t see any reason why that wouldn’t work but maybe there is something weird going on with the javascript session object where it isn’t getting/setting the exported variables from the session when you are doing the bridge? Have you tried making a new session object and setting your variables for that session object instead of doing a session.execute? I found something like this on the Wiki that you might be able to do, small example below. var anotherSession = new Session(session, '{ignore_early_media=true}user/1003@' + $pbx_domain); anotherSession.execute(‘set’,diversionHeader); bridge(session, anotherSession); anotherSession.hangup(); Like I said earlier I am a bit rusty on the Javascript side, (no idea if bridge blocks or if you have to do a loop) but I know that would work on the LUA side which is where I am more familiar. I know Javascript examples are a little light on the wiki but you might be able to get the gist of what is going on in the LUA side and then mimic that in Javascript. https://freeswitch.org/confluence/display/FREESWITCH/Lua+example+Bridging+two+calls+with+retry Thanks, Branden Jordan From: FreeSWITCH-users On Behalf Of Preston Hagar Sent: Monday, May 21, 2018 6:53 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Adding SIP Headers in Javascript Thanks for responding! Below is a bit more code to fill in the gaps. I'm passing the destination_number from the XML as a third argument. When I test out the code below, the console_log does in fact print out a "correct" Diversion header line. If I use the exact same Diversion header, set in my XML dialplan, it shows up in the SIP packet and the VOP software reads it. When I set it using session.execute in javascript, then no Diversion header, even an incorrect one, gets added to the SIP packet. I don't think it is in the variable substitution or anything like that. I've also tried not passing a variable to session.execute and just putting the string in the command, as well as just hard coding a test number. In all cases, no Diversion header ever shows up. Either I'm not setting it right for javascript or there is something different about setting it in Javascript vs XML that I haven't figured out. Here is more expanded code: var $extension = argv[0]; var $pbx_domain = argv[1]; var $destination_number = argv[2]; var diversionHeader = 'sip_h_Diversion=>;privacy=off;reason=unconditional;counter=1;screen=no'; session.execute('set',diversionHeader); session.execute('export','sip_h_Diversion'); onsole_log("notice","Trying receptionist"); console_log("notice",session.state); console_log("notice",diversionHeader); session.execute('set', 'call_timeout=15'); var logic = '{ignore_early_media=true}user/1003@' + $pbx_domain; session.execute('bridge', logic); console_log("notice","Trying Kim"); console_log("notice",session.state); session.execute('set', 'call_timeout=10'); session.execute('bridge', 'user/2741@' + $pbx_domain); // No one answered, send to IVR console_log("notice","No one is answering"); console_log("notice",session.state); if (session.state == "CS_EXECUTE") { console_log("notice","Trying IVR"); session.execute('transfer', 'ivr'); } On Mon, May 21, 2018 at 6:57 PM, Branden Jordan > wrote: Not sure if you still need help with this but could you post some more of your javascript code? Something about this line is off to me but maybe it makes sense in the grander scheme of things. var diversionHeader = 'sip_h_Diversion=>;privacy=off;reason=unconditional;counter=1;screen=no'; I have not used javascript with freeswitch in a little while, so I might be totally wrong but did you declare $destination_number? Because its possible its undefined if you didn’t declare that specifically equal to the value you passed in via args and thus javascript does you a solid and makes the whole string undefined which sets the sip_h_Diversion to null which is why it isn’t exporting. Maybe try argv[3] or argv[2] (console them out I am not sure which one it’ll be) instead of $destination_number in your concatenation? If that isn’t it and you are still having an issue we can try some other stuff. Thanks, Branden Jordan From: FreeSWITCH-users > On Behalf Of Preston Hagar Sent: Friday, May 18, 2018 8:55 AM To: FreeSWITCH Users Help > Subject: [Freeswitch-users] Adding SIP Headers in Javascript Quick Version: Is there some special way to set custom SIP headers when you are bridging a call from Javascript instead of XML? Full Details: We am using Voice Operator Panel (VOP) as a receptionist console. We have multiple external numbers that all funnel into a few receptionist desks. If I add a SIP Diversion header, then VOP will use that to show the receptionist which number the caller dialed to reach them, which would help things out a lot. If I add it in an XML dialplan and then do a direct bridge to one of the receptionist numbers, it works great (snip of working direct dialplan): The problem is I need a bit of advanced logic to figure out which receptionist are online and then ring those, then fail over to other numbers and ultimately IVR if no one answers, so I instead pass calls to them off to javascript, so the bridge line above becomes something link: I've tried setting the SIP header in the XML above the javascript line and then exporting it and setting it in the Javascript: var diversionHeader = 'sip_h_Diversion=>;privacy=off;reason=unconditional;counter=1;screen=no'; session.execute('set',diversionHeader); session.execute('export','sip_h_Diversion'); but in both cases (or with both in place), the SIP header is never written. Is there some magic to setting SIP headers in Javascript? I can't seem to find any examples or documentation about it. Thanks! _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From Markus.Hammerer at infotech.at Wed May 23 05:15:32 2018 From: Markus.Hammerer at infotech.at (Markus Hammerer) Date: Wed, 23 May 2018 05:15:32 +0000 Subject: [Freeswitch-users] DUAL NIC In-Reply-To: References: Message-ID: Hi, thanks for your answer, Does i do this in the file: internal.xml ? In the line: To change the param from auto-nat to the ip adress? Thanks Markus Von: FreeSWITCH-users Im Auftrag von Giovanni Maruzzelli Gesendet: Dienstag, 22. Mai 2018 19:56 An: FreeSWITCH Users Help Betreff: Re: [Freeswitch-users] DUAL NIC Youmust assign the address explicitly (eg, the number) in your sip profile. Or, you can edit vars.xml to change which ethernet card use to get the address that is the assigned On Tue, May 22, 2018, 19:24 Markus Hammerer > wrote: Helo I have a Server with two nics And the freeswitch works with the wrong nic How can i configure this with the other NIC? Where i can do this? Thanks Markus _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5541 bytes Desc: not available URL: From hggh96.hg at gmail.com Wed May 23 07:59:04 2018 From: hggh96.hg at gmail.com (Hossein Gholizadeh) Date: Wed, 23 May 2018 12:29:04 +0430 Subject: [Freeswitch-users] mangedESL project Message-ID: Hi ... i want to use managed ESL in C# and downloaded the sample project of freeswitch ... in libs\esl\managed i opened the managedESL project ... but here in ESLPINVOKE.cs we have added dll ESL by DllImport ... when i want to compile the project these ESL dlls have error because it cannot find the ESL dll ... is the issue about ESL project which is written by C++ or anything else? if it is i want to add ESL... but after adding it i cannot add esl project a reference ... -------------- next part -------------- An HTML attachment was scrubbed... URL: From steveayre at gmail.com Wed May 23 08:02:40 2018 From: steveayre at gmail.com (Steven Ayre) Date: Wed, 23 May 2018 09:02:40 +0100 Subject: [Freeswitch-users] DUAL NIC In-Reply-To: References: Message-ID: You need to set sip-ip and rtp-ip to tell it which interface to bind to. Since they have to be set to a single IP you'll need at least one sofia profile for each interface IP you want to listen on. Sometimes you'll also need to set ext-sip-ip and ext-rtp-ip which control what IPs are sent in the SIP headers and SDP, often as part of handling NAT. On 23 May 2018 at 06:15, Markus Hammerer wrote: > Hi, thanks for your answer, > > > > Does i do this in the file: internal.xml ? > > In the line: > > > > > > To change the param from auto-nat to the ip adress? > > > > Thanks > > Markus > > > > *Von:* FreeSWITCH-users *Im > Auftrag von *Giovanni Maruzzelli > *Gesendet:* Dienstag, 22. Mai 2018 19:56 > *An:* FreeSWITCH Users Help > *Betreff:* Re: [Freeswitch-users] DUAL NIC > > > > Youmust assign the address explicitly (eg, the number) in your sip profile. > > > > Or, you can edit vars.xml to change which ethernet card use to get the > address that is the assigned > > > > On Tue, May 22, 2018, 19:24 Markus Hammerer > wrote: > > Helo > > > > I have a Server with two nics > > And the freeswitch works with the wrong nic > > How can i configure this with the other NIC? > > Where i can do this? > > Thanks > > > > Markus > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From both at antek.it Wed May 23 08:06:50 2018 From: both at antek.it (Petr Both) Date: Wed, 23 May 2018 10:06:50 +0200 Subject: [Freeswitch-users] Lua script with arguments called from Dialplan In-Reply-To: <22E8CB9E-8495-409C-BD12-BD5D56C8D807@mgtech.com> References: <00e001d3f1d4$5048deb0$f0da9c10$@novatec.de> <6d5567ee-c22b-cf20-4d21-6668d5fda8b8@antek.it> <22E8CB9E-8495-409C-BD12-BD5D56C8D807@mgtech.com> Message-ID: Hi, Thank you very much for confirmation. This morning I made again the tests with and then also with and using the same script like yesterday it works fine now. Probably I had the FS in some inconsistent state, destroyed by non-sense modifications in DIALPLAN xml configuration. So using now in lua script the code freeswitch.consoleLog("INFO", "INCOMING START CALL * to FreeSWITCH, arguments from DIALPLAN " ..argv[1].." "..#argv) it works fine. Btw. I have found also another way how to get the destination number in Lua script which is local CgNumb = tonumber(session:getVariable("destination_number")) which is probably the equivalent of the same variable delivered from DIALPLAN. So thank you very much again. Regards Petr B. Dne 22.05.2018 v 18:37 Mario napsal(a): > I agree it should work, I call Lua in incoming and outgoing dial plans > using the literal CALLIN and others and it works fine. >   >>       > expression="^(3[0-9][0-9][0-9])$"> >>        >>       >>     >> >> I.e. the TxCall.lua is called with argument 3000 and should be >> available in lua script intself in argv[1] member of the argv >> field. However trying to use argv[1] the lua reports nil in this >> member of this field. argv[0] contains correctly name of the >> script but argv[1] seems to be empty. Seems like arguments are >> not delivered to lua script from dialplan. >> >> I have also found the description if FS manual where such usage >> of dialplan is described but as I described above it doesn't work >> for me. >> >> Location in manual is >> https://freeswitch.org/confluence/display/FREESWITCH/mod_lua >> >> chapter "Sample Dialplan" >> >> Is there any special trick to deliver arguments into the script >> from Dialplan? >> >> Regards >> Petr B. >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From Markus.Hammerer at infotech.at Wed May 23 09:20:26 2018 From: Markus.Hammerer at infotech.at (Markus Hammerer) Date: Wed, 23 May 2018 09:20:26 +0000 Subject: [Freeswitch-users] DUAL NIC In-Reply-To: References: Message-ID: Hi Steven, Thank you The service is now running under [root at VOFAX02 sip_profiles]# netstat -nlp | fgrep 5060 tcp 0 0 10.230.11.189:5060 0.0.0.0:* LISTEN 20387/freeswitch udp 0 0 10.230.11.189:5060 0.0.0.0:* 20387/freeswitch now i have the issue that it sends no register i have edited under sip_profiles/external/infotech.xml here are the username and Password from the ISP inlcuded but how can i tell this freeswitch? Thanks Markus Von: FreeSWITCH-users Im Auftrag von Steven Ayre Gesendet: Mittwoch, 23. Mai 2018 10:03 An: FreeSWITCH Users Help Betreff: Re: [Freeswitch-users] DUAL NIC You need to set sip-ip and rtp-ip to tell it which interface to bind to. Since they have to be set to a single IP you'll need at least one sofia profile for each interface IP you want to listen on. Sometimes you'll also need to set ext-sip-ip and ext-rtp-ip which control what IPs are sent in the SIP headers and SDP, often as part of handling NAT. On 23 May 2018 at 06:15, Markus Hammerer > wrote: Hi, thanks for your answer, Does i do this in the file: internal.xml ? In the line: To change the param from auto-nat to the ip adress? Thanks Markus Von: FreeSWITCH-users > Im Auftrag von Giovanni Maruzzelli Gesendet: Dienstag, 22. Mai 2018 19:56 An: FreeSWITCH Users Help > Betreff: Re: [Freeswitch-users] DUAL NIC Youmust assign the address explicitly (eg, the number) in your sip profile. Or, you can edit vars.xml to change which ethernet card use to get the address that is the assigned On Tue, May 22, 2018, 19:24 Markus Hammerer > wrote: Helo I have a Server with two nics And the freeswitch works with the wrong nic How can i configure this with the other NIC? Where i can do this? Thanks Markus _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5541 bytes Desc: not available URL: From gb at cm.nl Wed May 23 09:47:08 2018 From: gb at cm.nl (Grant Bagdasarian) Date: Wed, 23 May 2018 09:47:08 +0000 Subject: [Freeswitch-users] mangedESL project In-Reply-To: References: Message-ID: <2ca5d2db067c48e4983f90eca9698cbd@cm.nl> Hi Hossein, You may want to take a look at another open-source project written in C# which makes use of the internals of ESL but with its own implementation and no C++ wrappers. https://github.com/danbarua/NEventSocket Regards, Grant Bagdasarian Senior Developer +31765727054 cm.com [cid:image002.png at 01D3F28B.C774C190] From: FreeSWITCH-users On Behalf Of Hossein Gholizadeh Sent: woensdag 23 mei 2018 09:59 To: FreeSWITCH Users Help Subject: [Freeswitch-users] mangedESL project Hi ... i want to use managed ESL in C# and downloaded the sample project of freeswitch ... in libs\esl\managed i opened the managedESL project ... but here in ESLPINVOKE.cs we have added dll ESL by DllImport ... when i want to compile the project these ESL dlls have error because it cannot find the ESL dll ... is the issue about ESL project which is written by C++ or anything else? if it is i want to add ESL... but after adding it i cannot add esl project a reference ... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 4981 bytes Desc: image002.png URL: From tculjaga at gmail.com Wed May 23 10:28:13 2018 From: tculjaga at gmail.com (Tihomir Culjaga) Date: Wed, 23 May 2018 12:28:13 +0200 Subject: [Freeswitch-users] DUAL NIC In-Reply-To: References: Message-ID: if you want FS to register to a provider you need to create a gateway. On how to create a gateway read this: https://freeswitch.org/confluence/display/FREESWITCH/Gateways+Configuration if you want to dial/bridge via specific gateways from dialplan you use < action application="bridge" data="sofia/gateway/LocalTelco/$1"/> On how to setup your dialplan read this: https://freeswitch.org/confluence/display/FREESWITCH/XML+Dialplan On 23 May 2018 at 11:20, Markus Hammerer wrote: > Hi Steven, > > > > Thank you > > The service is now running under > > [root at VOFAX02 sip_profiles]# netstat -nlp | fgrep 5060 > > tcp 0 0 10.230.11.189:5060 0.0.0.0:* > LISTEN 20387/freeswitch > > udp 0 0 10.230.11.189:5060 0.0.0.0:* > 20387/freeswitch > > > > now i have the issue that it sends no register > > i have edited under sip_profiles/external/infotech.xml > > here are the username and Password from the ISP inlcuded > > but how can i tell this freeswitch? > > > > Thanks > > > > Markus > > > > *Von:* FreeSWITCH-users *Im > Auftrag von *Steven Ayre > *Gesendet:* Mittwoch, 23. Mai 2018 10:03 > > *An:* FreeSWITCH Users Help > *Betreff:* Re: [Freeswitch-users] DUAL NIC > > > > You need to set sip-ip and rtp-ip to tell it which interface to bind to. > Since they have to be set to a single IP you'll need at least one sofia > profile for each interface IP you want to listen on. > > > > Sometimes you'll also need to set ext-sip-ip and ext-rtp-ip which control > what IPs are sent in the SIP headers and SDP, often as part of handling NAT. > > > > > > > > On 23 May 2018 at 06:15, Markus Hammerer > wrote: > > Hi, thanks for your answer, > > > > Does i do this in the file: internal.xml ? > > In the line: > > > > > > To change the param from auto-nat to the ip adress? > > > > Thanks > > Markus > > > > *Von:* FreeSWITCH-users *Im > Auftrag von *Giovanni Maruzzelli > *Gesendet:* Dienstag, 22. Mai 2018 19:56 > *An:* FreeSWITCH Users Help > *Betreff:* Re: [Freeswitch-users] DUAL NIC > > > > Youmust assign the address explicitly (eg, the number) in your sip profile. > > > > Or, you can edit vars.xml to change which ethernet card use to get the > address that is the assigned > > > > On Tue, May 22, 2018, 19:24 Markus Hammerer > wrote: > > Helo > > > > I have a Server with two nics > > And the freeswitch works with the wrong nic > > How can i configure this with the other NIC? > > Where i can do this? > > Thanks > > > > Markus > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tculjaga at gmail.com Wed May 23 10:48:49 2018 From: tculjaga at gmail.com (Tihomir Culjaga) Date: Wed, 23 May 2018 12:48:49 +0200 Subject: [Freeswitch-users] How to remove recorded files with silence In-Reply-To: <8D149752-3B0B-453D-B844-351C583D03A5@jerris.com> References: <8D149752-3B0B-453D-B844-351C583D03A5@jerris.com> Message-ID: you need to define what silence is. from my point of view, doesn't have sense to start recording if a channel is not bridged ( conversation established ). Only when A and B legs are bridged and answered, recording should start. also, you can remove generated recordings for A and B leg if both were not bridged and/or answered. its all based on your business logic and where you expect the conversation to be. in my contact center, i start recording when the Agent leg answers the call and have no silence in recorded files on Agent Answer: "api uuid_setvar 1318cbc3-ad28-498d-998f-10157ae449f2 bridge_pre_execute_aleg_app record_session" "api uuid_setvar 1318cbc3-ad28-498d-998f-10157ae449f2 bridge_pre_execute_aleg_arg /nfs/nexios/recordings/5/queue_recordings/2018-03-12.19.42.22-385916331550.wav" "api uuid_setvar 1318cbc3-ad28-498d-998f-10157ae449f2 bridge_pre_execute_aleg_data /nfs/nexios/recordings/5/queue_recordings/2018-03-12.19.42.22-385916331550.wav" "bgapi uuid_bridge 1318cbc3-ad28-498d-998f-10157ae449f2 32dfe8e2-6eda-4bd6-8f73-fd8d6ac531c1" On 21 May 2018 at 22:15, Michael Jerris wrote: > I think it would be a cool feature to add in to the api, and we can do it > much cheaper compute wise as we go as we are already doing the silence > calculations anyways, it just doesn’t exist today. Patches welcome. > > > On May 21, 2018, at 12:39 PM, Stanislav Sinyagin > wrote: > > I would do this outside of freeswitch with nice priority. I guess "sox" > should be able to do the job. This will preserve CPU cycles for important > real-time work. > > > > > On Fri, May 18, 2018, 16:58 Michael Jerris wrote: > >> That exact feature is not there, but you might be able to do some math of >> length against silence hits to figure out if its all silence or not. Take >> a look at how silence_hits are figured out in switch_ivr_record_file to >> understand the math you have to do to length. >> >> Mike >> >> > On May 17, 2018, at 2:59 AM, Eugene Prokopiev wrote: >> > >> > Hi, >> > >> > Is it possible to automatically remove recorded files which contains >> > nothing except silence? Can mod_dptools:record do this just after >> > recoding attempt? >> > >> >> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aqsyounas at gmail.com Wed May 23 13:04:53 2018 From: aqsyounas at gmail.com (Aqs Younas) Date: Wed, 23 May 2018 06:04:53 -0700 Subject: [Freeswitch-users] Freeswitch TLS gateway failure with 503 Message-ID: Greetings list, I am trying to make a TLS gateway working with my freeswitch. But it fails with Service Unavailable [503]. Though I am perfectly able to make TLS calls between phones. Only gateway is not working. I am populating gateway configuration using lua. Below is my profile and gateway configuration.
Here is my 'sofia status' output. freeswitch at pbx.primaryline.com.au> sofia status Name Type Data State ================================================================================================= external-ipv6 profile sip:mod_sofia@[::1]:5080 RUNNING (0) external-ipv6 profile sip:mod_sofia@[::1]:5081 RUNNING (0) (TLS) external profile sip:mod_sofia at 124.40.187.231:5080 RUNNING (0) external profile sip:mod_sofia at 124.40.187.231:5081 RUNNING (0) (TLS) external::ab345b4c-b961-4d3a-97a9-f227b52a7240 gateway sip:admin at pbx.primax.com.au@203.134.5.10 FAIL_WAIT internal-ipv6 profile sip:mod_sofia@[::1]:5060 RUNNING (0) internal-ipv6 profile sip:mod_sofia@[::1]:5061 RUNNING (0) (TLS) internal profile sip:mod_sofia at 124.40.187.231:5060 RUNNING (0) internal profile sip:mod_sofia at 124.40.187.231:5061 RUNNING (0) (TLS) ================================================================================================= I am really stuck here, google search is leading me nowhere. Any pointer/suggestion is much appreciated. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Wed May 23 15:12:16 2018 From: mike at jerris.com (Michael Jerris) Date: Wed, 23 May 2018 11:12:16 -0400 Subject: [Freeswitch-users] FreeSWITCH offering SRTP on Re-INVITE In-Reply-To: References: <072D43CE-1B92-41DE-B3B3-070FE01305F3@jerris.com> Message-ID: <1A1D74AB-AD7E-4308-9E7E-0FA868FB9BAA@jerris.com> After review with the zoiper team, it looks like this re-invite is trying to force srtp, while using UDP, something which is generally bad security practice, and because of this, something that zoiper does not support. If you wish to create an SRTP call with zoiper you should do so at the start of the call, and using TLS for signaling for security. > On May 19, 2018, at 3:12 AM, Andrew Cassidy wrote: > > Thanks Michael, > > They're basically being all high and mighty about it. I've suggested that handling the call should be consistent, they either don't reject the reinvite, or they reject the initial invite but have told me this issue is "by design". > > We have workarounds as previously mentioned so it's not the end of the world. I might have to reconsider whether I continue to use them in the long term. > > Kind regards, > > On Fri, 18 May 2018, 16:19 Michael Jerris, > wrote: > After review of the sip trace, I’d report that one to the zoiper guys. There is no reason they should reject the call in that case. > > > On May 17, 2018, at 4:48 PM, Andrew Cassidy > wrote: > > > > Good afternoon All, > > > > I have experienced the following issue with Zoiper specifically (I have a support ticket open with them currently) and was wondering if it's something that could/should be fixed FreeSWITCH side. > > > > If rtp_secure_media is set to optional, and SRTP is disabled on Zoiper, when FreeSWITCH sends the Re-INVITE, it sends crypto lines. Zoiper then replies with a 514 Unsupported Media Type and the timer refresh fails, causing Zoiper to hang up the call. > > > > My current feeling is that as Zoiper ignored the crypto on the initial INVITE it should be them that then handles the Re-INVITE consistently by also ignoring the crypto lines but I'm not familiar enough with the RFCs to make a judgement. > > > > The workaround is to either enable SRTP in Zoiper or don't set rtp_secure_media to optional when Zoiper is in use. > > > > Kind regards, > > > = -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Wed May 23 15:26:02 2018 From: mike at jerris.com (Michael Jerris) Date: Wed, 23 May 2018 11:26:02 -0400 Subject: [Freeswitch-users] Adding SIP Headers in Javascript In-Reply-To: References: Message-ID: <7007C28D-6DED-4A40-8A4A-D3D58A6CE2C9@jerris.com> I’d avoid using the bridge function like this, but worthwhile to set the variable using the direct method instead of session execute for set application. > On May 22, 2018, at 5:01 PM, Branden Jordan wrote: > > I don’t see any reason why that wouldn’t work but maybe there is something weird going on with the javascript session object where it isn’t getting/setting the exported variables from the session when you are doing the bridge? Have you tried making a new session object and setting your variables for that session object instead of doing a session.execute? I found something like this on the Wiki that you might be able to do, small example below. > > var anotherSession = new Session(session, '{ignore_early_media=true}user/1003@' + $pbx_domain); > anotherSession.execute(‘set’,diversionHeader); > bridge(session, anotherSession); > anotherSession.hangup(); > > Like I said earlier I am a bit rusty on the Javascript side, (no idea if bridge blocks or if you have to do a loop) but I know that would work on the LUA side which is where I am more familiar. I know Javascript examples are a little light on the wiki but you might be able to get the gist of what is going on in the LUA side and then mimic that in Javascript. https://freeswitch.org/confluence/display/FREESWITCH/Lua+example+Bridging+two+calls+with+retry > > Thanks, > > Branden Jordan > > From: FreeSWITCH-users On Behalf Of Preston Hagar > Sent: Monday, May 21, 2018 6:53 PM > To: FreeSWITCH Users Help > Subject: Re: [Freeswitch-users] Adding SIP Headers in Javascript > > Thanks for responding! > > Below is a bit more code to fill in the gaps. I'm passing the destination_number from the XML as a third argument. When I test out the code below, the console_log does in fact print out a "correct" Diversion header line. If I use the exact same Diversion header, set in my XML dialplan, it shows up in the SIP packet and the VOP software reads it. When I set it using session.execute in javascript, then no Diversion header, even an incorrect one, gets added to the SIP packet. > > I don't think it is in the variable substitution or anything like that. I've also tried not passing a variable to session.execute and just putting the string in the command, as well as just hard coding a test number. In all cases, no Diversion header ever shows up. Either I'm not setting it right for javascript or there is something different about setting it in Javascript vs XML that I haven't figured out. > > Here is more expanded code: > > > var $extension = argv[0]; > var $pbx_domain = argv[1]; > var $destination_number = argv[2]; > > var diversionHeader = 'sip_h_Diversion=>;privacy=off;reason=unconditional;counter=1;screen=no'; > > session.execute('set',diversionHeader); > session.execute('export','sip_h_Diversion'); > > onsole_log("notice","Trying receptionist"); > console_log("notice",session.state); > console_log("notice",diversionHeader); > session.execute('set', 'call_timeout=15'); > > var logic = '{ignore_early_media=true}user/1003@' + $pbx_domain; > session.execute('bridge', logic); > > console_log("notice","Trying Kim"); > console_log("notice",session.state); > session.execute('set', 'call_timeout=10'); > session.execute('bridge', 'user/2741@' + $pbx_domain); > > // No one answered, send to IVR > > console_log("notice","No one is answering"); > console_log("notice",session.state); > if (session.state == "CS_EXECUTE") > { > console_log("notice","Trying IVR"); > session.execute('transfer', 'ivr'); > } > > > > On Mon, May 21, 2018 at 6:57 PM, Branden Jordan > wrote: > Not sure if you still need help with this but could you post some more of your javascript code? Something about this line is off to me but maybe it makes sense in the grander scheme of things. > var diversionHeader = 'sip_h_Diversion=>;privacy=off;reason=unconditional;counter=1;screen=no'; > > I have not used javascript with freeswitch in a little while, so I might be totally wrong but did you declare $destination_number? Because its possible its undefined if you didn’t declare that specifically equal to the value you passed in via args and thus javascript does you a solid and makes the whole string undefined which sets the sip_h_Diversion to null which is why it isn’t exporting. Maybe try argv[3] or argv[2] (console them out I am not sure which one it’ll be) instead of $destination_number in your concatenation? > > If that isn’t it and you are still having an issue we can try some other stuff. > > Thanks, > Branden Jordan > > > From: FreeSWITCH-users > On Behalf Of Preston Hagar > Sent: Friday, May 18, 2018 8:55 AM > To: FreeSWITCH Users Help > > Subject: [Freeswitch-users] Adding SIP Headers in Javascript > > Quick Version: Is there some special way to set custom SIP headers when you are bridging a call from Javascript instead of XML? > > Full Details: > We am using Voice Operator Panel (VOP) as a receptionist console. We have multiple external numbers that all funnel into a few receptionist desks. If I add a SIP Diversion header, then VOP will use that to show the receptionist which number the caller dialed to reach them, which would help things out a lot. > > If I add it in an XML dialplan and then do a direct bridge to one of the receptionist numbers, it works great (snip of working direct dialplan): > > > > > The problem is I need a bit of advanced logic to figure out which receptionist are online and then ring those, then fail over to other numbers and ultimately IVR if no one answers, so I instead pass calls to them off to javascript, so the bridge line above becomes something link: > > > > I've tried setting the SIP header in the XML above the javascript line and then exporting it > > > > and setting it in the Javascript: > > var diversionHeader = 'sip_h_Diversion=>;privacy=off;reason=unconditional;counter=1;screen=no'; > > session.execute('set',diversionHeader); > session.execute('export','sip_h_Diversion'); > > but in both cases (or with both in place), the SIP header is never written. > > Is there some magic to setting SIP headers in Javascript? I can't seem to find any examples or documentation about it. > > Thanks! > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidswalkabout at gmail.com Tue May 22 22:16:09 2018 From: davidswalkabout at gmail.com (David P) Date: Tue, 22 May 2018 15:16:09 -0700 Subject: [Freeswitch-users] Closing a conference from verto Message-ID: I have a collection of extensions set up as conferences, each of which have one channel from verto and one to an Asterisk server. I would like each conference to close shortly after the verto user hangs up. I've been following this as a guide: https://freeswitch.org/confluence/display/FREESWITCH/mod_conference I believe my version of FS is recent. I tried to make it work by setting each extension in my dialplan to have entries like this: In particular, I added "+flags{endconf}" to the verto channel, and only the verto channel, so that its hangup would be treated as a trigger to close the conference. Also, in the "myconference" profile, I try to make the closing of the conference happen 5 seconds after the verto user hangs up: But when I make test calls, there's no evidence that the conference ends even a minute after my hangup. In particular, the Asterisk channel remains active (when I check "core show channels" in its commandline interface). I can't make another call to any of my extensions, unless I kill the conference via Asterisk. Is there anything else I need to configure in FreeSwitch? Cheers, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidswalkabout at gmail.com Wed May 23 04:50:34 2018 From: davidswalkabout at gmail.com (David P) Date: Tue, 22 May 2018 21:50:34 -0700 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls Message-ID: We use conferences to allow a verto user to call and connect with an Asterisk channel. We would like to secure both signalling and media via TLS + SRTP, and I've read https://freeswitch.org/confluence/display/FREESWITCH/SIP+TLS a few times to understand how to do this. Note that that page has a broken link: https://wiki.freeswitch.org/wiki/Secure_RTP First, is it still true that FS doesn't offer prebuilt installs (for Ubuntu) to support this kind of security? Assuming that it must be compiled, I began to follow https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie with the additional first step of: apt-get install libssl-dev I soon ran into "Unable to locate package freeswitch-video-deps-most". What should I try next? Cheers, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From umair at tezrosolutions.com Wed May 23 16:29:27 2018 From: umair at tezrosolutions.com (Muhammad Umair) Date: Wed, 23 May 2018 12:29:27 -0400 Subject: [Freeswitch-users] Problem when switching user between different canvases Message-ID: <5281AB2A-3E75-409E-89B4-D209B7835A07@tezrosolutions.com> Hi Everyone I have set up FreeSWITCH as a video conference bridge so users can connect with Verto. It’s working great, but when I switch a user to a different canvas, using vid-canvas, the first few frames are very “blocky”. Is there a setting that would prevent this from happening, or reduce the effect on the video stream when moving a user from one canvas to another? We have plenty of CPU, so it’s not that. Any tips would be appreciated. Thanks, Umair From prestonh at gmail.com Wed May 23 17:46:09 2018 From: prestonh at gmail.com (Preston Hagar) Date: Wed, 23 May 2018 12:46:09 -0500 Subject: [Freeswitch-users] Adding SIP Headers in Javascript In-Reply-To: <7007C28D-6DED-4A40-8A4A-D3D58A6CE2C9@jerris.com> References: <7007C28D-6DED-4A40-8A4A-D3D58A6CE2C9@jerris.com> Message-ID: I figured out my issue. I had left out part of my code in previous emails to try to make it simpler, and left out the part that was messing things up. So after I set the sip Diversion header: var diversionHeader = 'sip_h_Diversion=;privacy=off;reason=unconditional;counter=1;screen=no'; session.execute('set',diversionHeader); I would set a timeout: session.execute('set', 'call_timeout=45'); Then I would ring all three receptionist stations at once with a bridge command: var logic = '{ignore_early_media=true}user/1000@' + $pbx_domain + ':_:user/1001@' + $pbx_domain + ':_:user/1002@' + $pbx_domain; session.execute('bridge', logic); The problem ended up stemming from me ringing all three at once using the :_: to join the extensions. I switched it over to commas: var logic = '{ignore_early_media=true}user/1000@' + $pbx_domain + ',user/1001@' + $pbx_domain + ',user/1002@' + $pbx_domain; session.execute('bridge', logic); and now the Diversion header shows up as expected. We shouldn't have multiple registrations for any of those numbers, so it shouldn't be an issue. Thanks everyone for taking a look. Out of curiosity, what is the "direct method" for setting the SIP header (instead of using session.execute)? I can't seem to find anything in the documentation. Thanks again, On Wed, May 23, 2018 at 10:26 AM, Michael Jerris wrote: > I’d avoid using the bridge function like this, but worthwhile to set the > variable using the direct method instead of session execute for set > application. > > > On May 22, 2018, at 5:01 PM, Branden Jordan wrote: > > I don’t see any reason why that wouldn’t work but maybe there is something > weird going on with the javascript session object where it isn’t > getting/setting the exported variables from the session when you are doing > the bridge? Have you tried making a new session object and setting your > variables for that session object instead of doing a session.execute? I > found something like this on the Wiki that you might be able to do, small > example below. > > var anotherSession = new Session(session, '{ignore_ > early_media=true}user/1003@' + $pbx_domain); > anotherSession.execute(‘set’,diversionHeader); > bridge(session, anotherSession); > anotherSession.hangup(); > > Like I said earlier I am a bit rusty on the Javascript side, (no idea if > bridge blocks or if you have to do a loop) but I know that would work on > the LUA side which is where I am more familiar. I know Javascript examples > are a little light on the wiki but you might be able to get the gist of > what is going on in the LUA side and then mimic that in Javascript. > https://freeswitch.org/confluence/display/FREESWITCH/Lua+ > example+Bridging+two+calls+with+retry > > Thanks, > > Branden Jordan > > *From:* FreeSWITCH-users *On > Behalf Of *Preston Hagar > *Sent:* Monday, May 21, 2018 6:53 PM > *To:* FreeSWITCH Users Help > *Subject:* Re: [Freeswitch-users] Adding SIP Headers in Javascript > > Thanks for responding! > > Below is a bit more code to fill in the gaps. I'm passing the > destination_number from the XML as a third argument. When I test out the > code below, the console_log does in fact print out a "correct" Diversion > header line. If I use the exact same Diversion header, set in my XML > dialplan, it shows up in the SIP packet and the VOP software reads it. > When I set it using session.execute in javascript, then no Diversion > header, even an incorrect one, gets added to the SIP packet. > > I don't think it is in the variable substitution or anything like that. > I've also tried not passing a variable to session.execute and just putting > the string in the command, as well as just hard coding a test number. In > all cases, no Diversion header ever shows up. Either I'm not setting it > right for javascript or there is something different about setting it in > Javascript vs XML that I haven't figured out. > > Here is more expanded code: > > > var $extension = argv[0]; > var $pbx_domain = argv[1]; > var $destination_number = argv[2]; > > var diversionHeader = 'sip_h_Diversion= pbx.example.org>;privacy=off;reason=unconditional;counter=1;screen=no'; > > session.execute('set',diversionHeader); > session.execute('export','sip_h_Diversion'); > > onsole_log("notice","Trying receptionist"); > console_log("notice",session.state); > console_log("notice",diversionHeader); > session.execute('set', 'call_timeout=15'); > > var logic = '{ignore_early_media=true}user/1003@' + $pbx_domain; > session.execute('bridge', logic); > > console_log("notice","Trying Kim"); > console_log("notice",session.state); > session.execute('set', 'call_timeout=10'); > session.execute('bridge', 'user/2741@' + $pbx_domain); > > // No one answered, send to IVR > > console_log("notice","No one is answering"); > console_log("notice",session.state); > if (session.state == "CS_EXECUTE") > { > console_log("notice","Trying IVR"); > session.execute('transfer', 'ivr'); > } > > > > On Mon, May 21, 2018 at 6:57 PM, Branden Jordan > wrote: > > Not sure if you still need help with this but could you post some more of > your javascript code? Something about this line is off to me but maybe it > makes sense in the grander scheme of things. > var diversionHeader = 'sip_h_Diversion= '@pbx.example.org>;privacy=off;reason=unconditional;counter=1;screen=no'; > > I have not used javascript with freeswitch in a little while, so I might > be totally wrong but did you declare $destination_number? Because its > possible its undefined if you didn’t declare that specifically equal to the > value you passed in via args and thus javascript does you a solid and makes > the whole string undefined which sets the sip_h_Diversion to null which is > why it isn’t exporting. Maybe try argv[3] or argv[2] (console them out I am > not sure which one it’ll be) instead of $destination_number in your > concatenation? > > If that isn’t it and you are still having an issue we can try some other > stuff. > > Thanks, > Branden Jordan > > > *From:* FreeSWITCH-users *On > Behalf Of *Preston Hagar > *Sent:* Friday, May 18, 2018 8:55 AM > *To:* FreeSWITCH Users Help > *Subject:* [Freeswitch-users] Adding SIP Headers in Javascript > > Quick Version: Is there some special way to set custom SIP headers when > you are bridging a call from Javascript instead of XML? > > Full Details: > We am using Voice Operator Panel (VOP) as a receptionist console. We have > multiple external numbers that all funnel into a few receptionist desks. > If I add a SIP Diversion header, then VOP will use that to show the > receptionist which number the caller dialed to reach them, which would help > things out a lot. > > If I add it in an XML dialplan and then do a direct bridge to one of the > receptionist numbers, it works great (snip of working direct dialplan): > > > > > The problem is I need a bit of advanced logic to figure out which > receptionist are online and then ring those, then fail over to other > numbers and ultimately IVR if no one answers, so I instead pass calls to > them off to javascript, so the bridge line above becomes something link: > > > > I've tried setting the SIP header in the XML above the javascript line and > then exporting it > > > > > and setting it in the Javascript: > > var diversionHeader = 'sip_h_Diversion= '@pbx.example.org>;privacy=off;reason=unconditional;counter=1;screen=no'; > > session.execute('set',diversionHeader); > session.execute('export','sip_h_Diversion'); > > but in both cases (or with both in place), the SIP header is never written. > > Is there some magic to setting SIP headers in Javascript? I can't seem to > find any examples or documentation about it. > > Thanks! > > > > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Wed May 23 18:01:10 2018 From: mike at jerris.com (Michael Jerris) Date: Wed, 23 May 2018 14:01:10 -0400 Subject: [Freeswitch-users] Adding SIP Headers in Javascript In-Reply-To: References: <7007C28D-6DED-4A40-8A4A-D3D58A6CE2C9@jerris.com> Message-ID: <7C3ED38B-9032-43C9-B62D-D8FF111EFB50@jerris.com> session.setVariable(var, val); > On May 23, 2018, at 1:46 PM, Preston Hagar wrote: > > I figured out my issue. I had left out part of my code in previous emails to try to make it simpler, and left out the part that was messing things up. > > So after I set the sip Diversion header: > > var diversionHeader = 'sip_h_Diversion=>;privacy=off;reason=unconditional;counter=1;screen=no'; > > session.execute('set',diversionHeader); > > > I would set a timeout: > > session.execute('set', 'call_timeout=45'); > > > Then I would ring all three receptionist stations at once with a bridge command: > > > var logic = '{ignore_early_media=true}user/1000@' + $pbx_domain + ':_:user/1001@' > + $pbx_domain + ':_:user/1002@' + $pbx_domain; > session.execute('bridge', logic); > > > The problem ended up stemming from me ringing all three at once using the :_: to join the extensions. I switched it over to commas: > > var logic = '{ignore_early_media=true}user/1000@' + $pbx_domain + ',user/1001@' > + $pbx_domain + ',user/1002@' + $pbx_domain; > session.execute('bridge', logic); > > and now the Diversion header shows up as expected. We shouldn't have multiple registrations for any of those numbers, so it shouldn't be an issue. > > Thanks everyone for taking a look. > > > Out of curiosity, what is the "direct method" for setting the SIP header (instead of using session.execute)? I can't seem to find anything in the documentation. > > > Thanks again, > > > > > > > > > On Wed, May 23, 2018 at 10:26 AM, Michael Jerris > wrote: > I’d avoid using the bridge function like this, but worthwhile to set the variable using the direct method instead of session execute for set application. > > >> On May 22, 2018, at 5:01 PM, Branden Jordan > wrote: >> >> I don’t see any reason why that wouldn’t work but maybe there is something weird going on with the javascript session object where it isn’t getting/setting the exported variables from the session when you are doing the bridge? Have you tried making a new session object and setting your variables for that session object instead of doing a session.execute? I found something like this on the Wiki that you might be able to do, small example below. >> >> var anotherSession = new Session(session, '{ignore_early_media=true}user/1003@' + $pbx_domain); >> anotherSession.execute(‘set’,diversionHeader); >> bridge(session, anotherSession); >> anotherSession.hangup(); >> >> Like I said earlier I am a bit rusty on the Javascript side, (no idea if bridge blocks or if you have to do a loop) but I know that would work on the LUA side which is where I am more familiar. I know Javascript examples are a little light on the wiki but you might be able to get the gist of what is going on in the LUA side and then mimic that in Javascript. https://freeswitch.org/confluence/display/FREESWITCH/Lua+example+Bridging+two+calls+with+retry >> >> Thanks, >> >> Branden Jordan >> >> From: FreeSWITCH-users > On Behalf Of Preston Hagar >> Sent: Monday, May 21, 2018 6:53 PM >> To: FreeSWITCH Users Help > >> Subject: Re: [Freeswitch-users] Adding SIP Headers in Javascript >> >> Thanks for responding! >> >> Below is a bit more code to fill in the gaps. I'm passing the destination_number from the XML as a third argument. When I test out the code below, the console_log does in fact print out a "correct" Diversion header line. If I use the exact same Diversion header, set in my XML dialplan, it shows up in the SIP packet and the VOP software reads it. When I set it using session.execute in javascript, then no Diversion header, even an incorrect one, gets added to the SIP packet. >> >> I don't think it is in the variable substitution or anything like that. I've also tried not passing a variable to session.execute and just putting the string in the command, as well as just hard coding a test number. In all cases, no Diversion header ever shows up. Either I'm not setting it right for javascript or there is something different about setting it in Javascript vs XML that I haven't figured out. >> >> Here is more expanded code: >> >> >> var $extension = argv[0]; >> var $pbx_domain = argv[1]; >> var $destination_number = argv[2]; >> >> var diversionHeader = 'sip_h_Diversion= + $destination_number + '@pbx.example.org >;privacy=off;reason=unconditional;counter=1;screen=no'; >> >> session.execute('set',diversionHeader); >> session.execute('export','sip_h_Diversion'); >> >> onsole_log("notice","Trying receptionist"); >> console_log("notice",session.state); >> console_log("notice",diversionHeader); >> session.execute('set', 'call_timeout=15'); >> >> var logic = '{ignore_early_media=true}user/1003@' + $pbx_domain; >> session.execute('bridge', logic); >> >> console_log("notice","Trying Kim"); >> console_log("notice",session.state); >> session.execute('set', 'call_timeout=10'); >> session.execute('bridge', 'user/2741@' + $pbx_domain); >> >> // No one answered, send to IVR >> >> console_log("notice","No one is answering"); >> console_log("notice",session.state); >> if (session.state == "CS_EXECUTE") >> { >> console_log("notice","Trying IVR"); >> session.execute('transfer', 'ivr'); >> } >> >> >> >> On Mon, May 21, 2018 at 6:57 PM, Branden Jordan > wrote: >> Not sure if you still need help with this but could you post some more of your javascript code? Something about this line is off to me but maybe it makes sense in the grander scheme of things. >> var diversionHeader = 'sip_h_Diversion= + $destination_number + '@pbx.example.org >;privacy=off;reason=unconditional;counter=1;screen=no'; >> >> I have not used javascript with freeswitch in a little while, so I might be totally wrong but did you declare $destination_number? Because its possible its undefined if you didn’t declare that specifically equal to the value you passed in via args and thus javascript does you a solid and makes the whole string undefined which sets the sip_h_Diversion to null which is why it isn’t exporting. Maybe try argv[3] or argv[2] (console them out I am not sure which one it’ll be) instead of $destination_number in your concatenation? >> >> If that isn’t it and you are still having an issue we can try some other stuff. >> >> Thanks, >> Branden Jordan >> >> >> From: FreeSWITCH-users > On Behalf Of Preston Hagar >> Sent: Friday, May 18, 2018 8:55 AM >> To: FreeSWITCH Users Help > >> Subject: [Freeswitch-users] Adding SIP Headers in Javascript >> >> Quick Version: Is there some special way to set custom SIP headers when you are bridging a call from Javascript instead of XML? >> >> Full Details: >> We am using Voice Operator Panel (VOP) as a receptionist console. We have multiple external numbers that all funnel into a few receptionist desks. If I add a SIP Diversion header, then VOP will use that to show the receptionist which number the caller dialed to reach them, which would help things out a lot. >> >> If I add it in an XML dialplan and then do a direct bridge to one of the receptionist numbers, it works great (snip of working direct dialplan): >> >> >> >> >> The problem is I need a bit of advanced logic to figure out which receptionist are online and then ring those, then fail over to other numbers and ultimately IVR if no one answers, so I instead pass calls to them off to javascript, so the bridge line above becomes something link: >> >> >> >> I've tried setting the SIP header in the XML above the javascript line and then exporting it >> >> >> >> and setting it in the Javascript: >> >> var diversionHeader = 'sip_h_Diversion= + $destination_number + '@pbx.example.org >;privacy=off;reason=unconditional;counter=1;screen=no'; >> >> session.execute('set',diversionHeader); >> session.execute('export','sip_h_Diversion'); >> >> but in both cases (or with both in place), the SIP header is never written. >> >> Is there some magic to setting SIP headers in Javascript? I can't seem to find any examples or documentation about it. >> >> Thanks! >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From hggh96.hg at gmail.com Wed May 23 18:11:11 2018 From: hggh96.hg at gmail.com (Hossein Gholizadeh) Date: Wed, 23 May 2018 22:41:11 +0430 Subject: [Freeswitch-users] mangedESL project In-Reply-To: <2ca5d2db067c48e4983f90eca9698cbd@cm.nl> References: <2ca5d2db067c48e4983f90eca9698cbd@cm.nl> Message-ID: Hi my dear friend Thank you so much for your support. Kind regards On Wed, May 23, 2018, 14:53 Grant Bagdasarian wrote: > Hi Hossein, > > > > You may want to take a look at another open-source project written in C# > which makes use of the internals of ESL but with its own implementation and > no C++ wrappers. > > https://github.com/danbarua/NEventSocket > > > > Regards, > > > > Grant Bagdasarian > > Senior Developer > > +31765727054 > > cm.com > > > > *From:* FreeSWITCH-users *On > Behalf Of *Hossein Gholizadeh > *Sent:* woensdag 23 mei 2018 09:59 > *To:* FreeSWITCH Users Help > *Subject:* [Freeswitch-users] mangedESL project > > > > Hi ... i want to use managed ESL in C# and downloaded the sample project > of freeswitch ... in libs\esl\managed i opened the managedESL project ... > but here > > in ESLPINVOKE.cs we have added dll ESL by DllImport ... when i want to > compile the project these ESL dlls have error because it cannot find the > ESL dll ... is the issue about ESL project which is written by C++ or > anything else? if it is i want to add ESL... but after adding it i cannot > add esl project a reference ... > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 4981 bytes Desc: not available URL: From prestonh at gmail.com Wed May 23 18:28:09 2018 From: prestonh at gmail.com (Preston Hagar) Date: Wed, 23 May 2018 13:28:09 -0500 Subject: [Freeswitch-users] Adding SIP Headers in Javascript In-Reply-To: <7C3ED38B-9032-43C9-B62D-D8FF111EFB50@jerris.com> References: <7007C28D-6DED-4A40-8A4A-D3D58A6CE2C9@jerris.com> <7C3ED38B-9032-43C9-B62D-D8FF111EFB50@jerris.com> Message-ID: Thanks, I'll try it out! On Wed, May 23, 2018 at 1:01 PM, Michael Jerris wrote: > session.setVariable(var, val); > > > On May 23, 2018, at 1:46 PM, Preston Hagar wrote: > > I figured out my issue. I had left out part of my code in previous emails > to try to make it simpler, and left out the part that was messing things up. > > So after I set the sip Diversion header: > > var diversionHeader = 'sip_h_Diversion= pbx.example.org>;privacy=off;reason=unconditional;counter=1;screen=no'; > > session.execute('set',diversionHeader); > > > I would set a timeout: > > session.execute('set', 'call_timeout=45'); > > > Then I would ring all three receptionist stations at once with a bridge > command: > > > var logic = '{ignore_early_media=true}user/1000@' + $pbx_domain + > ':_:user/1001@' > + $pbx_domain + ':_:user/1002@' + $pbx_domain; > session.execute('bridge', logic); > > > The problem ended up stemming from me ringing all three at once using the > :_: to join the extensions. I switched it over to commas: > > var logic = '{ignore_early_media=true}user/1000@' + $pbx_domain + > ',user/1001@' > + $pbx_domain + ',user/1002@' + $pbx_domain; > session.execute('bridge', logic); > > and now the Diversion header shows up as expected. We shouldn't have > multiple registrations for any of those numbers, so it shouldn't be an > issue. > > Thanks everyone for taking a look. > > > Out of curiosity, what is the "direct method" for setting the SIP header > (instead of using session.execute)? I can't seem to find anything in the > documentation. > > > Thanks again, > > > > > > > > > On Wed, May 23, 2018 at 10:26 AM, Michael Jerris wrote: > >> I’d avoid using the bridge function like this, but worthwhile to set the >> variable using the direct method instead of session execute for set >> application. >> >> >> On May 22, 2018, at 5:01 PM, Branden Jordan wrote: >> >> I don’t see any reason why that wouldn’t work but maybe there is >> something weird going on with the javascript session object where it isn’t >> getting/setting the exported variables from the session when you are doing >> the bridge? Have you tried making a new session object and setting your >> variables for that session object instead of doing a session.execute? I >> found something like this on the Wiki that you might be able to do, small >> example below. >> >> var anotherSession = new Session(session, '{ignore_ >> early_media=true}user/1003@' + $pbx_domain); >> anotherSession.execute(‘set’,diversionHeader); >> bridge(session, anotherSession); >> anotherSession.hangup(); >> >> Like I said earlier I am a bit rusty on the Javascript side, (no idea if >> bridge blocks or if you have to do a loop) but I know that would work on >> the LUA side which is where I am more familiar. I know Javascript examples >> are a little light on the wiki but you might be able to get the gist of >> what is going on in the LUA side and then mimic that in Javascript. >> https://freeswitch.org/confluence/display/FREESWITCH/Lua+example+ >> Bridging+two+calls+with+retry >> >> Thanks, >> >> Branden Jordan >> >> *From:* FreeSWITCH-users *On >> Behalf Of *Preston Hagar >> *Sent:* Monday, May 21, 2018 6:53 PM >> *To:* FreeSWITCH Users Help >> *Subject:* Re: [Freeswitch-users] Adding SIP Headers in Javascript >> >> Thanks for responding! >> >> Below is a bit more code to fill in the gaps. I'm passing the >> destination_number from the XML as a third argument. When I test out the >> code below, the console_log does in fact print out a "correct" Diversion >> header line. If I use the exact same Diversion header, set in my XML >> dialplan, it shows up in the SIP packet and the VOP software reads it. >> When I set it using session.execute in javascript, then no Diversion >> header, even an incorrect one, gets added to the SIP packet. >> >> I don't think it is in the variable substitution or anything like that. >> I've also tried not passing a variable to session.execute and just putting >> the string in the command, as well as just hard coding a test number. In >> all cases, no Diversion header ever shows up. Either I'm not setting it >> right for javascript or there is something different about setting it in >> Javascript vs XML that I haven't figured out. >> >> Here is more expanded code: >> >> >> var $extension = argv[0]; >> var $pbx_domain = argv[1]; >> var $destination_number = argv[2]; >> >> var diversionHeader = 'sip_h_Diversion=> pbx.example.org>;privacy=off;reason=unconditional;counter=1;screen=no'; >> >> session.execute('set',diversionHeader); >> session.execute('export','sip_h_Diversion'); >> >> onsole_log("notice","Trying receptionist"); >> console_log("notice",session.state); >> console_log("notice",diversionHeader); >> session.execute('set', 'call_timeout=15'); >> >> var logic = '{ignore_early_media=true}user/1003@' + $pbx_domain; >> session.execute('bridge', logic); >> >> console_log("notice","Trying Kim"); >> console_log("notice",session.state); >> session.execute('set', 'call_timeout=10'); >> session.execute('bridge', 'user/2741@' + $pbx_domain); >> >> // No one answered, send to IVR >> >> console_log("notice","No one is answering"); >> console_log("notice",session.state); >> if (session.state == "CS_EXECUTE") >> { >> console_log("notice","Trying IVR"); >> session.execute('transfer', 'ivr'); >> } >> >> >> >> On Mon, May 21, 2018 at 6:57 PM, Branden Jordan >> wrote: >> >> Not sure if you still need help with this but could you post some more of >> your javascript code? Something about this line is off to me but maybe it >> makes sense in the grander scheme of things. >> var diversionHeader = 'sip_h_Diversion=> + '@pbx.example.org>;privacy=off;reason=unconditional;counter= >> 1;screen=no'; >> >> I have not used javascript with freeswitch in a little while, so I might >> be totally wrong but did you declare $destination_number? Because its >> possible its undefined if you didn’t declare that specifically equal to the >> value you passed in via args and thus javascript does you a solid and makes >> the whole string undefined which sets the sip_h_Diversion to null which is >> why it isn’t exporting. Maybe try argv[3] or argv[2] (console them out I am >> not sure which one it’ll be) instead of $destination_number in your >> concatenation? >> >> If that isn’t it and you are still having an issue we can try some other >> stuff. >> >> Thanks, >> Branden Jordan >> >> >> *From:* FreeSWITCH-users *On >> Behalf Of *Preston Hagar >> *Sent:* Friday, May 18, 2018 8:55 AM >> *To:* FreeSWITCH Users Help >> *Subject:* [Freeswitch-users] Adding SIP Headers in Javascript >> >> Quick Version: Is there some special way to set custom SIP headers when >> you are bridging a call from Javascript instead of XML? >> >> Full Details: >> We am using Voice Operator Panel (VOP) as a receptionist console. We >> have multiple external numbers that all funnel into a few receptionist >> desks. If I add a SIP Diversion header, then VOP will use that to show the >> receptionist which number the caller dialed to reach them, which would help >> things out a lot. >> >> If I add it in an XML dialplan and then do a direct bridge to one of the >> receptionist numbers, it works great (snip of working direct dialplan): >> >> >> >> >> The problem is I need a bit of advanced logic to figure out which >> receptionist are online and then ring those, then fail over to other >> numbers and ultimately IVR if no one answers, so I instead pass calls to >> them off to javascript, so the bridge line above becomes something link: >> >> >> >> I've tried setting the SIP header in the XML above the javascript line >> and then exporting it >> >> >> >> >> and setting it in the Javascript: >> >> var diversionHeader = 'sip_h_Diversion=> + '@pbx.example.org>;privacy=off;reason=unconditional;counter= >> 1;screen=no'; >> >> session.execute('set',diversionHeader); >> session.execute('export','sip_h_Diversion'); >> >> but in both cases (or with both in place), the SIP header is never >> written. >> >> Is there some magic to setting SIP headers in Javascript? I can't seem >> to find any examples or documentation about it. >> >> Thanks! >> >> >> > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel at textplus.com Wed May 23 18:47:23 2018 From: joel at textplus.com (Joel Serrano) Date: Wed, 23 May 2018 11:47:23 -0700 Subject: [Freeswitch-users] Adding SIP Headers in Javascript In-Reply-To: References: <7007C28D-6DED-4A40-8A4A-D3D58A6CE2C9@jerris.com> Message-ID: Maybe he is referring to session.setVariable()? https://freeswitch.org/confluence/display/FREESWITCH/Session+setVariable On Wed, May 23, 2018 at 10:46 AM, Preston Hagar wrote: > I figured out my issue. I had left out part of my code in previous emails > to try to make it simpler, and left out the part that was messing things up. > > So after I set the sip Diversion header: > > var diversionHeader = 'sip_h_Diversion= pbx.example.org>;privacy=off;reason=unconditional;counter=1;screen=no'; > > session.execute('set',diversionHeader); > > > I would set a timeout: > > session.execute('set', 'call_timeout=45'); > > > Then I would ring all three receptionist stations at once with a bridge > command: > > > var logic = '{ignore_early_media=true}user/1000@' + $pbx_domain + > ':_:user/1001@' > + $pbx_domain + ':_:user/1002@' + $pbx_domain; > session.execute('bridge', logic); > > > The problem ended up stemming from me ringing all three at once using the > :_: to join the extensions. I switched it over to commas: > > var logic = '{ignore_early_media=true}user/1000@' + $pbx_domain + > ',user/1001@' > + $pbx_domain + ',user/1002@' + $pbx_domain; > session.execute('bridge', logic); > > and now the Diversion header shows up as expected. We shouldn't have > multiple registrations for any of those numbers, so it shouldn't be an > issue. > > Thanks everyone for taking a look. > > > Out of curiosity, what is the "direct method" for setting the SIP header > (instead of using session.execute)? I can't seem to find anything in the > documentation. > > > Thanks again, > > > > > > > > > On Wed, May 23, 2018 at 10:26 AM, Michael Jerris wrote: > >> I’d avoid using the bridge function like this, but worthwhile to set the >> variable using the direct method instead of session execute for set >> application. >> >> >> On May 22, 2018, at 5:01 PM, Branden Jordan wrote: >> >> I don’t see any reason why that wouldn’t work but maybe there is >> something weird going on with the javascript session object where it isn’t >> getting/setting the exported variables from the session when you are doing >> the bridge? Have you tried making a new session object and setting your >> variables for that session object instead of doing a session.execute? I >> found something like this on the Wiki that you might be able to do, small >> example below. >> >> var anotherSession = new Session(session, '{ignore_ >> early_media=true}user/1003@' + $pbx_domain); >> anotherSession.execute(‘set’,diversionHeader); >> bridge(session, anotherSession); >> anotherSession.hangup(); >> >> Like I said earlier I am a bit rusty on the Javascript side, (no idea if >> bridge blocks or if you have to do a loop) but I know that would work on >> the LUA side which is where I am more familiar. I know Javascript examples >> are a little light on the wiki but you might be able to get the gist of >> what is going on in the LUA side and then mimic that in Javascript. >> https://freeswitch.org/confluence/display/FREESWITCH/Lua+example+ >> Bridging+two+calls+with+retry >> >> Thanks, >> >> Branden Jordan >> >> *From:* FreeSWITCH-users *On >> Behalf Of *Preston Hagar >> *Sent:* Monday, May 21, 2018 6:53 PM >> *To:* FreeSWITCH Users Help >> *Subject:* Re: [Freeswitch-users] Adding SIP Headers in Javascript >> >> Thanks for responding! >> >> Below is a bit more code to fill in the gaps. I'm passing the >> destination_number from the XML as a third argument. When I test out the >> code below, the console_log does in fact print out a "correct" Diversion >> header line. If I use the exact same Diversion header, set in my XML >> dialplan, it shows up in the SIP packet and the VOP software reads it. >> When I set it using session.execute in javascript, then no Diversion >> header, even an incorrect one, gets added to the SIP packet. >> >> I don't think it is in the variable substitution or anything like that. >> I've also tried not passing a variable to session.execute and just putting >> the string in the command, as well as just hard coding a test number. In >> all cases, no Diversion header ever shows up. Either I'm not setting it >> right for javascript or there is something different about setting it in >> Javascript vs XML that I haven't figured out. >> >> Here is more expanded code: >> >> >> var $extension = argv[0]; >> var $pbx_domain = argv[1]; >> var $destination_number = argv[2]; >> >> var diversionHeader = 'sip_h_Diversion=> pbx.example.org>;privacy=off;reason=unconditional;counter=1;screen=no'; >> >> session.execute('set',diversionHeader); >> session.execute('export','sip_h_Diversion'); >> >> onsole_log("notice","Trying receptionist"); >> console_log("notice",session.state); >> console_log("notice",diversionHeader); >> session.execute('set', 'call_timeout=15'); >> >> var logic = '{ignore_early_media=true}user/1003@' + $pbx_domain; >> session.execute('bridge', logic); >> >> console_log("notice","Trying Kim"); >> console_log("notice",session.state); >> session.execute('set', 'call_timeout=10'); >> session.execute('bridge', 'user/2741@' + $pbx_domain); >> >> // No one answered, send to IVR >> >> console_log("notice","No one is answering"); >> console_log("notice",session.state); >> if (session.state == "CS_EXECUTE") >> { >> console_log("notice","Trying IVR"); >> session.execute('transfer', 'ivr'); >> } >> >> >> >> On Mon, May 21, 2018 at 6:57 PM, Branden Jordan >> wrote: >> >> Not sure if you still need help with this but could you post some more of >> your javascript code? Something about this line is off to me but maybe it >> makes sense in the grander scheme of things. >> var diversionHeader = 'sip_h_Diversion=> + '@pbx.example.org>;privacy=off;reason=unconditional;counter= >> 1;screen=no'; >> >> I have not used javascript with freeswitch in a little while, so I might >> be totally wrong but did you declare $destination_number? Because its >> possible its undefined if you didn’t declare that specifically equal to the >> value you passed in via args and thus javascript does you a solid and makes >> the whole string undefined which sets the sip_h_Diversion to null which is >> why it isn’t exporting. Maybe try argv[3] or argv[2] (console them out I am >> not sure which one it’ll be) instead of $destination_number in your >> concatenation? >> >> If that isn’t it and you are still having an issue we can try some other >> stuff. >> >> Thanks, >> Branden Jordan >> >> >> *From:* FreeSWITCH-users *On >> Behalf Of *Preston Hagar >> *Sent:* Friday, May 18, 2018 8:55 AM >> *To:* FreeSWITCH Users Help >> *Subject:* [Freeswitch-users] Adding SIP Headers in Javascript >> >> Quick Version: Is there some special way to set custom SIP headers when >> you are bridging a call from Javascript instead of XML? >> >> Full Details: >> We am using Voice Operator Panel (VOP) as a receptionist console. We >> have multiple external numbers that all funnel into a few receptionist >> desks. If I add a SIP Diversion header, then VOP will use that to show the >> receptionist which number the caller dialed to reach them, which would help >> things out a lot. >> >> If I add it in an XML dialplan and then do a direct bridge to one of the >> receptionist numbers, it works great (snip of working direct dialplan): >> >> >> >> >> The problem is I need a bit of advanced logic to figure out which >> receptionist are online and then ring those, then fail over to other >> numbers and ultimately IVR if no one answers, so I instead pass calls to >> them off to javascript, so the bridge line above becomes something link: >> >> >> >> I've tried setting the SIP header in the XML above the javascript line >> and then exporting it >> >> >> >> >> and setting it in the Javascript: >> >> var diversionHeader = 'sip_h_Diversion=> + '@pbx.example.org>;privacy=off;reason=unconditional;counter= >> 1;screen=no'; >> >> session.execute('set',diversionHeader); >> session.execute('export','sip_h_Diversion'); >> >> but in both cases (or with both in place), the SIP header is never >> written. >> >> Is there some magic to setting SIP headers in Javascript? I can't seem >> to find any examples or documentation about it. >> >> Thanks! >> >> >> >> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Wed May 23 19:38:44 2018 From: mike at jerris.com (Michael Jerris) Date: Wed, 23 May 2018 15:38:44 -0400 Subject: [Freeswitch-users] More info about invalid xml configuration file. In-Reply-To: <21c5e386-fded-d521-c937-a915b0aa93e0@antek.it> References: <21c5e386-fded-d521-c937-a915b0aa93e0@antek.it> Message-ID: <2181D426-8328-4E6D-B3F6-43DBD2B83AC4@jerris.com> Thank you for your question! We answered it live on ClueCon weekly today! You can watch it at https://www.youtube.com/watch?v=K-k6qHfzlp4 > On May 17, 2018, at 4:48 AM, Petr Both wrote: > > Hello FS community, > > I'm completely new in FreeSWITCH (working now with open source version 1.6). I'm searching for answers in documentation but in some cases it is too large to find quickly what I need. > > I have added into etc/freeswitch/dialplan/default.xml configuration then new element intentionally without closing at the end. Doing reloadxml command in fs_cli I can see > > freeswitch at debianfs> reloadxml > +OK [[error near line 7707]: unexpected closing tag ] > > Please, is there any way to get more info about such error? Mainly I'm interesting which configuration file is invalid. Are there any logs with more detailed info about trouble? > > Thank you in advance for any answer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From BJordan at E-Teleco.com Wed May 23 19:38:42 2018 From: BJordan at E-Teleco.com (Branden Jordan) Date: Wed, 23 May 2018 19:38:42 +0000 Subject: [Freeswitch-users] Adding SIP Headers in Javascript In-Reply-To: References: <7007C28D-6DED-4A40-8A4A-D3D58A6CE2C9@jerris.com> Message-ID: <83e067633b42455488881e6d14fcd7bf@MDF-EXCH1.MDF-Holdings.local> Glad to hear you found a fix, thanks for posting back. From: FreeSWITCH-users On Behalf Of Preston Hagar Sent: Wednesday, May 23, 2018 10:46 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Adding SIP Headers in Javascript I figured out my issue. I had left out part of my code in previous emails to try to make it simpler, and left out the part that was messing things up. So after I set the sip Diversion header: var diversionHeader = 'sip_h_Diversion=>;privacy=off;reason=unconditional;counter=1;screen=no'; session.execute('set',diversionHeader); I would set a timeout: session.execute('set', 'call_timeout=45'); Then I would ring all three receptionist stations at once with a bridge command: var logic = '{ignore_early_media=true}user/1000@' + $pbx_domain + ':_:user/1001@' + $pbx_domain + ':_:user/1002@' + $pbx_domain; session.execute('bridge', logic); The problem ended up stemming from me ringing all three at once using the :_: to join the extensions. I switched it over to commas: var logic = '{ignore_early_media=true}user/1000@' + $pbx_domain + ',user/1001@' + $pbx_domain + ',user/1002@' + $pbx_domain; session.execute('bridge', logic); and now the Diversion header shows up as expected. We shouldn't have multiple registrations for any of those numbers, so it shouldn't be an issue. Thanks everyone for taking a look. Out of curiosity, what is the "direct method" for setting the SIP header (instead of using session.execute)? I can't seem to find anything in the documentation. Thanks again, On Wed, May 23, 2018 at 10:26 AM, Michael Jerris > wrote: I’d avoid using the bridge function like this, but worthwhile to set the variable using the direct method instead of session execute for set application. On May 22, 2018, at 5:01 PM, Branden Jordan > wrote: I don’t see any reason why that wouldn’t work but maybe there is something weird going on with the javascript session object where it isn’t getting/setting the exported variables from the session when you are doing the bridge? Have you tried making a new session object and setting your variables for that session object instead of doing a session.execute? I found something like this on the Wiki that you might be able to do, small example below. var anotherSession = new Session(session, '{ignore_early_media=true}user/1003@' + $pbx_domain); anotherSession.execute(‘set’,diversionHeader); bridge(session, anotherSession); anotherSession.hangup(); Like I said earlier I am a bit rusty on the Javascript side, (no idea if bridge blocks or if you have to do a loop) but I know that would work on the LUA side which is where I am more familiar. I know Javascript examples are a little light on the wiki but you might be able to get the gist of what is going on in the LUA side and then mimic that in Javascript. https://freeswitch.org/confluence/display/FREESWITCH/Lua+example+Bridging+two+calls+with+retry Thanks, Branden Jordan From: FreeSWITCH-users > On Behalf Of Preston Hagar Sent: Monday, May 21, 2018 6:53 PM To: FreeSWITCH Users Help > Subject: Re: [Freeswitch-users] Adding SIP Headers in Javascript Thanks for responding! Below is a bit more code to fill in the gaps. I'm passing the destination_number from the XML as a third argument. When I test out the code below, the console_log does in fact print out a "correct" Diversion header line. If I use the exact same Diversion header, set in my XML dialplan, it shows up in the SIP packet and the VOP software reads it. When I set it using session.execute in javascript, then no Diversion header, even an incorrect one, gets added to the SIP packet. I don't think it is in the variable substitution or anything like that. I've also tried not passing a variable to session.execute and just putting the string in the command, as well as just hard coding a test number. In all cases, no Diversion header ever shows up. Either I'm not setting it right for javascript or there is something different about setting it in Javascript vs XML that I haven't figured out. Here is more expanded code: var $extension = argv[0]; var $pbx_domain = argv[1]; var $destination_number = argv[2]; var diversionHeader = 'sip_h_Diversion=>;privacy=off;reason=unconditional;counter=1;screen=no'; session.execute('set',diversionHeader); session.execute('export','sip_h_Diversion'); onsole_log("notice","Trying receptionist"); console_log("notice",session.state); console_log("notice",diversionHeader); session.execute('set', 'call_timeout=15'); var logic = '{ignore_early_media=true}user/1003@' + $pbx_domain; session.execute('bridge', logic); console_log("notice","Trying Kim"); console_log("notice",session.state); session.execute('set', 'call_timeout=10'); session.execute('bridge', 'user/2741@' + $pbx_domain); // No one answered, send to IVR console_log("notice","No one is answering"); console_log("notice",session.state); if (session.state == "CS_EXECUTE") { console_log("notice","Trying IVR"); session.execute('transfer', 'ivr'); } On Mon, May 21, 2018 at 6:57 PM, Branden Jordan > wrote: Not sure if you still need help with this but could you post some more of your javascript code? Something about this line is off to me but maybe it makes sense in the grander scheme of things. var diversionHeader = 'sip_h_Diversion=>;privacy=off;reason=unconditional;counter=1;screen=no'; I have not used javascript with freeswitch in a little while, so I might be totally wrong but did you declare $destination_number? Because its possible its undefined if you didn’t declare that specifically equal to the value you passed in via args and thus javascript does you a solid and makes the whole string undefined which sets the sip_h_Diversion to null which is why it isn’t exporting. Maybe try argv[3] or argv[2] (console them out I am not sure which one it’ll be) instead of $destination_number in your concatenation? If that isn’t it and you are still having an issue we can try some other stuff. Thanks, Branden Jordan From: FreeSWITCH-users > On Behalf Of Preston Hagar Sent: Friday, May 18, 2018 8:55 AM To: FreeSWITCH Users Help > Subject: [Freeswitch-users] Adding SIP Headers in Javascript Quick Version: Is there some special way to set custom SIP headers when you are bridging a call from Javascript instead of XML? Full Details: We am using Voice Operator Panel (VOP) as a receptionist console. We have multiple external numbers that all funnel into a few receptionist desks. If I add a SIP Diversion header, then VOP will use that to show the receptionist which number the caller dialed to reach them, which would help things out a lot. If I add it in an XML dialplan and then do a direct bridge to one of the receptionist numbers, it works great (snip of working direct dialplan): The problem is I need a bit of advanced logic to figure out which receptionist are online and then ring those, then fail over to other numbers and ultimately IVR if no one answers, so I instead pass calls to them off to javascript, so the bridge line above becomes something link: I've tried setting the SIP header in the XML above the javascript line and then exporting it and setting it in the Javascript: var diversionHeader = 'sip_h_Diversion=>;privacy=off;reason=unconditional;counter=1;screen=no'; session.execute('set',diversionHeader); session.execute('export','sip_h_Diversion'); but in both cases (or with both in place), the SIP header is never written. Is there some magic to setting SIP headers in Javascript? I can't seem to find any examples or documentation about it. Thanks! _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From Markus.Hammerer at infotech.at Thu May 24 05:20:00 2018 From: Markus.Hammerer at infotech.at (Markus Hammerer) Date: Thu, 24 May 2018 05:20:00 +0000 Subject: [Freeswitch-users] DUAL NIC In-Reply-To: References: Message-ID: Hi The example i had edited but i seams there will be missing I want to use the freeswitch for the ICTFAX solution Here are not extensions (Users) behind the number There are seperate Numbers for every User So i have to add for every user one number And every number has to register on the ISP Does here someone use this constellation? I m looking for the default files for this one thanks Von: FreeSWITCH-users Im Auftrag von Tihomir Culjaga Gesendet: Mittwoch, 23. Mai 2018 12:28 An: FreeSWITCH Users Help Betreff: Re: [Freeswitch-users] DUAL NIC if you want FS to register to a provider you need to create a gateway. On how to create a gateway read this: https://freeswitch.org/confluence/display/FREESWITCH/Gateways+Configuration if you want to dial/bridge via specific gateways from dialplan you use On how to setup your dialplan read this: https://freeswitch.org/confluence/display/FREESWITCH/XML+Dialplan On 23 May 2018 at 11:20, Markus Hammerer > wrote: Hi Steven, Thank you The service is now running under [root at VOFAX02 sip_profiles]# netstat -nlp | fgrep 5060 tcp 0 0 10.230.11.189:5060 0.0.0.0:* LISTEN 20387/freeswitch udp 0 0 10.230.11.189:5060 0.0.0.0:* 20387/freeswitch now i have the issue that it sends no register i have edited under sip_profiles/external/infotech.xml here are the username and Password from the ISP inlcuded but how can i tell this freeswitch? Thanks Markus Von: FreeSWITCH-users > Im Auftrag von Steven Ayre Gesendet: Mittwoch, 23. Mai 2018 10:03 An: FreeSWITCH Users Help > Betreff: Re: [Freeswitch-users] DUAL NIC You need to set sip-ip and rtp-ip to tell it which interface to bind to. Since they have to be set to a single IP you'll need at least one sofia profile for each interface IP you want to listen on. Sometimes you'll also need to set ext-sip-ip and ext-rtp-ip which control what IPs are sent in the SIP headers and SDP, often as part of handling NAT. On 23 May 2018 at 06:15, Markus Hammerer > wrote: Hi, thanks for your answer, Does i do this in the file: internal.xml ? In the line: To change the param from auto-nat to the ip adress? Thanks Markus Von: FreeSWITCH-users > Im Auftrag von Giovanni Maruzzelli Gesendet: Dienstag, 22. Mai 2018 19:56 An: FreeSWITCH Users Help > Betreff: Re: [Freeswitch-users] DUAL NIC Youmust assign the address explicitly (eg, the number) in your sip profile. Or, you can edit vars.xml to change which ethernet card use to get the address that is the assigned On Tue, May 22, 2018, 19:24 Markus Hammerer > wrote: Helo I have a Server with two nics And the freeswitch works with the wrong nic How can i configure this with the other NIC? Where i can do this? Thanks Markus _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5541 bytes Desc: not available URL: From davidswalkabout at gmail.com Thu May 24 05:27:02 2018 From: davidswalkabout at gmail.com (David P) Date: Wed, 23 May 2018 22:27:02 -0700 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls Message-ID: While waiting for suggestions, I tried more things. In particular, I tested whether gentls_cert was present in our FS install (which is at /opt/freeswitch/ on ubuntu). It is present, but the CA root cert step writes to {prefix}/etc/freeswitch/tls/CA/ instead of {prefix}/conf/ssl/CA/. In particular, the root CA step generates: etc/freeswitch/tls/ cafile.pem etc/freeswitch/tls/CA/ cacert.pem cakey.pem config.tpl And the server cert step generates: etc/freeswitch/tls/ agent.pem etc/freeswitch/tls/CA/ cacert.srl Reviewing agent.pem shows it's fine: openssl x509 -noout -inform pem -text -in /opt/freeswitch/etc/freeswitch/tls/agent.pem But it's owned by user root group root, so: cd /opt/freeswitch/etc/freeswitch/tls/ chmod 640 agent.pem CA/cacert.pem chown root.freeswitch agent.pem CA/cacert.pem Then I edited /opt/freeswitch/etc/freeswitch/vars.xml to set internal_ssl_enable and external_ssl_enable to true. Then I restarted FS. I checked the CLI and it shows "WS SETUP FAILED" repeatedly. *Any suggestion?* Blazing ahead...then I exposed the public IP of the FS machine under a subdomain of the CA root cert's domain. (I used a wildcard subdomain for -org when generating both certs; maybe giving a wildcard this way is unnecessary or counterproductive.) Now, the part that puzzles me: I'm already using a "real CA" cert in order to serve my verto client files over https from my DNS name, so browsers won't show security warnings. But I bet I need to have the same CA root cert installed in FS as I use in the webserver, right? I saw the note that commercial certs should work, but *it's not clear what steps to follow to install one*. Cheers, David On Tue, May 22, 2018 at 9:50 PM, David P wrote: > We use conferences to allow a verto user to call and connect with an > Asterisk channel. We would like to secure both signalling and media via TLS > + SRTP, and I've read https://freeswitch.org/ > confluence/display/FREESWITCH/SIP+TLS a few times to understand how to do > this. Note that that page has a broken link: https://wiki.freeswitch.org/ > wiki/Secure_RTP > > First, is it still true that FS doesn't offer prebuilt installs (for > Ubuntu) to support this kind of security? > > Assuming that it must be compiled, I began to follow > https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie with > the additional first step of: apt-get install libssl-dev > > I soon ran into "Unable to locate package freeswitch-video-deps-most". > > What should I try next? > > Cheers, > David > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gmina at connectfirst.com Thu May 24 15:10:47 2018 From: gmina at connectfirst.com (Geoff Mina) Date: Thu, 24 May 2018 09:10:47 -0600 Subject: [Freeswitch-users] Trouble Shooting Hung Sofia Profile In-Reply-To: References: <81FBEEE6-EF7B-4C06-B08D-A0279264B52E@connectfirst.com> Message-ID: Greetings, We previously performed all of the suggested changes to our Freeswitch installation. We enabled the cache on the XML Curl user endpoint as well as enabling the thread per registration setting on the internal profile. We had another event today where the Internal profile was completely hung. It was unable to process registrations until we restarted. All of the registrations had expired on the timer, and thus the call processing stopped as well. We are running FreeSWITCH Version 1.6.19~64bit ( 64bit) installed from Yum repo on a CentOS7 server. I have two questions: 1 - Any other known issues regarding hung sofia profiles when using XML Curl? The internal profile is also handling registrations exclusively from Websockets (if that makes a difference). 2 - What can we do in the future to get information regarding the hung process for further troubleshooting. There is nothing in the logs, so I think we need to generate a core file. Any specific mechanism to generate the core file that will yield the most interesting results? Thanks, Geoff On Wed, Apr 25, 2018 at 9:57 AM, Tony Bourdeaux wrote: > Thanks Giovanni > > On Tue, Apr 24, 2018 at 9:27 PM, Giovanni Maruzzelli > wrote: > >> Tony, Geoff, >> >> registrations are served by one sofia thread, by default, and if the >> backend keep the registration from succeeding, that can badly affect things. >> >> You may want to look into this: >> inbound-reg-in-new-thread >> >> For each inbound register, launch a new thread to process it, e.g. for >> when using heavier backends >> >> >> >> >> https://freeswitch.org/confluence/display/FREESWITCH/Sofia+C >> onfiguration+Files >> >> -giovanni >> >> >> On 25 April 2018 at 05:48, Tony Bourdeaux wrote: >> >>> Geoff- >>> >>> in Directory for a user can set cacheable=true like this: >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> value='$${outbound_caller_name}'/> >>> >> value='$${outbound_caller_id}'/> >>> >>> >>> >>> See this link: https://freeswitch.org/conflu >>> ence/display/FREESWITCH/mod_xml_curl#Caching_objects >>> >>> And then the user is stored in memory so re-register authentication >>> comes from memory rather than another lookup. >>> >>> If the user is deleted/disabled or changes password then the cache >>> should be cleared for that user. Like this: xml_flush_cache id 1000 >>> domainname >>> >>> See below for reference: >>> >>> If you then make a change to the directory you should run the >>> xml_flush_cache command to clear, some examples: >>> >>> # This clears items for user 1001 >>> xml_flush_cache id 1002 domain-name >>> >>> # This clears all items >>> xml_flush_cache >>> >>> You may also wish to enable an expiry on the cache entries by setting >>> the cacheable attribute to a numeric value which would be the number of >>> milliseconds, see http://jira.freeswitch.org/browse/FS-4871 >>> >>> >>> >>> will cache the result for 60 seconds (60000 milliseconds) >>> >>> >>> *ALSO-* >>> >>> Preloading in the config files also reduces requests: >>> >>> In freeswitch.xml replace the section for dialplan with a pre-process >>> wget statement to load the dialplan: >>> >>> >>> *Something like this:* >>> >>>
>>> >>> >>> >>> >>> >>> >>> >>> >>> >>>
>>> >>> >>> Hope this helps. >>> >>> Thanks, >>> >>> Tony >>> >>> On Tue, Apr 24, 2018 at 8:05 PM, Geoff Mina >>> wrote: >>> >>>> First, thanks a lot for the response we use mod_xml_curl very heavily. >>>> While I don’t think our local host Apache server is lagging, it’s possible >>>> this related. Any tips on caching directory requests? >>>> >>>> I don’t see anything directly related to mod_xml_curl that enables >>>> cache. >>>> >>>> Thanks, >>>> Geoff >>>> >>>> >>>> >>>> >>>> On Apr 24, 2018, at 8:40 PM, Tony Bourdeaux >>>> wrote: >>>> >>>> ​Geoff- >>>> >>>> saw this behavior when using mod_xml_curl for Directory and had many >>>> authentication requests to Directory service ​that was very slow to >>>> respond. Sofia stopped responding to any new requests. Fixed with caching >>>> the Directory requests. >>>> >>>> might help. >>>> >>>> Thanks. >>>> >>>> On Tue, Apr 24, 2018 at 5:30 PM, Geoff Mina >>>> wrote: >>>> >>>>> Anyone have any pointers on the best way to troubleshoot hung Sofia >>>>> profiles? >>>>> >>>>> We are on 1.6.19 installed via Yum on CentOS 7 and have had consistent >>>>> system hangs every few days. You can see the SIP message come in on the >>>>> siptrace logs and then there is never a response. >>>>> >>>>> Process restart required to correct. CLI is functional. Nothing >>>>> interesting in logs. >>>>> >>>>> Any pointers greatly appreciated. >>>>> >>>>> Thanks. >>>>> -- >>>>> GEOFF MINA >>>>> Chief Executive Officer >>>>> Connect First / Contact Center Solutions, Built Better. >>>>> >>>>> 2545 Central Ave #200, Boulder, CO 80301 >>>>> 720.335.5924 >>>>> Connect First / Contact Center Solutions, Built Better >>>>> www.connectfirst.com >>>>> >>>>> This email and any files transmitted with it are confidential and are >>>>> intended solely for the use of the individual or entity to whom they are >>>>> addressed. If you have received this email in error, please notify the >>>>> system manager. >>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>> switch-users >>>>> http://www.freeswitch.org >>>>> >>>> >>>> >>>> >>>> -- >>>> >>>> >>>> *T**ony Bourdeaux* >>>> >>>> >>>> >>>> * Intelecenter, LLC* >>>> >>>> ph: 805-703-8277 >>>> >>>> Skype: tony.bourdeaux >>>> >>>> >>>> >>>> "This message and any attachments are solely for the intended recipient >>>> and may contain confidential or privileged information. If you are not the >>>> intended recipient, any disclosure, copying, use, or distribution of the >>>> information included in this message and any attachments is prohibited. If >>>> you have received this communication in error, please notify me by reply >>>> e-mail and immediately and permanently delete this message and any >>>> attachments." >>>> >>>> >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>> switch-users >>>> http://www.freeswitch.org >>>> >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>> switch-users >>>> http://www.freeswitch.org >>>> >>> >>> >>> >>> -- >>> >>> >>> *T**ony Bourdeaux* >>> >>> >>> >>> * Intelecenter, LLC* >>> >>> ph: 805-703-8277 >>> >>> Skype: tony.bourdeaux >>> >>> >>> >>> "This message and any attachments are solely for the intended recipient >>> and may contain confidential or privileged information. If you are not the >>> intended recipient, any disclosure, copying, use, or distribution of the >>> information included in this message and any attachments is prohibited. If >>> you have received this communication in error, please notify me by reply >>> e-mail and immediately and permanently delete this message and any >>> attachments." >>> >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> >> -- >> >> Sincerely, >> >> Giovanni Maruzzelli >> OpenTelecom.IT >> cell: +39 347 266 56 18 >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > -- > > > *T**ony Bourdeaux* > > > > * Intelecenter, LLC* > > ph: 805-703-8277 > > Skype: tony.bourdeaux > > > > "This message and any attachments are solely for the intended recipient > and may contain confidential or privileged information. If you are not the > intended recipient, any disclosure, copying, use, or distribution of the > information included in this message and any attachments is prohibited. If > you have received this communication in error, please notify me by reply > e-mail and immediately and permanently delete this message and any > attachments." > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Thu May 24 15:29:23 2018 From: mike at jerris.com (Michael Jerris) Date: Thu, 24 May 2018 11:29:23 -0400 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls In-Reply-To: References: Message-ID: Try something NOT ubuntu. Ubuntu disables some required stuff in their openssl making it unusable for webrtc at least in some versions. > On May 24, 2018, at 1:27 AM, David P wrote: > > While waiting for suggestions, I tried more things. In particular, I tested whether gentls_cert was present in our FS install (which is at /opt/freeswitch/ on ubuntu). > > It is present, but the CA root cert step writes to {prefix}/etc/freeswitch/tls/CA/ instead of {prefix}/conf/ssl/CA/. In particular, the root CA step generates: > > etc/freeswitch/tls/ > cafile.pem > > etc/freeswitch/tls/CA/ > cacert.pem > cakey.pem > config.tpl > > And the server cert step generates: > > etc/freeswitch/tls/ > agent.pem > > etc/freeswitch/tls/CA/ > cacert.srl > > Reviewing agent.pem shows it's fine: > openssl x509 -noout -inform pem -text -in /opt/freeswitch/etc/freeswitch/tls/agent.pem > > But it's owned by user root group root, so: > cd /opt/freeswitch/etc/freeswitch/tls/ > chmod 640 agent.pem CA/cacert.pem > chown root.freeswitch agent.pem CA/cacert.pem > > Then I edited /opt/freeswitch/etc/freeswitch/vars.xml to set internal_ssl_enable and external_ssl_enable to true. > > Then I restarted FS. I checked the CLI and it shows "WS SETUP FAILED" repeatedly. *Any suggestion?* > > Blazing ahead...then I exposed the public IP of the FS machine under a subdomain of the CA root cert's domain. (I used a wildcard subdomain for -org when generating both certs; maybe giving a wildcard this way is unnecessary or counterproductive.) > > Now, the part that puzzles me: I'm already using a "real CA" cert in order to serve my verto client files over https from my DNS name, so browsers won't show security warnings. But I bet I need to have the same CA root cert installed in FS as I use in the webserver, right? I saw the note that commercial certs should work, but *it's not clear what steps to follow to install one*. > > Cheers, > David > > > On Tue, May 22, 2018 at 9:50 PM, David P > wrote: > We use conferences to allow a verto user to call and connect with an Asterisk channel. We would like to secure both signalling and media via TLS + SRTP, and I've read https://freeswitch.org/confluence/display/FREESWITCH/SIP+TLS a few times to understand how to do this. Note that that page has a broken link: https://wiki.freeswitch.org/wiki/Secure_RTP > > First, is it still true that FS doesn't offer prebuilt installs (for Ubuntu) to support this kind of security? > > Assuming that it must be compiled, I began to follow https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie with the additional first step of: apt-get install libssl-dev > > I soon ran into "Unable to locate package freeswitch-video-deps-most". > > What should I try next? > > Cheers, > David -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Wed May 23 22:13:04 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Thu, 24 May 2018 00:13:04 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql Message-ID: Hi, I have just installed freeswitch 1.9 freeswitch at freeswitch-capa8> version FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git 3c7db63 2018-05-16 21:12:08Z 64bit) And I'm trying to freeswitch use postgresql instead sqlitedb. I have configured the file switch.conf.xml of /usr/local/freeswitch/conf/autoload_configs with uncomenting and configuring this line then I exported all sqlitedbs to sql and then imported to a database that I have created in postgresql I have run again /etc/init.d/freeswitch.sh start But seems it still is taking sqlitedb. I tried to move the sqlitedbs files to other side and turned on again freeswitch, but it creates sqlitedbs again. What I'm missing? what I'm doing wrong? what could I check? Thanks you much! - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Thu May 24 16:21:29 2018 From: mike at jerris.com (Michael Jerris) Date: Thu, 24 May 2018 12:21:29 -0400 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: Message-ID: what tables are ending up in the recreated sqlite db? You need to set it for the modules that use sqlite too (like for mod_sofia). we have a global var for this in default configs. > On May 23, 2018, at 6:13 PM, Blackhold wrote: > > Hi, > I have just installed freeswitch 1.9 > > freeswitch at freeswitch-capa8> version > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git 3c7db63 2018-05-16 21:12:08Z 64bit) > > And I'm trying to freeswitch use postgresql instead sqlitedb. > > I have configured the file switch.conf.xml of /usr/local/freeswitch/conf/autoload_configs with uncomenting and configuring this line > > > > then I exported all sqlitedbs to sql and then imported to a database that I have created in postgresql > > I have run again /etc/init.d/freeswitch.sh start > > But seems it still is taking sqlitedb. > > I tried to move the sqlitedbs files to other side and turned on again freeswitch, but it creates sqlitedbs again. > > What I'm missing? what I'm doing wrong? what could I check? From davidswalkabout at gmail.com Thu May 24 16:23:28 2018 From: davidswalkabout at gmail.com (David P) Date: Thu, 24 May 2018 09:23:28 -0700 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls Message-ID: Thanks, Mike, I'll try another distro. About verto, which I already serve under an AWS free non-exportable cert, does it need the gentls-generated CA root cert somewhere? And do I need any more steps to secure the streamed media? On Thu, 24 May 2018, 9:05 am Michael Jerris, wrote: > Try something NOT ubuntu. Ubuntu disables some required stuff in their > openssl making it unusable for webrtc at least in some versions. > > > On May 24, 2018, at 1:27 AM, David P wrote: > > While waiting for suggestions, I tried more things. In particular, I > tested whether gentls_cert was present in our FS install (which is at > /opt/freeswitch/ on ubuntu). > > It is present, but the CA root cert step writes to > {prefix}/etc/freeswitch/tls/CA/ instead of {prefix}/conf/ssl/CA/. In > particular, the root CA step generates: > > etc/freeswitch/tls/ > cafile.pem > > etc/freeswitch/tls/CA/ > cacert.pem > cakey.pem > config.tpl > > And the server cert step generates: > > etc/freeswitch/tls/ > agent.pem > > etc/freeswitch/tls/CA/ > cacert.srl > > Reviewing agent.pem shows it's fine: > openssl x509 -noout -inform pem -text -in > /opt/freeswitch/etc/freeswitch/tls/agent.pem > > But it's owned by user root group root, so: > cd /opt/freeswitch/etc/freeswitch/tls/ > chmod 640 agent.pem CA/cacert.pem > chown root.freeswitch agent.pem CA/cacert.pem > > Then I edited /opt/freeswitch/etc/freeswitch/vars.xml to set > internal_ssl_enable and external_ssl_enable to true. > > Then I restarted FS. I checked the CLI and it shows "WS SETUP FAILED" > repeatedly. *Any suggestion?* > > Blazing ahead...then I exposed the public IP of the FS machine under a > subdomain of the CA root cert's domain. (I used a wildcard subdomain for > -org when generating both certs; maybe giving a wildcard this way is > unnecessary or counterproductive.) > > Now, the part that puzzles me: I'm already using a "real CA" cert in order > to serve my verto client files over https from my DNS name, so browsers > won't show security warnings. But I bet I need to have the same CA root > cert installed in FS as I use in the webserver, right? I saw the note that > commercial certs should work, but *it's not clear what steps to follow to > install one*. > > Cheers, > David > > > On Tue, May 22, 2018 at 9:50 PM, David P > wrote: > >> We use conferences to allow a verto user to call and connect with an >> Asterisk channel. We would like to secure both signalling and media via TLS >> + SRTP, and I've read >> https://freeswitch.org/confluence/display/FREESWITCH/SIP+TLS a few times >> to understand how to do this. Note that that page has a broken link: >> https://wiki.freeswitch.org/wiki/Secure_RTP >> >> First, is it still true that FS doesn't offer prebuilt installs (for >> Ubuntu) to support this kind of security? >> >> Assuming that it must be compiled, I began to follow >> https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie >> with the additional first step of: apt-get install libssl-dev >> >> I soon ran into "Unable to locate package freeswitch-video-deps-most". >> >> What should I try next? >> >> Cheers, >> David >> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Thu May 24 16:32:32 2018 From: mike at jerris.com (Michael Jerris) Date: Thu, 24 May 2018 12:32:32 -0400 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls In-Reply-To: References: Message-ID: we will gen whats needed for dtls srtp automatically, you need to provide the cert for wss (same as what you need for tls, as wss is just tls secured ws) It does require the cert and chain. More info: https://freeswitch.org/confluence/display/FREESWITCH/WebRTC#WebRTC-InstallCertificates Mike > On May 24, 2018, at 12:23 PM, David P wrote: > > Thanks, Mike, I'll try another distro. > > About verto, which I already serve under an AWS free non-exportable cert, does it need the gentls-generated CA root cert somewhere? > > And do I need any more steps to secure the streamed media? > > On Thu, 24 May 2018, 9:05 am Michael Jerris, > wrote: > Try something NOT ubuntu. Ubuntu disables some required stuff in their openssl making it unusable for webrtc at least in some versions. > > >> On May 24, 2018, at 1:27 AM, David P > wrote: >> >> While waiting for suggestions, I tried more things. In particular, I tested whether gentls_cert was present in our FS install (which is at /opt/freeswitch/ on ubuntu). >> >> It is present, but the CA root cert step writes to {prefix}/etc/freeswitch/tls/CA/ instead of {prefix}/conf/ssl/CA/. In particular, the root CA step generates: >> >> etc/freeswitch/tls/ >> cafile.pem >> >> etc/freeswitch/tls/CA/ >> cacert.pem >> cakey.pem >> config.tpl >> >> And the server cert step generates: >> >> etc/freeswitch/tls/ >> agent.pem >> >> etc/freeswitch/tls/CA/ >> cacert.srl >> >> Reviewing agent.pem shows it's fine: >> openssl x509 -noout -inform pem -text -in /opt/freeswitch/etc/freeswitch/tls/agent.pem >> >> But it's owned by user root group root, so: >> cd /opt/freeswitch/etc/freeswitch/tls/ >> chmod 640 agent.pem CA/cacert.pem >> chown root.freeswitch agent.pem CA/cacert.pem >> >> Then I edited /opt/freeswitch/etc/freeswitch/vars.xml to set internal_ssl_enable and external_ssl_enable to true. >> >> Then I restarted FS. I checked the CLI and it shows "WS SETUP FAILED" repeatedly. *Any suggestion?* >> >> Blazing ahead...then I exposed the public IP of the FS machine under a subdomain of the CA root cert's domain. (I used a wildcard subdomain for -org when generating both certs; maybe giving a wildcard this way is unnecessary or counterproductive.) >> >> Now, the part that puzzles me: I'm already using a "real CA" cert in order to serve my verto client files over https from my DNS name, so browsers won't show security warnings. But I bet I need to have the same CA root cert installed in FS as I use in the webserver, right? I saw the note that commercial certs should work, but *it's not clear what steps to follow to install one*. >> >> Cheers, >> David >> >> >> On Tue, May 22, 2018 at 9:50 PM, David P > wrote: >> We use conferences to allow a verto user to call and connect with an Asterisk channel. We would like to secure both signalling and media via TLS + SRTP, and I've read https://freeswitch.org/confluence/display/FREESWITCH/SIP+TLS a few times to understand how to do this. Note that that page has a broken link: https://wiki.freeswitch.org/wiki/Secure_RTP >> >> First, is it still true that FS doesn't offer prebuilt installs (for Ubuntu) to support this kind of security? >> >> Assuming that it must be compiled, I began to follow https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie with the additional first step of: apt-get install libssl-dev >> >> I soon ran into "Unable to locate package freeswitch-video-deps-most". >> >> What should I try next? >> >> Cheers, >> David > -------------- next part -------------- An HTML attachment was scrubbed... URL: From SANOOJ_KARANATH_SACHIDANANDAN at homedepot.com Thu May 24 16:54:02 2018 From: SANOOJ_KARANATH_SACHIDANANDAN at homedepot.com (Karanath sachidanandan, Sanooj) Date: Thu, 24 May 2018 16:54:02 +0000 Subject: [Freeswitch-users] Freeswitch in google cloud platform Message-ID: <8BD7BAD0-5461-4874-A80A-60B79F16965E@homedepot.com> Hi Guys , Anybody using Freeswitch in Google cloud platform ? I am trying to have a multi region freeswitch installation in google cloud with Sip load balancer Kamailio . But challenge is to have a multi region load balancing. Google’s TCP load balancer looks promising but don’t support Sip ports(5060, 5061) Any thoughts on that or any other suggestion? Thanks in advance https://cloud.google.com/compute/docs/load-balancing/tcp-ssl/tcp-proxy Regards Sanooj ________________________________ The information in this Internet Email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this Email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this Email are subject to the terms and conditions expressed in any applicable governing The Home Depot terms of business or client engagement letter. The Home Depot disclaims all responsibility and liability for the accuracy and content of this attachment and for any damages or losses arising from any inaccuracies, errors, viruses, e.g., worms, trojan horses, etc., or other items of a destructive nature, which may be contained in this attachment and shall not be liable for direct, indirect, consequential or special damages in connection with this e-mail message or its attachment. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Thu May 24 16:58:24 2018 From: mike at jerris.com (Michael Jerris) Date: Thu, 24 May 2018 12:58:24 -0400 Subject: [Freeswitch-users] Freeswitch in google cloud platform In-Reply-To: <8BD7BAD0-5461-4874-A80A-60B79F16965E@homedepot.com> References: <8BD7BAD0-5461-4874-A80A-60B79F16965E@homedepot.com> Message-ID: <94390C08-17C2-473F-854D-DCA35744DD29@jerris.com> A tcp load balancer without sip support wouldn’t be sufficient. You’d need something with an understanding of sip like Kamailio or OpenSips to do that. Also, in regards to your confidentiality statement on your email, please note that no emails to the list are confidential, and we will not remove emails from the list archive. Please in the future remove your confidentiality statement from emails and take this as notice that they are not and we will take no action to remove them from the archives in the future (yes we have been asked in the past to do this, which is why i have to make this statement). > On May 24, 2018, at 12:54 PM, Karanath sachidanandan, Sanooj wrote: > > Hi Guys , > Anybody using Freeswitch in Google cloud platform ? I am trying to have a multi region freeswitch installation in google cloud with Sip load balancer Kamailio . But challenge is to have a multi region load balancing. Google’s TCP load balancer looks promising but don’t support Sip ports(5060, 5061) > > Any thoughts on that or any other suggestion? Thanks in advance > > > https://cloud.google.com/compute/docs/load-balancing/tcp-ssl/tcp-proxy -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Thu May 24 17:11:37 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Thu, 24 May 2018 19:11:37 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: Message-ID: Hi, The tables are: ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db freeswitch_db-# \dt List of relations Schema | Name | Type | Owner --------+-------------------------------------+-------+---------- public | aliases | table | postgres public | calls | table | postgres public | channels | table | postgres public | complete | table | postgres public | db_data | table | postgres public | fifo_bridge | table | postgres public | fifo_callers | table | postgres public | fifo_outbound | table | postgres public | group_data | table | postgres public | interfaces | table | postgres public | json_store | table | postgres public | limit_data | table | postgres public | nat | table | postgres public | recovery | table | postgres public | registrations | table | postgres public | sip_authentication | table | postgres public | sip_dialogs | table | postgres public | sip_presence | table | postgres public | sip_registrations | table | postgres public | sip_shared_appearance_dialogs | table | postgres public | sip_shared_appearance_subscriptions | table | postgres public | sip_subscriptions | table | postgres public | tasks | table | postgres public | voicemail_msgs | table | postgres public | voicemail_prefs | table | postgres (25 rows) I continued testing and found that if I configure switch.conf.xml file like this: When I turn on freeswitch, postgresql don't output nothing. Then I tried to configure freeswitch using odbc I then YES I get something in postgresql logs For odbc I have something not clear, it is mandatory to put files in /usr/local/freeswitch/etc ? or leaving them at default directory (/etc) is enough? Here I show the config of odbc files: root at freeswitch-capa8:/etc# cat odbc.ini [freeswitch] ; WARNING: The old psql odbc driver psqlodbc.so is now renamed psqlodbcw.so ; in version 08.x. Note that the library can also be installed under an other ; path than /usr/local/lib/ following your installation. ; Driver = /usr/lib64/odbc/psqlodbcw.so ; Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so Description=Connection to LDAP/POSTGRESQL Servername=localhost Port=5432 Protocol=6.4 FetchBufferSize=99 Username=freeswitch_user Password=XXX Database=freeswitch_db ReadOnly=no Debug=0 CommLog=0 root at freeswitch-capa8:/etc# cat odbcinst.ini [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 ;Driver = /usr/lib64/odbc/psqlodbcw.so Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so Threading = 0 MaxLongVarcharSize=65536 And then connect to psql through odbc root at freeswitch-capa8:/etc# isql -v freeswitch +---------------------------------------+ | Connected! | | | | sql-statement | | help [tablename] | | quit | | | +---------------------------------------+ SQL> Then in file switch.conf.xml I changed db connection configuration root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# cat switch.conf.xml |grep core-db-dsn Last night SwK user at freenode channel told me that freeswitch on turning on, it creates tables at database (thanks SwK). I spect that configuration of odbc is working but drops lot of errors (here you have some lines): 2018-05-24 02:03:25 CEST [3099-338780] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE nat ( sticky INTEGER, port INTEGER, proto INTEGER, hostname VARCHAR(256) ); ;EXECUTE "_PLAN0x140bf90" 2018-05-24 02:03:25 CEST [3099-338781] freeswitch_user at freeswitch_db WARNING: there is already a transaction in progress 2018-05-24 02:03:25 CEST [3099-338782] freeswitch_user at freeswitch_db ERROR: relation "registrations" does not exist at character 41 2018-05-24 02:03:25 CEST [3099-338783] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x140bf90" as delete from registrations where reg_user='';EXECUTE "_PLAN0x140bf90" 2018-05-24 02:03:25 CEST [3099-338784] freeswitch_user at freeswitch_db WARNING: there is already a transaction in progress 2018-05-24 02:03:25 CEST [3099-338785] freeswitch_user at freeswitch_db ERROR: syntax error at or near "DROP" at character 29 2018-05-24 02:03:25 CEST [3099-338786] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x140bf90" as DROP TABLE registrations;EXECUTE "_PLAN0x140bf90" 2018-05-24 02:03:25 CEST [3099-338787] freeswitch_user at freeswitch_db WARNING: there is already a transaction in progress 2018-05-24 02:03:25 CEST [3099-338788] freeswitch_user at freeswitch_db ERROR: syntax error at or near "CREATE" at character 29 2018-05-24 02:03:25 CEST [3099-338789] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE registrations ( reg_user VARCHAR(256), realm VARCHAR(256), token VARCHAR(256), url TEXT, expires INTEGER, network_ip VARCHAR(256), network_port VARCHAR(256), network_proto VARCHAR(256), hostname VARCHAR(256), metadata VARCHAR(256) ); ;EXECUTE "_PLAN0x140bf90" 2018-05-24 02:03:25 CEST [3099-338790] freeswitch_user at freeswitch_db WARNING: there is already a transaction in progress 2018-05-24 02:03:25 CEST [3099-338791] freeswitch_user at freeswitch_db LOG: unexpected EOF on client connection with an open transaction I tested with tables in psql database and without tables in psql database. freeswitch at freeswitch-capa8> version FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git 3c7db63 2018-05-16 21:12:08Z 64bit) As I told in last mail, I'm working with last git version. Then I have a last question, related to that (db), when it will work, all mods will save the information to pgsql or a mix some to sqlite and some to pgsql? I saw in other files the availibility to configure also db, like /usr/local/freeswitch/conf/sip_profiles/internal.xml root at freeswitch-capa8:/usr/local/freeswitch/conf# cat /usr/local/freeswitch/conf/sip_profiles/internal.xml |grep db The config you see in the mail is the last configuration I defined. Yesterday I get lost with wich config work or wich one no... I feel I'm almost at end of this installation! I'm doing a step by step manual in spanish to how to install last version of freeswitch, this will be public and if you want I could upload to wiki. Thanks you much for your help :) References: https://freeswitch.org/confluence/display/FREESWITCH/PostgreSQL+in+the+core https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+Databases - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-24 18:21 GMT+02:00 Michael Jerris : > what tables are ending up in the recreated sqlite db? You need to set it > for the modules that use sqlite too (like for mod_sofia). we have a global > var for this in default configs. > > > On May 23, 2018, at 6:13 PM, Blackhold > wrote: > > > > Hi, > > I have just installed freeswitch 1.9 > > > > freeswitch at freeswitch-capa8> version > > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git > 3c7db63 2018-05-16 21:12:08Z 64bit) > > > > And I'm trying to freeswitch use postgresql instead sqlitedb. > > > > I have configured the file switch.conf.xml of /usr/local/freeswitch/conf/autoload_configs > with uncomenting and configuring this line > > > > > > > > then I exported all sqlitedbs to sql and then imported to a database > that I have created in postgresql > > > > I have run again /etc/init.d/freeswitch.sh start > > > > But seems it still is taking sqlitedb. > > > > I tried to move the sqlitedbs files to other side and turned on again > freeswitch, but it creates sqlitedbs again. > > > > What I'm missing? what I'm doing wrong? what could I check? > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Thu May 24 17:24:27 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Thu, 24 May 2018 19:24:27 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: Message-ID: Hey! an another question... In wich table will be stored users? now if I run list_clients or list_users, sorry, I'm new in freeswitch, it picks the configuration files. Wich data I have to delete from config files once db is running? Thanks - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-24 19:11 GMT+02:00 Blackhold : > Hi, > The tables are: > > ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db > freeswitch_db-# \dt > > List of relations > Schema | Name | Type | Owner > --------+-------------------------------------+-------+---------- > public | aliases | table | postgres > public | calls | table | postgres > public | channels | table | postgres > public | complete | table | postgres > public | db_data | table | postgres > public | fifo_bridge | table | postgres > public | fifo_callers | table | postgres > public | fifo_outbound | table | postgres > public | group_data | table | postgres > public | interfaces | table | postgres > public | json_store | table | postgres > public | limit_data | table | postgres > public | nat | table | postgres > public | recovery | table | postgres > public | registrations | table | postgres > public | sip_authentication | table | postgres > public | sip_dialogs | table | postgres > public | sip_presence | table | postgres > public | sip_registrations | table | postgres > public | sip_shared_appearance_dialogs | table | postgres > public | sip_shared_appearance_subscriptions | table | postgres > public | sip_subscriptions | table | postgres > public | tasks | table | postgres > public | voicemail_msgs | table | postgres > public | voicemail_prefs | table | postgres > (25 rows) > > I continued testing and found that if I configure switch.conf.xml file > like this: > > > > When I turn on freeswitch, postgresql don't output nothing. Then I tried > to configure freeswitch using odbc I then YES I get something in postgresql > logs > > For odbc I have something not clear, it is mandatory to put files in > /usr/local/freeswitch/etc ? or leaving them at default directory (/etc) is > enough? > > Here I show the config of odbc files: > root at freeswitch-capa8:/etc# cat odbc.ini > [freeswitch] > ; WARNING: The old psql odbc driver psqlodbc.so is now renamed psqlodbcw.so > ; in version 08.x. Note that the library can also be installed under an > other > ; path than /usr/local/lib/ following your installation. > ; Driver = /usr/lib64/odbc/psqlodbcw.so > ; Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so > Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so > Description=Connection to LDAP/POSTGRESQL > Servername=localhost > Port=5432 > Protocol=6.4 > FetchBufferSize=99 > Username=freeswitch_user > Password=XXX > Database=freeswitch_db > ReadOnly=no > Debug=0 > CommLog=0 > > root at freeswitch-capa8:/etc# cat odbcinst.ini > [PostgreSQL] > Description = PostgreSQL driver for Linux & Win32 > ;Driver = /usr/lib64/odbc/psqlodbcw.so > Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so > Threading = 0 > MaxLongVarcharSize=65536 > > And then connect to psql through odbc > > root at freeswitch-capa8:/etc# isql -v freeswitch > +---------------------------------------+ > | Connected! | > | | > | sql-statement | > | help [tablename] | > | quit | > | | > +---------------------------------------+ > SQL> > > Then in file switch.conf.xml I changed db connection configuration > > root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# cat > switch.conf.xml |grep core-db-dsn > > > > Last night SwK user at freenode channel told me that freeswitch on turning > on, it creates tables at database (thanks SwK). > > I spect that configuration of odbc is working but drops lot of errors > (here you have some lines): > > 2018-05-24 02:03:25 CEST [3099-338780] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE nat ( > sticky INTEGER, > port INTEGER, > proto INTEGER, > hostname VARCHAR(256) > ); > ;EXECUTE "_PLAN0x140bf90" > 2018-05-24 02:03:25 CEST [3099-338781] freeswitch_user at freeswitch_db > WARNING: there is already a transaction in progress > 2018-05-24 02:03:25 CEST [3099-338782] freeswitch_user at freeswitch_db > ERROR: relation "registrations" does not exist at character 41 > 2018-05-24 02:03:25 CEST [3099-338783] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x140bf90" as delete from registrations where > reg_user='';EXECUTE "_PLAN0x140bf90" > 2018-05-24 02:03:25 CEST [3099-338784] freeswitch_user at freeswitch_db > WARNING: there is already a transaction in progress > 2018-05-24 02:03:25 CEST [3099-338785] freeswitch_user at freeswitch_db > ERROR: syntax error at or near "DROP" at character 29 > 2018-05-24 02:03:25 CEST [3099-338786] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x140bf90" as DROP TABLE registrations;EXECUTE > "_PLAN0x140bf90" > 2018-05-24 02:03:25 CEST [3099-338787] freeswitch_user at freeswitch_db > WARNING: there is already a transaction in progress > 2018-05-24 02:03:25 CEST [3099-338788] freeswitch_user at freeswitch_db > ERROR: syntax error at or near "CREATE" at character 29 > 2018-05-24 02:03:25 CEST [3099-338789] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE registrations ( > reg_user VARCHAR(256), > realm VARCHAR(256), > token VARCHAR(256), > url TEXT, > expires INTEGER, > network_ip VARCHAR(256), > network_port VARCHAR(256), > network_proto VARCHAR(256), > hostname VARCHAR(256), > metadata VARCHAR(256) > ); > ;EXECUTE "_PLAN0x140bf90" > 2018-05-24 02:03:25 CEST [3099-338790] freeswitch_user at freeswitch_db > WARNING: there is already a transaction in progress > 2018-05-24 02:03:25 CEST [3099-338791] freeswitch_user at freeswitch_db > LOG: unexpected EOF on client connection with an open transaction > > > I tested with tables in psql database and without tables in psql database. > > freeswitch at freeswitch-capa8> version > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git > 3c7db63 2018-05-16 21:12:08Z 64bit) > > As I told in last mail, I'm working with last git version. > > Then I have a last question, related to that (db), when it will work, all > mods will save the information to pgsql or a mix some to sqlite and some to > pgsql? I saw in other files the availibility to configure also db, like > /usr/local/freeswitch/conf/sip_profiles/internal.xml > > root at freeswitch-capa8:/usr/local/freeswitch/conf# cat > /usr/local/freeswitch/conf/sip_profiles/internal.xml |grep db > > > > > > > > > The config you see in the mail is the last configuration I defined. > Yesterday I get lost with wich config work or wich one no... > > I feel I'm almost at end of this installation! I'm doing a step by step > manual in spanish to how to install last version of freeswitch, this will > be public and if you want I could upload to wiki. > > Thanks you much for your help :) > > References: > https://freeswitch.org/confluence/display/FREESWITCH/ > PostgreSQL+in+the+core > https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN > https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+Databases > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres > mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-24 18:21 GMT+02:00 Michael Jerris : > >> what tables are ending up in the recreated sqlite db? You need to set it >> for the modules that use sqlite too (like for mod_sofia). we have a global >> var for this in default configs. >> >> > On May 23, 2018, at 6:13 PM, Blackhold >> wrote: >> > >> > Hi, >> > I have just installed freeswitch 1.9 >> > >> > freeswitch at freeswitch-capa8> version >> > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git >> 3c7db63 2018-05-16 21:12:08Z 64bit) >> > >> > And I'm trying to freeswitch use postgresql instead sqlitedb. >> > >> > I have configured the file switch.conf.xml of >> /usr/local/freeswitch/conf/autoload_configs with uncomenting and >> configuring this line >> > >> > >> > >> > then I exported all sqlitedbs to sql and then imported to a database >> that I have created in postgresql >> > >> > I have run again /etc/init.d/freeswitch.sh start >> > >> > But seems it still is taking sqlitedb. >> > >> > I tried to move the sqlitedbs files to other side and turned on again >> freeswitch, but it creates sqlitedbs again. >> > >> > What I'm missing? what I'm doing wrong? what could I check? >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel at textplus.com Thu May 24 17:25:28 2018 From: joel at textplus.com (Joel Serrano) Date: Thu, 24 May 2018 10:25:28 -0700 Subject: [Freeswitch-users] Freeswitch in google cloud platform In-Reply-To: <94390C08-17C2-473F-854D-DCA35744DD29@jerris.com> References: <8BD7BAD0-5461-4874-A80A-60B79F16965E@homedepot.com> <94390C08-17C2-473F-854D-DCA35744DD29@jerris.com> Message-ID: In gcloud docs it says: *"TCP Proxy Load Balancing supports the following ports: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1883, 5222"* They are not mentioning protocols or applications, I don't know if you setup kamailio to listen for example on port 443 if it might work? Clients would have to connect to X.X.X.X:443 though... (which is solvable using SRV records). This is a suggestion to test, I'm really not sure myself if it would work. I don't know if google does straight TCP proxy or if it has any sort of application level awareness, in such case it would definitely not work (as the default 5060 SIP port is not listed). Giving the example they have a little further down in the docs, (talking about setting up apache (http) to listen on port 110 (pop3), and using curl to test) makes me think that it could work. Client -> Kamailio -> FreeSWITCHs = Works... widely used. Client -> GCP Load Balancer -> Kamailio -> FreeSWITCHs = No idea, best way to find out is to test, one thing for sure is you will have to mess around a lot in the config file to get the IPs right in all the headers. Does what I'm saying makes sense? Please correct me if I'm wrong. Best, Joel. On Thu, May 24, 2018 at 9:58 AM, Michael Jerris wrote: > A tcp load balancer without sip support wouldn’t be sufficient. You’d > need something with an understanding of sip like Kamailio or OpenSips to do > that. > > Also, in regards to your confidentiality statement on your email, please > note that no emails to the list are confidential, and we will not remove > emails from the list archive. Please in the future remove your > confidentiality statement from emails and take this as notice that they are > not and we will take no action to remove them from the archives in the > future (yes we have been asked in the past to do this, which is why i have > to make this statement). > > > > > On May 24, 2018, at 12:54 PM, Karanath sachidanandan, Sanooj < > SANOOJ_KARANATH_SACHIDANANDAN at homedepot.com> wrote: > > Hi Guys , > Anybody using Freeswitch in Google cloud platform ? I am trying to have a > multi region freeswitch installation in google cloud with Sip load > balancer Kamailio . But challenge is to have a multi region load > balancing. Google’s TCP load balancer looks promising but don’t support > Sip ports(5060, 5061) > > Any thoughts on that or any other suggestion? Thanks in advance > > > https://cloud.google.com/compute/docs/load-balancing/tcp-ssl/tcp-proxy > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From SANOOJ_KARANATH_SACHIDANANDAN at homedepot.com Thu May 24 17:30:26 2018 From: SANOOJ_KARANATH_SACHIDANANDAN at homedepot.com (Karanath sachidanandan, Sanooj) Date: Thu, 24 May 2018 17:30:26 +0000 Subject: [Freeswitch-users] [EXTERNAL] Re: Freeswitch in google cloud platform In-Reply-To: References: <8BD7BAD0-5461-4874-A80A-60B79F16965E@homedepot.com> <94390C08-17C2-473F-854D-DCA35744DD29@jerris.com> Message-ID: <292E09AC-B8C3-49EE-9C28-3E8BA779E6C8@homedepot.com> Sorry for confidentiality statement in mail ,It is getting added by server @Joel Serrano yes it make sense, let me experiment more Regards Sanooj From: FreeSWITCH-users on behalf of Joel Serrano Reply-To: FreeSWITCH Users Help Date: Thursday, May 24, 2018 at 1:26 PM To: FreeSWITCH Users Help Subject: [EXTERNAL] Re: [Freeswitch-users] Freeswitch in google cloud platform In gcloud docs it says: "TCP Proxy Load Balancing supports the following ports: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1883, 5222" They are not mentioning protocols or applications, I don't know if you setup kamailio to listen for example on port 443 if it might work? Clients would have to connect to X.X.X.X:443 though... (which is solvable using SRV records). This is a suggestion to test, I'm really not sure myself if it would work. I don't know if google does straight TCP proxy or if it has any sort of application level awareness, in such case it would definitely not work (as the default 5060 SIP port is not listed). Giving the example they have a little further down in the docs, (talking about setting up apache (http) to listen on port 110 (pop3), and using curl to test) makes me think that it could work. Client -> Kamailio -> FreeSWITCHs = Works... widely used. Client -> GCP Load Balancer -> Kamailio -> FreeSWITCHs = No idea, best way to find out is to test, one thing for sure is you will have to mess around a lot in the config file to get the IPs right in all the headers. Does what I'm saying makes sense? Please correct me if I'm wrong. Best, Joel. On Thu, May 24, 2018 at 9:58 AM, Michael Jerris > wrote: A tcp load balancer without sip support wouldn’t be sufficient. You’d need something with an understanding of sip like Kamailio or OpenSips to do that. Also, in regards to your confidentiality statement on your email, please note that no emails to the list are confidential, and we will not remove emails from the list archive. Please in the future remove your confidentiality statement from emails and take this as notice that they are not and we will take no action to remove them from the archives in the future (yes we have been asked in the past to do this, which is why i have to make this statement). On May 24, 2018, at 12:54 PM, Karanath sachidanandan, Sanooj > wrote: Hi Guys , Anybody using Freeswitch in Google cloud platform ? I am trying to have a multi region freeswitch installation in google cloud with Sip load balancer Kamailio . But challenge is to have a multi region load balancing. Google’s TCP load balancer looks promising but don’t support Sip ports(5060, 5061) Any thoughts on that or any other suggestion? Thanks in advance https://cloud.google.com/compute/docs/load-balancing/tcp-ssl/tcp-proxy _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ________________________________ The information in this Internet Email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this Email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this Email are subject to the terms and conditions expressed in any applicable governing The Home Depot terms of business or client engagement letter. The Home Depot disclaims all responsibility and liability for the accuracy and content of this attachment and for any damages or losses arising from any inaccuracies, errors, viruses, e.g., worms, trojan horses, etc., or other items of a destructive nature, which may be contained in this attachment and shall not be liable for direct, indirect, consequential or special damages in connection with this e-mail message or its attachment. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Thu May 24 17:30:41 2018 From: mike at jerris.com (Michael Jerris) Date: Thu, 24 May 2018 13:30:41 -0400 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: Message-ID: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> but that table layout is like that because you imported the tables, i was asking what is in the recreated sqlite ones. If it fails to connect like you later describe, its going to fall back, you should see stuff in the fs logs on startup about this. the odbc configs go in the normal place they go in the os, not in fs specific dirs. Those errors tell me something is up, but not sure what, might need to turn on some debug on pg side to see. some of our tests like to see if table schema is right throw errors then we act on them, if you restart a second time you should get a more useful set of errors. > On May 24, 2018, at 1:11 PM, Blackhold wrote: > > Hi, > The tables are: > > ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db > freeswitch_db-# \dt > > List of relations > Schema | Name | Type | Owner > --------+-------------------------------------+-------+---------- > public | aliases | table | postgres > public | calls | table | postgres > public | channels | table | postgres > public | complete | table | postgres > public | db_data | table | postgres > public | fifo_bridge | table | postgres > public | fifo_callers | table | postgres > public | fifo_outbound | table | postgres > public | group_data | table | postgres > public | interfaces | table | postgres > public | json_store | table | postgres > public | limit_data | table | postgres > public | nat | table | postgres > public | recovery | table | postgres > public | registrations | table | postgres > public | sip_authentication | table | postgres > public | sip_dialogs | table | postgres > public | sip_presence | table | postgres > public | sip_registrations | table | postgres > public | sip_shared_appearance_dialogs | table | postgres > public | sip_shared_appearance_subscriptions | table | postgres > public | sip_subscriptions | table | postgres > public | tasks | table | postgres > public | voicemail_msgs | table | postgres > public | voicemail_prefs | table | postgres > (25 rows) > > I continued testing and found that if I configure switch.conf.xml file like this: > > > > When I turn on freeswitch, postgresql don't output nothing. Then I tried to configure freeswitch using odbc I then YES I get something in postgresql logs > > For odbc I have something not clear, it is mandatory to put files in /usr/local/freeswitch/etc ? or leaving them at default directory (/etc) is enough? > > Here I show the config of odbc files: > root at freeswitch-capa8:/etc# cat odbc.ini > [freeswitch] > ; WARNING: The old psql odbc driver psqlodbc.so is now renamed psqlodbcw.so > ; in version 08.x. Note that the library can also be installed under an other > ; path than /usr/local/lib/ following your installation. > ; Driver = /usr/lib64/odbc/psqlodbcw.so > ; Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so > Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so > Description=Connection to LDAP/POSTGRESQL > Servername=localhost > Port=5432 > Protocol=6.4 > FetchBufferSize=99 > Username=freeswitch_user > Password=XXX > Database=freeswitch_db > ReadOnly=no > Debug=0 > CommLog=0 > > root at freeswitch-capa8:/etc# cat odbcinst.ini > [PostgreSQL] > Description = PostgreSQL driver for Linux & Win32 > ;Driver = /usr/lib64/odbc/psqlodbcw.so > Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so > Threading = 0 > MaxLongVarcharSize=65536 > > And then connect to psql through odbc > > root at freeswitch-capa8:/etc# isql -v freeswitch > +---------------------------------------+ > | Connected! | > | | > | sql-statement | > | help [tablename] | > | quit | > | | > +---------------------------------------+ > SQL> > > Then in file switch.conf.xml I changed db connection configuration > > root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# cat switch.conf.xml |grep core-db-dsn > > > > Last night SwK user at freenode channel told me that freeswitch on turning on, it creates tables at database (thanks SwK). > > I spect that configuration of odbc is working but drops lot of errors (here you have some lines): > > 2018-05-24 02:03:25 CEST [3099-338780] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE nat ( > sticky INTEGER, > port INTEGER, > proto INTEGER, > hostname VARCHAR(256) > ); > ;EXECUTE "_PLAN0x140bf90" > 2018-05-24 02:03:25 CEST [3099-338781] freeswitch_user at freeswitch_db WARNING: there is already a transaction in progress > 2018-05-24 02:03:25 CEST [3099-338782] freeswitch_user at freeswitch_db ERROR: relation "registrations" does not exist at character 41 > 2018-05-24 02:03:25 CEST [3099-338783] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x140bf90" as delete from registrations where reg_user='';EXECUTE "_PLAN0x140bf90" > 2018-05-24 02:03:25 CEST [3099-338784] freeswitch_user at freeswitch_db WARNING: there is already a transaction in progress > 2018-05-24 02:03:25 CEST [3099-338785] freeswitch_user at freeswitch_db ERROR: syntax error at or near "DROP" at character 29 > 2018-05-24 02:03:25 CEST [3099-338786] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x140bf90" as DROP TABLE registrations;EXECUTE "_PLAN0x140bf90" > 2018-05-24 02:03:25 CEST [3099-338787] freeswitch_user at freeswitch_db WARNING: there is already a transaction in progress > 2018-05-24 02:03:25 CEST [3099-338788] freeswitch_user at freeswitch_db ERROR: syntax error at or near "CREATE" at character 29 > 2018-05-24 02:03:25 CEST [3099-338789] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE registrations ( > reg_user VARCHAR(256), > realm VARCHAR(256), > token VARCHAR(256), > url TEXT, > expires INTEGER, > network_ip VARCHAR(256), > network_port VARCHAR(256), > network_proto VARCHAR(256), > hostname VARCHAR(256), > metadata VARCHAR(256) > ); > ;EXECUTE "_PLAN0x140bf90" > 2018-05-24 02:03:25 CEST [3099-338790] freeswitch_user at freeswitch_db WARNING: there is already a transaction in progress > 2018-05-24 02:03:25 CEST [3099-338791] freeswitch_user at freeswitch_db LOG: unexpected EOF on client connection with an open transaction > > > I tested with tables in psql database and without tables in psql database. > > freeswitch at freeswitch-capa8> version > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git 3c7db63 2018-05-16 21:12:08Z 64bit) > > As I told in last mail, I'm working with last git version. > > Then I have a last question, related to that (db), when it will work, all mods will save the information to pgsql or a mix some to sqlite and some to pgsql? I saw in other files the availibility to configure also db, like /usr/local/freeswitch/conf/sip_profiles/internal.xml > > root at freeswitch-capa8:/usr/local/freeswitch/conf# cat /usr/local/freeswitch/conf/sip_profiles/internal.xml |grep db > > > > > > > > > The config you see in the mail is the last configuration I defined. Yesterday I get lost with wich config work or wich one no... > > I feel I'm almost at end of this installation! I'm doing a step by step manual in spanish to how to install last version of freeswitch, this will be public and if you want I could upload to wiki. > > Thanks you much for your help :) > > References: > https://freeswitch.org/confluence/display/FREESWITCH/PostgreSQL+in+the+core > https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN > https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+Databases > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-24 18:21 GMT+02:00 Michael Jerris >: > what tables are ending up in the recreated sqlite db? You need to set it for the modules that use sqlite too (like for mod_sofia). we have a global var for this in default configs. > > > On May 23, 2018, at 6:13 PM, Blackhold > wrote: > > > > Hi, > > I have just installed freeswitch 1.9 > > > > freeswitch at freeswitch-capa8> version > > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git 3c7db63 2018-05-16 21:12:08Z 64bit) > > > > And I'm trying to freeswitch use postgresql instead sqlitedb. > > > > I have configured the file switch.conf.xml of /usr/local/freeswitch/conf/autoload_configs with uncomenting and configuring this line > > > > > > > > then I exported all sqlitedbs to sql and then imported to a database that I have created in postgresql > > > > I have run again /etc/init.d/freeswitch.sh start > > > > But seems it still is taking sqlitedb. > > > > I tried to move the sqlitedbs files to other side and turned on again freeswitch, but it creates sqlitedbs again. > > > > What I'm missing? what I'm doing wrong? what could I check? > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Thu May 24 17:33:11 2018 From: mike at jerris.com (Michael Jerris) Date: Thu, 24 May 2018 13:33:11 -0400 Subject: [Freeswitch-users] Freeswitch in google cloud platform In-Reply-To: References: <8BD7BAD0-5461-4874-A80A-60B79F16965E@homedepot.com> <94390C08-17C2-473F-854D-DCA35744DD29@jerris.com> Message-ID: <04869A56-D624-499B-992C-2F2E15E09401@jerris.com> No, this isn’t going to do what you need for sip regardless of port. > On May 24, 2018, at 1:25 PM, Joel Serrano wrote: > > In gcloud docs it says: > > "TCP Proxy Load Balancing supports the following ports: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1883, 5222" > > They are not mentioning protocols or applications, I don't know if you setup kamailio to listen for example on port 443 if it might work? Clients would have to connect to X.X.X.X:443 though... (which is solvable using SRV records). > > This is a suggestion to test, I'm really not sure myself if it would work. I don't know if google does straight TCP proxy or if it has any sort of application level awareness, in such case it would definitely not work (as the default 5060 SIP port is not listed). Giving the example they have a little further down in the docs, (talking about setting up apache (http) to listen on port 110 (pop3), and using curl to test) makes me think that it could work. > > Client -> Kamailio -> FreeSWITCHs = Works... widely used. > Client -> GCP Load Balancer -> Kamailio -> FreeSWITCHs = No idea, best way to find out is to test, one thing for sure is you will have to mess around a lot in the config file to get the IPs right in all the headers. > > Does what I'm saying makes sense? Please correct me if I'm wrong. > > Best, > Joel. > > > > > On Thu, May 24, 2018 at 9:58 AM, Michael Jerris > wrote: > A tcp load balancer without sip support wouldn’t be sufficient. You’d need something with an understanding of sip like Kamailio or OpenSips to do that. > > Also, in regards to your confidentiality statement on your email, please note that no emails to the list are confidential, and we will not remove emails from the list archive. Please in the future remove your confidentiality statement from emails and take this as notice that they are not and we will take no action to remove them from the archives in the future (yes we have been asked in the past to do this, which is why i have to make this statement). > > > > >> On May 24, 2018, at 12:54 PM, Karanath sachidanandan, Sanooj > wrote: >> >> Hi Guys , >> Anybody using Freeswitch in Google cloud platform ? I am trying to have a multi region freeswitch installation in google cloud with Sip load balancer Kamailio . But challenge is to have a multi region load balancing. Google’s TCP load balancer looks promising but don’t support Sip ports(5060, 5061) >> >> Any thoughts on that or any other suggestion? Thanks in advance >> >> >> https://cloud.google.com/compute/docs/load-balancing/tcp-ssl/tcp-proxy -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel at textplus.com Thu May 24 17:47:21 2018 From: joel at textplus.com (Joel Serrano) Date: Thu, 24 May 2018 10:47:21 -0700 Subject: [Freeswitch-users] Freeswitch in google cloud platform In-Reply-To: <04869A56-D624-499B-992C-2F2E15E09401@jerris.com> References: <8BD7BAD0-5461-4874-A80A-60B79F16965E@homedepot.com> <94390C08-17C2-473F-854D-DCA35744DD29@jerris.com> <04869A56-D624-499B-992C-2F2E15E09401@jerris.com> Message-ID: Thanks for clarifying Mike! TBH, I have always wondered if that kind of setup would work. Joel. On Thu, May 24, 2018 at 10:33 AM, Michael Jerris wrote: > No, this isn’t going to do what you need for sip regardless of port. > > > On May 24, 2018, at 1:25 PM, Joel Serrano wrote: > > In gcloud docs it says: > > *"TCP Proxy Load Balancing supports the following ports: 25, 43, 110, 143, > 195, 443, 465, 587, 700, 993, 995, 1883, 5222"* > > They are not mentioning protocols or applications, I don't know if you > setup kamailio to listen for example on port 443 if it might work? Clients > would have to connect to X.X.X.X:443 though... (which is solvable using SRV > records). > > This is a suggestion to test, I'm really not sure myself if it would work. > I don't know if google does straight TCP proxy or if it has any sort of > application level awareness, in such case it would definitely not work (as > the default 5060 SIP port is not listed). Giving the example they have a > little further down in the docs, (talking about setting up apache (http) to > listen on port 110 (pop3), and using curl to test) makes me think that it > could work. > > Client -> Kamailio -> FreeSWITCHs = Works... widely used. > Client -> GCP Load Balancer -> Kamailio -> FreeSWITCHs = No idea, best > way to find out is to test, one thing for sure is you will have to mess > around a lot in the config file to get the IPs right in all the headers. > > Does what I'm saying makes sense? Please correct me if I'm wrong. > > Best, > Joel. > > > > > On Thu, May 24, 2018 at 9:58 AM, Michael Jerris wrote: > >> A tcp load balancer without sip support wouldn’t be sufficient. You’d >> need something with an understanding of sip like Kamailio or OpenSips to do >> that. >> >> Also, in regards to your confidentiality statement on your email, please >> note that no emails to the list are confidential, and we will not remove >> emails from the list archive. Please in the future remove your >> confidentiality statement from emails and take this as notice that they are >> not and we will take no action to remove them from the archives in the >> future (yes we have been asked in the past to do this, which is why i have >> to make this statement). >> >> >> >> >> On May 24, 2018, at 12:54 PM, Karanath sachidanandan, Sanooj < >> SANOOJ_KARANATH_SACHIDANANDAN at homedepot.com> wrote: >> >> Hi Guys , >> Anybody using Freeswitch in Google cloud platform ? I am trying to have >> a multi region freeswitch installation in google cloud with Sip load >> balancer Kamailio . But challenge is to have a multi region load >> balancing. Google’s TCP load balancer looks promising but don’t support >> Sip ports(5060, 5061) >> >> Any thoughts on that or any other suggestion? Thanks in advance >> >> >> https://cloud.google.com/compute/docs/load-balancing/tcp-ssl/tcp-proxy >> >> >> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Thu May 24 18:31:00 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Thu, 24 May 2018 20:31:00 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> Message-ID: # OK for location of ODBC files # output freeswitch using psql (I only edited switch.conf.xml file) (switch.conf.xml file) I see no errors related on logs (nor freeswitch, nor psql -debug5-), obviously restarted psql to reload config. in sofia.conf.xml file I found no option to configure it pointing to database no other config file, except switch.conf.xml has configured database pointing I tried to configure db.conf.xml file, with switch.conf.xml line but also do nothing # output freeswtich using odbc (switch.conf.xml file) these are the first lines of postgresql log file 2018-05-24 20:23:15 CEST [7518-7] LOG: received fast shutdown request 2018-05-24 20:23:15 CEST [7518-8] LOG: aborting any active transactions 2018-05-24 20:23:15 CEST [7548-2] LOG: autovacuum launcher shutting down 2018-05-24 20:23:15 CEST [7545-1] LOG: shutting down 2018-05-24 20:23:15 CEST [7545-2] LOG: database system is shut down 2018-05-24 20:23:16 CEST [7568-1] LOG: database system was shut down at 2018-05-24 20:23:15 CEST 2018-05-24 20:23:16 CEST [7568-2] LOG: MultiXact member wraparound protections are now enabled 2018-05-24 20:23:16 CEST [7567-1] LOG: database system is ready to accept connections 2018-05-24 20:23:16 CEST [7572-1] LOG: autovacuum launcher started 2018-05-24 20:23:16 CEST [7574-1] [unknown]@[unknown] LOG: incomplete startup packet 2018-05-24 20:23:39 CEST [7596-1] freeswitch_user at freeswitch_db ERROR: relation "channels" does not exist at character 40 2018-05-24 20:23:39 CEST [7596-2] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from channels where hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" 2018-05-24 20:23:39 CEST [7596-3] freeswitch_user at freeswitch_db ERROR: relation "calls" does not exist at character 40 2018-05-24 20:23:39 CEST [7596-4] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from calls where hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" 2018-05-24 20:23:39 CEST [7596-5] freeswitch_user at freeswitch_db ERROR: relation "tasks" does not exist at character 40 2018-05-24 20:23:39 CEST [7596-6] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from tasks where hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" 2018-05-24 20:23:39 CEST [7596-7] freeswitch_user at freeswitch_db ERROR: relation "aliases" does not exist at character 49 2018-05-24 20:23:39 CEST [7596-8] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as select hostname from aliases;EXECUTE "_PLAN0x9f3f90" 2018-05-24 20:23:39 CEST [7596-9] freeswitch_user at freeswitch_db ERROR: syntax error at or near "DROP" at character 28 2018-05-24 20:23:39 CEST [7596-10] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as DROP TABLE aliases;EXECUTE "_PLAN0x9f3f90" 2018-05-24 20:23:39 CEST [7596-11] freeswitch_user at freeswitch_db ERROR: syntax error at or near "CREATE" at character 28 2018-05-24 20:23:39 CEST [7596-12] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as CREATE TABLE aliases ( sticky INTEGER, alias VARCHAR(128), command VARCHAR(4096), hostname VARCHAR(256) ); ;EXECUTE "_PLAN0x9f3f90" and now freeswitch isn't able to run. If I enable odbc trace in odbcinst.ini Trace=Yes TraceFile=/var/log/odbctrace.log Also there's no output.... In freeswitch log also there's nothing about what is happening :( - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-24 19:30 GMT+02:00 Michael Jerris : > but that table layout is like that because you imported the tables, i was > asking what is in the recreated sqlite ones. If it fails to connect like > you later describe, its going to fall back, you should see stuff in the fs > logs on startup about this. the odbc configs go in the normal place they > go in the os, not in fs specific dirs. Those errors tell me something is > up, but not sure what, might need to turn on some debug on pg side to see. > some of our tests like to see if table schema is right throw errors then > we act on them, if you restart a second time you should get a more useful > set of errors. > > > On May 24, 2018, at 1:11 PM, Blackhold wrote: > > Hi, > The tables are: > > ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db > freeswitch_db-# \dt > > List of relations > Schema | Name | Type | Owner > --------+-------------------------------------+-------+---------- > public | aliases | table | postgres > public | calls | table | postgres > public | channels | table | postgres > public | complete | table | postgres > public | db_data | table | postgres > public | fifo_bridge | table | postgres > public | fifo_callers | table | postgres > public | fifo_outbound | table | postgres > public | group_data | table | postgres > public | interfaces | table | postgres > public | json_store | table | postgres > public | limit_data | table | postgres > public | nat | table | postgres > public | recovery | table | postgres > public | registrations | table | postgres > public | sip_authentication | table | postgres > public | sip_dialogs | table | postgres > public | sip_presence | table | postgres > public | sip_registrations | table | postgres > public | sip_shared_appearance_dialogs | table | postgres > public | sip_shared_appearance_subscriptions | table | postgres > public | sip_subscriptions | table | postgres > public | tasks | table | postgres > public | voicemail_msgs | table | postgres > public | voicemail_prefs | table | postgres > (25 rows) > > I continued testing and found that if I configure switch.conf.xml file > like this: > > > > When I turn on freeswitch, postgresql don't output nothing. Then I tried > to configure freeswitch using odbc I then YES I get something in postgresql > logs > > For odbc I have something not clear, it is mandatory to put files in > /usr/local/freeswitch/etc ? or leaving them at default directory (/etc) is > enough? > > Here I show the config of odbc files: > root at freeswitch-capa8:/etc# cat odbc.ini > [freeswitch] > ; WARNING: The old psql odbc driver psqlodbc.so is now renamed psqlodbcw.so > ; in version 08.x. Note that the library can also be installed under an > other > ; path than /usr/local/lib/ following your installation. > ; Driver = /usr/lib64/odbc/psqlodbcw.so > ; Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so > Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so > Description=Connection to LDAP/POSTGRESQL > Servername=localhost > Port=5432 > Protocol=6.4 > FetchBufferSize=99 > Username=freeswitch_user > Password=XXX > Database=freeswitch_db > ReadOnly=no > Debug=0 > CommLog=0 > > root at freeswitch-capa8:/etc# cat odbcinst.ini > [PostgreSQL] > Description = PostgreSQL driver for Linux & Win32 > ;Driver = /usr/lib64/odbc/psqlodbcw.so > Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so > Threading = 0 > MaxLongVarcharSize=65536 > > And then connect to psql through odbc > > root at freeswitch-capa8:/etc# isql -v freeswitch > +---------------------------------------+ > | Connected! | > | | > | sql-statement | > | help [tablename] | > | quit | > | | > +---------------------------------------+ > SQL> > > Then in file switch.conf.xml I changed db connection configuration > > root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# cat > switch.conf.xml |grep core-db-dsn > > > > Last night SwK user at freenode channel told me that freeswitch on turning > on, it creates tables at database (thanks SwK). > > I spect that configuration of odbc is working but drops lot of errors > (here you have some lines): > > 2018-05-24 02:03:25 CEST [3099-338780] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE nat ( > sticky INTEGER, > port INTEGER, > proto INTEGER, > hostname VARCHAR(256) > ); > ;EXECUTE "_PLAN0x140bf90" > 2018-05-24 02:03:25 CEST [3099-338781] freeswitch_user at freeswitch_db > WARNING: there is already a transaction in progress > 2018-05-24 02:03:25 CEST [3099-338782] freeswitch_user at freeswitch_db > ERROR: relation "registrations" does not exist at character 41 > 2018-05-24 02:03:25 CEST [3099-338783] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x140bf90" as delete from registrations where > reg_user='';EXECUTE "_PLAN0x140bf90" > 2018-05-24 02:03:25 CEST [3099-338784] freeswitch_user at freeswitch_db > WARNING: there is already a transaction in progress > 2018-05-24 02:03:25 CEST [3099-338785] freeswitch_user at freeswitch_db > ERROR: syntax error at or near "DROP" at character 29 > 2018-05-24 02:03:25 CEST [3099-338786] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x140bf90" as DROP TABLE registrations;EXECUTE > "_PLAN0x140bf90" > 2018-05-24 02:03:25 CEST [3099-338787] freeswitch_user at freeswitch_db > WARNING: there is already a transaction in progress > 2018-05-24 02:03:25 CEST [3099-338788] freeswitch_user at freeswitch_db > ERROR: syntax error at or near "CREATE" at character 29 > 2018-05-24 02:03:25 CEST [3099-338789] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE registrations ( > reg_user VARCHAR(256), > realm VARCHAR(256), > token VARCHAR(256), > url TEXT, > expires INTEGER, > network_ip VARCHAR(256), > network_port VARCHAR(256), > network_proto VARCHAR(256), > hostname VARCHAR(256), > metadata VARCHAR(256) > ); > ;EXECUTE "_PLAN0x140bf90" > 2018-05-24 02:03:25 CEST [3099-338790] freeswitch_user at freeswitch_db > WARNING: there is already a transaction in progress > 2018-05-24 02:03:25 CEST [3099-338791] freeswitch_user at freeswitch_db > LOG: unexpected EOF on client connection with an open transaction > > > I tested with tables in psql database and without tables in psql database. > > freeswitch at freeswitch-capa8> version > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git > 3c7db63 2018-05-16 21:12:08Z 64bit) > > As I told in last mail, I'm working with last git version. > > Then I have a last question, related to that (db), when it will work, all > mods will save the information to pgsql or a mix some to sqlite and some to > pgsql? I saw in other files the availibility to configure also db, like > /usr/local/freeswitch/conf/sip_profiles/internal.xml > > root at freeswitch-capa8:/usr/local/freeswitch/conf# cat > /usr/local/freeswitch/conf/sip_profiles/internal.xml |grep db > > > > > > > > > The config you see in the mail is the last configuration I defined. > Yesterday I get lost with wich config work or wich one no... > > I feel I'm almost at end of this installation! I'm doing a step by step > manual in spanish to how to install last version of freeswitch, this will > be public and if you want I could upload to wiki. > > Thanks you much for your help :) > > References: > https://freeswitch.org/confluence/display/FREESWITCH/ > PostgreSQL+in+the+core > https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN > https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+Databases > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres > mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-24 18:21 GMT+02:00 Michael Jerris : > >> what tables are ending up in the recreated sqlite db? You need to set it >> for the modules that use sqlite too (like for mod_sofia). we have a global >> var for this in default configs. >> >> > On May 23, 2018, at 6:13 PM, Blackhold >> wrote: >> > >> > Hi, >> > I have just installed freeswitch 1.9 >> > >> > freeswitch at freeswitch-capa8> version >> > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git >> 3c7db63 2018-05-16 21:12:08Z 64bit) >> > >> > And I'm trying to freeswitch use postgresql instead sqlitedb. >> > >> > I have configured the file switch.conf.xml of >> /usr/local/freeswitch/conf/autoload_configs with uncomenting and >> configuring this line >> > >> > >> > >> > then I exported all sqlitedbs to sql and then imported to a database >> that I have created in postgresql >> > >> > I have run again /etc/init.d/freeswitch.sh start >> > >> > But seems it still is taking sqlitedb. >> > >> > I tried to move the sqlitedbs files to other side and turned on again >> freeswitch, but it creates sqlitedbs again. >> > >> > What I'm missing? what I'm doing wrong? what could I check? >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Thu May 24 19:15:36 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Thu, 24 May 2018 21:15:36 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> Message-ID: I continue with tests I think I know wich problem I had with errors I have missed to grant privileges in psql: GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO freeswitch_user; GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO freeswitch_user; # with tables imported from sqlite it shows (freeswitch runs) root at freeswitch-capa8:/var/log/postgresql# tail -f postgresql-9.4-main.log 2018-05-24 21:03:34 CEST [8623-1] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-2] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery1 on recovery(technology);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-3] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-4] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery2 on recovery(profile_name);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-5] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-6] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on recovery(uuid);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-7] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-8] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on recovery(runtime_uuid);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-9] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-10] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index alias1 on aliases (alias);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-11] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-12] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index tasks1 on tasks (hostname,task_id);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-13] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-14] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete1 on complete (a1,hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-15] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-16] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete2 on complete (a2,hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-17] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-18] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete3 on complete (a3,hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-19] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-20] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete4 on complete (a4,hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-21] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-22] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete5 on complete (a5,hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-23] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-24] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete6 on complete (a6,hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-25] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-26] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete7 on complete (a7,hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-27] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-28] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete8 on complete (a8,hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-29] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-30] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete9 on complete (a9,hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-31] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-32] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete10 on complete (a10,hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-33] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-34] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete11 on complete (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-35] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-36] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index nat_map_port_proto on nat (port,proto,hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-37] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-38] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index channels1 on channels(hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-39] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-40] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index calls1 on calls(hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-41] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-42] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index chidx1 on channels (hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-43] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-44] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex on channels (uuid, hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-45] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-46] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex2 on channels (call_uuid);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-47] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-48] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index callsidx1 on calls (hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-49] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-50] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index eruuindex on calls (caller_uuid, hostname);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-51] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-52] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex on calls (callee_uuid);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-53] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-54] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex2 on calls (call_uuid);EXECUTE "_PLAN0x123ff90" 2018-05-24 21:03:34 CEST [8623-55] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 2018-05-24 21:03:34 CEST [8623-56] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index regindex1 on registrations (reg_user,realm,hostname);EXECUTE "_PLAN0x123ff90" # with a clean database start dropping last errors, and don't create any table in db. Freeswitch doesn't turns on. each time I stop freeswitch when it don't runs, it keeps a process running that I have to kill manually root at freeswitch-capa8:/var/log/postgresql# ps aux |grep free root 8706 39.6 0.7 141296 15244 ? S cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-24 20:31 GMT+02:00 Blackhold : > # OK for location of ODBC files > > # output freeswitch using psql (I only edited switch.conf.xml file) > (switch.conf.xml file) > > I see no errors related on logs (nor freeswitch, nor psql -debug5-), > obviously restarted psql to reload config. > > in sofia.conf.xml file I found no option to configure it pointing to > database > no other config file, except switch.conf.xml has configured database > pointing > > I tried to configure db.conf.xml file, with switch.conf.xml line but also > do nothing > > # output freeswtich using odbc > > (switch.conf.xml file) > > these are the first lines of postgresql log file > > 2018-05-24 20:23:15 CEST [7518-7] LOG: received fast shutdown request > 2018-05-24 20:23:15 CEST [7518-8] LOG: aborting any active transactions > 2018-05-24 20:23:15 CEST [7548-2] LOG: autovacuum launcher shutting down > 2018-05-24 20:23:15 CEST [7545-1] LOG: shutting down > 2018-05-24 20:23:15 CEST [7545-2] LOG: database system is shut down > 2018-05-24 20:23:16 CEST [7568-1] LOG: database system was shut down at > 2018-05-24 20:23:15 CEST > 2018-05-24 20:23:16 CEST [7568-2] LOG: MultiXact member wraparound > protections are now enabled > 2018-05-24 20:23:16 CEST [7567-1] LOG: database system is ready to accept > connections > 2018-05-24 20:23:16 CEST [7572-1] LOG: autovacuum launcher started > 2018-05-24 20:23:16 CEST [7574-1] [unknown]@[unknown] LOG: incomplete > startup packet > 2018-05-24 20:23:39 CEST [7596-1] freeswitch_user at freeswitch_db ERROR: > relation "channels" does not exist at character 40 > 2018-05-24 20:23:39 CEST [7596-2] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from channels where > hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" > 2018-05-24 20:23:39 CEST [7596-3] freeswitch_user at freeswitch_db ERROR: > relation "calls" does not exist at character 40 > 2018-05-24 20:23:39 CEST [7596-4] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from calls where > hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" > 2018-05-24 20:23:39 CEST [7596-5] freeswitch_user at freeswitch_db ERROR: > relation "tasks" does not exist at character 40 > 2018-05-24 20:23:39 CEST [7596-6] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from tasks where > hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" > 2018-05-24 20:23:39 CEST [7596-7] freeswitch_user at freeswitch_db ERROR: > relation "aliases" does not exist at character 49 > 2018-05-24 20:23:39 CEST [7596-8] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x9f3f90" as select hostname from aliases;EXECUTE > "_PLAN0x9f3f90" > 2018-05-24 20:23:39 CEST [7596-9] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "DROP" at character 28 > 2018-05-24 20:23:39 CEST [7596-10] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x9f3f90" as DROP TABLE aliases;EXECUTE > "_PLAN0x9f3f90" > 2018-05-24 20:23:39 CEST [7596-11] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "CREATE" at character 28 > 2018-05-24 20:23:39 CEST [7596-12] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x9f3f90" as CREATE TABLE aliases ( > sticky INTEGER, > alias VARCHAR(128), > command VARCHAR(4096), > hostname VARCHAR(256) > ); > ;EXECUTE "_PLAN0x9f3f90" > > and now freeswitch isn't able to run. > > If I enable odbc trace in odbcinst.ini > > Trace=Yes > TraceFile=/var/log/odbctrace.log > > Also there's no output.... > > In freeswitch log also there's nothing about what is happening :( > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres > mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-24 19:30 GMT+02:00 Michael Jerris : > >> but that table layout is like that because you imported the tables, i was >> asking what is in the recreated sqlite ones. If it fails to connect like >> you later describe, its going to fall back, you should see stuff in the fs >> logs on startup about this. the odbc configs go in the normal place they >> go in the os, not in fs specific dirs. Those errors tell me something is >> up, but not sure what, might need to turn on some debug on pg side to see. >> some of our tests like to see if table schema is right throw errors then >> we act on them, if you restart a second time you should get a more useful >> set of errors. >> >> >> On May 24, 2018, at 1:11 PM, Blackhold wrote: >> >> Hi, >> The tables are: >> >> ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db >> freeswitch_db-# \dt >> >> List of relations >> Schema | Name | Type | Owner >> --------+-------------------------------------+-------+---------- >> public | aliases | table | postgres >> public | calls | table | postgres >> public | channels | table | postgres >> public | complete | table | postgres >> public | db_data | table | postgres >> public | fifo_bridge | table | postgres >> public | fifo_callers | table | postgres >> public | fifo_outbound | table | postgres >> public | group_data | table | postgres >> public | interfaces | table | postgres >> public | json_store | table | postgres >> public | limit_data | table | postgres >> public | nat | table | postgres >> public | recovery | table | postgres >> public | registrations | table | postgres >> public | sip_authentication | table | postgres >> public | sip_dialogs | table | postgres >> public | sip_presence | table | postgres >> public | sip_registrations | table | postgres >> public | sip_shared_appearance_dialogs | table | postgres >> public | sip_shared_appearance_subscriptions | table | postgres >> public | sip_subscriptions | table | postgres >> public | tasks | table | postgres >> public | voicemail_msgs | table | postgres >> public | voicemail_prefs | table | postgres >> (25 rows) >> >> I continued testing and found that if I configure switch.conf.xml file >> like this: >> >> >> >> When I turn on freeswitch, postgresql don't output nothing. Then I tried >> to configure freeswitch using odbc I then YES I get something in postgresql >> logs >> >> For odbc I have something not clear, it is mandatory to put files in >> /usr/local/freeswitch/etc ? or leaving them at default directory (/etc) is >> enough? >> >> Here I show the config of odbc files: >> root at freeswitch-capa8:/etc# cat odbc.ini >> [freeswitch] >> ; WARNING: The old psql odbc driver psqlodbc.so is now renamed >> psqlodbcw.so >> ; in version 08.x. Note that the library can also be installed under an >> other >> ; path than /usr/local/lib/ following your installation. >> ; Driver = /usr/lib64/odbc/psqlodbcw.so >> ; Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so >> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >> Description=Connection to LDAP/POSTGRESQL >> Servername=localhost >> Port=5432 >> Protocol=6.4 >> FetchBufferSize=99 >> Username=freeswitch_user >> Password=XXX >> Database=freeswitch_db >> ReadOnly=no >> Debug=0 >> CommLog=0 >> >> root at freeswitch-capa8:/etc# cat odbcinst.ini >> [PostgreSQL] >> Description = PostgreSQL driver for Linux & Win32 >> ;Driver = /usr/lib64/odbc/psqlodbcw.so >> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >> Threading = 0 >> MaxLongVarcharSize=65536 >> >> And then connect to psql through odbc >> >> root at freeswitch-capa8:/etc# isql -v freeswitch >> +---------------------------------------+ >> | Connected! | >> | | >> | sql-statement | >> | help [tablename] | >> | quit | >> | | >> +---------------------------------------+ >> SQL> >> >> Then in file switch.conf.xml I changed db connection configuration >> >> root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# cat >> switch.conf.xml |grep core-db-dsn >> >> >> >> Last night SwK user at freenode channel told me that freeswitch on >> turning on, it creates tables at database (thanks SwK). >> >> I spect that configuration of odbc is working but drops lot of errors >> (here you have some lines): >> >> 2018-05-24 02:03:25 CEST [3099-338780] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE nat ( >> sticky INTEGER, >> port INTEGER, >> proto INTEGER, >> hostname VARCHAR(256) >> ); >> ;EXECUTE "_PLAN0x140bf90" >> 2018-05-24 02:03:25 CEST [3099-338781] freeswitch_user at freeswitch_db >> WARNING: there is already a transaction in progress >> 2018-05-24 02:03:25 CEST [3099-338782] freeswitch_user at freeswitch_db >> ERROR: relation "registrations" does not exist at character 41 >> 2018-05-24 02:03:25 CEST [3099-338783] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x140bf90" as delete from registrations where >> reg_user='';EXECUTE "_PLAN0x140bf90" >> 2018-05-24 02:03:25 CEST [3099-338784] freeswitch_user at freeswitch_db >> WARNING: there is already a transaction in progress >> 2018-05-24 02:03:25 CEST [3099-338785] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "DROP" at character 29 >> 2018-05-24 02:03:25 CEST [3099-338786] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x140bf90" as DROP TABLE registrations;EXECUTE >> "_PLAN0x140bf90" >> 2018-05-24 02:03:25 CEST [3099-338787] freeswitch_user at freeswitch_db >> WARNING: there is already a transaction in progress >> 2018-05-24 02:03:25 CEST [3099-338788] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "CREATE" at character 29 >> 2018-05-24 02:03:25 CEST [3099-338789] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE registrations ( >> reg_user VARCHAR(256), >> realm VARCHAR(256), >> token VARCHAR(256), >> url TEXT, >> expires INTEGER, >> network_ip VARCHAR(256), >> network_port VARCHAR(256), >> network_proto VARCHAR(256), >> hostname VARCHAR(256), >> metadata VARCHAR(256) >> ); >> ;EXECUTE "_PLAN0x140bf90" >> 2018-05-24 02:03:25 CEST [3099-338790] freeswitch_user at freeswitch_db >> WARNING: there is already a transaction in progress >> 2018-05-24 02:03:25 CEST [3099-338791] freeswitch_user at freeswitch_db >> LOG: unexpected EOF on client connection with an open transaction >> >> >> I tested with tables in psql database and without tables in psql database. >> >> freeswitch at freeswitch-capa8> version >> FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git >> 3c7db63 2018-05-16 21:12:08Z 64bit) >> >> As I told in last mail, I'm working with last git version. >> >> Then I have a last question, related to that (db), when it will work, all >> mods will save the information to pgsql or a mix some to sqlite and some to >> pgsql? I saw in other files the availibility to configure also db, like >> /usr/local/freeswitch/conf/sip_profiles/internal.xml >> >> root at freeswitch-capa8:/usr/local/freeswitch/conf# cat >> /usr/local/freeswitch/conf/sip_profiles/internal.xml |grep db >> >> >> >> >> >> >> >> >> The config you see in the mail is the last configuration I defined. >> Yesterday I get lost with wich config work or wich one no... >> >> I feel I'm almost at end of this installation! I'm doing a step by step >> manual in spanish to how to install last version of freeswitch, this will >> be public and if you want I could upload to wiki. >> >> Thanks you much for your help :) >> >> References: >> https://freeswitch.org/confluence/display/FREESWITCH/Postgre >> SQL+in+the+core >> https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN >> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+Databases >> >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-24 18:21 GMT+02:00 Michael Jerris : >> >>> what tables are ending up in the recreated sqlite db? You need to set >>> it for the modules that use sqlite too (like for mod_sofia). we have a >>> global var for this in default configs. >>> >>> > On May 23, 2018, at 6:13 PM, Blackhold >>> wrote: >>> > >>> > Hi, >>> > I have just installed freeswitch 1.9 >>> > >>> > freeswitch at freeswitch-capa8> version >>> > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git >>> 3c7db63 2018-05-16 21:12:08Z 64bit) >>> > >>> > And I'm trying to freeswitch use postgresql instead sqlitedb. >>> > >>> > I have configured the file switch.conf.xml of >>> /usr/local/freeswitch/conf/autoload_configs with uncomenting and >>> configuring this line >>> > >>> > >>> > >>> > then I exported all sqlitedbs to sql and then imported to a database >>> that I have created in postgresql >>> > >>> > I have run again /etc/init.d/freeswitch.sh start >>> > >>> > But seems it still is taking sqlitedb. >>> > >>> > I tried to move the sqlitedbs files to other side and turned on again >>> freeswitch, but it creates sqlitedbs again. >>> > >>> > What I'm missing? what I'm doing wrong? what could I check? >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Thu May 24 19:20:58 2018 From: mike at jerris.com (Michael Jerris) Date: Thu, 24 May 2018 15:20:58 -0400 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> Message-ID: <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> you shouldn't need to pre-import the tables, if the permissions are right, it should create the tables and indexes for you. > On May 24, 2018, at 3:15 PM, Blackhold wrote: > > I continue with tests > > I think I know wich problem I had with errors > > I have missed to grant privileges in psql: > > GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO freeswitch_user; > GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO freeswitch_user; > > # with tables imported from sqlite it shows (freeswitch runs) > > root at freeswitch-capa8:/var/log/postgresql# tail -f postgresql-9.4-main.log > > 2018-05-24 21:03:34 CEST [8623-1] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-2] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery1 on recovery(technology);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-3] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-4] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery2 on recovery(profile_name);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-5] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-6] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on recovery(uuid);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-7] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-8] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on recovery(runtime_uuid);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-9] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-10] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index alias1 on aliases (alias);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-11] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-12] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index tasks1 on tasks (hostname,task_id);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-13] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-14] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete1 on complete (a1,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-15] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-16] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete2 on complete (a2,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-17] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-18] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete3 on complete (a3,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-19] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-20] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete4 on complete (a4,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-21] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-22] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete5 on complete (a5,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-23] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-24] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete6 on complete (a6,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-25] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-26] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete7 on complete (a7,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-27] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-28] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete8 on complete (a8,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-29] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-30] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete9 on complete (a9,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-31] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-32] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete10 on complete (a10,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-33] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-34] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete11 on complete (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-35] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-36] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index nat_map_port_proto on nat (port,proto,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-37] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-38] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index channels1 on channels(hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-39] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-40] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index calls1 on calls(hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-41] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-42] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index chidx1 on channels (hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-43] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-44] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex on channels (uuid, hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-45] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-46] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex2 on channels (call_uuid);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-47] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-48] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index callsidx1 on calls (hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-49] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-50] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index eruuindex on calls (caller_uuid, hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-51] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-52] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex on calls (callee_uuid);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-53] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-54] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex2 on calls (call_uuid);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-55] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-56] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index regindex1 on registrations (reg_user,realm,hostname);EXECUTE "_PLAN0x123ff90" > > # with a clean database > > start dropping last errors, and don't create any table in db. Freeswitch doesn't turns on. > > each time I stop freeswitch when it don't runs, it keeps a process running that I have to kill manually > > root at freeswitch-capa8:/var/log/postgresql# ps aux |grep free > root 8706 39.6 0.7 141296 15244 ? S > > # with granted permisions if I turn configuration to not use odbc, using psql directly > > freeswitch turns on, there's no errors in psql log file and no table was created on db. > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-24 20:31 GMT+02:00 Blackhold >: > # OK for location of ODBC files > > # output freeswitch using psql (I only edited switch.conf.xml file) > (switch.conf.xml file) > > I see no errors related on logs (nor freeswitch, nor psql -debug5-), obviously restarted psql to reload config. > > in sofia.conf.xml file I found no option to configure it pointing to database > no other config file, except switch.conf.xml has configured database pointing > > I tried to configure db.conf.xml file, with switch.conf.xml line but also do nothing > > # output freeswtich using odbc > (switch.conf.xml file) > > these are the first lines of postgresql log file > > 2018-05-24 20:23:15 CEST [7518-7] LOG: received fast shutdown request > 2018-05-24 20:23:15 CEST [7518-8] LOG: aborting any active transactions > 2018-05-24 20:23:15 CEST [7548-2] LOG: autovacuum launcher shutting down > 2018-05-24 20:23:15 CEST [7545-1] LOG: shutting down > 2018-05-24 20:23:15 CEST [7545-2] LOG: database system is shut down > 2018-05-24 20:23:16 CEST [7568-1] LOG: database system was shut down at 2018-05-24 20:23:15 CEST > 2018-05-24 20:23:16 CEST [7568-2] LOG: MultiXact member wraparound protections are now enabled > 2018-05-24 20:23:16 CEST [7567-1] LOG: database system is ready to accept connections > 2018-05-24 20:23:16 CEST [7572-1] LOG: autovacuum launcher started > 2018-05-24 20:23:16 CEST [7574-1] [unknown]@[unknown] LOG: incomplete startup packet > 2018-05-24 20:23:39 CEST [7596-1] freeswitch_user at freeswitch_db ERROR: relation "channels" does not exist at character 40 > 2018-05-24 20:23:39 CEST [7596-2] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from channels where hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" > 2018-05-24 20:23:39 CEST [7596-3] freeswitch_user at freeswitch_db ERROR: relation "calls" does not exist at character 40 > 2018-05-24 20:23:39 CEST [7596-4] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from calls where hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" > 2018-05-24 20:23:39 CEST [7596-5] freeswitch_user at freeswitch_db ERROR: relation "tasks" does not exist at character 40 > 2018-05-24 20:23:39 CEST [7596-6] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from tasks where hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" > 2018-05-24 20:23:39 CEST [7596-7] freeswitch_user at freeswitch_db ERROR: relation "aliases" does not exist at character 49 > 2018-05-24 20:23:39 CEST [7596-8] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as select hostname from aliases;EXECUTE "_PLAN0x9f3f90" > 2018-05-24 20:23:39 CEST [7596-9] freeswitch_user at freeswitch_db ERROR: syntax error at or near "DROP" at character 28 > 2018-05-24 20:23:39 CEST [7596-10] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as DROP TABLE aliases;EXECUTE "_PLAN0x9f3f90" > 2018-05-24 20:23:39 CEST [7596-11] freeswitch_user at freeswitch_db ERROR: syntax error at or near "CREATE" at character 28 > 2018-05-24 20:23:39 CEST [7596-12] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as CREATE TABLE aliases ( > sticky INTEGER, > alias VARCHAR(128), > command VARCHAR(4096), > hostname VARCHAR(256) > ); > ;EXECUTE "_PLAN0x9f3f90" > > and now freeswitch isn't able to run. > > If I enable odbc trace in odbcinst.ini > > Trace=Yes > TraceFile=/var/log/odbctrace.log > > Also there's no output.... > > In freeswitch log also there's nothing about what is happening :( > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-24 19:30 GMT+02:00 Michael Jerris >: > but that table layout is like that because you imported the tables, i was asking what is in the recreated sqlite ones. If it fails to connect like you later describe, its going to fall back, you should see stuff in the fs logs on startup about this. the odbc configs go in the normal place they go in the os, not in fs specific dirs. Those errors tell me something is up, but not sure what, might need to turn on some debug on pg side to see. some of our tests like to see if table schema is right throw errors then we act on them, if you restart a second time you should get a more useful set of errors. > > >> On May 24, 2018, at 1:11 PM, Blackhold > wrote: >> >> Hi, >> The tables are: >> >> ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db >> freeswitch_db-# \dt >> >> List of relations >> Schema | Name | Type | Owner >> --------+-------------------------------------+-------+---------- >> public | aliases | table | postgres >> public | calls | table | postgres >> public | channels | table | postgres >> public | complete | table | postgres >> public | db_data | table | postgres >> public | fifo_bridge | table | postgres >> public | fifo_callers | table | postgres >> public | fifo_outbound | table | postgres >> public | group_data | table | postgres >> public | interfaces | table | postgres >> public | json_store | table | postgres >> public | limit_data | table | postgres >> public | nat | table | postgres >> public | recovery | table | postgres >> public | registrations | table | postgres >> public | sip_authentication | table | postgres >> public | sip_dialogs | table | postgres >> public | sip_presence | table | postgres >> public | sip_registrations | table | postgres >> public | sip_shared_appearance_dialogs | table | postgres >> public | sip_shared_appearance_subscriptions | table | postgres >> public | sip_subscriptions | table | postgres >> public | tasks | table | postgres >> public | voicemail_msgs | table | postgres >> public | voicemail_prefs | table | postgres >> (25 rows) >> >> I continued testing and found that if I configure switch.conf.xml file like this: >> >> >> >> When I turn on freeswitch, postgresql don't output nothing. Then I tried to configure freeswitch using odbc I then YES I get something in postgresql logs >> >> For odbc I have something not clear, it is mandatory to put files in /usr/local/freeswitch/etc ? or leaving them at default directory (/etc) is enough? >> >> Here I show the config of odbc files: >> root at freeswitch-capa8:/etc# cat odbc.ini >> [freeswitch] >> ; WARNING: The old psql odbc driver psqlodbc.so is now renamed psqlodbcw.so >> ; in version 08.x. Note that the library can also be installed under an other >> ; path than /usr/local/lib/ following your installation. >> ; Driver = /usr/lib64/odbc/psqlodbcw.so >> ; Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so >> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >> Description=Connection to LDAP/POSTGRESQL >> Servername=localhost >> Port=5432 >> Protocol=6.4 >> FetchBufferSize=99 >> Username=freeswitch_user >> Password=XXX >> Database=freeswitch_db >> ReadOnly=no >> Debug=0 >> CommLog=0 >> >> root at freeswitch-capa8:/etc# cat odbcinst.ini >> [PostgreSQL] >> Description = PostgreSQL driver for Linux & Win32 >> ;Driver = /usr/lib64/odbc/psqlodbcw.so >> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >> Threading = 0 >> MaxLongVarcharSize=65536 >> >> And then connect to psql through odbc >> >> root at freeswitch-capa8:/etc# isql -v freeswitch >> +---------------------------------------+ >> | Connected! | >> | | >> | sql-statement | >> | help [tablename] | >> | quit | >> | | >> +---------------------------------------+ >> SQL> >> >> Then in file switch.conf.xml I changed db connection configuration >> >> root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# cat switch.conf.xml |grep core-db-dsn >> >> >> >> Last night SwK user at freenode channel told me that freeswitch on turning on, it creates tables at database (thanks SwK). >> >> I spect that configuration of odbc is working but drops lot of errors (here you have some lines): >> >> 2018-05-24 02:03:25 CEST [3099-338780] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE nat ( >> sticky INTEGER, >> port INTEGER, >> proto INTEGER, >> hostname VARCHAR(256) >> ); >> ;EXECUTE "_PLAN0x140bf90" >> 2018-05-24 02:03:25 CEST [3099-338781] freeswitch_user at freeswitch_db WARNING: there is already a transaction in progress >> 2018-05-24 02:03:25 CEST [3099-338782] freeswitch_user at freeswitch_db ERROR: relation "registrations" does not exist at character 41 >> 2018-05-24 02:03:25 CEST [3099-338783] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x140bf90" as delete from registrations where reg_user='';EXECUTE "_PLAN0x140bf90" >> 2018-05-24 02:03:25 CEST [3099-338784] freeswitch_user at freeswitch_db WARNING: there is already a transaction in progress >> 2018-05-24 02:03:25 CEST [3099-338785] freeswitch_user at freeswitch_db ERROR: syntax error at or near "DROP" at character 29 >> 2018-05-24 02:03:25 CEST [3099-338786] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x140bf90" as DROP TABLE registrations;EXECUTE "_PLAN0x140bf90" >> 2018-05-24 02:03:25 CEST [3099-338787] freeswitch_user at freeswitch_db WARNING: there is already a transaction in progress >> 2018-05-24 02:03:25 CEST [3099-338788] freeswitch_user at freeswitch_db ERROR: syntax error at or near "CREATE" at character 29 >> 2018-05-24 02:03:25 CEST [3099-338789] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE registrations ( >> reg_user VARCHAR(256), >> realm VARCHAR(256), >> token VARCHAR(256), >> url TEXT, >> expires INTEGER, >> network_ip VARCHAR(256), >> network_port VARCHAR(256), >> network_proto VARCHAR(256), >> hostname VARCHAR(256), >> metadata VARCHAR(256) >> ); >> ;EXECUTE "_PLAN0x140bf90" >> 2018-05-24 02:03:25 CEST [3099-338790] freeswitch_user at freeswitch_db WARNING: there is already a transaction in progress >> 2018-05-24 02:03:25 CEST [3099-338791] freeswitch_user at freeswitch_db LOG: unexpected EOF on client connection with an open transaction >> >> >> I tested with tables in psql database and without tables in psql database. >> >> freeswitch at freeswitch-capa8> version >> FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git 3c7db63 2018-05-16 21:12:08Z 64bit) >> >> As I told in last mail, I'm working with last git version. >> >> Then I have a last question, related to that (db), when it will work, all mods will save the information to pgsql or a mix some to sqlite and some to pgsql? I saw in other files the availibility to configure also db, like /usr/local/freeswitch/conf/sip_profiles/internal.xml >> >> root at freeswitch-capa8:/usr/local/freeswitch/conf# cat /usr/local/freeswitch/conf/sip_profiles/internal.xml |grep db >> >> >> >> >> >> >> >> >> The config you see in the mail is the last configuration I defined. Yesterday I get lost with wich config work or wich one no... >> >> I feel I'm almost at end of this installation! I'm doing a step by step manual in spanish to how to install last version of freeswitch, this will be public and if you want I could upload to wiki. >> >> Thanks you much for your help :) >> >> References: >> https://freeswitch.org/confluence/display/FREESWITCH/PostgreSQL+in+the+core >> https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN >> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+Databases >> >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-24 18:21 GMT+02:00 Michael Jerris >: >> what tables are ending up in the recreated sqlite db? You need to set it for the modules that use sqlite too (like for mod_sofia). we have a global var for this in default configs. >> >> > On May 23, 2018, at 6:13 PM, Blackhold > wrote: >> > >> > Hi, >> > I have just installed freeswitch 1.9 >> > >> > freeswitch at freeswitch-capa8> version >> > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git 3c7db63 2018-05-16 21:12:08Z 64bit) >> > >> > And I'm trying to freeswitch use postgresql instead sqlitedb. >> > >> > I have configured the file switch.conf.xml of /usr/local/freeswitch/conf/autoload_configs with uncomenting and configuring this line >> > >> > >> > >> > then I exported all sqlitedbs to sql and then imported to a database that I have created in postgresql >> > >> > I have run again /etc/init.d/freeswitch.sh start >> > >> > But seems it still is taking sqlitedb. >> > >> > I tried to move the sqlitedbs files to other side and turned on again freeswitch, but it creates sqlitedbs again. >> > >> > What I'm missing? what I'm doing wrong? what could I check? >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Thu May 24 19:33:07 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Thu, 24 May 2018 21:33:07 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> Message-ID: nope, it is not able to create stuff now I also have enabled that in switch.conf.xml tested with odbc and directly with psql and behaviour is the same. for psql the procedure I have followed is root at freeswitch-capa8:~# su - postgres root at freeswitch-capa8:~# postgres at freeswitch-capa8:~$ createuser freeswitch_user root at freeswitch-capa8:~# createdb -O freeswitch_user freeswitch_db root at freeswitch-capa8:~# psql freeswitch_db freeswitch_db=# ALTER USER freeswitch_user WITH PASSWORD 'XXX'; freeswitch_db=# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO freeswitch_user; freeswitch_db=# GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO freeswitch_user; the most beatiful was with odbc + tables created... in the last mail... freeswitch turned on, in other ways freeswitch doesn't turns on. logs doesn't talk about permissions.... - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-24 21:20 GMT+02:00 Michael Jerris : > you shouldn't need to pre-import the tables, if the permissions are right, > it should create the tables and indexes for you. > > > On May 24, 2018, at 3:15 PM, Blackhold wrote: > > I continue with tests > > I think I know wich problem I had with errors > > I have missed to grant privileges in psql: > > GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO freeswitch_user; > GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO freeswitch_user; > > # with tables imported from sqlite it shows (freeswitch runs) > > root at freeswitch-capa8:/var/log/postgresql# tail -f > postgresql-9.4-main.log > > 2018-05-24 21:03:34 CEST [8623-1] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-2] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery1 on > recovery(technology);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-3] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-4] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery2 on > recovery(profile_name);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-5] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-6] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on > recovery(uuid);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-7] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-8] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on > recovery(runtime_uuid);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-9] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-10] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index alias1 on aliases > (alias);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-11] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-12] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index tasks1 on tasks > (hostname,task_id);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-13] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-14] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete1 on complete > (a1,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-15] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-16] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete2 on complete > (a2,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-17] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-18] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete3 on complete > (a3,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-19] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-20] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete4 on complete > (a4,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-21] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-22] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete5 on complete > (a5,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-23] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-24] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete6 on complete > (a6,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-25] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-26] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete7 on complete > (a7,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-27] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-28] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete8 on complete > (a8,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-29] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-30] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete9 on complete > (a9,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-31] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-32] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete10 on complete > (a10,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-33] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-34] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete11 on complete > (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-35] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-36] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index nat_map_port_proto on > nat (port,proto,hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-37] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-38] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index channels1 on > channels(hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-39] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-40] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index calls1 on > calls(hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-41] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-42] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index chidx1 on channels > (hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-43] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-44] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex on channels > (uuid, hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-45] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-46] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex2 on channels > (call_uuid);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-47] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-48] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index callsidx1 on calls > (hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-49] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-50] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index eruuindex on calls > (caller_uuid, hostname);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-51] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-52] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex on calls > (callee_uuid);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-53] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-54] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex2 on calls > (call_uuid);EXECUTE "_PLAN0x123ff90" > 2018-05-24 21:03:34 CEST [8623-55] freeswitch_user at freeswitch_db ERROR: > syntax error at or near "create" at character 29 > 2018-05-24 21:03:34 CEST [8623-56] freeswitch_user at freeswitch_db > STATEMENT: PREPARE "_PLAN0x123ff90" as create index regindex1 on > registrations (reg_user,realm,hostname);EXECUTE "_PLAN0x123ff90" > > # with a clean database > > start dropping last errors, and don't create any table in db. Freeswitch > doesn't turns on. > > each time I stop freeswitch when it don't runs, it keeps a process running > that I have to kill manually > > root at freeswitch-capa8:/var/log/postgresql# ps aux |grep free > root 8706 39.6 0.7 141296 15244 ? S /usr/local/freeswitch/bin/freeswitch -nc > > > # with granted permisions if I turn configuration to not use odbc, using > psql directly > > freeswitch turns on, there's no errors in psql log file and no table was > created on db. > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres > mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-24 20:31 GMT+02:00 Blackhold : > >> # OK for location of ODBC files >> >> # output freeswitch using psql (I only edited switch.conf.xml file) >> (switch.conf.xml file) >> >> I see no errors related on logs (nor freeswitch, nor psql -debug5-), >> obviously restarted psql to reload config. >> >> in sofia.conf.xml file I found no option to configure it pointing to >> database >> no other config file, except switch.conf.xml has configured database >> pointing >> >> I tried to configure db.conf.xml file, with switch.conf.xml line but also >> do nothing >> >> # output freeswtich using odbc >> >> (switch.conf.xml file) >> >> these are the first lines of postgresql log file >> >> 2018-05-24 20:23:15 CEST [7518-7] LOG: received fast shutdown request >> 2018-05-24 20:23:15 CEST [7518-8] LOG: aborting any active transactions >> 2018-05-24 20:23:15 CEST [7548-2] LOG: autovacuum launcher shutting down >> 2018-05-24 20:23:15 CEST [7545-1] LOG: shutting down >> 2018-05-24 20:23:15 CEST [7545-2] LOG: database system is shut down >> 2018-05-24 20:23:16 CEST [7568-1] LOG: database system was shut down at >> 2018-05-24 20:23:15 CEST >> 2018-05-24 20:23:16 CEST [7568-2] LOG: MultiXact member wraparound >> protections are now enabled >> 2018-05-24 20:23:16 CEST [7567-1] LOG: database system is ready to >> accept connections >> 2018-05-24 20:23:16 CEST [7572-1] LOG: autovacuum launcher started >> 2018-05-24 20:23:16 CEST [7574-1] [unknown]@[unknown] LOG: incomplete >> startup packet >> 2018-05-24 20:23:39 CEST [7596-1] freeswitch_user at freeswitch_db ERROR: >> relation "channels" does not exist at character 40 >> 2018-05-24 20:23:39 CEST [7596-2] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from channels where >> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >> 2018-05-24 20:23:39 CEST [7596-3] freeswitch_user at freeswitch_db ERROR: >> relation "calls" does not exist at character 40 >> 2018-05-24 20:23:39 CEST [7596-4] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from calls where >> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >> 2018-05-24 20:23:39 CEST [7596-5] freeswitch_user at freeswitch_db ERROR: >> relation "tasks" does not exist at character 40 >> 2018-05-24 20:23:39 CEST [7596-6] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from tasks where >> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >> 2018-05-24 20:23:39 CEST [7596-7] freeswitch_user at freeswitch_db ERROR: >> relation "aliases" does not exist at character 49 >> 2018-05-24 20:23:39 CEST [7596-8] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x9f3f90" as select hostname from aliases;EXECUTE >> "_PLAN0x9f3f90" >> 2018-05-24 20:23:39 CEST [7596-9] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "DROP" at character 28 >> 2018-05-24 20:23:39 CEST [7596-10] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x9f3f90" as DROP TABLE aliases;EXECUTE >> "_PLAN0x9f3f90" >> 2018-05-24 20:23:39 CEST [7596-11] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "CREATE" at character 28 >> 2018-05-24 20:23:39 CEST [7596-12] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x9f3f90" as CREATE TABLE aliases ( >> sticky INTEGER, >> alias VARCHAR(128), >> command VARCHAR(4096), >> hostname VARCHAR(256) >> ); >> ;EXECUTE "_PLAN0x9f3f90" >> >> and now freeswitch isn't able to run. >> >> If I enable odbc trace in odbcinst.ini >> >> Trace=Yes >> TraceFile=/var/log/odbctrace.log >> >> Also there's no output.... >> >> In freeswitch log also there's nothing about what is happening :( >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-24 19:30 GMT+02:00 Michael Jerris : >> >>> but that table layout is like that because you imported the tables, i >>> was asking what is in the recreated sqlite ones. If it fails to connect >>> like you later describe, its going to fall back, you should see stuff in >>> the fs logs on startup about this. the odbc configs go in the normal place >>> they go in the os, not in fs specific dirs. Those errors tell me something >>> is up, but not sure what, might need to turn on some debug on pg side to >>> see. some of our tests like to see if table schema is right throw errors >>> then we act on them, if you restart a second time you should get a more >>> useful set of errors. >>> >>> >>> On May 24, 2018, at 1:11 PM, Blackhold >>> wrote: >>> >>> Hi, >>> The tables are: >>> >>> ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db >>> freeswitch_db-# \dt >>> >>> List of relations >>> Schema | Name | Type | Owner >>> --------+-------------------------------------+-------+---------- >>> public | aliases | table | postgres >>> public | calls | table | postgres >>> public | channels | table | postgres >>> public | complete | table | postgres >>> public | db_data | table | postgres >>> public | fifo_bridge | table | postgres >>> public | fifo_callers | table | postgres >>> public | fifo_outbound | table | postgres >>> public | group_data | table | postgres >>> public | interfaces | table | postgres >>> public | json_store | table | postgres >>> public | limit_data | table | postgres >>> public | nat | table | postgres >>> public | recovery | table | postgres >>> public | registrations | table | postgres >>> public | sip_authentication | table | postgres >>> public | sip_dialogs | table | postgres >>> public | sip_presence | table | postgres >>> public | sip_registrations | table | postgres >>> public | sip_shared_appearance_dialogs | table | postgres >>> public | sip_shared_appearance_subscriptions | table | postgres >>> public | sip_subscriptions | table | postgres >>> public | tasks | table | postgres >>> public | voicemail_msgs | table | postgres >>> public | voicemail_prefs | table | postgres >>> (25 rows) >>> >>> I continued testing and found that if I configure switch.conf.xml file >>> like this: >>> >>> >>> >>> When I turn on freeswitch, postgresql don't output nothing. Then I tried >>> to configure freeswitch using odbc I then YES I get something in postgresql >>> logs >>> >>> For odbc I have something not clear, it is mandatory to put files in >>> /usr/local/freeswitch/etc ? or leaving them at default directory (/etc) is >>> enough? >>> >>> Here I show the config of odbc files: >>> root at freeswitch-capa8:/etc# cat odbc.ini >>> [freeswitch] >>> ; WARNING: The old psql odbc driver psqlodbc.so is now renamed >>> psqlodbcw.so >>> ; in version 08.x. Note that the library can also be installed under an >>> other >>> ; path than /usr/local/lib/ following your installation. >>> ; Driver = /usr/lib64/odbc/psqlodbcw.so >>> ; Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so >>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>> Description=Connection to LDAP/POSTGRESQL >>> Servername=localhost >>> Port=5432 >>> Protocol=6.4 >>> FetchBufferSize=99 >>> Username=freeswitch_user >>> Password=XXX >>> Database=freeswitch_db >>> ReadOnly=no >>> Debug=0 >>> CommLog=0 >>> >>> root at freeswitch-capa8:/etc# cat odbcinst.ini >>> [PostgreSQL] >>> Description = PostgreSQL driver for Linux & Win32 >>> ;Driver = /usr/lib64/odbc/psqlodbcw.so >>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>> Threading = 0 >>> MaxLongVarcharSize=65536 >>> >>> And then connect to psql through odbc >>> >>> root at freeswitch-capa8:/etc# isql -v freeswitch >>> +---------------------------------------+ >>> | Connected! | >>> | | >>> | sql-statement | >>> | help [tablename] | >>> | quit | >>> | | >>> +---------------------------------------+ >>> SQL> >>> >>> Then in file switch.conf.xml I changed db connection configuration >>> >>> root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# cat >>> switch.conf.xml |grep core-db-dsn >>> >>> >>> >>> Last night SwK user at freenode channel told me that freeswitch on >>> turning on, it creates tables at database (thanks SwK). >>> >>> I spect that configuration of odbc is working but drops lot of errors >>> (here you have some lines): >>> >>> 2018-05-24 02:03:25 CEST [3099-338780] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE nat ( >>> sticky INTEGER, >>> port INTEGER, >>> proto INTEGER, >>> hostname VARCHAR(256) >>> ); >>> ;EXECUTE "_PLAN0x140bf90" >>> 2018-05-24 02:03:25 CEST [3099-338781] freeswitch_user at freeswitch_db >>> WARNING: there is already a transaction in progress >>> 2018-05-24 02:03:25 CEST [3099-338782] freeswitch_user at freeswitch_db >>> ERROR: relation "registrations" does not exist at character 41 >>> 2018-05-24 02:03:25 CEST [3099-338783] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x140bf90" as delete from registrations where >>> reg_user='';EXECUTE "_PLAN0x140bf90" >>> 2018-05-24 02:03:25 CEST [3099-338784] freeswitch_user at freeswitch_db >>> WARNING: there is already a transaction in progress >>> 2018-05-24 02:03:25 CEST [3099-338785] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "DROP" at character 29 >>> 2018-05-24 02:03:25 CEST [3099-338786] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x140bf90" as DROP TABLE registrations;EXECUTE >>> "_PLAN0x140bf90" >>> 2018-05-24 02:03:25 CEST [3099-338787] freeswitch_user at freeswitch_db >>> WARNING: there is already a transaction in progress >>> 2018-05-24 02:03:25 CEST [3099-338788] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "CREATE" at character 29 >>> 2018-05-24 02:03:25 CEST [3099-338789] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE registrations ( >>> reg_user VARCHAR(256), >>> realm VARCHAR(256), >>> token VARCHAR(256), >>> url TEXT, >>> expires INTEGER, >>> network_ip VARCHAR(256), >>> network_port VARCHAR(256), >>> network_proto VARCHAR(256), >>> hostname VARCHAR(256), >>> metadata VARCHAR(256) >>> ); >>> ;EXECUTE "_PLAN0x140bf90" >>> 2018-05-24 02:03:25 CEST [3099-338790] freeswitch_user at freeswitch_db >>> WARNING: there is already a transaction in progress >>> 2018-05-24 02:03:25 CEST [3099-338791] freeswitch_user at freeswitch_db >>> LOG: unexpected EOF on client connection with an open transaction >>> >>> >>> I tested with tables in psql database and without tables in psql >>> database. >>> >>> freeswitch at freeswitch-capa8> version >>> FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git >>> 3c7db63 2018-05-16 21:12:08Z 64bit) >>> >>> As I told in last mail, I'm working with last git version. >>> >>> Then I have a last question, related to that (db), when it will work, >>> all mods will save the information to pgsql or a mix some to sqlite and >>> some to pgsql? I saw in other files the availibility to configure also db, >>> like /usr/local/freeswitch/conf/sip_profiles/internal.xml >>> >>> root at freeswitch-capa8:/usr/local/freeswitch/conf# cat >>> /usr/local/freeswitch/conf/sip_profiles/internal.xml |grep db >>> >>> >>> >>> >>> >>> >>> >>> >>> The config you see in the mail is the last configuration I defined. >>> Yesterday I get lost with wich config work or wich one no... >>> >>> I feel I'm almost at end of this installation! I'm doing a step by step >>> manual in spanish to how to install last version of freeswitch, this will >>> be public and if you want I could upload to wiki. >>> >>> Thanks you much for your help :) >>> >>> References: >>> https://freeswitch.org/confluence/display/FREESWITCH/Postgre >>> SQL+in+the+core >>> https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN >>> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWI >>> TCH+Databases >>> >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>> nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-24 18:21 GMT+02:00 Michael Jerris : >>> >>>> what tables are ending up in the recreated sqlite db? You need to set >>>> it for the modules that use sqlite too (like for mod_sofia). we have a >>>> global var for this in default configs. >>>> >>>> > On May 23, 2018, at 6:13 PM, Blackhold >>>> wrote: >>>> > >>>> > Hi, >>>> > I have just installed freeswitch 1.9 >>>> > >>>> > freeswitch at freeswitch-capa8> version >>>> > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git >>>> 3c7db63 2018-05-16 21:12:08Z 64bit) >>>> > >>>> > And I'm trying to freeswitch use postgresql instead sqlitedb. >>>> > >>>> > I have configured the file switch.conf.xml of >>>> /usr/local/freeswitch/conf/autoload_configs with uncomenting and >>>> configuring this line >>>> > >>>> > >>>> > >>>> > then I exported all sqlitedbs to sql and then imported to a database >>>> that I have created in postgresql >>>> > >>>> > I have run again /etc/init.d/freeswitch.sh start >>>> > >>>> > But seems it still is taking sqlitedb. >>>> > >>>> > I tried to move the sqlitedbs files to other side and turned on again >>>> freeswitch, but it creates sqlitedbs again. >>>> > >>>> > What I'm missing? what I'm doing wrong? what could I check? >>>> >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>> switch-users >>>> http://www.freeswitch.org >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From infos at madovsky.org Thu May 24 19:58:42 2018 From: infos at madovsky.org (Madovsky) Date: Thu, 24 May 2018 12:58:42 -0700 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> Message-ID: <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> First of all, pgsql:// does not use odbc, instead use odbc:// to use odbc (btw your odbc.ini file shows Protocol=6.4 (!?) are you using postgresql 6.x !??!) what version of postgresql are you using? compiled yourself or from system package? check if there are not multiple versions of libpq.xx in your system. check pg_hba.conf if localhost is on trust mode for all local users. if you compiled yourself so be sure the right libpq.xx have been chosen. On 5/24/2018 12:33 PM, Blackhold wrote: > nope, it is not able to create stuff > > now I also have enabled that in switch.conf.xml > >     >     > > tested with odbc and directly with psql and behaviour is the same. > > for psql the procedure I have followed is > > root at freeswitch-capa8:~# su - postgres > root at freeswitch-capa8:~#postgres at freeswitch-capa8:~$ createuser > freeswitch_user > root at freeswitch-capa8:~#createdb -O freeswitch_user freeswitch_db > root at freeswitch-capa8:~#psql freeswitch_db > freeswitch_db=# ALTER USER freeswitch_user WITH PASSWORD 'XXX'; > freeswitch_db=# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO > freeswitch_user; > freeswitch_db=# GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public > TO freeswitch_user; > > the most beatiful was with odbc + tables created... in the last > mail... freeswitch turned on, in other ways freeswitch doesn't turns on. > > logs doesn't talk about permissions.... > > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra > nosaltres mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-24 21:20 GMT+02:00 Michael Jerris >: > > you shouldn't need to pre-import the tables, if the permissions > are right, it should create the tables and indexes for you. > > >> On May 24, 2018, at 3:15 PM, Blackhold > > wrote: >> >> I continue with tests >> >> I think I know wich problem I had with errors >> >> I have missed to grant privileges in psql: >> >> GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO >> freeswitch_user; >> GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO >> freeswitch_user; >> >> # with tables imported from sqlite it shows (freeswitch runs) >> >> root at freeswitch-capa8:/var/log/postgresql# tail -f >> postgresql-9.4-main.log >> >> 2018-05-24 21:03:34 CEST [8623-1] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-2] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index recovery1 on >> recovery(technology);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-3] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-4] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index recovery2 on >> recovery(profile_name);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-5] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-6] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index recovery3 on >> recovery(uuid);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-7] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-8] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index recovery3 on >> recovery(runtime_uuid);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-9] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-10] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index alias1 on >> aliases (alias);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-11] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-12] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index tasks1 on >> tasks (hostname,task_id);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-13] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-14] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index complete1 on >> complete (a1,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-15] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-16] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index complete2 on >> complete (a2,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-17] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-18] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index complete3 on >> complete (a3,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-19] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-20] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index complete4 on >> complete (a4,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-21] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-22] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index complete5 on >> complete (a5,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-23] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-24] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index complete6 on >> complete (a6,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-25] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-26] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index complete7 on >> complete (a7,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-27] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-28] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index complete8 on >> complete (a8,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-29] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-30] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index complete9 on >> complete (a9,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-31] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-32] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index complete10 >> on complete (a10,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-33] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-34] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index complete11 >> on complete (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname);EXECUTE >> "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-35] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-36] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index >> nat_map_port_proto on nat (port,proto,hostname);EXECUTE >> "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-37] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-38] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index channels1 on >> channels(hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-39] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-40] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index calls1 on >> calls(hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-41] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-42] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index chidx1 on >> channels (hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-43] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-44] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index uuindex on >> channels (uuid, hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-45] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-46] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index uuindex2 on >> channels (call_uuid);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-47] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-48] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index callsidx1 on >> calls (hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-49] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-50] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index eruuindex on >> calls (caller_uuid, hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-51] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-52] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index eeuuindex on >> calls (callee_uuid);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-53] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-54] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index eeuuindex2 >> on calls (call_uuid);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-55] freeswitch_user at freeswitch_db >> ERROR: syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-56] freeswitch_user at freeswitch_db >> STATEMENT:  PREPARE "_PLAN0x123ff90" as create index regindex1 on >> registrations (reg_user,realm,hostname);EXECUTE "_PLAN0x123ff90" >> >> # with a clean database >> >> start dropping last errors, and don't create any table in db. >> Freeswitch doesn't turns on. >> >> each time I stop freeswitch when it don't runs, it keeps a >> process running that I have to kill manually >> >> root at freeswitch-capa8:/var/log/postgresql#  ps aux |grep free >> root      8706 39.6  0.7 141296 15244 ?        S> /usr/local/freeswitch/bin/freeswitch -nc >> >> >> # with granted permisions if I turn configuration to not use >> odbc, using psql directly >> >> freeswitch turns on, there's no errors in psql log file and no >> table was created on db. >> >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-24 20:31 GMT+02:00 Blackhold > >: >> >> # OK for location of ODBC files >> >> # output freeswitch using psql (I only edited switch.conf.xml >> file) >> (switch.conf.xml >> file) >> >> I see no errors related on logs (nor freeswitch, nor psql >> -debug5-), obviously restarted psql to reload config. >> >> in sofia.conf.xml file I found no option to configure it >> pointing to database >> no other config file, except switch.conf.xml has configured >> database pointing >> >> I tried to configure db.conf.xml file, with switch.conf.xml >> line but also do nothing >> >> # output freeswtich using odbc >> > value="freeswitch:freeswitch_user:XXX"/> (switch.conf.xml file) >> >> these are the first lines of postgresql log file >> >> 2018-05-24 20:23:15 CEST [7518-7] LOG: received fast shutdown >> request >> 2018-05-24 20:23:15 CEST [7518-8] LOG: aborting any active >> transactions >> 2018-05-24 20:23:15 CEST [7548-2] LOG: autovacuum launcher >> shutting down >> 2018-05-24 20:23:15 CEST [7545-1] LOG: shutting down >> 2018-05-24 20:23:15 CEST [7545-2] LOG: database system is >> shut down >> 2018-05-24 20:23:16 CEST [7568-1] LOG: database system was >> shut down at 2018-05-24 20:23:15 CEST >> 2018-05-24 20:23:16 CEST [7568-2] LOG: MultiXact member >> wraparound protections are now enabled >> 2018-05-24 20:23:16 CEST [7567-1] LOG: database system is >> ready to accept connections >> 2018-05-24 20:23:16 CEST [7572-1] LOG: autovacuum launcher >> started >> 2018-05-24 20:23:16 CEST [7574-1] [unknown]@[unknown] LOG: >> incomplete startup packet >> 2018-05-24 20:23:39 CEST [7596-1] >> freeswitch_user at freeswitch_db ERROR:  relation "channels" >> does not exist at character 40 >> 2018-05-24 20:23:39 CEST [7596-2] >> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >> "_PLAN0x9f3f90" as delete from channels where >> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >> 2018-05-24 20:23:39 CEST [7596-3] >> freeswitch_user at freeswitch_db ERROR:  relation "calls" does >> not exist at character 40 >> 2018-05-24 20:23:39 CEST [7596-4] >> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >> "_PLAN0x9f3f90" as delete from calls where >> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >> 2018-05-24 20:23:39 CEST [7596-5] >> freeswitch_user at freeswitch_db ERROR:  relation "tasks" does >> not exist at character 40 >> 2018-05-24 20:23:39 CEST [7596-6] >> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >> "_PLAN0x9f3f90" as delete from tasks where >> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >> 2018-05-24 20:23:39 CEST [7596-7] >> freeswitch_user at freeswitch_db ERROR:  relation "aliases" does >> not exist at character 49 >> 2018-05-24 20:23:39 CEST [7596-8] >> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >> "_PLAN0x9f3f90" as select hostname from aliases;EXECUTE >> "_PLAN0x9f3f90" >> 2018-05-24 20:23:39 CEST [7596-9] >> freeswitch_user at freeswitch_db ERROR:  syntax error at or near >> "DROP" at character 28 >> 2018-05-24 20:23:39 CEST [7596-10] >> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >> "_PLAN0x9f3f90" as DROP TABLE aliases;EXECUTE "_PLAN0x9f3f90" >> 2018-05-24 20:23:39 CEST [7596-11] >> freeswitch_user at freeswitch_db ERROR:  syntax error at or near >> "CREATE" at character 28 >> 2018-05-24 20:23:39 CEST [7596-12] >> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >> "_PLAN0x9f3f90" as CREATE TABLE aliases ( >>  sticky  INTEGER, >>  alias  VARCHAR(128), >>  command  VARCHAR(4096), >>  hostname VARCHAR(256) >>         ); >> ;EXECUTE "_PLAN0x9f3f90" >> >> and now freeswitch isn't able to run. >> >> If I enable odbc trace in odbcinst.ini >> >> Trace=Yes >> TraceFile=/var/log/odbctrace.log >> >> Also there's no output.... >> >> In freeswitch log also there's nothing about what is happening :( >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i >> contra nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-24 19:30 GMT+02:00 Michael Jerris > >: >> >> but that table layout is like that because you imported >> the tables, i was asking what is in the recreated sqlite >> ones.  If it fails to connect like you later describe, >> its going to fall back, you should see stuff in the fs >> logs on startup about this.  the odbc configs go in the >> normal place they go in the os, not in fs specific dirs.  >> Those errors tell me something is up, but not sure what, >> might need to turn on some debug on pg side to see.  some >> of our tests like to see if table schema is right throw >> errors then we act on them, if you restart a second time >> you should get a more useful set of errors. >> >> >>> On May 24, 2018, at 1:11 PM, Blackhold >>> >> > wrote: >>> >>> Hi, >>> The tables are: >>> >>> ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db >>> freeswitch_db-# \dt >>> >>> List of relations >>>  Schema |   Name          | Type  | Owner >>> --------+-------------------------------------+-------+---------- >>>  public | aliases        | table | postgres >>>  public | calls        | table | postgres >>>  public | channels         | table | postgres >>>  public | complete         | table | postgres >>>  public | db_data        | table | postgres >>>  public | fifo_bridge        | table | postgres >>>  public | fifo_callers         | table | postgres >>>  public | fifo_outbound        | table | postgres >>>  public | group_data         | table | postgres >>>  public | interfaces         | table | postgres >>>  public | json_store         | table | postgres >>>  public | limit_data         | table | postgres >>>  public | nat        | table | postgres >>>  public | recovery         | table | postgres >>>  public | registrations        | table | postgres >>>  public | sip_authentication                  | table | >>> postgres >>>  public | sip_dialogs        | table | postgres >>>  public | sip_presence         | table | postgres >>>  public | sip_registrations                   | table | >>> postgres >>>  public | sip_shared_appearance_dialogs       | table | >>> postgres >>>  public | sip_shared_appearance_subscriptions | table | >>> postgres >>>  public | sip_subscriptions                   | table | >>> postgres >>>  public | tasks        | table | postgres >>>  public | voicemail_msgs                      | table | >>> postgres >>>  public | voicemail_prefs                     | table | >>> postgres >>> (25 rows) >>> >>> I continued testing and found that if I configure >>> switch.conf.xml file like this: >>> >>> >> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='****' options='-c >>> client_min_messages=NOTICE'" /> >>> >>> When I turn on freeswitch, postgresql don't output >>> nothing. Then I tried to configure freeswitch using odbc >>> I then YES I get something in postgresql logs >>> >>> For odbc I have something not clear, it is mandatory to >>> put files in /usr/local/freeswitch/etc ? or leaving them >>> at default directory (/etc) is enough? >>> >>> Here I show the config of odbc files: >>> root at freeswitch-capa8:/etc# cat odbc.ini >>> [freeswitch] >>> ; WARNING: The old psql odbc driver psqlodbc.so is now >>> renamed psqlodbcw.so >>> ; in version 08.x. Note that the library can also be >>> installed under an other >>> ; path than /usr/local/lib/ following your installation. >>> ; Driver = /usr/lib64/odbc/psqlodbcw.so >>> ; Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so >>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>> Description=Connection to LDAP/POSTGRESQL >>> Servername=localhost >>> Port=5432 >>> Protocol=6.4 >>> FetchBufferSize=99 >>> Username=freeswitch_user >>> Password=XXX >>> Database=freeswitch_db >>> ReadOnly=no >>> Debug=0 >>> CommLog=0 >>> >>> root at freeswitch-capa8:/etc# cat odbcinst.ini >>> [PostgreSQL] >>> Description = PostgreSQL driver for Linux & Win32 >>> ;Driver = /usr/lib64/odbc/psqlodbcw.so >>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>> Threading = 0 >>> MaxLongVarcharSize=65536 >>> >>> And then connect to psql through odbc >>> >>> root at freeswitch-capa8:/etc# isql -v freeswitch >>> +---------------------------------------+ >>> | Connected!           | >>> |    | >>> | sql-statement          | >>> | help [tablename]     | >>> | quit   | >>> |    | >>> +---------------------------------------+ >>> SQL> >>> >>> Then in file switch.conf.xml I changed db connection >>> configuration >>> >>> root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# >>> cat switch.conf.xml |grep core-db-dsn >>> >> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='XXX' options='-c >>> client_min_messages=NOTICE'" /> >>> >>> >>> Last night SwK user at freenode channel told me that >>> freeswitch on turning on, it creates tables at database >>> (thanks SwK). >>> >>> I spect that configuration of odbc is working but drops >>> lot of errors (here you have some lines): >>> >>> 2018-05-24 02:03:25 CEST [3099-338780] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x140bf90" as CREATE TABLE nat ( >>>  sticky INTEGER, >>> portINTEGER, >>> protoINTEGER, >>>  hostname VARCHAR(256) >>> ); >>> ;EXECUTE "_PLAN0x140bf90" >>> 2018-05-24 02:03:25 CEST [3099-338781] >>> freeswitch_user at freeswitch_db WARNING:  there is already >>> a transaction in progress >>> 2018-05-24 02:03:25 CEST [3099-338782] >>> freeswitch_user at freeswitch_db ERROR:  relation >>> "registrations" does not exist at character 41 >>> 2018-05-24 02:03:25 CEST [3099-338783] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x140bf90" as delete from registrations where >>> reg_user='';EXECUTE "_PLAN0x140bf90" >>> 2018-05-24 02:03:25 CEST [3099-338784] >>> freeswitch_user at freeswitch_db WARNING:  there is already >>> a transaction in progress >>> 2018-05-24 02:03:25 CEST [3099-338785] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "DROP" at character 29 >>> 2018-05-24 02:03:25 CEST [3099-338786] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x140bf90" as DROP TABLE registrations;EXECUTE >>> "_PLAN0x140bf90" >>> 2018-05-24 02:03:25 CEST [3099-338787] >>> freeswitch_user at freeswitch_db WARNING:  there is already >>> a transaction in progress >>> 2018-05-24 02:03:25 CEST [3099-338788] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "CREATE" at character 29 >>> 2018-05-24 02:03:25 CEST [3099-338789] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x140bf90" as CREATE TABLE registrations ( >>>  reg_user VARCHAR(256), >>>  realm  VARCHAR(256), >>>  token  VARCHAR(256), >>>  url TEXT, >>>  expires INTEGER, >>>  network_ip VARCHAR(256), >>>  network_port VARCHAR(256), >>>  network_proto VARCHAR(256), >>>  hostname VARCHAR(256), >>>  metadata VARCHAR(256) >>> ); >>> ;EXECUTE "_PLAN0x140bf90" >>> 2018-05-24 02:03:25 CEST [3099-338790] >>> freeswitch_user at freeswitch_db WARNING:  there is already >>> a transaction in progress >>> 2018-05-24 02:03:25 CEST [3099-338791] >>> freeswitch_user at freeswitch_db LOG:  unexpected EOF on >>> client connection with an open transaction >>> >>> >>> I tested with tables in psql database and without tables >>> in psql database. >>> >>> freeswitch at freeswitch-capa8> version >>> FreeSWITCH Version >>> 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git 3c7db63 >>> 2018-05-16 21:12:08Z 64bit) >>> >>> As I told in last mail, I'm working with last git version. >>> >>> Then I have a last question, related to that (db), when >>> it will work, all mods will save the information to >>> pgsql or a mix some to sqlite and some to pgsql? I saw >>> in other files the availibility to configure also db, >>> like /usr/local/freeswitch/conf/sip_profiles/internal.xml >>> >>> root at freeswitch-capa8:/usr/local/freeswitch/conf# cat >>> /usr/local/freeswitch/conf/sip_profiles/internal.xml >>> |grep db >>> >>> >>> >>> >>> >>> >>> >>> >>> The config you see in the mail is the last configuration >>> I defined. Yesterday I get lost with wich config work or >>> wich one no... >>> >>> I feel I'm almost at end of this installation! I'm doing >>> a step by step manual in spanish to how to install last >>> version of freeswitch, this will be public and if you >>> want I could upload to wiki. >>> >>> Thanks you much for your help :) >>> >>> References: >>> https://freeswitch.org/confluence/display/FREESWITCH/PostgreSQL+in+the+core >>> >>> https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN >>> >>> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+Databases >>> >>> >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, >>> i contra nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-24 18:21 GMT+02:00 Michael Jerris >>> >: >>> >>> what tables are ending up in the recreated sqlite >>> db? You need to set it for the modules that use >>> sqlite too (like for mod_sofia). we have a global >>> var for this in default configs. >>> >>> > On May 23, 2018, at 6:13 PM, Blackhold >>> >> > wrote: >>> > >>> > Hi, >>> > I have just installed freeswitch 1.9 >>> > >>> > freeswitch at freeswitch-capa8> version >>> > FreeSWITCH Version >>> 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git >>> 3c7db63 2018-05-16 21:12:08Z 64bit) >>> > >>> > And I'm trying to freeswitch use postgresql >>> instead sqlitedb. >>> > >>> > I have configured the file switch.conf.xml of >>> /usr/local/freeswitch/conf/autoload_configs with >>> uncomenting and configuring this line >>> > >>> >  >> value="pgsql://hostaddr=127.0.0.1 >>> dbname=freeswitch_db user=freeswitch_user >>> password='****' options='-c >>> client_min_messages=NOTICE'" /> >>> > >>> > then I exported all sqlitedbs to sql and then >>> imported to a database that I have created in postgresql >>> > >>> > I have run again /etc/init.d/freeswitch.sh start >>> > >>> > But seems it still is taking sqlitedb. >>> > >>> > I tried to move the sqlitedbs files to other side >>> and turned on again freeswitch, but it creates >>> sqlitedbs again. >>> > >>> > What I'm missing? what I'm doing wrong? what could >>> I check? >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> >>> http://www.freeswitchsolutions.com >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> >>> http://www.freeswitch.org >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> >>> http://www.freeswitch.org >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at cassidywebservices.co.uk Thu May 24 20:03:25 2018 From: andrew at cassidywebservices.co.uk (Andrew Cassidy) Date: Thu, 24 May 2018 21:03:25 +0100 Subject: [Freeswitch-users] FreeSWITCH offering SRTP on Re-INVITE In-Reply-To: <1A1D74AB-AD7E-4308-9E7E-0FA868FB9BAA@jerris.com> References: <072D43CE-1B92-41DE-B3B3-070FE01305F3@jerris.com> <1A1D74AB-AD7E-4308-9E7E-0FA868FB9BAA@jerris.com> Message-ID: Hi Mike, This was with rtp_secure_media=optional If I use any other value of rtp_secure_media it works as expected. If that has to be the workaround then so be it. Kind regards, On Wed, 23 May 2018, 16:17 Michael Jerris, wrote: > After review with the zoiper team, it looks like this re-invite is trying > to force srtp, while using UDP, something which is generally bad security > practice, and because of this, something that zoiper does not support. If > you wish to create an SRTP call with zoiper you should do so at the start > of the call, and using TLS for signaling for security. > > > On May 19, 2018, at 3:12 AM, Andrew Cassidy < > andrew at cassidywebservices.co.uk> wrote: > > Thanks Michael, > > They're basically being all high and mighty about it. I've suggested that > handling the call should be consistent, they either don't reject the > reinvite, or they reject the initial invite but have told me this issue is > "by design". > > We have workarounds as previously mentioned so it's not the end of the > world. I might have to reconsider whether I continue to use them in the > long term. > > Kind regards, > > On Fri, 18 May 2018, 16:19 Michael Jerris, wrote: > > After review of the sip trace, I’d report that one to the zoiper guys. >> There is no reason they should reject the call in that case. >> >> > On May 17, 2018, at 4:48 PM, Andrew Cassidy < >> andrew at cassidywebservices.co.uk> wrote: >> > >> > Good afternoon All, >> > >> > I have experienced the following issue with Zoiper specifically (I have >> a support ticket open with them currently) and was wondering if it's >> something that could/should be fixed FreeSWITCH side. >> > >> > If rtp_secure_media is set to optional, and SRTP is disabled on Zoiper, >> when FreeSWITCH sends the Re-INVITE, it sends crypto lines. Zoiper then >> replies with a 514 Unsupported Media Type and the timer refresh fails, >> causing Zoiper to hang up the call. >> > >> > My current feeling is that as Zoiper ignored the crypto on the initial >> INVITE it should be them that then handles the Re-INVITE consistently by >> also ignoring the crypto lines but I'm not familiar enough with the RFCs to >> make a judgement. >> > >> > The workaround is to either enable SRTP in Zoiper or don't set >> rtp_secure_media to optional when Zoiper is in use. >> > >> > Kind regards, >> > >> > = > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From bilaln018 at gmail.com Thu May 24 20:06:57 2018 From: bilaln018 at gmail.com (Bilal Abbasi) Date: Fri, 25 May 2018 01:06:57 +0500 Subject: [Freeswitch-users] [mod_unimrcp][Speech Recognition start/stop] Message-ID: Hi Users, I am using mod_unimrcp, i have successfully done the Speech to Text using below function But i don't need the play and detect, i need to put the caller in a conference so i really need something like this action application="start_detect:*unimrcp:uni2* {start-input-timers=false} *builtin:speech/transcribe*"/> action application="stop_detect:*unimrcp:uni2* {start-input-timers=false} *builtin:speech/transcribe*"/> I could not find a way to start the unimrcp client and then stop at hangup, can somebody please help me out with this. Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at convergedgroup.net Thu May 24 20:09:31 2018 From: andrew at convergedgroup.net (Andrew Colin) Date: Thu, 24 May 2018 22:09:31 +0200 (SAST) Subject: [Freeswitch-users] Multiple external profiles Message-ID: <1655081756.440956.1527192571807.JavaMail.zimbra@convergedgroup.net> Hi Guys If i am running 2 external sip profiles both running port 5080 but with different ip's how do i tell a specific gateway to use which sip profile? From mike at jerris.com Thu May 24 20:14:41 2018 From: mike at jerris.com (Michael Jerris) Date: Thu, 24 May 2018 16:14:41 -0400 Subject: [Freeswitch-users] FreeSWITCH offering SRTP on Re-INVITE In-Reply-To: References: <072D43CE-1B92-41DE-B3B3-070FE01305F3@jerris.com> <1A1D74AB-AD7E-4308-9E7E-0FA868FB9BAA@jerris.com> Message-ID: <76A515EC-AA3F-4EC4-B604-8083EBE1F93E@jerris.com> the trace i saw didnt look like optional to me. was rejecting the non srtp one off the bat > On May 24, 2018, at 4:03 PM, Andrew Cassidy wrote: > > Hi Mike, > > This was with rtp_secure_media=optional > > If I use any other value of rtp_secure_media it works as expected. If that has to be the workaround then so be it. > > Kind regards, > > On Wed, 23 May 2018, 16:17 Michael Jerris, > wrote: > After review with the zoiper team, it looks like this re-invite is trying to force srtp, while using UDP, something which is generally bad security practice, and because of this, something that zoiper does not support. If you wish to create an SRTP call with zoiper you should do so at the start of the call, and using TLS for signaling for security. > > > >> On May 19, 2018, at 3:12 AM, Andrew Cassidy > wrote: >> > >> Thanks Michael, >> >> They're basically being all high and mighty about it. I've suggested that handling the call should be consistent, they either don't reject the reinvite, or they reject the initial invite but have told me this issue is "by design". >> >> We have workarounds as previously mentioned so it's not the end of the world. I might have to reconsider whether I continue to use them in the long term. >> > >> Kind regards, >> > >> On Fri, 18 May 2018, 16:19 Michael Jerris, > wrote: > >> After review of the sip trace, I’d report that one to the zoiper guys. There is no reason they should reject the call in that case. >> >> > On May 17, 2018, at 4:48 PM, Andrew Cassidy > wrote: >> > >> > Good afternoon All, >> > >> > I have experienced the following issue with Zoiper specifically (I have a support ticket open with them currently) and was wondering if it's something that could/should be fixed FreeSWITCH side. >> > >> > If rtp_secure_media is set to optional, and SRTP is disabled on Zoiper, when FreeSWITCH sends the Re-INVITE, it sends crypto lines. Zoiper then replies with a 514 Unsupported Media Type and the timer refresh fails, causing Zoiper to hang up the call. >> > >> > My current feeling is that as Zoiper ignored the crypto on the initial INVITE it should be them that then handles the Re-INVITE consistently by also ignoring the crypto lines but I'm not familiar enough with the RFCs to make a judgement. >> > >> > The workaround is to either enable SRTP in Zoiper or don't set rtp_secure_media to optional when Zoiper is in use. >> > >> > Kind regards, >> > > >> = > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Thu May 24 20:26:10 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Thu, 24 May 2018 22:26:10 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> Message-ID: Hi, I'm trying both ways, switching between one and the other... I initially want to use psql directly, not using odbc, but when using directly I get less info, well... logs files don't say nothing :( if the correct way is to use that: so then, I only will use that, and the problem is my system, not freeswitch. odbc configuration is an old odbc configuration that I used some time ago when I had to use it... so... for actual psql db wich version is the ok?! Here you have the versions of libraries I have: # debian 8 fresh install (x86_64) root at freeswitch-capa8:~# cat /etc/debian_version 8.10 root at freeswitch-capa8:~# dpkg -l |grep postgresql ii odbc-postgresql:amd64 1:09.03.0300-1 amd64 ODBC driver for PostgreSQL ii postgresql 9.4+165+deb8u3 all object-relational SQL database (supported version) ii postgresql-9.4 9.4.15-0+deb8u1 amd64 object-relational SQL database, version 9.4 server ii postgresql-client 9.4+165+deb8u3 all front-end programs for PostgreSQL (supported version) ii postgresql-client-9.4 9.4.15-0+deb8u1 amd64 front-end programs for PostgreSQL 9.4 ii postgresql-client-common 165+deb8u3 all manager for multiple PostgreSQL client versions ii postgresql-common 165+deb8u3 all PostgreSQL database-cluster manager root at freeswitch-capa8:~# dpkg -l |grep libpq ii libpq-dev 9.4.15-0+deb8u1 amd64 header files for libpq5 (PostgreSQL library) ii libpq5:amd64 9.4.15-0+deb8u1 amd64 PostgreSQL C client library all these packages are downloaded from sources the lines enabled at pg_hba.conf are these (the debian default ones) local all postgres peer local all all peer host all all 127.0.0.1/32 md5 host all all ::1/128 md5 the script that I have used to do the installation is the one located in source code root at freeswitch-capa8:/usr/src/freeswitch/scripts# ls -l |grep raspbian-installer -rwxr-xr-x 1 root root 7922 May 23 20:26 FreeSWITCH-debian-raspbian-installer.sh - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-24 21:58 GMT+02:00 Madovsky : > First of all, pgsql:// does not use odbc, instead use odbc:// to use odbc > (btw your odbc.ini file shows Protocol=6.4 (!?) are you using > > postgresql 6.x !??!) > > what version of postgresql are you using? compiled yourself or from system > package? > > check if there are not multiple versions of libpq.xx in your system. > > check pg_hba.conf if localhost is on trust mode for all local users. > > if you compiled yourself so be sure the right libpq.xx have been chosen. > On 5/24/2018 12:33 PM, Blackhold wrote: > > nope, it is not able to create stuff > > now I also have enabled that in switch.conf.xml > > > > > tested with odbc and directly with psql and behaviour is the same. > > for psql the procedure I have followed is > > root at freeswitch-capa8:~# su - postgres > root at freeswitch-capa8:~# postgres at freeswitch-capa8:~$ createuser > freeswitch_user > root at freeswitch-capa8:~# createdb -O freeswitch_user freeswitch_db > root at freeswitch-capa8:~# psql freeswitch_db > freeswitch_db=# ALTER USER freeswitch_user WITH PASSWORD 'XXX'; > freeswitch_db=# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO > freeswitch_user; > freeswitch_db=# GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO > freeswitch_user; > > the most beatiful was with odbc + tables created... in the last mail... > freeswitch turned on, in other ways freeswitch doesn't turns on. > > logs doesn't talk about permissions.... > > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres > mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-24 21:20 GMT+02:00 Michael Jerris : > >> you shouldn't need to pre-import the tables, if the permissions are >> right, it should create the tables and indexes for you. >> >> >> On May 24, 2018, at 3:15 PM, Blackhold wrote: >> >> I continue with tests >> >> I think I know wich problem I had with errors >> >> I have missed to grant privileges in psql: >> >> GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO freeswitch_user; >> GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO freeswitch_user; >> >> # with tables imported from sqlite it shows (freeswitch runs) >> >> root at freeswitch-capa8:/var/log/postgresql# tail -f >> postgresql-9.4-main.log >> >> 2018-05-24 21:03:34 CEST [8623-1] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-2] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery1 on >> recovery(technology);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-3] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-4] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery2 on >> recovery(profile_name);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-5] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-6] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on >> recovery(uuid);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-7] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-8] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on >> recovery(runtime_uuid);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-9] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-10] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index alias1 on aliases >> (alias);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-11] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-12] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index tasks1 on tasks >> (hostname,task_id);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-13] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-14] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete1 on complete >> (a1,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-15] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-16] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete2 on complete >> (a2,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-17] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-18] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete3 on complete >> (a3,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-19] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-20] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete4 on complete >> (a4,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-21] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-22] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete5 on complete >> (a5,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-23] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-24] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete6 on complete >> (a6,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-25] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-26] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete7 on complete >> (a7,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-27] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-28] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete8 on complete >> (a8,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-29] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-30] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete9 on complete >> (a9,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-31] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-32] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete10 on complete >> (a10,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-33] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-34] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete11 on complete >> (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-35] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-36] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index nat_map_port_proto on >> nat (port,proto,hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-37] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-38] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index channels1 on >> channels(hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-39] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-40] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index calls1 on >> calls(hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-41] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-42] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index chidx1 on channels >> (hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-43] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-44] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex on channels >> (uuid, hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-45] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-46] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex2 on channels >> (call_uuid);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-47] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-48] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index callsidx1 on calls >> (hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-49] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-50] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eruuindex on calls >> (caller_uuid, hostname);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-51] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-52] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex on calls >> (callee_uuid);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-53] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-54] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex2 on calls >> (call_uuid);EXECUTE "_PLAN0x123ff90" >> 2018-05-24 21:03:34 CEST [8623-55] freeswitch_user at freeswitch_db ERROR: >> syntax error at or near "create" at character 29 >> 2018-05-24 21:03:34 CEST [8623-56] freeswitch_user at freeswitch_db >> STATEMENT: PREPARE "_PLAN0x123ff90" as create index regindex1 on >> registrations (reg_user,realm,hostname);EXECUTE "_PLAN0x123ff90" >> >> # with a clean database >> >> start dropping last errors, and don't create any table in db. Freeswitch >> doesn't turns on. >> >> each time I stop freeswitch when it don't runs, it keeps a process >> running that I have to kill manually >> >> root at freeswitch-capa8:/var/log/postgresql# ps aux |grep free >> root 8706 39.6 0.7 141296 15244 ? S> /usr/local/freeswitch/bin/freeswitch -nc >> >> >> # with granted permisions if I turn configuration to not use odbc, using >> psql directly >> >> freeswitch turns on, there's no errors in psql log file and no table was >> created on db. >> >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-24 20:31 GMT+02:00 Blackhold : >> >>> # OK for location of ODBC files >>> >>> # output freeswitch using psql (I only edited switch.conf.xml file) >>> (switch.conf.xml file) >>> >>> I see no errors related on logs (nor freeswitch, nor psql -debug5-), >>> obviously restarted psql to reload config. >>> >>> in sofia.conf.xml file I found no option to configure it pointing to >>> database >>> no other config file, except switch.conf.xml has configured database >>> pointing >>> >>> I tried to configure db.conf.xml file, with switch.conf.xml line but >>> also do nothing >>> >>> # output freeswtich using odbc >>> >>> (switch.conf.xml file) >>> >>> these are the first lines of postgresql log file >>> >>> 2018-05-24 20:23:15 CEST [7518-7] LOG: received fast shutdown request >>> 2018-05-24 20:23:15 CEST [7518-8] LOG: aborting any active transactions >>> 2018-05-24 20:23:15 CEST [7548-2] LOG: autovacuum launcher shutting down >>> 2018-05-24 20:23:15 CEST [7545-1] LOG: shutting down >>> 2018-05-24 20:23:15 CEST [7545-2] LOG: database system is shut down >>> 2018-05-24 20:23:16 CEST [7568-1] LOG: database system was shut down at >>> 2018-05-24 20:23:15 CEST >>> 2018-05-24 20:23:16 CEST [7568-2] LOG: MultiXact member wraparound >>> protections are now enabled >>> 2018-05-24 20:23:16 CEST [7567-1] LOG: database system is ready to >>> accept connections >>> 2018-05-24 20:23:16 CEST [7572-1] LOG: autovacuum launcher started >>> 2018-05-24 20:23:16 CEST [7574-1] [unknown]@[unknown] LOG: incomplete >>> startup packet >>> 2018-05-24 20:23:39 CEST [7596-1] freeswitch_user at freeswitch_db ERROR: >>> relation "channels" does not exist at character 40 >>> 2018-05-24 20:23:39 CEST [7596-2] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from channels where >>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>> 2018-05-24 20:23:39 CEST [7596-3] freeswitch_user at freeswitch_db ERROR: >>> relation "calls" does not exist at character 40 >>> 2018-05-24 20:23:39 CEST [7596-4] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from calls where >>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>> 2018-05-24 20:23:39 CEST [7596-5] freeswitch_user at freeswitch_db ERROR: >>> relation "tasks" does not exist at character 40 >>> 2018-05-24 20:23:39 CEST [7596-6] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from tasks where >>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>> 2018-05-24 20:23:39 CEST [7596-7] freeswitch_user at freeswitch_db ERROR: >>> relation "aliases" does not exist at character 49 >>> 2018-05-24 20:23:39 CEST [7596-8] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x9f3f90" as select hostname from aliases;EXECUTE >>> "_PLAN0x9f3f90" >>> 2018-05-24 20:23:39 CEST [7596-9] freeswitch_user at freeswitch_db ERROR: >>> syntax error at or near "DROP" at character 28 >>> 2018-05-24 20:23:39 CEST [7596-10] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x9f3f90" as DROP TABLE aliases;EXECUTE >>> "_PLAN0x9f3f90" >>> 2018-05-24 20:23:39 CEST [7596-11] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "CREATE" at character 28 >>> 2018-05-24 20:23:39 CEST [7596-12] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x9f3f90" as CREATE TABLE aliases ( >>> sticky INTEGER, >>> alias VARCHAR(128), >>> command VARCHAR(4096), >>> hostname VARCHAR(256) >>> ); >>> ;EXECUTE "_PLAN0x9f3f90" >>> >>> and now freeswitch isn't able to run. >>> >>> If I enable odbc trace in odbcinst.ini >>> >>> Trace=Yes >>> TraceFile=/var/log/odbctrace.log >>> >>> Also there's no output.... >>> >>> In freeswitch log also there's nothing about what is happening :( >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>> nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-24 19:30 GMT+02:00 Michael Jerris : >>> >>>> but that table layout is like that because you imported the tables, i >>>> was asking what is in the recreated sqlite ones. If it fails to connect >>>> like you later describe, its going to fall back, you should see stuff in >>>> the fs logs on startup about this. the odbc configs go in the normal place >>>> they go in the os, not in fs specific dirs. Those errors tell me something >>>> is up, but not sure what, might need to turn on some debug on pg side to >>>> see. some of our tests like to see if table schema is right throw errors >>>> then we act on them, if you restart a second time you should get a more >>>> useful set of errors. >>>> >>>> >>>> On May 24, 2018, at 1:11 PM, Blackhold >>>> wrote: >>>> >>>> Hi, >>>> The tables are: >>>> >>>> ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db >>>> freeswitch_db-# \dt >>>> >>>> List of relations >>>> Schema | Name | Type | Owner >>>> --------+-------------------------------------+-------+---------- >>>> public | aliases | table | postgres >>>> public | calls | table | postgres >>>> public | channels | table | postgres >>>> public | complete | table | postgres >>>> public | db_data | table | postgres >>>> public | fifo_bridge | table | postgres >>>> public | fifo_callers | table | postgres >>>> public | fifo_outbound | table | postgres >>>> public | group_data | table | postgres >>>> public | interfaces | table | postgres >>>> public | json_store | table | postgres >>>> public | limit_data | table | postgres >>>> public | nat | table | postgres >>>> public | recovery | table | postgres >>>> public | registrations | table | postgres >>>> public | sip_authentication | table | postgres >>>> public | sip_dialogs | table | postgres >>>> public | sip_presence | table | postgres >>>> public | sip_registrations | table | postgres >>>> public | sip_shared_appearance_dialogs | table | postgres >>>> public | sip_shared_appearance_subscriptions | table | postgres >>>> public | sip_subscriptions | table | postgres >>>> public | tasks | table | postgres >>>> public | voicemail_msgs | table | postgres >>>> public | voicemail_prefs | table | postgres >>>> (25 rows) >>>> >>>> I continued testing and found that if I configure switch.conf.xml file >>>> like this: >>>> >>>> >>>> >>>> When I turn on freeswitch, postgresql don't output nothing. Then I >>>> tried to configure freeswitch using odbc I then YES I get something in >>>> postgresql logs >>>> >>>> For odbc I have something not clear, it is mandatory to put files in >>>> /usr/local/freeswitch/etc ? or leaving them at default directory (/etc) is >>>> enough? >>>> >>>> Here I show the config of odbc files: >>>> root at freeswitch-capa8:/etc# cat odbc.ini >>>> [freeswitch] >>>> ; WARNING: The old psql odbc driver psqlodbc.so is now renamed >>>> psqlodbcw.so >>>> ; in version 08.x. Note that the library can also be installed under an >>>> other >>>> ; path than /usr/local/lib/ following your installation. >>>> ; Driver = /usr/lib64/odbc/psqlodbcw.so >>>> ; Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so >>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>> Description=Connection to LDAP/POSTGRESQL >>>> Servername=localhost >>>> Port=5432 >>>> Protocol=6.4 >>>> FetchBufferSize=99 >>>> Username=freeswitch_user >>>> Password=XXX >>>> Database=freeswitch_db >>>> ReadOnly=no >>>> Debug=0 >>>> CommLog=0 >>>> >>>> root at freeswitch-capa8:/etc# cat odbcinst.ini >>>> [PostgreSQL] >>>> Description = PostgreSQL driver for Linux & Win32 >>>> ;Driver = /usr/lib64/odbc/psqlodbcw.so >>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>> Threading = 0 >>>> MaxLongVarcharSize=65536 >>>> >>>> And then connect to psql through odbc >>>> >>>> root at freeswitch-capa8:/etc# isql -v freeswitch >>>> +---------------------------------------+ >>>> | Connected! | >>>> | | >>>> | sql-statement | >>>> | help [tablename] | >>>> | quit | >>>> | | >>>> +---------------------------------------+ >>>> SQL> >>>> >>>> Then in file switch.conf.xml I changed db connection configuration >>>> >>>> root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# cat >>>> switch.conf.xml |grep core-db-dsn >>>> >>>> >>>> >>>> Last night SwK user at freenode channel told me that freeswitch on >>>> turning on, it creates tables at database (thanks SwK). >>>> >>>> I spect that configuration of odbc is working but drops lot of errors >>>> (here you have some lines): >>>> >>>> 2018-05-24 02:03:25 CEST [3099-338780] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE nat ( >>>> sticky INTEGER, >>>> port INTEGER, >>>> proto INTEGER, >>>> hostname VARCHAR(256) >>>> ); >>>> ;EXECUTE "_PLAN0x140bf90" >>>> 2018-05-24 02:03:25 CEST [3099-338781] freeswitch_user at freeswitch_db >>>> WARNING: there is already a transaction in progress >>>> 2018-05-24 02:03:25 CEST [3099-338782] freeswitch_user at freeswitch_db >>>> ERROR: relation "registrations" does not exist at character 41 >>>> 2018-05-24 02:03:25 CEST [3099-338783] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x140bf90" as delete from registrations where >>>> reg_user='';EXECUTE "_PLAN0x140bf90" >>>> 2018-05-24 02:03:25 CEST [3099-338784] freeswitch_user at freeswitch_db >>>> WARNING: there is already a transaction in progress >>>> 2018-05-24 02:03:25 CEST [3099-338785] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "DROP" at character 29 >>>> 2018-05-24 02:03:25 CEST [3099-338786] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x140bf90" as DROP TABLE registrations;EXECUTE >>>> "_PLAN0x140bf90" >>>> 2018-05-24 02:03:25 CEST [3099-338787] freeswitch_user at freeswitch_db >>>> WARNING: there is already a transaction in progress >>>> 2018-05-24 02:03:25 CEST [3099-338788] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "CREATE" at character 29 >>>> 2018-05-24 02:03:25 CEST [3099-338789] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE registrations ( >>>> reg_user VARCHAR(256), >>>> realm VARCHAR(256), >>>> token VARCHAR(256), >>>> url TEXT, >>>> expires INTEGER, >>>> network_ip VARCHAR(256), >>>> network_port VARCHAR(256), >>>> network_proto VARCHAR(256), >>>> hostname VARCHAR(256), >>>> metadata VARCHAR(256) >>>> ); >>>> ;EXECUTE "_PLAN0x140bf90" >>>> 2018-05-24 02:03:25 CEST [3099-338790] freeswitch_user at freeswitch_db >>>> WARNING: there is already a transaction in progress >>>> 2018-05-24 02:03:25 CEST [3099-338791] freeswitch_user at freeswitch_db >>>> LOG: unexpected EOF on client connection with an open transaction >>>> >>>> >>>> I tested with tables in psql database and without tables in psql >>>> database. >>>> >>>> freeswitch at freeswitch-capa8> version >>>> FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git >>>> 3c7db63 2018-05-16 21:12:08Z 64bit) >>>> >>>> As I told in last mail, I'm working with last git version. >>>> >>>> Then I have a last question, related to that (db), when it will work, >>>> all mods will save the information to pgsql or a mix some to sqlite and >>>> some to pgsql? I saw in other files the availibility to configure also db, >>>> like /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>> >>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# cat >>>> /usr/local/freeswitch/conf/sip_profiles/internal.xml |grep db >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> The config you see in the mail is the last configuration I defined. >>>> Yesterday I get lost with wich config work or wich one no... >>>> >>>> I feel I'm almost at end of this installation! I'm doing a step by step >>>> manual in spanish to how to install last version of freeswitch, this will >>>> be public and if you want I could upload to wiki. >>>> >>>> Thanks you much for your help :) >>>> >>>> References: >>>> https://freeswitch.org/confluence/display/FREESWITCH/Postgre >>>> SQL+in+the+core >>>> https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN >>>> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWI >>>> TCH+Databases >>>> >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-24 18:21 GMT+02:00 Michael Jerris : >>>> >>>>> what tables are ending up in the recreated sqlite db? You need to set >>>>> it for the modules that use sqlite too (like for mod_sofia). we have a >>>>> global var for this in default configs. >>>>> >>>>> > On May 23, 2018, at 6:13 PM, Blackhold >>>>> wrote: >>>>> > >>>>> > Hi, >>>>> > I have just installed freeswitch 1.9 >>>>> > >>>>> > freeswitch at freeswitch-capa8> version >>>>> > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git >>>>> 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>> > >>>>> > And I'm trying to freeswitch use postgresql instead sqlitedb. >>>>> > >>>>> > I have configured the file switch.conf.xml of >>>>> /usr/local/freeswitch/conf/autoload_configs with uncomenting and >>>>> configuring this line >>>>> > >>>>> > >>>>> > >>>>> > then I exported all sqlitedbs to sql and then imported to a database >>>>> that I have created in postgresql >>>>> > >>>>> > I have run again /etc/init.d/freeswitch.sh start >>>>> > >>>>> > But seems it still is taking sqlitedb. >>>>> > >>>>> > I tried to move the sqlitedbs files to other side and turned on >>>>> again freeswitch, but it creates sqlitedbs again. >>>>> > >>>>> > What I'm missing? what I'm doing wrong? what could I check? >>>>> >>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>> switch-users >>>>> http://www.freeswitch.org >>>> >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>> switch-users >>>> http://www.freeswitch.org >>>> >>>> >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>> switch-users >>>> http://www.freeswitch.org >>>> >>> >>> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com > > Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com > > FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Thu May 24 20:37:18 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Thu, 24 May 2018 22:37:18 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> Message-ID: %s/sources/repository/g - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-24 22:26 GMT+02:00 Blackhold : > Hi, > > I'm trying both ways, switching between one and the other... I initially > want to use psql directly, not using odbc, but when using directly I get > less info, well... logs files don't say nothing :( if the correct way is to > use that: > > > > so then, I only will use that, and the problem is my system, not > freeswitch. > > odbc configuration is an old odbc configuration that I used some time ago > when I had to use it... so... for actual psql db wich version is the ok?! > > Here you have the versions of libraries I have: > > # debian 8 fresh install (x86_64) > > root at freeswitch-capa8:~# cat /etc/debian_version > 8.10 > root at freeswitch-capa8:~# dpkg -l |grep postgresql > ii odbc-postgresql:amd64 1:09.03.0300-1 > amd64 ODBC driver for PostgreSQL > ii postgresql 9.4+165+deb8u3 > all object-relational SQL database (supported version) > ii postgresql-9.4 9.4.15-0+deb8u1 > amd64 object-relational SQL database, version 9.4 server > ii postgresql-client 9.4+165+deb8u3 > all front-end programs for PostgreSQL (supported version) > ii postgresql-client-9.4 9.4.15-0+deb8u1 > amd64 front-end programs for PostgreSQL 9.4 > ii postgresql-client-common 165+deb8u3 > all manager for multiple PostgreSQL client versions > ii postgresql-common 165+deb8u3 > all PostgreSQL database-cluster manager > root at freeswitch-capa8:~# dpkg -l |grep libpq > ii libpq-dev 9.4.15-0+deb8u1 > amd64 header files for libpq5 (PostgreSQL library) > ii libpq5:amd64 9.4.15-0+deb8u1 > amd64 PostgreSQL C client library > > all these packages are downloaded from sources > > the lines enabled at pg_hba.conf are these (the debian default ones) > > local all postgres peer > local all all peer > host all all 127.0.0.1/32 md5 > host all all ::1/128 md5 > > the script that I have used to do the installation is the one located in > source code > > root at freeswitch-capa8:/usr/src/freeswitch/scripts# ls -l |grep > raspbian-installer > -rwxr-xr-x 1 root root 7922 May 23 20:26 FreeSWITCH-debian-raspbian- > installer.sh > > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres > mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-24 21:58 GMT+02:00 Madovsky : > >> First of all, pgsql:// does not use odbc, instead use odbc:// to use odbc >> (btw your odbc.ini file shows Protocol=6.4 (!?) are you using >> >> postgresql 6.x !??!) >> >> what version of postgresql are you using? compiled yourself or from >> system package? >> >> check if there are not multiple versions of libpq.xx in your system. >> >> check pg_hba.conf if localhost is on trust mode for all local users. >> >> if you compiled yourself so be sure the right libpq.xx have been chosen. >> On 5/24/2018 12:33 PM, Blackhold wrote: >> >> nope, it is not able to create stuff >> >> now I also have enabled that in switch.conf.xml >> >> >> >> >> tested with odbc and directly with psql and behaviour is the same. >> >> for psql the procedure I have followed is >> >> root at freeswitch-capa8:~# su - postgres >> root at freeswitch-capa8:~# postgres at freeswitch-capa8:~$ createuser >> freeswitch_user >> root at freeswitch-capa8:~# createdb -O freeswitch_user freeswitch_db >> root at freeswitch-capa8:~# psql freeswitch_db >> freeswitch_db=# ALTER USER freeswitch_user WITH PASSWORD 'XXX'; >> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO >> freeswitch_user; >> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO >> freeswitch_user; >> >> the most beatiful was with odbc + tables created... in the last mail... >> freeswitch turned on, in other ways freeswitch doesn't turns on. >> >> logs doesn't talk about permissions.... >> >> >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-24 21:20 GMT+02:00 Michael Jerris : >> >>> you shouldn't need to pre-import the tables, if the permissions are >>> right, it should create the tables and indexes for you. >>> >>> >>> On May 24, 2018, at 3:15 PM, Blackhold >>> wrote: >>> >>> I continue with tests >>> >>> I think I know wich problem I had with errors >>> >>> I have missed to grant privileges in psql: >>> >>> GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO freeswitch_user; >>> GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO >>> freeswitch_user; >>> >>> # with tables imported from sqlite it shows (freeswitch runs) >>> >>> root at freeswitch-capa8:/var/log/postgresql# tail -f >>> postgresql-9.4-main.log >>> >>> 2018-05-24 21:03:34 CEST [8623-1] freeswitch_user at freeswitch_db ERROR: >>> syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-2] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery1 on >>> recovery(technology);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-3] freeswitch_user at freeswitch_db ERROR: >>> syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-4] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery2 on >>> recovery(profile_name);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-5] freeswitch_user at freeswitch_db ERROR: >>> syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-6] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on >>> recovery(uuid);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-7] freeswitch_user at freeswitch_db ERROR: >>> syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-8] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on >>> recovery(runtime_uuid);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-9] freeswitch_user at freeswitch_db ERROR: >>> syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-10] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index alias1 on aliases >>> (alias);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-11] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-12] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index tasks1 on tasks >>> (hostname,task_id);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-13] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-14] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete1 on complete >>> (a1,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-15] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-16] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete2 on complete >>> (a2,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-17] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-18] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete3 on complete >>> (a3,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-19] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-20] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete4 on complete >>> (a4,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-21] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-22] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete5 on complete >>> (a5,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-23] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-24] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete6 on complete >>> (a6,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-25] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-26] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete7 on complete >>> (a7,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-27] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-28] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete8 on complete >>> (a8,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-29] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-30] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete9 on complete >>> (a9,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-31] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-32] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete10 on complete >>> (a10,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-33] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-34] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete11 on complete >>> (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-35] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-36] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index nat_map_port_proto on >>> nat (port,proto,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-37] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-38] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index channels1 on >>> channels(hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-39] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-40] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index calls1 on >>> calls(hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-41] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-42] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index chidx1 on channels >>> (hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-43] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-44] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex on channels >>> (uuid, hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-45] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-46] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex2 on channels >>> (call_uuid);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-47] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-48] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index callsidx1 on calls >>> (hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-49] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-50] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eruuindex on calls >>> (caller_uuid, hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-51] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-52] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex on calls >>> (callee_uuid);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-53] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-54] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex2 on calls >>> (call_uuid);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-55] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-56] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index regindex1 on >>> registrations (reg_user,realm,hostname);EXECUTE "_PLAN0x123ff90" >>> >>> # with a clean database >>> >>> start dropping last errors, and don't create any table in db. Freeswitch >>> doesn't turns on. >>> >>> each time I stop freeswitch when it don't runs, it keeps a process >>> running that I have to kill manually >>> >>> root at freeswitch-capa8:/var/log/postgresql# ps aux |grep free >>> root 8706 39.6 0.7 141296 15244 ? S>> /usr/local/freeswitch/bin/freeswitch -nc >>> >>> >>> # with granted permisions if I turn configuration to not use odbc, using >>> psql directly >>> >>> freeswitch turns on, there's no errors in psql log file and no table was >>> created on db. >>> >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>> nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-24 20:31 GMT+02:00 Blackhold : >>> >>>> # OK for location of ODBC files >>>> >>>> # output freeswitch using psql (I only edited switch.conf.xml file) >>>> (switch.conf.xml file) >>>> >>>> I see no errors related on logs (nor freeswitch, nor psql -debug5-), >>>> obviously restarted psql to reload config. >>>> >>>> in sofia.conf.xml file I found no option to configure it pointing to >>>> database >>>> no other config file, except switch.conf.xml has configured database >>>> pointing >>>> >>>> I tried to configure db.conf.xml file, with switch.conf.xml line but >>>> also do nothing >>>> >>>> # output freeswtich using odbc >>>> >>>> (switch.conf.xml file) >>>> >>>> these are the first lines of postgresql log file >>>> >>>> 2018-05-24 20:23:15 CEST [7518-7] LOG: received fast shutdown request >>>> 2018-05-24 20:23:15 CEST [7518-8] LOG: aborting any active transactions >>>> 2018-05-24 20:23:15 CEST [7548-2] LOG: autovacuum launcher shutting >>>> down >>>> 2018-05-24 20:23:15 CEST [7545-1] LOG: shutting down >>>> 2018-05-24 20:23:15 CEST [7545-2] LOG: database system is shut down >>>> 2018-05-24 20:23:16 CEST [7568-1] LOG: database system was shut down >>>> at 2018-05-24 20:23:15 CEST >>>> 2018-05-24 20:23:16 CEST [7568-2] LOG: MultiXact member wraparound >>>> protections are now enabled >>>> 2018-05-24 20:23:16 CEST [7567-1] LOG: database system is ready to >>>> accept connections >>>> 2018-05-24 20:23:16 CEST [7572-1] LOG: autovacuum launcher started >>>> 2018-05-24 20:23:16 CEST [7574-1] [unknown]@[unknown] LOG: incomplete >>>> startup packet >>>> 2018-05-24 20:23:39 CEST [7596-1] freeswitch_user at freeswitch_db >>>> ERROR: relation "channels" does not exist at character 40 >>>> 2018-05-24 20:23:39 CEST [7596-2] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from channels where >>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>> 2018-05-24 20:23:39 CEST [7596-3] freeswitch_user at freeswitch_db >>>> ERROR: relation "calls" does not exist at character 40 >>>> 2018-05-24 20:23:39 CEST [7596-4] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from calls where >>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>> 2018-05-24 20:23:39 CEST [7596-5] freeswitch_user at freeswitch_db >>>> ERROR: relation "tasks" does not exist at character 40 >>>> 2018-05-24 20:23:39 CEST [7596-6] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from tasks where >>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>> 2018-05-24 20:23:39 CEST [7596-7] freeswitch_user at freeswitch_db >>>> ERROR: relation "aliases" does not exist at character 49 >>>> 2018-05-24 20:23:39 CEST [7596-8] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as select hostname from aliases;EXECUTE >>>> "_PLAN0x9f3f90" >>>> 2018-05-24 20:23:39 CEST [7596-9] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "DROP" at character 28 >>>> 2018-05-24 20:23:39 CEST [7596-10] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as DROP TABLE aliases;EXECUTE >>>> "_PLAN0x9f3f90" >>>> 2018-05-24 20:23:39 CEST [7596-11] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "CREATE" at character 28 >>>> 2018-05-24 20:23:39 CEST [7596-12] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as CREATE TABLE aliases ( >>>> sticky INTEGER, >>>> alias VARCHAR(128), >>>> command VARCHAR(4096), >>>> hostname VARCHAR(256) >>>> ); >>>> ;EXECUTE "_PLAN0x9f3f90" >>>> >>>> and now freeswitch isn't able to run. >>>> >>>> If I enable odbc trace in odbcinst.ini >>>> >>>> Trace=Yes >>>> TraceFile=/var/log/odbctrace.log >>>> >>>> Also there's no output.... >>>> >>>> In freeswitch log also there's nothing about what is happening :( >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-24 19:30 GMT+02:00 Michael Jerris : >>>> >>>>> but that table layout is like that because you imported the tables, i >>>>> was asking what is in the recreated sqlite ones. If it fails to connect >>>>> like you later describe, its going to fall back, you should see stuff in >>>>> the fs logs on startup about this. the odbc configs go in the normal place >>>>> they go in the os, not in fs specific dirs. Those errors tell me something >>>>> is up, but not sure what, might need to turn on some debug on pg side to >>>>> see. some of our tests like to see if table schema is right throw errors >>>>> then we act on them, if you restart a second time you should get a more >>>>> useful set of errors. >>>>> >>>>> >>>>> On May 24, 2018, at 1:11 PM, Blackhold >>>>> wrote: >>>>> >>>>> Hi, >>>>> The tables are: >>>>> >>>>> ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db >>>>> freeswitch_db-# \dt >>>>> >>>>> List of relations >>>>> Schema | Name | Type | Owner >>>>> --------+-------------------------------------+-------+---------- >>>>> public | aliases | table | postgres >>>>> public | calls | table | postgres >>>>> public | channels | table | postgres >>>>> public | complete | table | postgres >>>>> public | db_data | table | postgres >>>>> public | fifo_bridge | table | postgres >>>>> public | fifo_callers | table | postgres >>>>> public | fifo_outbound | table | postgres >>>>> public | group_data | table | postgres >>>>> public | interfaces | table | postgres >>>>> public | json_store | table | postgres >>>>> public | limit_data | table | postgres >>>>> public | nat | table | postgres >>>>> public | recovery | table | postgres >>>>> public | registrations | table | postgres >>>>> public | sip_authentication | table | postgres >>>>> public | sip_dialogs | table | postgres >>>>> public | sip_presence | table | postgres >>>>> public | sip_registrations | table | postgres >>>>> public | sip_shared_appearance_dialogs | table | postgres >>>>> public | sip_shared_appearance_subscriptions | table | postgres >>>>> public | sip_subscriptions | table | postgres >>>>> public | tasks | table | postgres >>>>> public | voicemail_msgs | table | postgres >>>>> public | voicemail_prefs | table | postgres >>>>> (25 rows) >>>>> >>>>> I continued testing and found that if I configure switch.conf.xml file >>>>> like this: >>>>> >>>>> >>>>> >>>>> When I turn on freeswitch, postgresql don't output nothing. Then I >>>>> tried to configure freeswitch using odbc I then YES I get something in >>>>> postgresql logs >>>>> >>>>> For odbc I have something not clear, it is mandatory to put files in >>>>> /usr/local/freeswitch/etc ? or leaving them at default directory (/etc) is >>>>> enough? >>>>> >>>>> Here I show the config of odbc files: >>>>> root at freeswitch-capa8:/etc# cat odbc.ini >>>>> [freeswitch] >>>>> ; WARNING: The old psql odbc driver psqlodbc.so is now renamed >>>>> psqlodbcw.so >>>>> ; in version 08.x. Note that the library can also be installed under >>>>> an other >>>>> ; path than /usr/local/lib/ following your installation. >>>>> ; Driver = /usr/lib64/odbc/psqlodbcw.so >>>>> ; Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so >>>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>> Description=Connection to LDAP/POSTGRESQL >>>>> Servername=localhost >>>>> Port=5432 >>>>> Protocol=6.4 >>>>> FetchBufferSize=99 >>>>> Username=freeswitch_user >>>>> Password=XXX >>>>> Database=freeswitch_db >>>>> ReadOnly=no >>>>> Debug=0 >>>>> CommLog=0 >>>>> >>>>> root at freeswitch-capa8:/etc# cat odbcinst.ini >>>>> [PostgreSQL] >>>>> Description = PostgreSQL driver for Linux & Win32 >>>>> ;Driver = /usr/lib64/odbc/psqlodbcw.so >>>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>> Threading = 0 >>>>> MaxLongVarcharSize=65536 >>>>> >>>>> And then connect to psql through odbc >>>>> >>>>> root at freeswitch-capa8:/etc# isql -v freeswitch >>>>> +---------------------------------------+ >>>>> | Connected! | >>>>> | | >>>>> | sql-statement | >>>>> | help [tablename] | >>>>> | quit | >>>>> | | >>>>> +---------------------------------------+ >>>>> SQL> >>>>> >>>>> Then in file switch.conf.xml I changed db connection configuration >>>>> >>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# >>>>> cat switch.conf.xml |grep core-db-dsn >>>>> >>>>> >>>>> >>>>> Last night SwK user at freenode channel told me that freeswitch on >>>>> turning on, it creates tables at database (thanks SwK). >>>>> >>>>> I spect that configuration of odbc is working but drops lot of errors >>>>> (here you have some lines): >>>>> >>>>> 2018-05-24 02:03:25 CEST [3099-338780] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE nat ( >>>>> sticky INTEGER, >>>>> port INTEGER, >>>>> proto INTEGER, >>>>> hostname VARCHAR(256) >>>>> ); >>>>> ;EXECUTE "_PLAN0x140bf90" >>>>> 2018-05-24 02:03:25 CEST [3099-338781] freeswitch_user at freeswitch_db >>>>> WARNING: there is already a transaction in progress >>>>> 2018-05-24 02:03:25 CEST [3099-338782] freeswitch_user at freeswitch_db >>>>> ERROR: relation "registrations" does not exist at character 41 >>>>> 2018-05-24 02:03:25 CEST [3099-338783] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as delete from registrations where >>>>> reg_user='';EXECUTE "_PLAN0x140bf90" >>>>> 2018-05-24 02:03:25 CEST [3099-338784] freeswitch_user at freeswitch_db >>>>> WARNING: there is already a transaction in progress >>>>> 2018-05-24 02:03:25 CEST [3099-338785] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "DROP" at character 29 >>>>> 2018-05-24 02:03:25 CEST [3099-338786] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as DROP TABLE registrations;EXECUTE >>>>> "_PLAN0x140bf90" >>>>> 2018-05-24 02:03:25 CEST [3099-338787] freeswitch_user at freeswitch_db >>>>> WARNING: there is already a transaction in progress >>>>> 2018-05-24 02:03:25 CEST [3099-338788] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "CREATE" at character 29 >>>>> 2018-05-24 02:03:25 CEST [3099-338789] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE registrations ( >>>>> reg_user VARCHAR(256), >>>>> realm VARCHAR(256), >>>>> token VARCHAR(256), >>>>> url TEXT, >>>>> expires INTEGER, >>>>> network_ip VARCHAR(256), >>>>> network_port VARCHAR(256), >>>>> network_proto VARCHAR(256), >>>>> hostname VARCHAR(256), >>>>> metadata VARCHAR(256) >>>>> ); >>>>> ;EXECUTE "_PLAN0x140bf90" >>>>> 2018-05-24 02:03:25 CEST [3099-338790] freeswitch_user at freeswitch_db >>>>> WARNING: there is already a transaction in progress >>>>> 2018-05-24 02:03:25 CEST [3099-338791] freeswitch_user at freeswitch_db >>>>> LOG: unexpected EOF on client connection with an open transaction >>>>> >>>>> >>>>> I tested with tables in psql database and without tables in psql >>>>> database. >>>>> >>>>> freeswitch at freeswitch-capa8> version >>>>> FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git >>>>> 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>> >>>>> As I told in last mail, I'm working with last git version. >>>>> >>>>> Then I have a last question, related to that (db), when it will work, >>>>> all mods will save the information to pgsql or a mix some to sqlite and >>>>> some to pgsql? I saw in other files the availibility to configure also db, >>>>> like /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>>> >>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# cat >>>>> /usr/local/freeswitch/conf/sip_profiles/internal.xml |grep db >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> The config you see in the mail is the last configuration I defined. >>>>> Yesterday I get lost with wich config work or wich one no... >>>>> >>>>> I feel I'm almost at end of this installation! I'm doing a step by >>>>> step manual in spanish to how to install last version of freeswitch, this >>>>> will be public and if you want I could upload to wiki. >>>>> >>>>> Thanks you much for your help :) >>>>> >>>>> References: >>>>> https://freeswitch.org/confluence/display/FREESWITCH/Postgre >>>>> SQL+in+the+core >>>>> https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN >>>>> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWI >>>>> TCH+Databases >>>>> >>>>> >>>>> >>>>> - Blackhold >>>>> http://blackhold.nusepas.com >>>>> @blackhold_ >>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>> <°((( >< >>>>> >>>>> 2018-05-24 18:21 GMT+02:00 Michael Jerris : >>>>> >>>>>> what tables are ending up in the recreated sqlite db? You need to >>>>>> set it for the modules that use sqlite too (like for mod_sofia). we have a >>>>>> global var for this in default configs. >>>>>> >>>>>> > On May 23, 2018, at 6:13 PM, Blackhold >>>>>> wrote: >>>>>> > >>>>>> > Hi, >>>>>> > I have just installed freeswitch 1.9 >>>>>> > >>>>>> > freeswitch at freeswitch-capa8> version >>>>>> > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit >>>>>> (git 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>>> > >>>>>> > And I'm trying to freeswitch use postgresql instead sqlitedb. >>>>>> > >>>>>> > I have configured the file switch.conf.xml of >>>>>> /usr/local/freeswitch/conf/autoload_configs with uncomenting and >>>>>> configuring this line >>>>>> > >>>>>> > >>>>>> > >>>>>> > then I exported all sqlitedbs to sql and then imported to a >>>>>> database that I have created in postgresql >>>>>> > >>>>>> > I have run again /etc/init.d/freeswitch.sh start >>>>>> > >>>>>> > But seems it still is taking sqlitedb. >>>>>> > >>>>>> > I tried to move the sqlitedbs files to other side and turned on >>>>>> again freeswitch, but it creates sqlitedbs again. >>>>>> > >>>>>> > What I'm missing? what I'm doing wrong? what could I check? >>>>>> >>>>>> >>>>>> ____________________________________________________________ >>>>>> _____________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>> switch-users >>>>>> http://www.freeswitch.org >>>>> >>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>> switch-users >>>>> http://www.freeswitch.org >>>>> >>>>> >>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>> switch-users >>>>> http://www.freeswitch.org >>>>> >>>> >>>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >> >> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >> >> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From infos at madovsky.org Thu May 24 20:41:59 2018 From: infos at madovsky.org (Madovsky) Date: Thu, 24 May 2018 13:41:59 -0700 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> Message-ID: remove these 2 lines local   all             postgres peer local   all             all  peer and replace with local   all all  trust in your pg_hba.conf On 5/24/2018 1:26 PM, Blackhold wrote: > Hi, > > I'm trying both ways, switching between one and the other... I > initially want to use psql directly, not using odbc, but when using > directly I get less info, well... logs files don't say nothing :( if > the correct way is to use that: > > > > so then, I only will use that, and the problem is my system, not > freeswitch. > > odbc configuration is an old odbc configuration that I used some time > ago when I had to use it... so... for actual psql db wich version is > the ok?! > > Here you have the versions of libraries I have: > > # debian 8 fresh install (x86_64) > > root at freeswitch-capa8:~# cat /etc/debian_version > 8.10 > root at freeswitch-capa8:~# dpkg -l |grep postgresql > ii  odbc-postgresql:amd64               1:09.03.0300-1                 >  amd64        ODBC driver for PostgreSQL > ii  postgresql                          9.4+165+deb8u3                 >  all          object-relational SQL database (supported version) > ii  postgresql-9.4                      9.4.15-0+deb8u1               >     amd64        object-relational SQL database, version 9.4 server > ii  postgresql-client                   9.4+165+deb8u3                 >  all          front-end programs for PostgreSQL (supported version) > ii  postgresql-client-9.4               9.4.15-0+deb8u1               >     amd64        front-end programs for PostgreSQL 9.4 > ii  postgresql-client-common            165+deb8u3                 >  all          manager for multiple PostgreSQL client versions > ii  postgresql-common                   165+deb8u3                 >  all          PostgreSQL database-cluster manager > root at freeswitch-capa8:~# dpkg -l |grep libpq > ii  libpq-dev                           9.4.15-0+deb8u1               >     amd64        header files for libpq5 (PostgreSQL library) > ii  libpq5:amd64                        9.4.15-0+deb8u1               >     amd64        PostgreSQL C client library > > all these packages are downloaded from sources > > the lines enabled at pg_hba.conf are these (the debian default ones) > > local   all             postgres     peer > local   all             all        peer > host    all             all 127.0.0.1/32         >   md5 > host    all             all             ::1/128        md5 > > the script that I have used to do the installation is the one located > in source code > > root at freeswitch-capa8:/usr/src/freeswitch/scripts# ls -l |grep > raspbian-installer > -rwxr-xr-x 1 root root 7922 May 23 20:26 > FreeSWITCH-debian-raspbian-installer.sh > > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra > nosaltres mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-24 21:58 GMT+02:00 Madovsky >: > > First of all, pgsql:// does not use odbc, instead use odbc:// to > use odbc (btw your odbc.ini file shows Protocol=6.4 (!?) are you using > > postgresql 6.x !??!) > > what version of postgresql are you using? compiled yourself or > from system package? > > check if there are not multiple versions of libpq.xx in your system. > > check pg_hba.conf if localhost is on trust mode for all local users. > > if you compiled yourself so be sure the right libpq.xx have been > chosen. > > On 5/24/2018 12:33 PM, Blackhold wrote: >> nope, it is not able to create stuff >> >> now I also have enabled that in switch.conf.xml >> >>     >>     >> >> tested with odbc and directly with psql and behaviour is the same. >> >> for psql the procedure I have followed is >> >> root at freeswitch-capa8:~# su - postgres >> root at freeswitch-capa8:~#postgres at freeswitch-capa8:~$ createuser >> freeswitch_user >> root at freeswitch-capa8:~#createdb -O freeswitch_user freeswitch_db >> root at freeswitch-capa8:~#psql freeswitch_db >> freeswitch_db=# ALTER USER freeswitch_user WITH PASSWORD 'XXX'; >> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA >> public TO freeswitch_user; >> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA >> public TO freeswitch_user; >> >> the most beatiful was with odbc + tables created... in the last >> mail... freeswitch turned on, in other ways freeswitch doesn't >> turns on. >> >> logs doesn't talk about permissions.... >> >> >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-24 21:20 GMT+02:00 Michael Jerris > >: >> >> you shouldn't need to pre-import the tables, if the >> permissions are right, it should create the tables and >> indexes for you. >> >> >>> On May 24, 2018, at 3:15 PM, Blackhold >>> >> > wrote: >>> >>> I continue with tests >>> >>> I think I know wich problem I had with errors >>> >>> I have missed to grant privileges in psql: >>> >>> GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO >>> freeswitch_user; >>> GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO >>> freeswitch_user; >>> >>> # with tables imported from sqlite it shows (freeswitch runs) >>> >>> root at freeswitch-capa8:/var/log/postgresql# tail -f >>> postgresql-9.4-main.log >>> >>> 2018-05-24 21:03:34 CEST [8623-1] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-2] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index recovery1 on >>> recovery(technology);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-3] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-4] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index recovery2 on >>> recovery(profile_name);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-5] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-6] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index recovery3 on >>> recovery(uuid);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-7] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-8] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index recovery3 on >>> recovery(runtime_uuid);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-9] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-10] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index alias1 on aliases >>> (alias);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-11] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-12] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index tasks1 on tasks >>> (hostname,task_id);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-13] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-14] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index complete1 on complete >>> (a1,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-15] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-16] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index complete2 on complete >>> (a2,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-17] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-18] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index complete3 on complete >>> (a3,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-19] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-20] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index complete4 on complete >>> (a4,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-21] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-22] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index complete5 on complete >>> (a5,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-23] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-24] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index complete6 on complete >>> (a6,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-25] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-26] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index complete7 on complete >>> (a7,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-27] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-28] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index complete8 on complete >>> (a8,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-29] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-30] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index complete9 on complete >>> (a9,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-31] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-32] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index complete10 on complete >>> (a10,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-33] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-34] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index complete11 on complete >>> (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname);EXECUTE >>> "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-35] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-36] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index nat_map_port_proto on nat >>> (port,proto,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-37] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-38] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index channels1 on >>> channels(hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-39] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-40] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index calls1 on >>> calls(hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-41] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-42] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index chidx1 on channels >>> (hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-43] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-44] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index uuindex on channels (uuid, >>> hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-45] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-46] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index uuindex2 on channels >>> (call_uuid);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-47] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-48] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index callsidx1 on calls >>> (hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-49] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-50] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index eruuindex on calls >>> (caller_uuid, hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-51] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-52] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index eeuuindex on calls >>> (callee_uuid);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-53] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-54] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index eeuuindex2 on calls >>> (call_uuid);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-55] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-56] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x123ff90" as create index regindex1 on registrations >>> (reg_user,realm,hostname);EXECUTE "_PLAN0x123ff90" >>> >>> # with a clean database >>> >>> start dropping last errors, and don't create any table in >>> db. Freeswitch doesn't turns on. >>> >>> each time I stop freeswitch when it don't runs, it keeps a >>> process running that I have to kill manually >>> >>> root at freeswitch-capa8:/var/log/postgresql#  ps aux |grep free >>> root      8706 39.6  0.7 141296 15244 ?        S>>  1:13 /usr/local/freeswitch/bin/freeswitch -nc >>> >>> >>> # with granted permisions if I turn configuration to not use >>> odbc, using psql directly >>> >>> freeswitch turns on, there's no errors in psql log file and >>> no table was created on db. >>> >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i >>> contra nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-24 20:31 GMT+02:00 Blackhold >>> >: >>> >>> # OK for location of ODBC files >>> >>> # output freeswitch using psql (I only edited >>> switch.conf.xml file) >>> >> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='XXX' options='-c >>> client_min_messages=NOTICE'" /> (switch.conf.xml file) >>> >>> I see no errors related on logs (nor freeswitch, nor >>> psql -debug5-), obviously restarted psql to reload config. >>> >>> in sofia.conf.xml file I found no option to configure it >>> pointing to database >>> no other config file, except switch.conf.xml has >>> configured database pointing >>> >>> I tried to configure db.conf.xml file, with >>> switch.conf.xml line but also do nothing >>> >>> # output freeswtich using odbc >>> >> value="freeswitch:freeswitch_user:XXX"/> >>> (switch.conf.xml file) >>> >>> these are the first lines of postgresql log file >>> >>> 2018-05-24 20:23:15 CEST [7518-7] LOG:  received fast >>> shutdown request >>> 2018-05-24 20:23:15 CEST [7518-8] LOG:  aborting any >>> active transactions >>> 2018-05-24 20:23:15 CEST [7548-2] LOG:  autovacuum >>> launcher shutting down >>> 2018-05-24 20:23:15 CEST [7545-1] LOG:  shutting down >>> 2018-05-24 20:23:15 CEST [7545-2] LOG:  database system >>> is shut down >>> 2018-05-24 20:23:16 CEST [7568-1] LOG:  database system >>> was shut down at 2018-05-24 20:23:15 CEST >>> 2018-05-24 20:23:16 CEST [7568-2] LOG:  MultiXact member >>> wraparound protections are now enabled >>> 2018-05-24 20:23:16 CEST [7567-1] LOG:  database system >>> is ready to accept connections >>> 2018-05-24 20:23:16 CEST [7572-1] LOG:  autovacuum >>> launcher started >>> 2018-05-24 20:23:16 CEST [7574-1] [unknown]@[unknown] >>> LOG:  incomplete startup packet >>> 2018-05-24 20:23:39 CEST [7596-1] >>> freeswitch_user at freeswitch_db ERROR:  relation >>> "channels" does not exist at character 40 >>> 2018-05-24 20:23:39 CEST [7596-2] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x9f3f90" as delete from channels where >>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>> 2018-05-24 20:23:39 CEST [7596-3] >>> freeswitch_user at freeswitch_db ERROR:  relation "calls" >>> does not exist at character 40 >>> 2018-05-24 20:23:39 CEST [7596-4] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x9f3f90" as delete from calls where >>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>> 2018-05-24 20:23:39 CEST [7596-5] >>> freeswitch_user at freeswitch_db ERROR:  relation "tasks" >>> does not exist at character 40 >>> 2018-05-24 20:23:39 CEST [7596-6] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x9f3f90" as delete from tasks where >>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>> 2018-05-24 20:23:39 CEST [7596-7] >>> freeswitch_user at freeswitch_db ERROR:  relation "aliases" >>> does not exist at character 49 >>> 2018-05-24 20:23:39 CEST [7596-8] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x9f3f90" as select hostname from aliases;EXECUTE >>> "_PLAN0x9f3f90" >>> 2018-05-24 20:23:39 CEST [7596-9] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "DROP" at character 28 >>> 2018-05-24 20:23:39 CEST [7596-10] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x9f3f90" as DROP TABLE aliases;EXECUTE >>> "_PLAN0x9f3f90" >>> 2018-05-24 20:23:39 CEST [7596-11] >>> freeswitch_user at freeswitch_db ERROR:  syntax error at or >>> near "CREATE" at character 28 >>> 2018-05-24 20:23:39 CEST [7596-12] >>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>> "_PLAN0x9f3f90" as CREATE TABLE aliases ( >>>          sticky INTEGER, >>>          alias VARCHAR(128), >>>          command VARCHAR(4096), >>>          hostname VARCHAR(256) >>>       ); >>>       ;EXECUTE "_PLAN0x9f3f90" >>> >>> and now freeswitch isn't able to run. >>> >>> If I enable odbc trace in odbcinst.ini >>> >>> Trace=Yes >>> TraceFile=/var/log/odbctrace.log >>> >>> Also there's no output.... >>> >>> In freeswitch log also there's nothing about what is >>> happening :( >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, >>> i contra nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-24 19:30 GMT+02:00 Michael Jerris >>> >: >>> >>> but that table layout is like that because you >>> imported the tables, i was asking what is in the >>> recreated sqlite ones.  If it fails to connect like >>> you later describe, its going to fall back, you >>> should see stuff in the fs logs on startup about >>> this.  the odbc configs go in the normal place they >>> go in the os, not in fs specific dirs. Those errors >>> tell me something is up, but not sure what, might >>> need to turn on some debug on pg side to see.  some >>> of our tests like to see if table schema is right >>> throw errors then we act on them, if you restart a >>> second time you should get a more useful set of errors. >>> >>> >>>> On May 24, 2018, at 1:11 PM, Blackhold >>>> >>> > wrote: >>>> >>>> Hi, >>>> The tables are: >>>> >>>> ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db >>>> freeswitch_db-# \dt >>>> >>>> List of relations >>>>  Schema |   Name          | Type  | Owner >>>> --------+-------------------------------------+-------+---------- >>>>  public | aliases        | table | postgres >>>>  public | calls        | table | postgres >>>>  public | channels         | table | postgres >>>>  public | complete         | table | postgres >>>>  public | db_data        | table | postgres >>>>  public | fifo_bridge        | table | postgres >>>>  public | fifo_callers         | table | postgres >>>>  public | fifo_outbound        | table | postgres >>>>  public | group_data         | table | postgres >>>>  public | interfaces         | table | postgres >>>>  public | json_store         | table | postgres >>>>  public | limit_data         | table | postgres >>>>  public | nat        | table | postgres >>>>  public | recovery         | table | postgres >>>>  public | registrations        | table | postgres >>>>  public | sip_authentication                  | >>>> table | postgres >>>>  public | sip_dialogs        | table | postgres >>>>  public | sip_presence         | table | postgres >>>>  public | sip_registrations                   | >>>> table | postgres >>>>  public | sip_shared_appearance_dialogs       | >>>> table | postgres >>>>  public | sip_shared_appearance_subscriptions | >>>> table | postgres >>>>  public | sip_subscriptions                   | >>>> table | postgres >>>>  public | tasks        | table | postgres >>>>  public | voicemail_msgs                      | >>>> table | postgres >>>>  public | voicemail_prefs                     | >>>> table | postgres >>>> (25 rows) >>>> >>>> I continued testing and found that if I configure >>>> switch.conf.xml file like this: >>>> >>>> >>> value="pgsql://hostaddr=127.0.0.1 >>>> dbname=freeswitch_db user=freeswitch_user >>>> password='****' options='-c >>>> client_min_messages=NOTICE'" /> >>>> >>>> When I turn on freeswitch, postgresql don't output >>>> nothing. Then I tried to configure freeswitch using >>>> odbc I then YES I get something in postgresql logs >>>> >>>> For odbc I have something not clear, it is >>>> mandatory to put files in /usr/local/freeswitch/etc >>>> ? or leaving them at default directory (/etc) is >>>> enough? >>>> >>>> Here I show the config of odbc files: >>>> root at freeswitch-capa8:/etc# cat odbc.ini >>>> [freeswitch] >>>> ; WARNING: The old psql odbc driver psqlodbc.so is >>>> now renamed psqlodbcw.so >>>> ; in version 08.x. Note that the library can also >>>> be installed under an other >>>> ; path than /usr/local/lib/ following your >>>> installation. >>>> ; Driver = /usr/lib64/odbc/psqlodbcw.so >>>> ; Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so >>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>> Description=Connection to LDAP/POSTGRESQL >>>> Servername=localhost >>>> Port=5432 >>>> Protocol=6.4 >>>> FetchBufferSize=99 >>>> Username=freeswitch_user >>>> Password=XXX >>>> Database=freeswitch_db >>>> ReadOnly=no >>>> Debug=0 >>>> CommLog=0 >>>> >>>> root at freeswitch-capa8:/etc# cat odbcinst.ini >>>> [PostgreSQL] >>>> Description = PostgreSQL driver for Linux & Win32 >>>> ;Driver = /usr/lib64/odbc/psqlodbcw.so >>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>> Threading = 0 >>>> MaxLongVarcharSize=65536 >>>> >>>> And then connect to psql through odbc >>>> >>>> root at freeswitch-capa8:/etc# isql -v freeswitch >>>> +---------------------------------------+ >>>> | Connected!           | >>>> |    | >>>> | sql-statement          | >>>> | help [tablename]     | >>>> | quit   | >>>> |    | >>>> +---------------------------------------+ >>>> SQL> >>>> >>>> Then in file switch.conf.xml I changed db >>>> connection configuration >>>> >>>> root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# >>>> cat switch.conf.xml |grep core-db-dsn >>>> >>> value="pgsql://hostaddr=127.0.0.1 >>>> dbname=freeswitch_db user=freeswitch_user >>>> password='XXX' options='-c >>>> client_min_messages=NOTICE'" /> >>>> >>>> >>>> Last night SwK user at freenode channel told me >>>> that freeswitch on turning on, it creates tables at >>>> database (thanks SwK). >>>> >>>> I spect that configuration of odbc is working but >>>> drops lot of errors (here you have some lines): >>>> >>>> 2018-05-24 02:03:25 CEST [3099-338780] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x140bf90" as CREATE TABLE nat ( >>>>  sticky INTEGER, >>>> portINTEGER, >>>> protoINTEGER, >>>>  hostname VARCHAR(256) >>>> ); >>>> ;EXECUTE "_PLAN0x140bf90" >>>> 2018-05-24 02:03:25 CEST [3099-338781] >>>> freeswitch_user at freeswitch_db WARNING:  there is >>>> already a transaction in progress >>>> 2018-05-24 02:03:25 CEST [3099-338782] >>>> freeswitch_user at freeswitch_db ERROR:  relation >>>> "registrations" does not exist at character 41 >>>> 2018-05-24 02:03:25 CEST [3099-338783] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x140bf90" as delete from registrations where >>>> reg_user='';EXECUTE "_PLAN0x140bf90" >>>> 2018-05-24 02:03:25 CEST [3099-338784] >>>> freeswitch_user at freeswitch_db WARNING:  there is >>>> already a transaction in progress >>>> 2018-05-24 02:03:25 CEST [3099-338785] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>> at or near "DROP" at character 29 >>>> 2018-05-24 02:03:25 CEST [3099-338786] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x140bf90" as DROP TABLE >>>> registrations;EXECUTE "_PLAN0x140bf90" >>>> 2018-05-24 02:03:25 CEST [3099-338787] >>>> freeswitch_user at freeswitch_db WARNING:  there is >>>> already a transaction in progress >>>> 2018-05-24 02:03:25 CEST [3099-338788] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>> at or near "CREATE" at character 29 >>>> 2018-05-24 02:03:25 CEST [3099-338789] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x140bf90" as CREATE TABLE registrations ( >>>>  reg_user VARCHAR(256), >>>>  realm  VARCHAR(256), >>>>  token  VARCHAR(256), >>>>  url TEXT, >>>>  expires INTEGER, >>>>  network_ip VARCHAR(256), >>>>  network_port VARCHAR(256), >>>>  network_proto VARCHAR(256), >>>>  hostname VARCHAR(256), >>>>  metadata VARCHAR(256) >>>> ); >>>> ;EXECUTE "_PLAN0x140bf90" >>>> 2018-05-24 02:03:25 CEST [3099-338790] >>>> freeswitch_user at freeswitch_db WARNING:  there is >>>> already a transaction in progress >>>> 2018-05-24 02:03:25 CEST [3099-338791] >>>> freeswitch_user at freeswitch_db LOG:  unexpected EOF >>>> on client connection with an open transaction >>>> >>>> >>>> I tested with tables in psql database and without >>>> tables in psql database. >>>> >>>> freeswitch at freeswitch-capa8> version >>>> FreeSWITCH Version >>>> 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git >>>> 3c7db63 2018-05-16 21:12:08Z 64bit) >>>> >>>> As I told in last mail, I'm working with last git >>>> version. >>>> >>>> Then I have a last question, related to that (db), >>>> when it will work, all mods will save the >>>> information to pgsql or a mix some to sqlite and >>>> some to pgsql? I saw in other files the >>>> availibility to configure also db, like >>>> /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>> >>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# >>>> cat >>>> /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>> |grep db >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> value="$${domain}"/> >>>> >>>> The config you see in the mail is the last >>>> configuration I defined. Yesterday I get lost with >>>> wich config work or wich one no... >>>> >>>> I feel I'm almost at end of this installation! I'm >>>> doing a step by step manual in spanish to how to >>>> install last version of freeswitch, this will be >>>> public and if you want I could upload to wiki. >>>> >>>> Thanks you much for your help :) >>>> >>>> References: >>>> https://freeswitch.org/confluence/display/FREESWITCH/PostgreSQL+in+the+core >>>> >>>> https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN >>>> >>>> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+Databases >>>> >>>> >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser >>>> febles, i contra nosaltres mateixos quan siguem >>>> forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-24 18:21 GMT+02:00 Michael Jerris >>>> >: >>>> >>>> what tables are ending up in the recreated >>>> sqlite db? You need to set it for the modules >>>> that use sqlite too (like for mod_sofia). we >>>> have a global var for this in default configs. >>>> >>>> > On May 23, 2018, at 6:13 PM, Blackhold >>>> >>> > wrote: >>>> > >>>> > Hi, >>>> > I have just installed freeswitch 1.9 >>>> > >>>> > freeswitch at freeswitch-capa8> version >>>> > FreeSWITCH Version >>>> 1.9.0+git~20180516T211208Z~3c7db639fd~64bit >>>> (git 3c7db63 2018-05-16 21:12:08Z 64bit) >>>> > >>>> > And I'm trying to freeswitch use postgresql >>>> instead sqlitedb. >>>> > >>>> > I have configured the file switch.conf.xml of >>>> /usr/local/freeswitch/conf/autoload_configs >>>> with uncomenting and configuring this line >>>> > >>>> >  >>> value="pgsql://hostaddr=127.0.0.1 >>>> dbname=freeswitch_db user=freeswitch_user >>>> password='****' options='-c >>>> client_min_messages=NOTICE'" /> >>>> > >>>> > then I exported all sqlitedbs to sql and then >>>> imported to a database that I have created in >>>> postgresql >>>> > >>>> > I have run again /etc/init.d/freeswitch.sh start >>>> > >>>> > But seems it still is taking sqlitedb. >>>> > >>>> > I tried to move the sqlitedbs files to other >>>> side and turned on again freeswitch, but it >>>> creates sqlitedbs again. >>>> > >>>> > What I'm missing? what I'm doing wrong? what >>>> could I check? >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> >>>> http://www.freeswitchsolutions.com >>>> >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> >>>> http://confluence.freeswitch.org >>>> >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> >>>> http://www.freeswitch.org >>>> >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> >>>> http://www.freeswitchsolutions.com >>>> >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> >>>> http://www.freeswitch.org >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> >>> http://www.freeswitchsolutions.com >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> >>> http://www.freeswitch.org >>> >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> >>> http://www.freeswitch.org >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From speech at pobox.com Thu May 24 20:43:35 2018 From: speech at pobox.com (M Yudkowsky) Date: Thu, 24 May 2018 15:43:35 -0500 Subject: [Freeswitch-users] FS uses external IP address for Contact in 200 to internal server Message-ID: <9BD8CDAE-0BEB-46A3-8379-6616DF439AD4@pobox.com> Comrades! I'm using FreeSWITCH (FS) as a proxy between an internal server that makes calls and an external SIP provider. The internal server is a speech recognition server that has a telephony component to originate and terminate calls. Here's the sequence of messages between the internal server (IS) and FS: Starting the call, we see: IS (internal IP) == INVITE ==> FS (internal IP) IS (internal IP) <== 100 == FS (internal IP) IS (internal IP) <== 183 == FS (internal IP) FS gets a connection to SIP provider, and the internal call continues: IS (internal IP) <== 200 OK == FS (internal IP) But the 200 OK from FS contains, in the Contact field, the *external* IP address: Contact: As a result, the IS sends a response to the *external* IP address: IS (external IP) == ACK ==> FS (external IP) FS resends several 200's, which IS properly ignores. Eventually FS gives up on hearing from IS and sends a BYE with a Reason of 408 ACK Timeout. I'm not clear which server is to "blame," if either. FS has "inbound-proxy-media" set to true in (my-dialplan).xml, and I would therefore expect that the Contact field would treat internal servers as internal and use internal IP addresses exclusively. Or is FS correct? Is the problem that IS attempting to do NAT based on the Contact and making an error? (I tried disabling IS's NAT, and almost certainly did it correctly, but that does not seem to help.) Variables set in (my_dialplan).xml: And the next two were added on in an attempt to fix this, but failed to do so: So, any ideas? -- Moshe Yudkowsky Disaggregate Corporation 2952 W Fargo Chicago, IL 60645 USA +1 773 764 8727 speech at pobox.com http://www.Disaggregate.com http://www.PebbleAndAvalanche.com From blackholdmailer at gmail.com Thu May 24 20:59:57 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Thu, 24 May 2018 22:59:57 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> Message-ID: done, restarted psql and turned on freeswitch, nothing in psql log files, no tables where created. using psql conector - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-24 22:41 GMT+02:00 Madovsky : > remove these 2 lines > > local all postgres peer > > local all all peer > and replace with > > local all all trust > > in your pg_hba.conf > > > On 5/24/2018 1:26 PM, Blackhold wrote: > > Hi, > > I'm trying both ways, switching between one and the other... I initially > want to use psql directly, not using odbc, but when using directly I get > less info, well... logs files don't say nothing :( if the correct way is to > use that: > > > > so then, I only will use that, and the problem is my system, not > freeswitch. > > odbc configuration is an old odbc configuration that I used some time ago > when I had to use it... so... for actual psql db wich version is the ok?! > > Here you have the versions of libraries I have: > > # debian 8 fresh install (x86_64) > > root at freeswitch-capa8:~# cat /etc/debian_version > 8.10 > root at freeswitch-capa8:~# dpkg -l |grep postgresql > ii odbc-postgresql:amd64 1:09.03.0300-1 > amd64 ODBC driver for PostgreSQL > ii postgresql 9.4+165+deb8u3 > all object-relational SQL database (supported version) > ii postgresql-9.4 9.4.15-0+deb8u1 > amd64 object-relational SQL database, version 9.4 server > ii postgresql-client 9.4+165+deb8u3 > all front-end programs for PostgreSQL (supported version) > ii postgresql-client-9.4 9.4.15-0+deb8u1 > amd64 front-end programs for PostgreSQL 9.4 > ii postgresql-client-common 165+deb8u3 > all manager for multiple PostgreSQL client versions > ii postgresql-common 165+deb8u3 > all PostgreSQL database-cluster manager > root at freeswitch-capa8:~# dpkg -l |grep libpq > ii libpq-dev 9.4.15-0+deb8u1 > amd64 header files for libpq5 (PostgreSQL library) > ii libpq5:amd64 9.4.15-0+deb8u1 > amd64 PostgreSQL C client library > > all these packages are downloaded from sources > > the lines enabled at pg_hba.conf are these (the debian default ones) > > local all postgres peer > local all all peer > host all all 127.0.0.1/32 md5 > host all all ::1/128 md5 > > the script that I have used to do the installation is the one located in > source code > > root at freeswitch-capa8:/usr/src/freeswitch/scripts# ls -l |grep > raspbian-installer > -rwxr-xr-x 1 root root 7922 May 23 20:26 FreeSWITCH-debian-raspbian- > installer.sh > > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres > mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-24 21:58 GMT+02:00 Madovsky : > >> First of all, pgsql:// does not use odbc, instead use odbc:// to use odbc >> (btw your odbc.ini file shows Protocol=6.4 (!?) are you using >> >> postgresql 6.x !??!) >> >> what version of postgresql are you using? compiled yourself or from >> system package? >> >> check if there are not multiple versions of libpq.xx in your system. >> >> check pg_hba.conf if localhost is on trust mode for all local users. >> >> if you compiled yourself so be sure the right libpq.xx have been chosen. >> On 5/24/2018 12:33 PM, Blackhold wrote: >> >> nope, it is not able to create stuff >> >> now I also have enabled that in switch.conf.xml >> >> >> >> >> tested with odbc and directly with psql and behaviour is the same. >> >> for psql the procedure I have followed is >> >> root at freeswitch-capa8:~# su - postgres >> root at freeswitch-capa8:~# postgres at freeswitch-capa8:~$ createuser >> freeswitch_user >> root at freeswitch-capa8:~# createdb -O freeswitch_user freeswitch_db >> root at freeswitch-capa8:~# psql freeswitch_db >> freeswitch_db=# ALTER USER freeswitch_user WITH PASSWORD 'XXX'; >> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO >> freeswitch_user; >> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO >> freeswitch_user; >> >> the most beatiful was with odbc + tables created... in the last mail... >> freeswitch turned on, in other ways freeswitch doesn't turns on. >> >> logs doesn't talk about permissions.... >> >> >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-24 21:20 GMT+02:00 Michael Jerris : >> >>> you shouldn't need to pre-import the tables, if the permissions are >>> right, it should create the tables and indexes for you. >>> >>> >>> On May 24, 2018, at 3:15 PM, Blackhold >>> wrote: >>> >>> I continue with tests >>> >>> I think I know wich problem I had with errors >>> >>> I have missed to grant privileges in psql: >>> >>> GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO freeswitch_user; >>> GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO >>> freeswitch_user; >>> >>> # with tables imported from sqlite it shows (freeswitch runs) >>> >>> root at freeswitch-capa8:/var/log/postgresql# tail -f >>> postgresql-9.4-main.log >>> >>> 2018-05-24 21:03:34 CEST [8623-1] freeswitch_user at freeswitch_db ERROR: >>> syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-2] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery1 on >>> recovery(technology);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-3] freeswitch_user at freeswitch_db ERROR: >>> syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-4] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery2 on >>> recovery(profile_name);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-5] freeswitch_user at freeswitch_db ERROR: >>> syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-6] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on >>> recovery(uuid);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-7] freeswitch_user at freeswitch_db ERROR: >>> syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-8] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on >>> recovery(runtime_uuid);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-9] freeswitch_user at freeswitch_db ERROR: >>> syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-10] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index alias1 on aliases >>> (alias);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-11] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-12] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index tasks1 on tasks >>> (hostname,task_id);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-13] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-14] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete1 on complete >>> (a1,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-15] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-16] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete2 on complete >>> (a2,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-17] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-18] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete3 on complete >>> (a3,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-19] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-20] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete4 on complete >>> (a4,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-21] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-22] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete5 on complete >>> (a5,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-23] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-24] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete6 on complete >>> (a6,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-25] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-26] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete7 on complete >>> (a7,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-27] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-28] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete8 on complete >>> (a8,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-29] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-30] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete9 on complete >>> (a9,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-31] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-32] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete10 on complete >>> (a10,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-33] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-34] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete11 on complete >>> (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-35] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-36] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index nat_map_port_proto on >>> nat (port,proto,hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-37] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-38] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index channels1 on >>> channels(hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-39] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-40] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index calls1 on >>> calls(hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-41] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-42] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index chidx1 on channels >>> (hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-43] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-44] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex on channels >>> (uuid, hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-45] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-46] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex2 on channels >>> (call_uuid);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-47] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-48] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index callsidx1 on calls >>> (hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-49] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-50] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eruuindex on calls >>> (caller_uuid, hostname);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-51] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-52] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex on calls >>> (callee_uuid);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-53] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-54] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex2 on calls >>> (call_uuid);EXECUTE "_PLAN0x123ff90" >>> 2018-05-24 21:03:34 CEST [8623-55] freeswitch_user at freeswitch_db >>> ERROR: syntax error at or near "create" at character 29 >>> 2018-05-24 21:03:34 CEST [8623-56] freeswitch_user at freeswitch_db >>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index regindex1 on >>> registrations (reg_user,realm,hostname);EXECUTE "_PLAN0x123ff90" >>> >>> # with a clean database >>> >>> start dropping last errors, and don't create any table in db. Freeswitch >>> doesn't turns on. >>> >>> each time I stop freeswitch when it don't runs, it keeps a process >>> running that I have to kill manually >>> >>> root at freeswitch-capa8:/var/log/postgresql# ps aux |grep free >>> root 8706 39.6 0.7 141296 15244 ? S>> /usr/local/freeswitch/bin/freeswitch -nc >>> >>> >>> # with granted permisions if I turn configuration to not use odbc, using >>> psql directly >>> >>> freeswitch turns on, there's no errors in psql log file and no table was >>> created on db. >>> >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>> nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-24 20:31 GMT+02:00 Blackhold : >>> >>>> # OK for location of ODBC files >>>> >>>> # output freeswitch using psql (I only edited switch.conf.xml file) >>>> (switch.conf.xml file) >>>> >>>> I see no errors related on logs (nor freeswitch, nor psql -debug5-), >>>> obviously restarted psql to reload config. >>>> >>>> in sofia.conf.xml file I found no option to configure it pointing to >>>> database >>>> no other config file, except switch.conf.xml has configured database >>>> pointing >>>> >>>> I tried to configure db.conf.xml file, with switch.conf.xml line but >>>> also do nothing >>>> >>>> # output freeswtich using odbc >>>> >>>> (switch.conf.xml file) >>>> >>>> these are the first lines of postgresql log file >>>> >>>> 2018-05-24 20:23:15 CEST [7518-7] LOG: received fast shutdown request >>>> 2018-05-24 20:23:15 CEST [7518-8] LOG: aborting any active transactions >>>> 2018-05-24 20:23:15 CEST [7548-2] LOG: autovacuum launcher shutting >>>> down >>>> 2018-05-24 20:23:15 CEST [7545-1] LOG: shutting down >>>> 2018-05-24 20:23:15 CEST [7545-2] LOG: database system is shut down >>>> 2018-05-24 20:23:16 CEST [7568-1] LOG: database system was shut down >>>> at 2018-05-24 20:23:15 CEST >>>> 2018-05-24 20:23:16 CEST [7568-2] LOG: MultiXact member wraparound >>>> protections are now enabled >>>> 2018-05-24 20:23:16 CEST [7567-1] LOG: database system is ready to >>>> accept connections >>>> 2018-05-24 20:23:16 CEST [7572-1] LOG: autovacuum launcher started >>>> 2018-05-24 20:23:16 CEST [7574-1] [unknown]@[unknown] LOG: incomplete >>>> startup packet >>>> 2018-05-24 20:23:39 CEST [7596-1] freeswitch_user at freeswitch_db >>>> ERROR: relation "channels" does not exist at character 40 >>>> 2018-05-24 20:23:39 CEST [7596-2] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from channels where >>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>> 2018-05-24 20:23:39 CEST [7596-3] freeswitch_user at freeswitch_db >>>> ERROR: relation "calls" does not exist at character 40 >>>> 2018-05-24 20:23:39 CEST [7596-4] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from calls where >>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>> 2018-05-24 20:23:39 CEST [7596-5] freeswitch_user at freeswitch_db >>>> ERROR: relation "tasks" does not exist at character 40 >>>> 2018-05-24 20:23:39 CEST [7596-6] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from tasks where >>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>> 2018-05-24 20:23:39 CEST [7596-7] freeswitch_user at freeswitch_db >>>> ERROR: relation "aliases" does not exist at character 49 >>>> 2018-05-24 20:23:39 CEST [7596-8] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as select hostname from aliases;EXECUTE >>>> "_PLAN0x9f3f90" >>>> 2018-05-24 20:23:39 CEST [7596-9] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "DROP" at character 28 >>>> 2018-05-24 20:23:39 CEST [7596-10] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as DROP TABLE aliases;EXECUTE >>>> "_PLAN0x9f3f90" >>>> 2018-05-24 20:23:39 CEST [7596-11] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "CREATE" at character 28 >>>> 2018-05-24 20:23:39 CEST [7596-12] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as CREATE TABLE aliases ( >>>> sticky INTEGER, >>>> alias VARCHAR(128), >>>> command VARCHAR(4096), >>>> hostname VARCHAR(256) >>>> ); >>>> ;EXECUTE "_PLAN0x9f3f90" >>>> >>>> and now freeswitch isn't able to run. >>>> >>>> If I enable odbc trace in odbcinst.ini >>>> >>>> Trace=Yes >>>> TraceFile=/var/log/odbctrace.log >>>> >>>> Also there's no output.... >>>> >>>> In freeswitch log also there's nothing about what is happening :( >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-24 19:30 GMT+02:00 Michael Jerris : >>>> >>>>> but that table layout is like that because you imported the tables, i >>>>> was asking what is in the recreated sqlite ones. If it fails to connect >>>>> like you later describe, its going to fall back, you should see stuff in >>>>> the fs logs on startup about this. the odbc configs go in the normal place >>>>> they go in the os, not in fs specific dirs. Those errors tell me something >>>>> is up, but not sure what, might need to turn on some debug on pg side to >>>>> see. some of our tests like to see if table schema is right throw errors >>>>> then we act on them, if you restart a second time you should get a more >>>>> useful set of errors. >>>>> >>>>> >>>>> On May 24, 2018, at 1:11 PM, Blackhold >>>>> wrote: >>>>> >>>>> Hi, >>>>> The tables are: >>>>> >>>>> ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db >>>>> freeswitch_db-# \dt >>>>> >>>>> List of relations >>>>> Schema | Name | Type | Owner >>>>> --------+-------------------------------------+-------+---------- >>>>> public | aliases | table | postgres >>>>> public | calls | table | postgres >>>>> public | channels | table | postgres >>>>> public | complete | table | postgres >>>>> public | db_data | table | postgres >>>>> public | fifo_bridge | table | postgres >>>>> public | fifo_callers | table | postgres >>>>> public | fifo_outbound | table | postgres >>>>> public | group_data | table | postgres >>>>> public | interfaces | table | postgres >>>>> public | json_store | table | postgres >>>>> public | limit_data | table | postgres >>>>> public | nat | table | postgres >>>>> public | recovery | table | postgres >>>>> public | registrations | table | postgres >>>>> public | sip_authentication | table | postgres >>>>> public | sip_dialogs | table | postgres >>>>> public | sip_presence | table | postgres >>>>> public | sip_registrations | table | postgres >>>>> public | sip_shared_appearance_dialogs | table | postgres >>>>> public | sip_shared_appearance_subscriptions | table | postgres >>>>> public | sip_subscriptions | table | postgres >>>>> public | tasks | table | postgres >>>>> public | voicemail_msgs | table | postgres >>>>> public | voicemail_prefs | table | postgres >>>>> (25 rows) >>>>> >>>>> I continued testing and found that if I configure switch.conf.xml file >>>>> like this: >>>>> >>>>> >>>>> >>>>> When I turn on freeswitch, postgresql don't output nothing. Then I >>>>> tried to configure freeswitch using odbc I then YES I get something in >>>>> postgresql logs >>>>> >>>>> For odbc I have something not clear, it is mandatory to put files in >>>>> /usr/local/freeswitch/etc ? or leaving them at default directory (/etc) is >>>>> enough? >>>>> >>>>> Here I show the config of odbc files: >>>>> root at freeswitch-capa8:/etc# cat odbc.ini >>>>> [freeswitch] >>>>> ; WARNING: The old psql odbc driver psqlodbc.so is now renamed >>>>> psqlodbcw.so >>>>> ; in version 08.x. Note that the library can also be installed under >>>>> an other >>>>> ; path than /usr/local/lib/ following your installation. >>>>> ; Driver = /usr/lib64/odbc/psqlodbcw.so >>>>> ; Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so >>>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>> Description=Connection to LDAP/POSTGRESQL >>>>> Servername=localhost >>>>> Port=5432 >>>>> Protocol=6.4 >>>>> FetchBufferSize=99 >>>>> Username=freeswitch_user >>>>> Password=XXX >>>>> Database=freeswitch_db >>>>> ReadOnly=no >>>>> Debug=0 >>>>> CommLog=0 >>>>> >>>>> root at freeswitch-capa8:/etc# cat odbcinst.ini >>>>> [PostgreSQL] >>>>> Description = PostgreSQL driver for Linux & Win32 >>>>> ;Driver = /usr/lib64/odbc/psqlodbcw.so >>>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>> Threading = 0 >>>>> MaxLongVarcharSize=65536 >>>>> >>>>> And then connect to psql through odbc >>>>> >>>>> root at freeswitch-capa8:/etc# isql -v freeswitch >>>>> +---------------------------------------+ >>>>> | Connected! | >>>>> | | >>>>> | sql-statement | >>>>> | help [tablename] | >>>>> | quit | >>>>> | | >>>>> +---------------------------------------+ >>>>> SQL> >>>>> >>>>> Then in file switch.conf.xml I changed db connection configuration >>>>> >>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# >>>>> cat switch.conf.xml |grep core-db-dsn >>>>> >>>>> >>>>> >>>>> Last night SwK user at freenode channel told me that freeswitch on >>>>> turning on, it creates tables at database (thanks SwK). >>>>> >>>>> I spect that configuration of odbc is working but drops lot of errors >>>>> (here you have some lines): >>>>> >>>>> 2018-05-24 02:03:25 CEST [3099-338780] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE nat ( >>>>> sticky INTEGER, >>>>> port INTEGER, >>>>> proto INTEGER, >>>>> hostname VARCHAR(256) >>>>> ); >>>>> ;EXECUTE "_PLAN0x140bf90" >>>>> 2018-05-24 02:03:25 CEST [3099-338781] freeswitch_user at freeswitch_db >>>>> WARNING: there is already a transaction in progress >>>>> 2018-05-24 02:03:25 CEST [3099-338782] freeswitch_user at freeswitch_db >>>>> ERROR: relation "registrations" does not exist at character 41 >>>>> 2018-05-24 02:03:25 CEST [3099-338783] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as delete from registrations where >>>>> reg_user='';EXECUTE "_PLAN0x140bf90" >>>>> 2018-05-24 02:03:25 CEST [3099-338784] freeswitch_user at freeswitch_db >>>>> WARNING: there is already a transaction in progress >>>>> 2018-05-24 02:03:25 CEST [3099-338785] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "DROP" at character 29 >>>>> 2018-05-24 02:03:25 CEST [3099-338786] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as DROP TABLE registrations;EXECUTE >>>>> "_PLAN0x140bf90" >>>>> 2018-05-24 02:03:25 CEST [3099-338787] freeswitch_user at freeswitch_db >>>>> WARNING: there is already a transaction in progress >>>>> 2018-05-24 02:03:25 CEST [3099-338788] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "CREATE" at character 29 >>>>> 2018-05-24 02:03:25 CEST [3099-338789] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE registrations ( >>>>> reg_user VARCHAR(256), >>>>> realm VARCHAR(256), >>>>> token VARCHAR(256), >>>>> url TEXT, >>>>> expires INTEGER, >>>>> network_ip VARCHAR(256), >>>>> network_port VARCHAR(256), >>>>> network_proto VARCHAR(256), >>>>> hostname VARCHAR(256), >>>>> metadata VARCHAR(256) >>>>> ); >>>>> ;EXECUTE "_PLAN0x140bf90" >>>>> 2018-05-24 02:03:25 CEST [3099-338790] freeswitch_user at freeswitch_db >>>>> WARNING: there is already a transaction in progress >>>>> 2018-05-24 02:03:25 CEST [3099-338791] freeswitch_user at freeswitch_db >>>>> LOG: unexpected EOF on client connection with an open transaction >>>>> >>>>> >>>>> I tested with tables in psql database and without tables in psql >>>>> database. >>>>> >>>>> freeswitch at freeswitch-capa8> version >>>>> FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git >>>>> 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>> >>>>> As I told in last mail, I'm working with last git version. >>>>> >>>>> Then I have a last question, related to that (db), when it will work, >>>>> all mods will save the information to pgsql or a mix some to sqlite and >>>>> some to pgsql? I saw in other files the availibility to configure also db, >>>>> like /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>>> >>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# cat >>>>> /usr/local/freeswitch/conf/sip_profiles/internal.xml |grep db >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> The config you see in the mail is the last configuration I defined. >>>>> Yesterday I get lost with wich config work or wich one no... >>>>> >>>>> I feel I'm almost at end of this installation! I'm doing a step by >>>>> step manual in spanish to how to install last version of freeswitch, this >>>>> will be public and if you want I could upload to wiki. >>>>> >>>>> Thanks you much for your help :) >>>>> >>>>> References: >>>>> https://freeswitch.org/confluence/display/FREESWITCH/Postgre >>>>> SQL+in+the+core >>>>> https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN >>>>> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWI >>>>> TCH+Databases >>>>> >>>>> >>>>> >>>>> - Blackhold >>>>> http://blackhold.nusepas.com >>>>> @blackhold_ >>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>> <°((( >< >>>>> >>>>> 2018-05-24 18:21 GMT+02:00 Michael Jerris : >>>>> >>>>>> what tables are ending up in the recreated sqlite db? You need to >>>>>> set it for the modules that use sqlite too (like for mod_sofia). we have a >>>>>> global var for this in default configs. >>>>>> >>>>>> > On May 23, 2018, at 6:13 PM, Blackhold >>>>>> wrote: >>>>>> > >>>>>> > Hi, >>>>>> > I have just installed freeswitch 1.9 >>>>>> > >>>>>> > freeswitch at freeswitch-capa8> version >>>>>> > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit >>>>>> (git 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>>> > >>>>>> > And I'm trying to freeswitch use postgresql instead sqlitedb. >>>>>> > >>>>>> > I have configured the file switch.conf.xml of >>>>>> /usr/local/freeswitch/conf/autoload_configs with uncomenting and >>>>>> configuring this line >>>>>> > >>>>>> > >>>>>> > >>>>>> > then I exported all sqlitedbs to sql and then imported to a >>>>>> database that I have created in postgresql >>>>>> > >>>>>> > I have run again /etc/init.d/freeswitch.sh start >>>>>> > >>>>>> > But seems it still is taking sqlitedb. >>>>>> > >>>>>> > I tried to move the sqlitedbs files to other side and turned on >>>>>> again freeswitch, but it creates sqlitedbs again. >>>>>> > >>>>>> > What I'm missing? what I'm doing wrong? what could I check? >>>>>> >>>>>> >>>>>> ____________________________________________________________ >>>>>> _____________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>> switch-users >>>>>> http://www.freeswitch.org >>>>> >>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>> switch-users >>>>> http://www.freeswitch.org >>>>> >>>>> >>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>> switch-users >>>>> http://www.freeswitch.org >>>>> >>>> >>>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >> >> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >> >> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com > > Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com > > FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From infos at madovsky.org Thu May 24 21:23:31 2018 From: infos at madovsky.org (Madovsky) Date: Thu, 24 May 2018 14:23:31 -0700 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> Message-ID: and anything in FS logs? On 5/24/2018 1:59 PM, Blackhold wrote: > done, restarted psql and turned on freeswitch, nothing in psql log > files, no tables where created. > > using psql conector > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra > nosaltres mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-24 22:41 GMT+02:00 Madovsky >: > > remove these 2 lines > > local   all             postgres         peer > > local   all             all          peer > > and replace with > > local   all all  trust > > in your pg_hba.conf > > > On 5/24/2018 1:26 PM, Blackhold wrote: >> Hi, >> >> I'm trying both ways, switching between one and the other... I >> initially want to use psql directly, not using odbc, but when >> using directly I get less info, well... logs files don't say >> nothing :( if the correct way is to use that: >> >> >> >> so then, I only will use that, and the problem is my system, not >> freeswitch. >> >> odbc configuration is an old odbc configuration that I used some >> time ago when I had to use it... so... for actual psql db wich >> version is the ok?! >> >> Here you have the versions of libraries I have: >> >> # debian 8 fresh install (x86_64) >> >> root at freeswitch-capa8:~# cat /etc/debian_version >> 8.10 >> root at freeswitch-capa8:~# dpkg -l |grep postgresql >> ii  odbc-postgresql:amd64  1:09.03.0300-1                    >>  amd64 ODBC driver for PostgreSQL >> ii  postgresql 9.4+165+deb8u3                     all >> object-relational SQL database (supported version) >> ii  postgresql-9.4 9.4.15-0+deb8u1                    amd64 >> object-relational SQL database, version 9.4 server >> ii  postgresql-client  9.4+165+deb8u3                     all >> front-end programs for PostgreSQL (supported version) >> ii  postgresql-client-9.4  9.4.15-0+deb8u1                    >> amd64 front-end programs for PostgreSQL 9.4 >> ii  postgresql-client-common 165+deb8u3                        >>  all manager for multiple PostgreSQL client versions >> ii  postgresql-common  165+deb8u3                         all >> PostgreSQL database-cluster manager >> root at freeswitch-capa8:~# dpkg -l |grep libpq >> ii  libpq-dev  9.4.15-0+deb8u1                    amd64 header >> files for libpq5 (PostgreSQL library) >> ii  libpq5:amd64 9.4.15-0+deb8u1                    amd64 >> PostgreSQL C client library >> >> all these packages are downloaded from sources >> >> the lines enabled at pg_hba.conf are these (the debian default ones) >> >> local   all             postgres               peer >> local   all             all                  peer >> host    all             all 127.0.0.1/32   md5 >> host    all             all  ::1/128                 md5 >> >> the script that I have used to do the installation is the one >> located in source code >> >> root at freeswitch-capa8:/usr/src/freeswitch/scripts# ls -l |grep >> raspbian-installer >> -rwxr-xr-x 1 root root 7922 May 23 20:26 >> FreeSWITCH-debian-raspbian-installer.sh >> >> >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-24 21:58 GMT+02:00 Madovsky > >: >> >> First of all, pgsql:// does not use odbc, instead use odbc:// >> to use odbc (btw your odbc.ini file shows Protocol=6.4 (!?) >> are you using >> >> postgresql 6.x !??!) >> >> what version of postgresql are you using? compiled yourself >> or from system package? >> >> check if there are not multiple versions of libpq.xx in your >> system. >> >> check pg_hba.conf if localhost is on trust mode for all local >> users. >> >> if you compiled yourself so be sure the right libpq.xx have >> been chosen. >> >> On 5/24/2018 12:33 PM, Blackhold wrote: >>> nope, it is not able to create stuff >>> >>> now I also have enabled that in switch.conf.xml >>> >>>     >>>     >>> >>> tested with odbc and directly with psql and behaviour is the >>> same. >>> >>> for psql the procedure I have followed is >>> >>> root at freeswitch-capa8:~# su - postgres >>> root at freeswitch-capa8:~#postgres at freeswitch-capa8:~$ createuser >>> freeswitch_user >>> root at freeswitch-capa8:~#createdb -O freeswitch_user >>> freeswitch_db >>> root at freeswitch-capa8:~#psql freeswitch_db >>> freeswitch_db=# ALTER USER freeswitch_user WITH PASSWORD 'XXX'; >>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA >>> public TO freeswitch_user; >>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL SEQUENCES IN >>> SCHEMA public TO freeswitch_user; >>> >>> the most beatiful was with odbc + tables created... in the >>> last mail... freeswitch turned on, in other ways freeswitch >>> doesn't turns on. >>> >>> logs doesn't talk about permissions.... >>> >>> >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i >>> contra nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-24 21:20 GMT+02:00 Michael Jerris >> >: >>> >>> you shouldn't need to pre-import the tables, if the >>> permissions are right, it should create the tables and >>> indexes for you. >>> >>> >>>> On May 24, 2018, at 3:15 PM, Blackhold >>>> >>> > wrote: >>>> >>>> I continue with tests >>>> >>>> I think I know wich problem I had with errors >>>> >>>> I have missed to grant privileges in psql: >>>> >>>> GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO >>>> freeswitch_user; >>>> GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public >>>> TO freeswitch_user; >>>> >>>> # with tables imported from sqlite it shows (freeswitch >>>> runs) >>>> >>>> root at freeswitch-capa8:/var/log/postgresql# tail -f >>>> postgresql-9.4-main.log >>>> >>>> 2018-05-24 21:03:34 CEST [8623-1] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-2] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index recovery1 on >>>> recovery(technology);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-3] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-4] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index recovery2 on >>>> recovery(profile_name);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-5] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-6] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index recovery3 on >>>> recovery(uuid);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-7] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-8] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index recovery3 on >>>> recovery(runtime_uuid);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-9] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-10] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index alias1 on aliases >>>> (alias);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-11] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-12] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index tasks1 on tasks >>>> (hostname,task_id);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-13] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-14] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index complete1 on complete >>>> (a1,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-15] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-16] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index complete2 on complete >>>> (a2,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-17] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-18] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index complete3 on complete >>>> (a3,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-19] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-20] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index complete4 on complete >>>> (a4,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-21] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-22] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index complete5 on complete >>>> (a5,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-23] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-24] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index complete6 on complete >>>> (a6,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-25] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-26] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index complete7 on complete >>>> (a7,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-27] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-28] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index complete8 on complete >>>> (a8,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-29] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-30] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index complete9 on complete >>>> (a9,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-31] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-32] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index complete10 on complete >>>> (a10,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-33] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-34] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index complete11 on complete >>>> (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname);EXECUTE >>>> "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-35] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-36] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index nat_map_port_proto on >>>> nat (port,proto,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-37] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-38] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index channels1 on >>>> channels(hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-39] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-40] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index calls1 on >>>> calls(hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-41] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-42] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index chidx1 on channels >>>> (hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-43] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-44] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index uuindex on channels >>>> (uuid, hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-45] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-46] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index uuindex2 on channels >>>> (call_uuid);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-47] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-48] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index callsidx1 on calls >>>> (hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-49] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-50] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index eruuindex on calls >>>> (caller_uuid, hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-51] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-52] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index eeuuindex on calls >>>> (callee_uuid);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-53] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-54] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index eeuuindex2 on calls >>>> (call_uuid);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-55] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error at >>>> or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-56] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x123ff90" as create index regindex1 on >>>> registrations (reg_user,realm,hostname);EXECUTE >>>> "_PLAN0x123ff90" >>>> >>>> # with a clean database >>>> >>>> start dropping last errors, and don't create any table >>>> in db. Freeswitch doesn't turns on. >>>> >>>> each time I stop freeswitch when it don't runs, it >>>> keeps a process running that I have to kill manually >>>> >>>> root at freeswitch-capa8:/var/log/postgresql#  ps aux >>>> |grep free >>>> root      8706 39.6  0.7 141296 15244 ? S>>>  1:13 /usr/local/freeswitch/bin/freeswitch -nc >>>> >>>> >>>> # with granted permisions if I turn configuration to >>>> not use odbc, using psql directly >>>> >>>> freeswitch turns on, there's no errors in psql log file >>>> and no table was created on db. >>>> >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser febles, >>>> i contra nosaltres mateixos quan siguem forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-24 20:31 GMT+02:00 Blackhold >>>> >>> >: >>>> >>>> # OK for location of ODBC files >>>> >>>> # output freeswitch using psql (I only edited >>>> switch.conf.xml file) >>>> >>> value="pgsql://hostaddr=127.0.0.1 >>>> dbname=freeswitch_db user=freeswitch_user >>>> password='XXX' options='-c >>>> client_min_messages=NOTICE'" /> (switch.conf.xml file) >>>> >>>> I see no errors related on logs (nor freeswitch, >>>> nor psql -debug5-), obviously restarted psql to >>>> reload config. >>>> >>>> in sofia.conf.xml file I found no option to >>>> configure it pointing to database >>>> no other config file, except switch.conf.xml has >>>> configured database pointing >>>> >>>> I tried to configure db.conf.xml file, with >>>> switch.conf.xml line but also do nothing >>>> >>>> # output freeswtich using odbc >>>> >>> value="freeswitch:freeswitch_user:XXX"/> >>>> (switch.conf.xml file) >>>> >>>> these are the first lines of postgresql log file >>>> >>>> 2018-05-24 20:23:15 CEST [7518-7] LOG: received >>>> fast shutdown request >>>> 2018-05-24 20:23:15 CEST [7518-8] LOG: aborting any >>>> active transactions >>>> 2018-05-24 20:23:15 CEST [7548-2] LOG: autovacuum >>>> launcher shutting down >>>> 2018-05-24 20:23:15 CEST [7545-1] LOG: shutting down >>>> 2018-05-24 20:23:15 CEST [7545-2] LOG: database >>>> system is shut down >>>> 2018-05-24 20:23:16 CEST [7568-1] LOG: database >>>> system was shut down at 2018-05-24 20:23:15 CEST >>>> 2018-05-24 20:23:16 CEST [7568-2] LOG: MultiXact >>>> member wraparound protections are now enabled >>>> 2018-05-24 20:23:16 CEST [7567-1] LOG: database >>>> system is ready to accept connections >>>> 2018-05-24 20:23:16 CEST [7572-1] LOG: autovacuum >>>> launcher started >>>> 2018-05-24 20:23:16 CEST [7574-1] >>>> [unknown]@[unknown] LOG: incomplete startup packet >>>> 2018-05-24 20:23:39 CEST [7596-1] >>>> freeswitch_user at freeswitch_db ERROR: relation >>>> "channels" does not exist at character 40 >>>> 2018-05-24 20:23:39 CEST [7596-2] >>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>> "_PLAN0x9f3f90" as delete from channels where >>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>> 2018-05-24 20:23:39 CEST [7596-3] >>>> freeswitch_user at freeswitch_db ERROR: relation >>>> "calls" does not exist at character 40 >>>> 2018-05-24 20:23:39 CEST [7596-4] >>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>> "_PLAN0x9f3f90" as delete from calls where >>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>> 2018-05-24 20:23:39 CEST [7596-5] >>>> freeswitch_user at freeswitch_db ERROR: relation >>>> "tasks" does not exist at character 40 >>>> 2018-05-24 20:23:39 CEST [7596-6] >>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>> "_PLAN0x9f3f90" as delete from tasks where >>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>> 2018-05-24 20:23:39 CEST [7596-7] >>>> freeswitch_user at freeswitch_db ERROR: relation >>>> "aliases" does not exist at character 49 >>>> 2018-05-24 20:23:39 CEST [7596-8] >>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>> "_PLAN0x9f3f90" as select hostname from >>>> aliases;EXECUTE "_PLAN0x9f3f90" >>>> 2018-05-24 20:23:39 CEST [7596-9] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>> at or near "DROP" at character 28 >>>> 2018-05-24 20:23:39 CEST [7596-10] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x9f3f90" as DROP TABLE aliases;EXECUTE >>>> "_PLAN0x9f3f90" >>>> 2018-05-24 20:23:39 CEST [7596-11] >>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>> at or near "CREATE" at character 28 >>>> 2018-05-24 20:23:39 CEST [7596-12] >>>> freeswitch_user at freeswitch_db STATEMENT:  PREPARE >>>> "_PLAN0x9f3f90" as CREATE TABLE aliases ( >>>>  sticky INTEGER, >>>>  alias VARCHAR(128), >>>>  command VARCHAR(4096), >>>>  hostname VARCHAR(256) >>>>       ); >>>>       ;EXECUTE "_PLAN0x9f3f90" >>>> >>>> and now freeswitch isn't able to run. >>>> >>>> If I enable odbc trace in odbcinst.ini >>>> >>>> Trace=Yes >>>> TraceFile=/var/log/odbctrace.log >>>> >>>> Also there's no output.... >>>> >>>> In freeswitch log also there's nothing about what >>>> is happening :( >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser >>>> febles, i contra nosaltres mateixos quan siguem >>>> forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-24 19:30 GMT+02:00 Michael Jerris >>>> >: >>>> >>>> but that table layout is like that because you >>>> imported the tables, i was asking what is in >>>> the recreated sqlite ones. If it fails to >>>> connect like you later describe, its going to >>>> fall back, you should see stuff in the fs logs >>>> on startup about this.  the odbc configs go in >>>> the normal place they go in the os, not in fs >>>> specific dirs.  Those errors tell me something >>>> is up, but not sure what, might need to turn on >>>> some debug on pg side to see.  some of our >>>> tests like to see if table schema is right >>>> throw errors then we act on them, if you >>>> restart a second time you should get a more >>>> useful set of errors. >>>> >>>> >>>>> On May 24, 2018, at 1:11 PM, Blackhold >>>>> >>>> > wrote: >>>>> >>>>> Hi, >>>>> The tables are: >>>>> >>>>> ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db >>>>> freeswitch_db-# \dt >>>>> >>>>> List of relations >>>>>  Schema |   Name          | Type  | Owner >>>>> --------+-------------------------------------+-------+---------- >>>>>  public | aliases        | table | postgres >>>>>  public | calls        | table | postgres >>>>>  public | channels         | table | postgres >>>>>  public | complete         | table | postgres >>>>>  public | db_data        | table | postgres >>>>>  public | fifo_bridge        | table | postgres >>>>>  public | fifo_callers         | table | postgres >>>>>  public | fifo_outbound        | table | postgres >>>>>  public | group_data         | table | postgres >>>>>  public | interfaces         | table | postgres >>>>>  public | json_store         | table | postgres >>>>>  public | limit_data         | table | postgres >>>>>  public | nat        | table | postgres >>>>>  public | recovery         | table | postgres >>>>>  public | registrations        | table | postgres >>>>>  public | sip_authentication                  >>>>> | table | postgres >>>>>  public | sip_dialogs        | table | postgres >>>>>  public | sip_presence         | table | postgres >>>>>  public | sip_registrations                  >>>>>  | table | postgres >>>>>  public | sip_shared_appearance_dialogs      >>>>>  | table | postgres >>>>>  public | sip_shared_appearance_subscriptions >>>>> | table | postgres >>>>>  public | sip_subscriptions                  >>>>>  | table | postgres >>>>>  public | tasks        | table | postgres >>>>>  public | voicemail_msgs                      >>>>> | table | postgres >>>>>  public | voicemail_prefs                    >>>>>  | table | postgres >>>>> (25 rows) >>>>> >>>>> I continued testing and found that if I >>>>> configure switch.conf.xml file like this: >>>>> >>>>> >>>> value="pgsql://hostaddr=127.0.0.1 >>>>> dbname=freeswitch_db user=freeswitch_user >>>>> password='****' options='-c >>>>> client_min_messages=NOTICE'" /> >>>>> >>>>> When I turn on freeswitch, postgresql don't >>>>> output nothing. Then I tried to configure >>>>> freeswitch using odbc I then YES I get >>>>> something in postgresql logs >>>>> >>>>> For odbc I have something not clear, it is >>>>> mandatory to put files in >>>>> /usr/local/freeswitch/etc ? or leaving them at >>>>> default directory (/etc) is enough? >>>>> >>>>> Here I show the config of odbc files: >>>>> root at freeswitch-capa8:/etc# cat odbc.ini >>>>> [freeswitch] >>>>> ; WARNING: The old psql odbc driver >>>>> psqlodbc.so is now renamed psqlodbcw.so >>>>> ; in version 08.x. Note that the library can >>>>> also be installed under an other >>>>> ; path than /usr/local/lib/ following your >>>>> installation. >>>>> ; Driver = /usr/lib64/odbc/psqlodbcw.so >>>>> ; Driver = >>>>> /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so >>>>> Driver = >>>>> /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>> Description=Connection to LDAP/POSTGRESQL >>>>> Servername=localhost >>>>> Port=5432 >>>>> Protocol=6.4 >>>>> FetchBufferSize=99 >>>>> Username=freeswitch_user >>>>> Password=XXX >>>>> Database=freeswitch_db >>>>> ReadOnly=no >>>>> Debug=0 >>>>> CommLog=0 >>>>> >>>>> root at freeswitch-capa8:/etc# cat odbcinst.ini >>>>> [PostgreSQL] >>>>> Description = PostgreSQL driver for Linux & Win32 >>>>> ;Driver = /usr/lib64/odbc/psqlodbcw.so >>>>> Driver = >>>>> /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>> Threading = 0 >>>>> MaxLongVarcharSize=65536 >>>>> >>>>> And then connect to psql through odbc >>>>> >>>>> root at freeswitch-capa8:/etc# isql -v freeswitch >>>>> +---------------------------------------+ >>>>> | Connected!           | >>>>> |    | >>>>> | sql-statement          | >>>>> | help [tablename]     | >>>>> | quit   | >>>>> |    | >>>>> +---------------------------------------+ >>>>> SQL> >>>>> >>>>> Then in file switch.conf.xml I changed db >>>>> connection configuration >>>>> >>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# >>>>> cat switch.conf.xml |grep core-db-dsn >>>>> >>>> value="pgsql://hostaddr=127.0.0.1 >>>>> dbname=freeswitch_db user=freeswitch_user >>>>> password='XXX' options='-c >>>>> client_min_messages=NOTICE'" /> >>>>> >>>>> >>>>> Last night SwK user at freenode channel told >>>>> me that freeswitch on turning on, it creates >>>>> tables at database (thanks SwK). >>>>> >>>>> I spect that configuration of odbc is working >>>>> but drops lot of errors (here you have some >>>>> lines): >>>>> >>>>> 2018-05-24 02:03:25 CEST [3099-338780] >>>>> freeswitch_user at freeswitch_db STATEMENT:  >>>>> PREPARE "_PLAN0x140bf90" as CREATE TABLE nat ( >>>>>  sticky INTEGER, >>>>> portINTEGER, >>>>> protoINTEGER, >>>>>  hostname VARCHAR(256) >>>>> ); >>>>> ;EXECUTE "_PLAN0x140bf90" >>>>> 2018-05-24 02:03:25 CEST [3099-338781] >>>>> freeswitch_user at freeswitch_db WARNING:  there >>>>> is already a transaction in progress >>>>> 2018-05-24 02:03:25 CEST [3099-338782] >>>>> freeswitch_user at freeswitch_db ERROR:  relation >>>>> "registrations" does not exist at character 41 >>>>> 2018-05-24 02:03:25 CEST [3099-338783] >>>>> freeswitch_user at freeswitch_db STATEMENT:  >>>>> PREPARE "_PLAN0x140bf90" as delete from >>>>> registrations where reg_user='';EXECUTE >>>>> "_PLAN0x140bf90" >>>>> 2018-05-24 02:03:25 CEST [3099-338784] >>>>> freeswitch_user at freeswitch_db WARNING:  there >>>>> is already a transaction in progress >>>>> 2018-05-24 02:03:25 CEST [3099-338785] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>> error at or near "DROP" at character 29 >>>>> 2018-05-24 02:03:25 CEST [3099-338786] >>>>> freeswitch_user at freeswitch_db STATEMENT:  >>>>> PREPARE "_PLAN0x140bf90" as DROP TABLE >>>>> registrations;EXECUTE "_PLAN0x140bf90" >>>>> 2018-05-24 02:03:25 CEST [3099-338787] >>>>> freeswitch_user at freeswitch_db WARNING:  there >>>>> is already a transaction in progress >>>>> 2018-05-24 02:03:25 CEST [3099-338788] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>> error at or near "CREATE" at character 29 >>>>> 2018-05-24 02:03:25 CEST [3099-338789] >>>>> freeswitch_user at freeswitch_db STATEMENT:  >>>>> PREPARE "_PLAN0x140bf90" as CREATE TABLE >>>>> registrations ( >>>>>  reg_user VARCHAR(256), >>>>>  realm  VARCHAR(256), >>>>>  token  VARCHAR(256), >>>>>  url TEXT, >>>>>  expires INTEGER, >>>>>  network_ip VARCHAR(256), >>>>>  network_port VARCHAR(256), >>>>>  network_proto VARCHAR(256), >>>>>  hostname VARCHAR(256), >>>>>  metadata VARCHAR(256) >>>>> ); >>>>> ;EXECUTE "_PLAN0x140bf90" >>>>> 2018-05-24 02:03:25 CEST [3099-338790] >>>>> freeswitch_user at freeswitch_db WARNING:  there >>>>> is already a transaction in progress >>>>> 2018-05-24 02:03:25 CEST [3099-338791] >>>>> freeswitch_user at freeswitch_db LOG:  unexpected >>>>> EOF on client connection with an open transaction >>>>> >>>>> >>>>> I tested with tables in psql database and >>>>> without tables in psql database. >>>>> >>>>> freeswitch at freeswitch-capa8> version >>>>> FreeSWITCH Version >>>>> 1.9.0+git~20180516T211208Z~3c7db639fd~64bit >>>>> (git 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>> >>>>> As I told in last mail, I'm working with last >>>>> git version. >>>>> >>>>> Then I have a last question, related to that >>>>> (db), when it will work, all mods will save >>>>> the information to pgsql or a mix some to >>>>> sqlite and some to pgsql? I saw in other files >>>>> the availibility to configure also db, like >>>>> /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>>> >>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# >>>>> cat >>>>> /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>>> |grep db >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> value="$${domain}"/> >>>>> >>>>> The config you see in the mail is the last >>>>> configuration I defined. Yesterday I get lost >>>>> with wich config work or wich one no... >>>>> >>>>> I feel I'm almost at end of this installation! >>>>> I'm doing a step by step manual in spanish to >>>>> how to install last version of freeswitch, >>>>> this will be public and if you want I could >>>>> upload to wiki. >>>>> >>>>> Thanks you much for your help :) >>>>> >>>>> References: >>>>> https://freeswitch.org/confluence/display/FREESWITCH/PostgreSQL+in+the+core >>>>> >>>>> https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN >>>>> >>>>> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+Databases >>>>> >>>>> >>>>> >>>>> >>>>> - Blackhold >>>>> http://blackhold.nusepas.com >>>>> >>>>> @blackhold_ >>>>> ~> cal lluitar contra el fort per deixar de >>>>> ser febles, i contra nosaltres mateixos quan >>>>> siguem forts (Xirinacs) >>>>> <°((( >< >>>>> >>>>> 2018-05-24 18:21 GMT+02:00 Michael Jerris >>>>> >: >>>>> >>>>> what tables are ending up in the recreated >>>>> sqlite db? You need to set it for the >>>>> modules that use sqlite too (like for >>>>> mod_sofia). we have a global var for this >>>>> in default configs. >>>>> >>>>> > On May 23, 2018, at 6:13 PM, Blackhold >>>>> >>>> > wrote: >>>>> > >>>>> > Hi, >>>>> > I have just installed freeswitch 1.9 >>>>> > >>>>> > freeswitch at freeswitch-capa8> version >>>>> > FreeSWITCH Version >>>>> 1.9.0+git~20180516T211208Z~3c7db639fd~64bit >>>>> (git 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>> > >>>>> > And I'm trying to freeswitch use >>>>> postgresql instead sqlitedb. >>>>> > >>>>> > I have configured the file >>>>> switch.conf.xml of >>>>> /usr/local/freeswitch/conf/autoload_configs >>>>> with uncomenting and configuring this line >>>>> > >>>>> >  >>>> value="pgsql://hostaddr=127.0.0.1 >>>>> dbname=freeswitch_db user=freeswitch_user >>>>> password='****' options='-c >>>>> client_min_messages=NOTICE'" /> >>>>> > >>>>> > then I exported all sqlitedbs to sql and >>>>> then imported to a database that I have >>>>> created in postgresql >>>>> > >>>>> > I have run again >>>>> /etc/init.d/freeswitch.sh start >>>>> > >>>>> > But seems it still is taking sqlitedb. >>>>> > >>>>> > I tried to move the sqlitedbs files to >>>>> other side and turned on again freeswitch, >>>>> but it creates sqlitedbs again. >>>>> > >>>>> > What I'm missing? what I'm doing wrong? >>>>> what could I check? >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> >>>>> http://confluence.freeswitch.org >>>>> >>>>> http://www.cluecon.com >>>>> >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>> >>>>> http://www.freeswitch.org >>>>> >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> >>>>> http://confluence.freeswitch.org >>>>> >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>> >>>>> http://www.freeswitch.org >>>>> >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> >>>> http://www.freeswitchsolutions.com >>>> >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> >>>> http://confluence.freeswitch.org >>>> >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> >>>> http://www.freeswitch.org >>>> >>>> >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> >>>> http://www.freeswitchsolutions.com >>>> >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> >>>> http://www.freeswitch.org >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> >>> http://www.freeswitch.org >>> >>> >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> >>> http://www.freeswitch.org >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Thu May 24 22:20:48 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Fri, 25 May 2018 00:20:48 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> Message-ID: it seems nothing... yes tells something, but no one error, it seems all modules are loaded ok. 2018-05-24 22:58:20.552211 [INFO] sofia.c:5987 Setting MAX Auth Validity to 0 Attempts 2018-05-24 22:58:20.557248 [INFO] switch_core_sqldb.c:1693 sofia:external Starting SQL thread. 2018-05-24 22:58:20.562295 [NOTICE] sofia.c:4172 Adding Alias [10.90.226.83] for profile [internal] 2018-05-24 22:58:20.562424 [WARNING] sofia.c:2285 MSG Thread 0 Started 2018-05-24 22:58:22.059111 [CONSOLE] switch_loadable_module.c:1540 Successfully Loaded [mod_db] 2018-05-24 22:58:22.059118 [NOTICE] switch_loadable_module.c:292 Adding Application 'db' 2018-05-24 22:58:22.059128 [NOTICE] switch_loadable_module.c:292 Adding Application 'group' 2018-05-24 22:58:22.059137 [NOTICE] switch_loadable_module.c:338 Adding API Function 'db' 2018-05-24 22:58:22.059146 [NOTICE] switch_loadable_module.c:338 Adding API Function 'group' 2018-05-24 22:58:22.059154 [NOTICE] switch_loadable_module.c:556 Adding Limit interface 'db' - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-24 23:23 GMT+02:00 Madovsky : > and anything in FS logs? > On 5/24/2018 1:59 PM, Blackhold wrote: > > done, restarted psql and turned on freeswitch, nothing in psql log files, > no tables where created. > > using psql conector > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres > mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-24 22:41 GMT+02:00 Madovsky : > >> remove these 2 lines >> >> local all postgres peer >> >> local all all peer >> and replace with >> >> local all all trust >> >> in your pg_hba.conf >> >> >> On 5/24/2018 1:26 PM, Blackhold wrote: >> >> Hi, >> >> I'm trying both ways, switching between one and the other... I initially >> want to use psql directly, not using odbc, but when using directly I get >> less info, well... logs files don't say nothing :( if the correct way is to >> use that: >> >> >> >> so then, I only will use that, and the problem is my system, not >> freeswitch. >> >> odbc configuration is an old odbc configuration that I used some time ago >> when I had to use it... so... for actual psql db wich version is the ok?! >> >> Here you have the versions of libraries I have: >> >> # debian 8 fresh install (x86_64) >> >> root at freeswitch-capa8:~# cat /etc/debian_version >> 8.10 >> root at freeswitch-capa8:~# dpkg -l |grep postgresql >> ii odbc-postgresql:amd64 1:09.03.0300-1 >> amd64 ODBC driver for PostgreSQL >> ii postgresql 9.4+165+deb8u3 >> all object-relational SQL database (supported version) >> ii postgresql-9.4 9.4.15-0+deb8u1 >> amd64 object-relational SQL database, version 9.4 server >> ii postgresql-client 9.4+165+deb8u3 >> all front-end programs for PostgreSQL (supported version) >> ii postgresql-client-9.4 9.4.15-0+deb8u1 >> amd64 front-end programs for PostgreSQL 9.4 >> ii postgresql-client-common 165+deb8u3 >> all manager for multiple PostgreSQL client versions >> ii postgresql-common 165+deb8u3 >> all PostgreSQL database-cluster manager >> root at freeswitch-capa8:~# dpkg -l |grep libpq >> ii libpq-dev 9.4.15-0+deb8u1 >> amd64 header files for libpq5 (PostgreSQL library) >> ii libpq5:amd64 9.4.15-0+deb8u1 >> amd64 PostgreSQL C client library >> >> all these packages are downloaded from sources >> >> the lines enabled at pg_hba.conf are these (the debian default ones) >> >> local all postgres peer >> local all all peer >> host all all 127.0.0.1/32 md5 >> host all all ::1/128 md5 >> >> the script that I have used to do the installation is the one located in >> source code >> >> root at freeswitch-capa8:/usr/src/freeswitch/scripts# ls -l |grep >> raspbian-installer >> -rwxr-xr-x 1 root root 7922 May 23 20:26 FreeSWITCH-debian-raspbian-ins >> taller.sh >> >> >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-24 21:58 GMT+02:00 Madovsky : >> >>> First of all, pgsql:// does not use odbc, instead use odbc:// to use >>> odbc (btw your odbc.ini file shows Protocol=6.4 (!?) are you using >>> >>> postgresql 6.x !??!) >>> >>> what version of postgresql are you using? compiled yourself or from >>> system package? >>> >>> check if there are not multiple versions of libpq.xx in your system. >>> >>> check pg_hba.conf if localhost is on trust mode for all local users. >>> >>> if you compiled yourself so be sure the right libpq.xx have been chosen. >>> On 5/24/2018 12:33 PM, Blackhold wrote: >>> >>> nope, it is not able to create stuff >>> >>> now I also have enabled that in switch.conf.xml >>> >>> >>> >>> >>> tested with odbc and directly with psql and behaviour is the same. >>> >>> for psql the procedure I have followed is >>> >>> root at freeswitch-capa8:~# su - postgres >>> root at freeswitch-capa8:~# postgres at freeswitch-capa8:~$ createuser >>> freeswitch_user >>> root at freeswitch-capa8:~# createdb -O freeswitch_user freeswitch_db >>> root at freeswitch-capa8:~# psql freeswitch_db >>> freeswitch_db=# ALTER USER freeswitch_user WITH PASSWORD 'XXX'; >>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO >>> freeswitch_user; >>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public >>> TO freeswitch_user; >>> >>> the most beatiful was with odbc + tables created... in the last mail... >>> freeswitch turned on, in other ways freeswitch doesn't turns on. >>> >>> logs doesn't talk about permissions.... >>> >>> >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>> nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-24 21:20 GMT+02:00 Michael Jerris : >>> >>>> you shouldn't need to pre-import the tables, if the permissions are >>>> right, it should create the tables and indexes for you. >>>> >>>> >>>> On May 24, 2018, at 3:15 PM, Blackhold >>>> wrote: >>>> >>>> I continue with tests >>>> >>>> I think I know wich problem I had with errors >>>> >>>> I have missed to grant privileges in psql: >>>> >>>> GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO freeswitch_user; >>>> GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO >>>> freeswitch_user; >>>> >>>> # with tables imported from sqlite it shows (freeswitch runs) >>>> >>>> root at freeswitch-capa8:/var/log/postgresql# tail -f >>>> postgresql-9.4-main.log >>>> >>>> 2018-05-24 21:03:34 CEST [8623-1] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-2] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery1 on >>>> recovery(technology);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-3] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-4] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery2 on >>>> recovery(profile_name);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-5] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-6] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on >>>> recovery(uuid);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-7] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-8] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on >>>> recovery(runtime_uuid);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-9] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-10] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index alias1 on aliases >>>> (alias);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-11] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-12] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index tasks1 on tasks >>>> (hostname,task_id);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-13] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-14] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete1 on complete >>>> (a1,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-15] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-16] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete2 on complete >>>> (a2,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-17] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-18] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete3 on complete >>>> (a3,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-19] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-20] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete4 on complete >>>> (a4,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-21] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-22] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete5 on complete >>>> (a5,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-23] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-24] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete6 on complete >>>> (a6,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-25] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-26] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete7 on complete >>>> (a7,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-27] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-28] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete8 on complete >>>> (a8,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-29] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-30] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete9 on complete >>>> (a9,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-31] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-32] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete10 on complete >>>> (a10,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-33] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-34] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete11 on complete >>>> (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-35] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-36] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index nat_map_port_proto on >>>> nat (port,proto,hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-37] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-38] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index channels1 on >>>> channels(hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-39] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-40] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index calls1 on >>>> calls(hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-41] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-42] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index chidx1 on channels >>>> (hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-43] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-44] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex on channels >>>> (uuid, hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-45] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-46] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex2 on channels >>>> (call_uuid);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-47] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-48] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index callsidx1 on calls >>>> (hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-49] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-50] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eruuindex on calls >>>> (caller_uuid, hostname);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-51] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-52] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex on calls >>>> (callee_uuid);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-53] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-54] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex2 on calls >>>> (call_uuid);EXECUTE "_PLAN0x123ff90" >>>> 2018-05-24 21:03:34 CEST [8623-55] freeswitch_user at freeswitch_db >>>> ERROR: syntax error at or near "create" at character 29 >>>> 2018-05-24 21:03:34 CEST [8623-56] freeswitch_user at freeswitch_db >>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index regindex1 on >>>> registrations (reg_user,realm,hostname);EXECUTE "_PLAN0x123ff90" >>>> >>>> # with a clean database >>>> >>>> start dropping last errors, and don't create any table in db. >>>> Freeswitch doesn't turns on. >>>> >>>> each time I stop freeswitch when it don't runs, it keeps a process >>>> running that I have to kill manually >>>> >>>> root at freeswitch-capa8:/var/log/postgresql# ps aux |grep free >>>> root 8706 39.6 0.7 141296 15244 ? S>>> /usr/local/freeswitch/bin/freeswitch -nc >>>> >>>> >>>> # with granted permisions if I turn configuration to not use odbc, >>>> using psql directly >>>> >>>> freeswitch turns on, there's no errors in psql log file and no table >>>> was created on db. >>>> >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-24 20:31 GMT+02:00 Blackhold : >>>> >>>>> # OK for location of ODBC files >>>>> >>>>> # output freeswitch using psql (I only edited switch.conf.xml file) >>>>> (switch.conf.xml file) >>>>> >>>>> I see no errors related on logs (nor freeswitch, nor psql -debug5-), >>>>> obviously restarted psql to reload config. >>>>> >>>>> in sofia.conf.xml file I found no option to configure it pointing to >>>>> database >>>>> no other config file, except switch.conf.xml has configured database >>>>> pointing >>>>> >>>>> I tried to configure db.conf.xml file, with switch.conf.xml line but >>>>> also do nothing >>>>> >>>>> # output freeswtich using odbc >>>>> >>>>> (switch.conf.xml file) >>>>> >>>>> these are the first lines of postgresql log file >>>>> >>>>> 2018-05-24 20:23:15 CEST [7518-7] LOG: received fast shutdown request >>>>> 2018-05-24 20:23:15 CEST [7518-8] LOG: aborting any active >>>>> transactions >>>>> 2018-05-24 20:23:15 CEST [7548-2] LOG: autovacuum launcher shutting >>>>> down >>>>> 2018-05-24 20:23:15 CEST [7545-1] LOG: shutting down >>>>> 2018-05-24 20:23:15 CEST [7545-2] LOG: database system is shut down >>>>> 2018-05-24 20:23:16 CEST [7568-1] LOG: database system was shut down >>>>> at 2018-05-24 20:23:15 CEST >>>>> 2018-05-24 20:23:16 CEST [7568-2] LOG: MultiXact member wraparound >>>>> protections are now enabled >>>>> 2018-05-24 20:23:16 CEST [7567-1] LOG: database system is ready to >>>>> accept connections >>>>> 2018-05-24 20:23:16 CEST [7572-1] LOG: autovacuum launcher started >>>>> 2018-05-24 20:23:16 CEST [7574-1] [unknown]@[unknown] LOG: incomplete >>>>> startup packet >>>>> 2018-05-24 20:23:39 CEST [7596-1] freeswitch_user at freeswitch_db >>>>> ERROR: relation "channels" does not exist at character 40 >>>>> 2018-05-24 20:23:39 CEST [7596-2] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from channels where >>>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>>> 2018-05-24 20:23:39 CEST [7596-3] freeswitch_user at freeswitch_db >>>>> ERROR: relation "calls" does not exist at character 40 >>>>> 2018-05-24 20:23:39 CEST [7596-4] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from calls where >>>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>>> 2018-05-24 20:23:39 CEST [7596-5] freeswitch_user at freeswitch_db >>>>> ERROR: relation "tasks" does not exist at character 40 >>>>> 2018-05-24 20:23:39 CEST [7596-6] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from tasks where >>>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>>> 2018-05-24 20:23:39 CEST [7596-7] freeswitch_user at freeswitch_db >>>>> ERROR: relation "aliases" does not exist at character 49 >>>>> 2018-05-24 20:23:39 CEST [7596-8] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as select hostname from aliases;EXECUTE >>>>> "_PLAN0x9f3f90" >>>>> 2018-05-24 20:23:39 CEST [7596-9] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "DROP" at character 28 >>>>> 2018-05-24 20:23:39 CEST [7596-10] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as DROP TABLE aliases;EXECUTE >>>>> "_PLAN0x9f3f90" >>>>> 2018-05-24 20:23:39 CEST [7596-11] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "CREATE" at character 28 >>>>> 2018-05-24 20:23:39 CEST [7596-12] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as CREATE TABLE aliases ( >>>>> sticky INTEGER, >>>>> alias VARCHAR(128), >>>>> command VARCHAR(4096), >>>>> hostname VARCHAR(256) >>>>> ); >>>>> ;EXECUTE "_PLAN0x9f3f90" >>>>> >>>>> and now freeswitch isn't able to run. >>>>> >>>>> If I enable odbc trace in odbcinst.ini >>>>> >>>>> Trace=Yes >>>>> TraceFile=/var/log/odbctrace.log >>>>> >>>>> Also there's no output.... >>>>> >>>>> In freeswitch log also there's nothing about what is happening :( >>>>> >>>>> >>>>> - Blackhold >>>>> http://blackhold.nusepas.com >>>>> @blackhold_ >>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>> <°((( >< >>>>> >>>>> 2018-05-24 19:30 GMT+02:00 Michael Jerris : >>>>> >>>>>> but that table layout is like that because you imported the tables, i >>>>>> was asking what is in the recreated sqlite ones. If it fails to connect >>>>>> like you later describe, its going to fall back, you should see stuff in >>>>>> the fs logs on startup about this. the odbc configs go in the normal place >>>>>> they go in the os, not in fs specific dirs. Those errors tell me something >>>>>> is up, but not sure what, might need to turn on some debug on pg side to >>>>>> see. some of our tests like to see if table schema is right throw errors >>>>>> then we act on them, if you restart a second time you should get a more >>>>>> useful set of errors. >>>>>> >>>>>> >>>>>> On May 24, 2018, at 1:11 PM, Blackhold >>>>>> wrote: >>>>>> >>>>>> Hi, >>>>>> The tables are: >>>>>> >>>>>> ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db >>>>>> freeswitch_db-# \dt >>>>>> >>>>>> List of relations >>>>>> Schema | Name | Type | Owner >>>>>> --------+-------------------------------------+-------+---------- >>>>>> public | aliases | table | postgres >>>>>> public | calls | table | postgres >>>>>> public | channels | table | postgres >>>>>> public | complete | table | postgres >>>>>> public | db_data | table | postgres >>>>>> public | fifo_bridge | table | postgres >>>>>> public | fifo_callers | table | postgres >>>>>> public | fifo_outbound | table | postgres >>>>>> public | group_data | table | postgres >>>>>> public | interfaces | table | postgres >>>>>> public | json_store | table | postgres >>>>>> public | limit_data | table | postgres >>>>>> public | nat | table | postgres >>>>>> public | recovery | table | postgres >>>>>> public | registrations | table | postgres >>>>>> public | sip_authentication | table | postgres >>>>>> public | sip_dialogs | table | postgres >>>>>> public | sip_presence | table | postgres >>>>>> public | sip_registrations | table | postgres >>>>>> public | sip_shared_appearance_dialogs | table | postgres >>>>>> public | sip_shared_appearance_subscriptions | table | postgres >>>>>> public | sip_subscriptions | table | postgres >>>>>> public | tasks | table | postgres >>>>>> public | voicemail_msgs | table | postgres >>>>>> public | voicemail_prefs | table | postgres >>>>>> (25 rows) >>>>>> >>>>>> I continued testing and found that if I configure switch.conf.xml >>>>>> file like this: >>>>>> >>>>>> >>>>>> >>>>>> When I turn on freeswitch, postgresql don't output nothing. Then I >>>>>> tried to configure freeswitch using odbc I then YES I get something in >>>>>> postgresql logs >>>>>> >>>>>> For odbc I have something not clear, it is mandatory to put files in >>>>>> /usr/local/freeswitch/etc ? or leaving them at default directory (/etc) is >>>>>> enough? >>>>>> >>>>>> Here I show the config of odbc files: >>>>>> root at freeswitch-capa8:/etc# cat odbc.ini >>>>>> [freeswitch] >>>>>> ; WARNING: The old psql odbc driver psqlodbc.so is now renamed >>>>>> psqlodbcw.so >>>>>> ; in version 08.x. Note that the library can also be installed under >>>>>> an other >>>>>> ; path than /usr/local/lib/ following your installation. >>>>>> ; Driver = /usr/lib64/odbc/psqlodbcw.so >>>>>> ; Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so >>>>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>>> Description=Connection to LDAP/POSTGRESQL >>>>>> Servername=localhost >>>>>> Port=5432 >>>>>> Protocol=6.4 >>>>>> FetchBufferSize=99 >>>>>> Username=freeswitch_user >>>>>> Password=XXX >>>>>> Database=freeswitch_db >>>>>> ReadOnly=no >>>>>> Debug=0 >>>>>> CommLog=0 >>>>>> >>>>>> root at freeswitch-capa8:/etc# cat odbcinst.ini >>>>>> [PostgreSQL] >>>>>> Description = PostgreSQL driver for Linux & Win32 >>>>>> ;Driver = /usr/lib64/odbc/psqlodbcw.so >>>>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>>> Threading = 0 >>>>>> MaxLongVarcharSize=65536 >>>>>> >>>>>> And then connect to psql through odbc >>>>>> >>>>>> root at freeswitch-capa8:/etc# isql -v freeswitch >>>>>> +---------------------------------------+ >>>>>> | Connected! | >>>>>> | | >>>>>> | sql-statement | >>>>>> | help [tablename] | >>>>>> | quit | >>>>>> | | >>>>>> +---------------------------------------+ >>>>>> SQL> >>>>>> >>>>>> Then in file switch.conf.xml I changed db connection configuration >>>>>> >>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# >>>>>> cat switch.conf.xml |grep core-db-dsn >>>>>> >>>>>> >>>>>> >>>>>> Last night SwK user at freenode channel told me that freeswitch on >>>>>> turning on, it creates tables at database (thanks SwK). >>>>>> >>>>>> I spect that configuration of odbc is working but drops lot of errors >>>>>> (here you have some lines): >>>>>> >>>>>> 2018-05-24 02:03:25 CEST [3099-338780] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE nat ( >>>>>> sticky INTEGER, >>>>>> port INTEGER, >>>>>> proto INTEGER, >>>>>> hostname VARCHAR(256) >>>>>> ); >>>>>> ;EXECUTE "_PLAN0x140bf90" >>>>>> 2018-05-24 02:03:25 CEST [3099-338781] freeswitch_user at freeswitch_db >>>>>> WARNING: there is already a transaction in progress >>>>>> 2018-05-24 02:03:25 CEST [3099-338782] freeswitch_user at freeswitch_db >>>>>> ERROR: relation "registrations" does not exist at character 41 >>>>>> 2018-05-24 02:03:25 CEST [3099-338783] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as delete from registrations where >>>>>> reg_user='';EXECUTE "_PLAN0x140bf90" >>>>>> 2018-05-24 02:03:25 CEST [3099-338784] freeswitch_user at freeswitch_db >>>>>> WARNING: there is already a transaction in progress >>>>>> 2018-05-24 02:03:25 CEST [3099-338785] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "DROP" at character 29 >>>>>> 2018-05-24 02:03:25 CEST [3099-338786] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as DROP TABLE registrations;EXECUTE >>>>>> "_PLAN0x140bf90" >>>>>> 2018-05-24 02:03:25 CEST [3099-338787] freeswitch_user at freeswitch_db >>>>>> WARNING: there is already a transaction in progress >>>>>> 2018-05-24 02:03:25 CEST [3099-338788] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "CREATE" at character 29 >>>>>> 2018-05-24 02:03:25 CEST [3099-338789] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE registrations ( >>>>>> reg_user VARCHAR(256), >>>>>> realm VARCHAR(256), >>>>>> token VARCHAR(256), >>>>>> url TEXT, >>>>>> expires INTEGER, >>>>>> network_ip VARCHAR(256), >>>>>> network_port VARCHAR(256), >>>>>> network_proto VARCHAR(256), >>>>>> hostname VARCHAR(256), >>>>>> metadata VARCHAR(256) >>>>>> ); >>>>>> ;EXECUTE "_PLAN0x140bf90" >>>>>> 2018-05-24 02:03:25 CEST [3099-338790] freeswitch_user at freeswitch_db >>>>>> WARNING: there is already a transaction in progress >>>>>> 2018-05-24 02:03:25 CEST [3099-338791] freeswitch_user at freeswitch_db >>>>>> LOG: unexpected EOF on client connection with an open transaction >>>>>> >>>>>> >>>>>> I tested with tables in psql database and without tables in psql >>>>>> database. >>>>>> >>>>>> freeswitch at freeswitch-capa8> version >>>>>> FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git >>>>>> 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>>> >>>>>> As I told in last mail, I'm working with last git version. >>>>>> >>>>>> Then I have a last question, related to that (db), when it will work, >>>>>> all mods will save the information to pgsql or a mix some to sqlite and >>>>>> some to pgsql? I saw in other files the availibility to configure also db, >>>>>> like /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>>>> >>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# cat >>>>>> /usr/local/freeswitch/conf/sip_profiles/internal.xml |grep db >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> The config you see in the mail is the last configuration I defined. >>>>>> Yesterday I get lost with wich config work or wich one no... >>>>>> >>>>>> I feel I'm almost at end of this installation! I'm doing a step by >>>>>> step manual in spanish to how to install last version of freeswitch, this >>>>>> will be public and if you want I could upload to wiki. >>>>>> >>>>>> Thanks you much for your help :) >>>>>> >>>>>> References: >>>>>> https://freeswitch.org/confluence/display/FREESWITCH/Postgre >>>>>> SQL+in+the+core >>>>>> https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN >>>>>> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWI >>>>>> TCH+Databases >>>>>> >>>>>> >>>>>> >>>>>> - Blackhold >>>>>> http://blackhold.nusepas.com >>>>>> @blackhold_ >>>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>>> <°((( >< >>>>>> >>>>>> 2018-05-24 18:21 GMT+02:00 Michael Jerris : >>>>>> >>>>>>> what tables are ending up in the recreated sqlite db? You need to >>>>>>> set it for the modules that use sqlite too (like for mod_sofia). we have a >>>>>>> global var for this in default configs. >>>>>>> >>>>>>> > On May 23, 2018, at 6:13 PM, Blackhold >>>>>>> wrote: >>>>>>> > >>>>>>> > Hi, >>>>>>> > I have just installed freeswitch 1.9 >>>>>>> > >>>>>>> > freeswitch at freeswitch-capa8> version >>>>>>> > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit >>>>>>> (git 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>>>> > >>>>>>> > And I'm trying to freeswitch use postgresql instead sqlitedb. >>>>>>> > >>>>>>> > I have configured the file switch.conf.xml of >>>>>>> /usr/local/freeswitch/conf/autoload_configs with uncomenting and >>>>>>> configuring this line >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > then I exported all sqlitedbs to sql and then imported to a >>>>>>> database that I have created in postgresql >>>>>>> > >>>>>>> > I have run again /etc/init.d/freeswitch.sh start >>>>>>> > >>>>>>> > But seems it still is taking sqlitedb. >>>>>>> > >>>>>>> > I tried to move the sqlitedbs files to other side and turned on >>>>>>> again freeswitch, but it creates sqlitedbs again. >>>>>>> > >>>>>>> > What I'm missing? what I'm doing wrong? what could I check? >>>>>>> >>>>>>> >>>>>>> ____________________________________________________________ >>>>>>> _____________ >>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>> consulting at freeswitch.org >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> http://confluence.freeswitch.org >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>>> switch-users >>>>>>> http://www.freeswitch.org >>>>>> >>>>>> >>>>>> ____________________________________________________________ >>>>>> _____________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>> switch-users >>>>>> http://www.freeswitch.org >>>>>> >>>>>> >>>>>> >>>>>> ____________________________________________________________ >>>>>> _____________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>> switch-users >>>>>> http://www.freeswitch.org >>>>>> >>>>> >>>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>> switch-users >>>> http://www.freeswitch.org >>>> >>>> >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>> switch-users >>>> http://www.freeswitch.org >>>> >>> >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>> >>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>> >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >> >> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >> >> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com > > Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com > > FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From raimundo.perez.cuba at gmail.com Thu May 24 22:36:57 2018 From: raimundo.perez.cuba at gmail.com (=?utf-8?Q?Raimundo_P=C3=A9rez_Nieves?=) Date: Fri, 25 May 2018 00:36:57 +0200 Subject: [Freeswitch-users] Bye does not hangup Message-ID: <8280EF9E-A19F-445C-818C-A22E9D3170B3@gmail.com> Hi, I have this particular problem. When I turn on sip trace global, I get a bye from legB but it does not hangup the call, how can I capture this bye and hangup. I attach sip trace Thanks -------------- next part -------------- A non-text attachment was scrubbed... Name: SipTrace.rtf Type: text/rtf Size: 15662 bytes Desc: not available URL: From infos at madovsky.org Thu May 24 22:43:27 2018 From: infos at madovsky.org (Madovsky) Date: Thu, 24 May 2018 15:43:27 -0700 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> Message-ID: <6f187dfd-449c-9ab1-4132-d38d8c2cf08a@madovsky.org> are you sure you are using the proper sip profile which use pgsql:// ? On 5/24/2018 3:20 PM, Blackhold wrote: > it seems nothing... yes tells something, but no one error, it seems > all modules are loaded ok. > > > 2018-05-24 22:58:20.552211 [INFO] sofia.c:5987 Setting MAX Auth > Validity to 0 Attempts > > 2018-05-24 22:58:20.557248 [INFO] switch_core_sqldb.c:1693 > sofia:external Starting SQL thread. > > 2018-05-24 22:58:20.562295 [NOTICE] sofia.c:4172 Adding Alias > [10.90.226.83] for profile [internal] > 2018-05-24 22:58:20.562424 [WARNING] sofia.c:2285 MSG Thread 0 Started > > 2018-05-24 22:58:22.059111 [CONSOLE] switch_loadable_module.c:1540 > Successfully Loaded [mod_db] > 2018-05-24 22:58:22.059118 [NOTICE] switch_loadable_module.c:292 > Adding Application 'db' > 2018-05-24 22:58:22.059128 [NOTICE] switch_loadable_module.c:292 > Adding Application 'group' > 2018-05-24 22:58:22.059137 [NOTICE] switch_loadable_module.c:338 > Adding API Function 'db' > 2018-05-24 22:58:22.059146 [NOTICE] switch_loadable_module.c:338 > Adding API Function 'group' > 2018-05-24 22:58:22.059154 [NOTICE] switch_loadable_module.c:556 > Adding Limit interface 'db' > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra > nosaltres mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-24 23:23 GMT+02:00 Madovsky >: > > and anything in FS logs? > > On 5/24/2018 1:59 PM, Blackhold wrote: >> done, restarted psql and turned on freeswitch, nothing in psql >> log files, no tables where created. >> >> using psql conector >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-24 22:41 GMT+02:00 Madovsky > >: >> >> remove these 2 lines >> >> local   all             postgres                   peer >> >> local   all             all                    peer >> >> and replace with >> >> local   all all  trust >> >> in your pg_hba.conf >> >> >> On 5/24/2018 1:26 PM, Blackhold wrote: >>> Hi, >>> >>> I'm trying both ways, switching between one and the other... >>> I initially want to use psql directly, not using odbc, but >>> when using directly I get less info, well... logs files >>> don't say nothing :( if the correct way is to use that: >>> >>> >>> >>> so then, I only will use that, and the problem is my system, >>> not freeswitch. >>> >>> odbc configuration is an old odbc configuration that I used >>> some time ago when I had to use it... so... for actual psql >>> db wich version is the ok?! >>> >>> Here you have the versions of libraries I have: >>> >>> # debian 8 fresh install (x86_64) >>> >>> root at freeswitch-capa8:~# cat /etc/debian_version >>> 8.10 >>> root at freeswitch-capa8:~# dpkg -l |grep postgresql >>> ii  odbc-postgresql:amd64    1:09.03.0300-1  amd64        >>> ODBC driver for PostgreSQL >>> ii  postgresql   9.4+165+deb8u3  all          >>> object-relational SQL database (supported version) >>> ii  postgresql-9.4   9.4.15-0+deb8u1 amd64        >>> object-relational SQL database, version 9.4 server >>> ii  postgresql-client    9.4+165+deb8u3  all          >>> front-end programs for PostgreSQL (supported version) >>> ii  postgresql-client-9.4    9.4.15-0+deb8u1 amd64        >>> front-end programs for PostgreSQL 9.4 >>> ii  postgresql-client-common   165+deb8u3  all          >>> manager for multiple PostgreSQL client versions >>> ii  postgresql-common    165+deb8u3  all          PostgreSQL >>> database-cluster manager >>> root at freeswitch-capa8:~# dpkg -l |grep libpq >>> ii  libpq-dev    9.4.15-0+deb8u1 amd64        header files >>> for libpq5 (PostgreSQL library) >>> ii  libpq5:amd64   9.4.15-0+deb8u1 amd64        PostgreSQL C >>> client library >>> >>> all these packages are downloaded from sources >>> >>> the lines enabled at pg_hba.conf are these (the debian >>> default ones) >>> >>> local   all             postgres                         peer >>> local   all             all                            peer >>> host    all             all 127.0.0.1/32 >>>           md5 >>> host    all             all    ::1/128                 md5 >>> >>> the script that I have used to do the installation is the >>> one located in source code >>> >>> root at freeswitch-capa8:/usr/src/freeswitch/scripts# ls -l >>> |grep raspbian-installer >>> -rwxr-xr-x 1 root root 7922 May 23 20:26 >>> FreeSWITCH-debian-raspbian-installer.sh >>> >>> >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i >>> contra nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-24 21:58 GMT+02:00 Madovsky >> >: >>> >>> First of all, pgsql:// does not use odbc, instead use >>> odbc:// to use odbc (btw your odbc.ini file shows >>> Protocol=6.4 (!?) are you using >>> >>> postgresql 6.x !??!) >>> >>> what version of postgresql are you using? compiled >>> yourself or from system package? >>> >>> check if there are not multiple versions of libpq.xx in >>> your system. >>> >>> check pg_hba.conf if localhost is on trust mode for all >>> local users. >>> >>> if you compiled yourself so be sure the right libpq.xx >>> have been chosen. >>> >>> On 5/24/2018 12:33 PM, Blackhold wrote: >>>> nope, it is not able to create stuff >>>> >>>> now I also have enabled that in switch.conf.xml >>>> >>>>     >>>>     >>>> >>>> tested with odbc and directly with psql and behaviour >>>> is the same. >>>> >>>> for psql the procedure I have followed is >>>> >>>> root at freeswitch-capa8:~# su - postgres >>>> root at freeswitch-capa8:~#postgres at freeswitch-capa8:~$ createuser >>>> freeswitch_user >>>> root at freeswitch-capa8:~#createdb -O freeswitch_user >>>> freeswitch_db >>>> root at freeswitch-capa8:~#psql freeswitch_db >>>> freeswitch_db=# ALTER USER freeswitch_user WITH >>>> PASSWORD 'XXX'; >>>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL TABLES IN >>>> SCHEMA public TO freeswitch_user; >>>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL SEQUENCES >>>> IN SCHEMA public TO freeswitch_user; >>>> >>>> the most beatiful was with odbc + tables created... in >>>> the last mail... freeswitch turned on, in other ways >>>> freeswitch doesn't turns on. >>>> >>>> logs doesn't talk about permissions.... >>>> >>>> >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser febles, >>>> i contra nosaltres mateixos quan siguem forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-24 21:20 GMT+02:00 Michael Jerris >>>> >: >>>> >>>> you shouldn't need to pre-import the tables, if the >>>> permissions are right, it should create the tables >>>> and indexes for you. >>>> >>>> >>>>> On May 24, 2018, at 3:15 PM, Blackhold >>>>> >>>> > wrote: >>>>> >>>>> I continue with tests >>>>> >>>>> I think I know wich problem I had with errors >>>>> >>>>> I have missed to grant privileges in psql: >>>>> >>>>> GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA >>>>> public TO freeswitch_user; >>>>> GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA >>>>> public TO freeswitch_user; >>>>> >>>>> # with tables imported from sqlite it shows >>>>> (freeswitch runs) >>>>> >>>>> root at freeswitch-capa8:/var/log/postgresql# tail -f >>>>> postgresql-9.4-main.log >>>>> >>>>> 2018-05-24 21:03:34 CEST [8623-1] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-2] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index recovery1 on >>>>> recovery(technology);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-3] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-4] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index recovery2 on >>>>> recovery(profile_name);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-5] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-6] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index recovery3 on >>>>> recovery(uuid);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-7] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-8] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index recovery3 on >>>>> recovery(runtime_uuid);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-9] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-10] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index alias1 on aliases >>>>> (alias);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-11] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-12] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index tasks1 on tasks >>>>> (hostname,task_id);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-13] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-14] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index complete1 on >>>>> complete (a1,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-15] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-16] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index complete2 on >>>>> complete (a2,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-17] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-18] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index complete3 on >>>>> complete (a3,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-19] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-20] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index complete4 on >>>>> complete (a4,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-21] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-22] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index complete5 on >>>>> complete (a5,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-23] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-24] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index complete6 on >>>>> complete (a6,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-25] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-26] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index complete7 on >>>>> complete (a7,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-27] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-28] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index complete8 on >>>>> complete (a8,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-29] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-30] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index complete9 on >>>>> complete (a9,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-31] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-32] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index complete10 on >>>>> complete (a10,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-33] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-34] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index complete11 on >>>>> complete >>>>> (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname);EXECUTE >>>>> "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-35] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-36] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index >>>>> nat_map_port_proto on nat >>>>> (port,proto,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-37] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-38] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index channels1 on >>>>> channels(hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-39] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-40] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index calls1 on >>>>> calls(hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-41] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-42] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index chidx1 on >>>>> channels (hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-43] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-44] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index uuindex on >>>>> channels (uuid, hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-45] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-46] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index uuindex2 on >>>>> channels (call_uuid);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-47] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-48] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index callsidx1 on >>>>> calls (hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-49] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-50] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index eruuindex on >>>>> calls (caller_uuid, hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-51] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-52] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index eeuuindex on >>>>> calls (callee_uuid);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-53] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-54] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index eeuuindex2 on >>>>> calls (call_uuid);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-55] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax error >>>>> at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-56] >>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>> "_PLAN0x123ff90" as create index regindex1 on >>>>> registrations (reg_user,realm,hostname);EXECUTE >>>>> "_PLAN0x123ff90" >>>>> >>>>> # with a clean database >>>>> >>>>> start dropping last errors, and don't create any >>>>> table in db. Freeswitch doesn't turns on. >>>>> >>>>> each time I stop freeswitch when it don't runs, it >>>>> keeps a process running that I have to kill manually >>>>> >>>>> root at freeswitch-capa8:/var/log/postgresql#  ps aux >>>>> |grep free >>>>> root 8706 39.6  0.7 141296 15244 ? S>>>>  1:13 /usr/local/freeswitch/bin/freeswitch -nc >>>>> >>>>> >>>>> # with granted permisions if I turn configuration >>>>> to not use odbc, using psql directly >>>>> >>>>> freeswitch turns on, there's no errors in psql log >>>>> file and no table was created on db. >>>>> >>>>> >>>>> >>>>> - Blackhold >>>>> http://blackhold.nusepas.com >>>>> >>>>> @blackhold_ >>>>> ~> cal lluitar contra el fort per deixar de ser >>>>> febles, i contra nosaltres mateixos quan siguem >>>>> forts (Xirinacs) >>>>> <°((( >< >>>>> >>>>> 2018-05-24 20:31 GMT+02:00 Blackhold >>>>> >>>> >: >>>>> >>>>> # OK for location of ODBC files >>>>> >>>>> # output freeswitch using psql (I only edited >>>>> switch.conf.xml file) >>>>> >>>> value="pgsql://hostaddr=127.0.0.1 >>>>> dbname=freeswitch_db user=freeswitch_user >>>>> password='XXX' options='-c >>>>> client_min_messages=NOTICE'" /> >>>>> (switch.conf.xml file) >>>>> >>>>> I see no errors related on logs (nor >>>>> freeswitch, nor psql -debug5-), obviously >>>>> restarted psql to reload config. >>>>> >>>>> in sofia.conf.xml file I found no option to >>>>> configure it pointing to database >>>>> no other config file, except switch.conf.xml >>>>> has configured database pointing >>>>> >>>>> I tried to configure db.conf.xml file, with >>>>> switch.conf.xml line but also do nothing >>>>> >>>>> # output freeswtich using odbc >>>>> >>>> value="freeswitch:freeswitch_user:XXX"/> >>>>> (switch.conf.xml file) >>>>> >>>>> these are the first lines of postgresql log file >>>>> >>>>> 2018-05-24 20:23:15 CEST [7518-7] LOG: >>>>> received fast shutdown request >>>>> 2018-05-24 20:23:15 CEST [7518-8] LOG: >>>>> aborting any active transactions >>>>> 2018-05-24 20:23:15 CEST [7548-2] LOG: >>>>> autovacuum launcher shutting down >>>>> 2018-05-24 20:23:15 CEST [7545-1] LOG: >>>>> shutting down >>>>> 2018-05-24 20:23:15 CEST [7545-2] LOG: >>>>> database system is shut down >>>>> 2018-05-24 20:23:16 CEST [7568-1] LOG: >>>>> database system was shut down at 2018-05-24 >>>>> 20:23:15 CEST >>>>> 2018-05-24 20:23:16 CEST [7568-2] LOG: >>>>> MultiXact member wraparound protections are >>>>> now enabled >>>>> 2018-05-24 20:23:16 CEST [7567-1] LOG: >>>>> database system is ready to accept connections >>>>> 2018-05-24 20:23:16 CEST [7572-1] LOG: >>>>> autovacuum launcher started >>>>> 2018-05-24 20:23:16 CEST [7574-1] >>>>> [unknown]@[unknown] LOG: incomplete startup packet >>>>> 2018-05-24 20:23:39 CEST [7596-1] >>>>> freeswitch_user at freeswitch_db ERROR: relation >>>>> "channels" does not exist at character 40 >>>>> 2018-05-24 20:23:39 CEST [7596-2] >>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>> PREPARE "_PLAN0x9f3f90" as delete from >>>>> channels where >>>>> hostname='freeswitch-capa8';EXECUTE >>>>> "_PLAN0x9f3f90" >>>>> 2018-05-24 20:23:39 CEST [7596-3] >>>>> freeswitch_user at freeswitch_db ERROR: relation >>>>> "calls" does not exist at character 40 >>>>> 2018-05-24 20:23:39 CEST [7596-4] >>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>> PREPARE "_PLAN0x9f3f90" as delete from calls >>>>> where hostname='freeswitch-capa8';EXECUTE >>>>> "_PLAN0x9f3f90" >>>>> 2018-05-24 20:23:39 CEST [7596-5] >>>>> freeswitch_user at freeswitch_db ERROR: relation >>>>> "tasks" does not exist at character 40 >>>>> 2018-05-24 20:23:39 CEST [7596-6] >>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>> PREPARE "_PLAN0x9f3f90" as delete from tasks >>>>> where hostname='freeswitch-capa8';EXECUTE >>>>> "_PLAN0x9f3f90" >>>>> 2018-05-24 20:23:39 CEST [7596-7] >>>>> freeswitch_user at freeswitch_db ERROR: relation >>>>> "aliases" does not exist at character 49 >>>>> 2018-05-24 20:23:39 CEST [7596-8] >>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>> PREPARE "_PLAN0x9f3f90" as select hostname >>>>> from aliases;EXECUTE "_PLAN0x9f3f90" >>>>> 2018-05-24 20:23:39 CEST [7596-9] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>> error at or near "DROP" at character 28 >>>>> 2018-05-24 20:23:39 CEST [7596-10] >>>>> freeswitch_user at freeswitch_db STATEMENT:  >>>>> PREPARE "_PLAN0x9f3f90" as DROP TABLE >>>>> aliases;EXECUTE "_PLAN0x9f3f90" >>>>> 2018-05-24 20:23:39 CEST [7596-11] >>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>> error at or near "CREATE" at character 28 >>>>> 2018-05-24 20:23:39 CEST [7596-12] >>>>> freeswitch_user at freeswitch_db STATEMENT:  >>>>> PREPARE "_PLAN0x9f3f90" as CREATE TABLE aliases ( >>>>>  sticky INTEGER, >>>>>  alias VARCHAR(128), >>>>>  command VARCHAR(4096), >>>>>  hostname VARCHAR(256) >>>>>       ); >>>>>       ;EXECUTE "_PLAN0x9f3f90" >>>>> >>>>> and now freeswitch isn't able to run. >>>>> >>>>> If I enable odbc trace in odbcinst.ini >>>>> >>>>> Trace=Yes >>>>> TraceFile=/var/log/odbctrace.log >>>>> >>>>> Also there's no output.... >>>>> >>>>> In freeswitch log also there's nothing about >>>>> what is happening :( >>>>> >>>>> >>>>> - Blackhold >>>>> http://blackhold.nusepas.com >>>>> >>>>> @blackhold_ >>>>> ~> cal lluitar contra el fort per deixar de >>>>> ser febles, i contra nosaltres mateixos quan >>>>> siguem forts (Xirinacs) >>>>> <°((( >< >>>>> >>>>> 2018-05-24 19:30 GMT+02:00 Michael Jerris >>>>> >: >>>>> >>>>> but that table layout is like that because >>>>> you imported the tables, i was asking what >>>>> is in the recreated sqlite ones. If it >>>>> fails to connect like you later describe, >>>>> its going to fall back, you should see >>>>> stuff in the fs logs on startup about >>>>> this.  the odbc configs go in the normal >>>>> place they go in the os, not in fs >>>>> specific dirs.  Those errors tell me >>>>> something is up, but not sure what, might >>>>> need to turn on some debug on pg side to >>>>> see.  some of our tests like to see if >>>>> table schema is right throw errors then we >>>>> act on them, if you restart a second time >>>>> you should get a more useful set of errors. >>>>> >>>>> >>>>>> On May 24, 2018, at 1:11 PM, Blackhold >>>>>> >>>>> > wrote: >>>>>> >>>>>> Hi, >>>>>> The tables are: >>>>>> >>>>>> ostgres at freeswitch-capa8:~/sql$ psql >>>>>> freeswitch_db >>>>>> freeswitch_db-# \dt >>>>>> >>>>>> List of relations >>>>>>  Schema |   Name          | Type  | Owner >>>>>> --------+-------------------------------------+-------+---------- >>>>>>  public | aliases        | table | postgres >>>>>>  public | calls        | table | postgres >>>>>>  public | channels         | table | postgres >>>>>>  public | complete         | table | postgres >>>>>>  public | db_data        | table | postgres >>>>>>  public | fifo_bridge        | table | >>>>>> postgres >>>>>>  public | fifo_callers         | table | >>>>>> postgres >>>>>>  public | fifo_outbound        | table | >>>>>> postgres >>>>>>  public | group_data         | table | >>>>>> postgres >>>>>>  public | interfaces         | table | >>>>>> postgres >>>>>>  public | json_store         | table | >>>>>> postgres >>>>>>  public | limit_data         | table | >>>>>> postgres >>>>>>  public | nat        | table | postgres >>>>>>  public | recovery         | table | postgres >>>>>>  public | registrations        | table | >>>>>> postgres >>>>>>  public | sip_authentication              >>>>>>     | table | postgres >>>>>>  public | sip_dialogs        | table | >>>>>> postgres >>>>>>  public | sip_presence         | table | >>>>>> postgres >>>>>>  public | sip_registrations              >>>>>>      | table | postgres >>>>>>  public | sip_shared_appearance_dialogs  >>>>>>      | table | postgres >>>>>>  public | >>>>>> sip_shared_appearance_subscriptions | >>>>>> table | postgres >>>>>>  public | sip_subscriptions              >>>>>>      | table | postgres >>>>>>  public | tasks        | table | postgres >>>>>>  public | voicemail_msgs                  >>>>>>     | table | postgres >>>>>>  public | voicemail_prefs                >>>>>>      | table | postgres >>>>>> (25 rows) >>>>>> >>>>>> I continued testing and found that if I >>>>>> configure switch.conf.xml file like this: >>>>>> >>>>>> >>>>> value="pgsql://hostaddr=127.0.0.1 >>>>>> dbname=freeswitch_db user=freeswitch_user >>>>>> password='****' options='-c >>>>>> client_min_messages=NOTICE'" /> >>>>>> >>>>>> When I turn on freeswitch, postgresql >>>>>> don't output nothing. Then I tried to >>>>>> configure freeswitch using odbc I then >>>>>> YES I get something in postgresql logs >>>>>> >>>>>> For odbc I have something not clear, it >>>>>> is mandatory to put files in >>>>>> /usr/local/freeswitch/etc ? or leaving >>>>>> them at default directory (/etc) is enough? >>>>>> >>>>>> Here I show the config of odbc files: >>>>>> root at freeswitch-capa8:/etc# cat odbc.ini >>>>>> [freeswitch] >>>>>> ; WARNING: The old psql odbc driver >>>>>> psqlodbc.so is now renamed psqlodbcw.so >>>>>> ; in version 08.x. Note that the library >>>>>> can also be installed under an other >>>>>> ; path than /usr/local/lib/ following >>>>>> your installation. >>>>>> ; Driver = /usr/lib64/odbc/psqlodbcw.so >>>>>> ; Driver = >>>>>> /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so >>>>>> Driver = >>>>>> /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>>> Description=Connection to LDAP/POSTGRESQL >>>>>> Servername=localhost >>>>>> Port=5432 >>>>>> Protocol=6.4 >>>>>> FetchBufferSize=99 >>>>>> Username=freeswitch_user >>>>>> Password=XXX >>>>>> Database=freeswitch_db >>>>>> ReadOnly=no >>>>>> Debug=0 >>>>>> CommLog=0 >>>>>> >>>>>> root at freeswitch-capa8:/etc# cat odbcinst.ini >>>>>> [PostgreSQL] >>>>>> Description = PostgreSQL driver for Linux >>>>>> & Win32 >>>>>> ;Driver = /usr/lib64/odbc/psqlodbcw.so >>>>>> Driver = >>>>>> /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>>> Threading = 0 >>>>>> MaxLongVarcharSize=65536 >>>>>> >>>>>> And then connect to psql through odbc >>>>>> >>>>>> root at freeswitch-capa8:/etc# isql -v >>>>>> freeswitch >>>>>> +---------------------------------------+ >>>>>> | Connected!           | >>>>>> |    | >>>>>> | sql-statement          | >>>>>> | help [tablename]     | >>>>>> | quit   | >>>>>> |    | >>>>>> +---------------------------------------+ >>>>>> SQL> >>>>>> >>>>>> Then in file switch.conf.xml I changed db >>>>>> connection configuration >>>>>> >>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# >>>>>> cat switch.conf.xml |grep core-db-dsn >>>>>> >>>>> value="pgsql://hostaddr=127.0.0.1 >>>>>> dbname=freeswitch_db user=freeswitch_user >>>>>> password='XXX' options='-c >>>>>> client_min_messages=NOTICE'" /> >>>>>> >>>>>> >>>>>> Last night SwK user at freenode channel >>>>>> told me that freeswitch on turning on, it >>>>>> creates tables at database (thanks SwK). >>>>>> >>>>>> I spect that configuration of odbc is >>>>>> working but drops lot of errors (here you >>>>>> have some lines): >>>>>> >>>>>> 2018-05-24 02:03:25 CEST [3099-338780] >>>>>> freeswitch_user at freeswitch_db STATEMENT:  >>>>>> PREPARE "_PLAN0x140bf90" as CREATE TABLE >>>>>> nat ( >>>>>>  sticky INTEGER, >>>>>> portINTEGER, >>>>>> protoINTEGER, >>>>>>  hostname VARCHAR(256) >>>>>> ); >>>>>> ;EXECUTE "_PLAN0x140bf90" >>>>>> 2018-05-24 02:03:25 CEST [3099-338781] >>>>>> freeswitch_user at freeswitch_db WARNING:  >>>>>> there is already a transaction in progress >>>>>> 2018-05-24 02:03:25 CEST [3099-338782] >>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>> relation "registrations" does not exist >>>>>> at character 41 >>>>>> 2018-05-24 02:03:25 CEST [3099-338783] >>>>>> freeswitch_user at freeswitch_db STATEMENT:  >>>>>> PREPARE "_PLAN0x140bf90" as delete from >>>>>> registrations where reg_user='';EXECUTE >>>>>> "_PLAN0x140bf90" >>>>>> 2018-05-24 02:03:25 CEST [3099-338784] >>>>>> freeswitch_user at freeswitch_db WARNING:  >>>>>> there is already a transaction in progress >>>>>> 2018-05-24 02:03:25 CEST [3099-338785] >>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>> syntax error at or near "DROP" at >>>>>> character 29 >>>>>> 2018-05-24 02:03:25 CEST [3099-338786] >>>>>> freeswitch_user at freeswitch_db STATEMENT:  >>>>>> PREPARE "_PLAN0x140bf90" as DROP TABLE >>>>>> registrations;EXECUTE "_PLAN0x140bf90" >>>>>> 2018-05-24 02:03:25 CEST [3099-338787] >>>>>> freeswitch_user at freeswitch_db WARNING:  >>>>>> there is already a transaction in progress >>>>>> 2018-05-24 02:03:25 CEST [3099-338788] >>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>> syntax error at or near "CREATE" at >>>>>> character 29 >>>>>> 2018-05-24 02:03:25 CEST [3099-338789] >>>>>> freeswitch_user at freeswitch_db STATEMENT:  >>>>>> PREPARE "_PLAN0x140bf90" as CREATE TABLE >>>>>> registrations ( >>>>>>  reg_user VARCHAR(256), >>>>>>  realm  VARCHAR(256), >>>>>>  token  VARCHAR(256), >>>>>>  url TEXT, >>>>>>  expires INTEGER, >>>>>>  network_ip VARCHAR(256), >>>>>>  network_port VARCHAR(256), >>>>>>  network_proto VARCHAR(256), >>>>>>  hostname VARCHAR(256), >>>>>>  metadata VARCHAR(256) >>>>>> ); >>>>>> ;EXECUTE "_PLAN0x140bf90" >>>>>> 2018-05-24 02:03:25 CEST [3099-338790] >>>>>> freeswitch_user at freeswitch_db WARNING:  >>>>>> there is already a transaction in progress >>>>>> 2018-05-24 02:03:25 CEST [3099-338791] >>>>>> freeswitch_user at freeswitch_db LOG:  >>>>>> unexpected EOF on client connection with >>>>>> an open transaction >>>>>> >>>>>> >>>>>> I tested with tables in psql database and >>>>>> without tables in psql database. >>>>>> >>>>>> freeswitch at freeswitch-capa8> version >>>>>> FreeSWITCH Version >>>>>> 1.9.0+git~20180516T211208Z~3c7db639fd~64bit >>>>>> (git 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>>> >>>>>> As I told in last mail, I'm working with >>>>>> last git version. >>>>>> >>>>>> Then I have a last question, related to >>>>>> that (db), when it will work, all mods >>>>>> will save the information to pgsql or a >>>>>> mix some to sqlite and some to pgsql? I >>>>>> saw in other files the availibility to >>>>>> configure also db, like >>>>>> /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>>>> >>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# >>>>>> cat >>>>>> /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>>>> |grep db >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> value="$${domain}"/> >>>>>> >>>>>> The config you see in the mail is the >>>>>> last configuration I defined. Yesterday I >>>>>> get lost with wich config work or wich >>>>>> one no... >>>>>> >>>>>> I feel I'm almost at end of this >>>>>> installation! I'm doing a step by step >>>>>> manual in spanish to how to install last >>>>>> version of freeswitch, this will be >>>>>> public and if you want I could upload to >>>>>> wiki. >>>>>> >>>>>> Thanks you much for your help :) >>>>>> >>>>>> References: >>>>>> https://freeswitch.org/confluence/display/FREESWITCH/PostgreSQL+in+the+core >>>>>> >>>>>> https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN >>>>>> >>>>>> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+Databases >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> - Blackhold >>>>>> http://blackhold.nusepas.com >>>>>> >>>>>> @blackhold_ >>>>>> ~> cal lluitar contra el fort per deixar >>>>>> de ser febles, i contra nosaltres >>>>>> mateixos quan siguem forts (Xirinacs) >>>>>> <°((( >< >>>>>> >>>>>> 2018-05-24 18:21 GMT+02:00 Michael Jerris >>>>>> >: >>>>>> >>>>>> what tables are ending up in the >>>>>> recreated sqlite db? You need to set >>>>>> it for the modules that use sqlite >>>>>> too (like for mod_sofia). we have a >>>>>> global var for this in default configs. >>>>>> >>>>>> > On May 23, 2018, at 6:13 PM, >>>>>> Blackhold >>>>> > >>>>>> wrote: >>>>>> > >>>>>> > Hi, >>>>>> > I have just installed freeswitch 1.9 >>>>>> > >>>>>> > freeswitch at freeswitch-capa8> version >>>>>> > FreeSWITCH Version >>>>>> 1.9.0+git~20180516T211208Z~3c7db639fd~64bit >>>>>> (git 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>>> > >>>>>> > And I'm trying to freeswitch use >>>>>> postgresql instead sqlitedb. >>>>>> > >>>>>> > I have configured the file >>>>>> switch.conf.xml of >>>>>> /usr/local/freeswitch/conf/autoload_configs >>>>>> with uncomenting and configuring this >>>>>> line >>>>>> > >>>>>> >  >>>>> value="pgsql://hostaddr=127.0.0.1 >>>>>> dbname=freeswitch_db >>>>>> user=freeswitch_user password='****' >>>>>> options='-c >>>>>> client_min_messages=NOTICE'" /> >>>>>> > >>>>>> > then I exported all sqlitedbs to >>>>>> sql and then imported to a database >>>>>> that I have created in postgresql >>>>>> > >>>>>> > I have run again >>>>>> /etc/init.d/freeswitch.sh start >>>>>> > >>>>>> > But seems it still is taking sqlitedb. >>>>>> > >>>>>> > I tried to move the sqlitedbs files >>>>>> to other side and turned on again >>>>>> freeswitch, but it creates sqlitedbs >>>>>> again. >>>>>> > >>>>>> > What I'm missing? what I'm doing >>>>>> wrong? what could I check? >>>>>> >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting >>>>>> Services: >>>>>> consulting at freeswitch.org >>>>>> >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> >>>>>> http://confluence.freeswitch.org >>>>>> >>>>>> http://www.cluecon.com >>>>>> >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>> >>>>>> http://www.freeswitch.org >>>>>> >>>>>> >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> >>>>>> http://confluence.freeswitch.org >>>>>> >>>>>> http://www.cluecon.com >>>>>> >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>> >>>>>> http://www.freeswitch.org >>>>>> >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> >>>>> http://confluence.freeswitch.org >>>>> >>>>> http://www.cluecon.com >>>>> >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>> >>>>> http://www.freeswitch.org >>>>> >>>>> >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>> >>>>> http://www.freeswitch.org >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> >>>> http://www.freeswitchsolutions.com >>>> >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> >>>> http://www.freeswitch.org >>>> >>>> >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> >>>> http://www.freeswitchsolutions.com >>>> >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> >>>> http://www.freeswitch.org >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> >>> http://www.freeswitch.org >>> >>> >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> >>> http://www.freeswitch.org >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Thu May 24 22:49:23 2018 From: mike at jerris.com (Michael Jerris) Date: Thu, 24 May 2018 18:49:23 -0400 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> Message-ID: <9D0F3A5D-3E12-465A-940A-736BD42E28E7@jerris.com> This set of logs is after it attaches to the db and creates the tables. > On May 24, 2018, at 6:20 PM, Blackhold wrote: > > it seems nothing... yes tells something, but no one error, it seems all modules are loaded ok. > > > 2018-05-24 22:58:20.552211 [INFO] sofia.c:5987 Setting MAX Auth Validity to 0 Attempts > > 2018-05-24 22:58:20.557248 [INFO] switch_core_sqldb.c:1693 sofia:external Starting SQL thread. > > 2018-05-24 22:58:20.562295 [NOTICE] sofia.c:4172 Adding Alias [10.90.226.83] for profile [internal] > 2018-05-24 22:58:20.562424 [WARNING] sofia.c:2285 MSG Thread 0 Started > > 2018-05-24 22:58:22.059111 [CONSOLE] switch_loadable_module.c:1540 Successfully Loaded [mod_db] > 2018-05-24 22:58:22.059118 [NOTICE] switch_loadable_module.c:292 Adding Application 'db' > 2018-05-24 22:58:22.059128 [NOTICE] switch_loadable_module.c:292 Adding Application 'group' > 2018-05-24 22:58:22.059137 [NOTICE] switch_loadable_module.c:338 Adding API Function 'db' > 2018-05-24 22:58:22.059146 [NOTICE] switch_loadable_module.c:338 Adding API Function 'group' > 2018-05-24 22:58:22.059154 [NOTICE] switch_loadable_module.c:556 Adding Limit interface 'db' > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-24 23:23 GMT+02:00 Madovsky >: > and anything in FS logs? > > On 5/24/2018 1:59 PM, Blackhold wrote: >> done, restarted psql and turned on freeswitch, nothing in psql log files, no tables where created. >> >> using psql conector >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-24 22:41 GMT+02:00 Madovsky >: >> remove these 2 lines >> local all postgres peer >> local all all peer >> and replace with >> local all all trust >> >> in your pg_hba.conf >> >> >> On 5/24/2018 1:26 PM, Blackhold wrote: >>> Hi, >>> >>> I'm trying both ways, switching between one and the other... I initially want to use psql directly, not using odbc, but when using directly I get less info, well... logs files don't say nothing :( if the correct way is to use that: >>> >>> >>> >>> so then, I only will use that, and the problem is my system, not freeswitch. >>> >>> odbc configuration is an old odbc configuration that I used some time ago when I had to use it... so... for actual psql db wich version is the ok?! >>> >>> Here you have the versions of libraries I have: >>> >>> # debian 8 fresh install (x86_64) >>> >>> root at freeswitch-capa8:~# cat /etc/debian_version >>> 8.10 >>> root at freeswitch-capa8:~# dpkg -l |grep postgresql >>> ii odbc-postgresql:amd64 1:09.03.0300-1 amd64 ODBC driver for PostgreSQL >>> ii postgresql 9.4+165+deb8u3 all object-relational SQL database (supported version) >>> ii postgresql-9.4 9.4.15-0+deb8u1 amd64 object-relational SQL database, version 9.4 server >>> ii postgresql-client 9.4+165+deb8u3 all front-end programs for PostgreSQL (supported version) >>> ii postgresql-client-9.4 9.4.15-0+deb8u1 amd64 front-end programs for PostgreSQL 9.4 >>> ii postgresql-client-common 165+deb8u3 all manager for multiple PostgreSQL client versions >>> ii postgresql-common 165+deb8u3 all PostgreSQL database-cluster manager >>> root at freeswitch-capa8:~# dpkg -l |grep libpq >>> ii libpq-dev 9.4.15-0+deb8u1 amd64 header files for libpq5 (PostgreSQL library) >>> ii libpq5:amd64 9.4.15-0+deb8u1 amd64 PostgreSQL C client library >>> >>> all these packages are downloaded from sources >>> >>> the lines enabled at pg_hba.conf are these (the debian default ones) >>> >>> local all postgres peer >>> local all all peer >>> host all all 127.0.0.1/32 md5 >>> host all all ::1/128 md5 >>> >>> the script that I have used to do the installation is the one located in source code >>> >>> root at freeswitch-capa8:/usr/src/freeswitch/scripts# ls -l |grep raspbian-installer >>> -rwxr-xr-x 1 root root 7922 May 23 20:26 FreeSWITCH-debian-raspbian-installer.sh >>> >>> >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-24 21:58 GMT+02:00 Madovsky >: >>> First of all, pgsql:// does not use odbc, instead use odbc:// to use odbc (btw your odbc.ini file shows Protocol=6.4 (!?) are you using >>> >>> postgresql 6.x !??!) >>> >>> what version of postgresql are you using? compiled yourself or from system package? >>> >>> check if there are not multiple versions of libpq.xx in your system. >>> >>> check pg_hba.conf if localhost is on trust mode for all local users. >>> >>> if you compiled yourself so be sure the right libpq.xx have been chosen. >>> On 5/24/2018 12:33 PM, Blackhold wrote: >>>> nope, it is not able to create stuff >>>> >>>> now I also have enabled that in switch.conf.xml >>>> >>>> >>>> >>>> >>>> tested with odbc and directly with psql and behaviour is the same. >>>> >>>> for psql the procedure I have followed is >>>> >>>> root at freeswitch-capa8:~# su - postgres >>>> root at freeswitch-capa8:~# postgres at freeswitch-capa8:~$ createuser freeswitch_user >>>> root at freeswitch-capa8:~# createdb -O freeswitch_user freeswitch_db >>>> root at freeswitch-capa8:~# psql freeswitch_db >>>> freeswitch_db=# ALTER USER freeswitch_user WITH PASSWORD 'XXX'; >>>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO freeswitch_user; >>>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO freeswitch_user; >>>> >>>> the most beatiful was with odbc + tables created... in the last mail... freeswitch turned on, in other ways freeswitch doesn't turns on. >>>> >>>> logs doesn't talk about permissions.... >>>> >>>> >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-24 21:20 GMT+02:00 Michael Jerris >: >>>> you shouldn't need to pre-import the tables, if the permissions are right, it should create the tables and indexes for you. >>>> >>>> >>>>> On May 24, 2018, at 3:15 PM, Blackhold > wrote: >>>>> >>>>> I continue with tests >>>>> >>>>> I think I know wich problem I had with errors >>>>> >>>>> I have missed to grant privileges in psql: >>>>> >>>>> GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO freeswitch_user; >>>>> GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO freeswitch_user; >>>>> >>>>> # with tables imported from sqlite it shows (freeswitch runs) >>>>> >>>>> root at freeswitch-capa8:/var/log/postgresql# tail -f postgresql-9.4-main.log >>>>> >>>>> 2018-05-24 21:03:34 CEST [8623-1] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-2] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery1 on recovery(technology);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-3] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-4] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery2 on recovery(profile_name);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-5] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-6] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on recovery(uuid);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-7] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-8] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on recovery(runtime_uuid);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-9] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-10] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index alias1 on aliases (alias);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-11] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-12] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index tasks1 on tasks (hostname,task_id);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-13] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-14] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete1 on complete (a1,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-15] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-16] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete2 on complete (a2,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-17] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-18] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete3 on complete (a3,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-19] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-20] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete4 on complete (a4,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-21] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-22] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete5 on complete (a5,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-23] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-24] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete6 on complete (a6,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-25] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-26] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete7 on complete (a7,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-27] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-28] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete8 on complete (a8,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-29] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-30] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete9 on complete (a9,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-31] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-32] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete10 on complete (a10,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-33] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-34] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete11 on complete (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-35] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-36] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index nat_map_port_proto on nat (port,proto,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-37] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-38] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index channels1 on channels(hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-39] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-40] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index calls1 on calls(hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-41] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-42] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index chidx1 on channels (hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-43] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-44] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex on channels (uuid, hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-45] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-46] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex2 on channels (call_uuid);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-47] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-48] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index callsidx1 on calls (hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-49] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-50] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index eruuindex on calls (caller_uuid, hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-51] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-52] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex on calls (callee_uuid);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-53] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-54] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex2 on calls (call_uuid);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-55] freeswitch_user at freeswitch_db ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-56] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x123ff90" as create index regindex1 on registrations (reg_user,realm,hostname);EXECUTE "_PLAN0x123ff90" >>>>> >>>>> # with a clean database >>>>> >>>>> start dropping last errors, and don't create any table in db. Freeswitch doesn't turns on. >>>>> >>>>> each time I stop freeswitch when it don't runs, it keeps a process running that I have to kill manually >>>>> >>>>> root at freeswitch-capa8:/var/log/postgresql# ps aux |grep free >>>>> root 8706 39.6 0.7 141296 15244 ? S>>>> >>>>> >>>>> # with granted permisions if I turn configuration to not use odbc, using psql directly >>>>> >>>>> freeswitch turns on, there's no errors in psql log file and no table was created on db. >>>>> >>>>> >>>>> >>>>> - Blackhold >>>>> http://blackhold.nusepas.com >>>>> @blackhold_ >>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) >>>>> <°((( >< >>>>> >>>>> 2018-05-24 20:31 GMT+02:00 Blackhold >: >>>>> # OK for location of ODBC files >>>>> >>>>> # output freeswitch using psql (I only edited switch.conf.xml file) >>>>> (switch.conf.xml file) >>>>> >>>>> I see no errors related on logs (nor freeswitch, nor psql -debug5-), obviously restarted psql to reload config. >>>>> >>>>> in sofia.conf.xml file I found no option to configure it pointing to database >>>>> no other config file, except switch.conf.xml has configured database pointing >>>>> >>>>> I tried to configure db.conf.xml file, with switch.conf.xml line but also do nothing >>>>> >>>>> # output freeswtich using odbc >>>>> (switch.conf.xml file) >>>>> >>>>> these are the first lines of postgresql log file >>>>> >>>>> 2018-05-24 20:23:15 CEST [7518-7] LOG: received fast shutdown request >>>>> 2018-05-24 20:23:15 CEST [7518-8] LOG: aborting any active transactions >>>>> 2018-05-24 20:23:15 CEST [7548-2] LOG: autovacuum launcher shutting down >>>>> 2018-05-24 20:23:15 CEST [7545-1] LOG: shutting down >>>>> 2018-05-24 20:23:15 CEST [7545-2] LOG: database system is shut down >>>>> 2018-05-24 20:23:16 CEST [7568-1] LOG: database system was shut down at 2018-05-24 20:23:15 CEST >>>>> 2018-05-24 20:23:16 CEST [7568-2] LOG: MultiXact member wraparound protections are now enabled >>>>> 2018-05-24 20:23:16 CEST [7567-1] LOG: database system is ready to accept connections >>>>> 2018-05-24 20:23:16 CEST [7572-1] LOG: autovacuum launcher started >>>>> 2018-05-24 20:23:16 CEST [7574-1] [unknown]@[unknown] LOG: incomplete startup packet >>>>> 2018-05-24 20:23:39 CEST [7596-1] freeswitch_user at freeswitch_db ERROR: relation "channels" does not exist at character 40 >>>>> 2018-05-24 20:23:39 CEST [7596-2] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from channels where hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>>> 2018-05-24 20:23:39 CEST [7596-3] freeswitch_user at freeswitch_db ERROR: relation "calls" does not exist at character 40 >>>>> 2018-05-24 20:23:39 CEST [7596-4] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from calls where hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>>> 2018-05-24 20:23:39 CEST [7596-5] freeswitch_user at freeswitch_db ERROR: relation "tasks" does not exist at character 40 >>>>> 2018-05-24 20:23:39 CEST [7596-6] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from tasks where hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>>> 2018-05-24 20:23:39 CEST [7596-7] freeswitch_user at freeswitch_db ERROR: relation "aliases" does not exist at character 49 >>>>> 2018-05-24 20:23:39 CEST [7596-8] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as select hostname from aliases;EXECUTE "_PLAN0x9f3f90" >>>>> 2018-05-24 20:23:39 CEST [7596-9] freeswitch_user at freeswitch_db ERROR: syntax error at or near "DROP" at character 28 >>>>> 2018-05-24 20:23:39 CEST [7596-10] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as DROP TABLE aliases;EXECUTE "_PLAN0x9f3f90" >>>>> 2018-05-24 20:23:39 CEST [7596-11] freeswitch_user at freeswitch_db ERROR: syntax error at or near "CREATE" at character 28 >>>>> 2018-05-24 20:23:39 CEST [7596-12] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x9f3f90" as CREATE TABLE aliases ( >>>>> sticky INTEGER, >>>>> alias VARCHAR(128), >>>>> command VARCHAR(4096), >>>>> hostname VARCHAR(256) >>>>> ); >>>>> ;EXECUTE "_PLAN0x9f3f90" >>>>> >>>>> and now freeswitch isn't able to run. >>>>> >>>>> If I enable odbc trace in odbcinst.ini >>>>> >>>>> Trace=Yes >>>>> TraceFile=/var/log/odbctrace.log >>>>> >>>>> Also there's no output.... >>>>> >>>>> In freeswitch log also there's nothing about what is happening :( >>>>> >>>>> >>>>> - Blackhold >>>>> http://blackhold.nusepas.com >>>>> @blackhold_ >>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) >>>>> <°((( >< >>>>> >>>>> 2018-05-24 19:30 GMT+02:00 Michael Jerris >: >>>>> but that table layout is like that because you imported the tables, i was asking what is in the recreated sqlite ones. If it fails to connect like you later describe, its going to fall back, you should see stuff in the fs logs on startup about this. the odbc configs go in the normal place they go in the os, not in fs specific dirs. Those errors tell me something is up, but not sure what, might need to turn on some debug on pg side to see. some of our tests like to see if table schema is right throw errors then we act on them, if you restart a second time you should get a more useful set of errors. >>>>> >>>>> >>>>>> On May 24, 2018, at 1:11 PM, Blackhold > wrote: >>>>>> >>>>>> Hi, >>>>>> The tables are: >>>>>> >>>>>> ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db >>>>>> freeswitch_db-# \dt >>>>>> >>>>>> List of relations >>>>>> Schema | Name | Type | Owner >>>>>> --------+-------------------------------------+-------+---------- >>>>>> public | aliases | table | postgres >>>>>> public | calls | table | postgres >>>>>> public | channels | table | postgres >>>>>> public | complete | table | postgres >>>>>> public | db_data | table | postgres >>>>>> public | fifo_bridge | table | postgres >>>>>> public | fifo_callers | table | postgres >>>>>> public | fifo_outbound | table | postgres >>>>>> public | group_data | table | postgres >>>>>> public | interfaces | table | postgres >>>>>> public | json_store | table | postgres >>>>>> public | limit_data | table | postgres >>>>>> public | nat | table | postgres >>>>>> public | recovery | table | postgres >>>>>> public | registrations | table | postgres >>>>>> public | sip_authentication | table | postgres >>>>>> public | sip_dialogs | table | postgres >>>>>> public | sip_presence | table | postgres >>>>>> public | sip_registrations | table | postgres >>>>>> public | sip_shared_appearance_dialogs | table | postgres >>>>>> public | sip_shared_appearance_subscriptions | table | postgres >>>>>> public | sip_subscriptions | table | postgres >>>>>> public | tasks | table | postgres >>>>>> public | voicemail_msgs | table | postgres >>>>>> public | voicemail_prefs | table | postgres >>>>>> (25 rows) >>>>>> >>>>>> I continued testing and found that if I configure switch.conf.xml file like this: >>>>>> >>>>>> >>>>>> >>>>>> When I turn on freeswitch, postgresql don't output nothing. Then I tried to configure freeswitch using odbc I then YES I get something in postgresql logs >>>>>> >>>>>> For odbc I have something not clear, it is mandatory to put files in /usr/local/freeswitch/etc ? or leaving them at default directory (/etc) is enough? >>>>>> >>>>>> Here I show the config of odbc files: >>>>>> root at freeswitch-capa8:/etc# cat odbc.ini >>>>>> [freeswitch] >>>>>> ; WARNING: The old psql odbc driver psqlodbc.so is now renamed psqlodbcw.so >>>>>> ; in version 08.x. Note that the library can also be installed under an other >>>>>> ; path than /usr/local/lib/ following your installation. >>>>>> ; Driver = /usr/lib64/odbc/psqlodbcw.so >>>>>> ; Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so >>>>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>>> Description=Connection to LDAP/POSTGRESQL >>>>>> Servername=localhost >>>>>> Port=5432 >>>>>> Protocol=6.4 >>>>>> FetchBufferSize=99 >>>>>> Username=freeswitch_user >>>>>> Password=XXX >>>>>> Database=freeswitch_db >>>>>> ReadOnly=no >>>>>> Debug=0 >>>>>> CommLog=0 >>>>>> >>>>>> root at freeswitch-capa8:/etc# cat odbcinst.ini >>>>>> [PostgreSQL] >>>>>> Description = PostgreSQL driver for Linux & Win32 >>>>>> ;Driver = /usr/lib64/odbc/psqlodbcw.so >>>>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>>> Threading = 0 >>>>>> MaxLongVarcharSize=65536 >>>>>> >>>>>> And then connect to psql through odbc >>>>>> >>>>>> root at freeswitch-capa8:/etc# isql -v freeswitch >>>>>> +---------------------------------------+ >>>>>> | Connected! | >>>>>> | | >>>>>> | sql-statement | >>>>>> | help [tablename] | >>>>>> | quit | >>>>>> | | >>>>>> +---------------------------------------+ >>>>>> SQL> >>>>>> >>>>>> Then in file switch.conf.xml I changed db connection configuration >>>>>> >>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# cat switch.conf.xml |grep core-db-dsn >>>>>> >>>>>> >>>>>> >>>>>> Last night SwK user at freenode channel told me that freeswitch on turning on, it creates tables at database (thanks SwK). >>>>>> >>>>>> I spect that configuration of odbc is working but drops lot of errors (here you have some lines): >>>>>> >>>>>> 2018-05-24 02:03:25 CEST [3099-338780] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE nat ( >>>>>> sticky INTEGER, >>>>>> port INTEGER, >>>>>> proto INTEGER, >>>>>> hostname VARCHAR(256) >>>>>> ); >>>>>> ;EXECUTE "_PLAN0x140bf90" >>>>>> 2018-05-24 02:03:25 CEST [3099-338781] freeswitch_user at freeswitch_db WARNING: there is already a transaction in progress >>>>>> 2018-05-24 02:03:25 CEST [3099-338782] freeswitch_user at freeswitch_db ERROR: relation "registrations" does not exist at character 41 >>>>>> 2018-05-24 02:03:25 CEST [3099-338783] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x140bf90" as delete from registrations where reg_user='';EXECUTE "_PLAN0x140bf90" >>>>>> 2018-05-24 02:03:25 CEST [3099-338784] freeswitch_user at freeswitch_db WARNING: there is already a transaction in progress >>>>>> 2018-05-24 02:03:25 CEST [3099-338785] freeswitch_user at freeswitch_db ERROR: syntax error at or near "DROP" at character 29 >>>>>> 2018-05-24 02:03:25 CEST [3099-338786] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x140bf90" as DROP TABLE registrations;EXECUTE "_PLAN0x140bf90" >>>>>> 2018-05-24 02:03:25 CEST [3099-338787] freeswitch_user at freeswitch_db WARNING: there is already a transaction in progress >>>>>> 2018-05-24 02:03:25 CEST [3099-338788] freeswitch_user at freeswitch_db ERROR: syntax error at or near "CREATE" at character 29 >>>>>> 2018-05-24 02:03:25 CEST [3099-338789] freeswitch_user at freeswitch_db STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE registrations ( >>>>>> reg_user VARCHAR(256), >>>>>> realm VARCHAR(256), >>>>>> token VARCHAR(256), >>>>>> url TEXT, >>>>>> expires INTEGER, >>>>>> network_ip VARCHAR(256), >>>>>> network_port VARCHAR(256), >>>>>> network_proto VARCHAR(256), >>>>>> hostname VARCHAR(256), >>>>>> metadata VARCHAR(256) >>>>>> ); >>>>>> ;EXECUTE "_PLAN0x140bf90" >>>>>> 2018-05-24 02:03:25 CEST [3099-338790] freeswitch_user at freeswitch_db WARNING: there is already a transaction in progress >>>>>> 2018-05-24 02:03:25 CEST [3099-338791] freeswitch_user at freeswitch_db LOG: unexpected EOF on client connection with an open transaction >>>>>> >>>>>> >>>>>> I tested with tables in psql database and without tables in psql database. >>>>>> >>>>>> freeswitch at freeswitch-capa8> version >>>>>> FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>>> >>>>>> As I told in last mail, I'm working with last git version. >>>>>> >>>>>> Then I have a last question, related to that (db), when it will work, all mods will save the information to pgsql or a mix some to sqlite and some to pgsql? I saw in other files the availibility to configure also db, like /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>>>> >>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# cat /usr/local/freeswitch/conf/sip_profiles/internal.xml |grep db >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> The config you see in the mail is the last configuration I defined. Yesterday I get lost with wich config work or wich one no... >>>>>> >>>>>> I feel I'm almost at end of this installation! I'm doing a step by step manual in spanish to how to install last version of freeswitch, this will be public and if you want I could upload to wiki. >>>>>> >>>>>> Thanks you much for your help :) >>>>>> >>>>>> References: >>>>>> https://freeswitch.org/confluence/display/FREESWITCH/PostgreSQL+in+the+core >>>>>> https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN >>>>>> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+Databases >>>>>> >>>>>> >>>>>> >>>>>> - Blackhold >>>>>> http://blackhold.nusepas.com >>>>>> @blackhold_ >>>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) >>>>>> <°((( >< >>>>>> >>>>>> 2018-05-24 18:21 GMT+02:00 Michael Jerris >: >>>>>> what tables are ending up in the recreated sqlite db? You need to set it for the modules that use sqlite too (like for mod_sofia). we have a global var for this in default configs. >>>>>> >>>>>> > On May 23, 2018, at 6:13 PM, Blackhold > wrote: >>>>>> > >>>>>> > Hi, >>>>>> > I have just installed freeswitch 1.9 >>>>>> > >>>>>> > freeswitch at freeswitch-capa8> version >>>>>> > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>>> > >>>>>> > And I'm trying to freeswitch use postgresql instead sqlitedb. >>>>>> > >>>>>> > I have configured the file switch.conf.xml of /usr/local/freeswitch/conf/autoload_configs with uncomenting and configuring this line >>>>>> > >>>>>> > >>>>>> > >>>>>> > then I exported all sqlitedbs to sql and then imported to a database that I have created in postgresql >>>>>> > >>>>>> > I have run again /etc/init.d/freeswitch.sh start >>>>>> > >>>>>> > But seems it still is taking sqlitedb. >>>>>> > >>>>>> > I tried to move the sqlitedbs files to other side and turned on again freeswitch, but it creates sqlitedbs again. >>>>>> > >>>>>> > What I'm missing? what I'm doing wrong? what could I check? >>>>>> >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>> http://www.freeswitch.org >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>> http://www.freeswitch.org >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>> http://www.freeswitch.org >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>> http://www.freeswitch.org >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> http://www.freeswitch.org >>>> >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> http://www.freeswitch.org >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Thu May 24 23:11:52 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Fri, 25 May 2018 01:11:52 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: <6f187dfd-449c-9ab1-4132-d38d8c2cf08a@madovsky.org> References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> <6f187dfd-449c-9ab1-4132-d38d8c2cf08a@madovsky.org> Message-ID: what or wich is the sip profile? I understand that all tables that are created in sqlite are the ones that have to create to psql database that I'm refering all time... The configs I'm showing all time are the real config (only changing password value) 2018-05-25 0:43 GMT+02:00 Madovsky : > are you sure you are using the proper sip profile which use pgsql:// ? > On 5/24/2018 3:20 PM, Blackhold wrote: > > it seems nothing... yes tells something, but no one error, it seems all > modules are loaded ok. > > > 2018-05-24 22:58:20.552211 [INFO] sofia.c:5987 Setting MAX Auth Validity > to 0 Attempts > > 2018-05-24 22:58:20.557248 [INFO] switch_core_sqldb.c:1693 sofia:external > Starting SQL thread. > > 2018-05-24 22:58:20.562295 [NOTICE] sofia.c:4172 Adding Alias > [10.90.226.83] for profile [internal] > 2018-05-24 22:58:20.562424 [WARNING] sofia.c:2285 MSG Thread 0 Started > > 2018-05-24 22:58:22.059111 [CONSOLE] switch_loadable_module.c:1540 > Successfully Loaded [mod_db] > 2018-05-24 22:58:22.059118 [NOTICE] switch_loadable_module.c:292 Adding > Application 'db' > 2018-05-24 22:58:22.059128 [NOTICE] switch_loadable_module.c:292 Adding > Application 'group' > 2018-05-24 22:58:22.059137 [NOTICE] switch_loadable_module.c:338 Adding > API Function 'db' > 2018-05-24 22:58:22.059146 [NOTICE] switch_loadable_module.c:338 Adding > API Function 'group' > 2018-05-24 22:58:22.059154 [NOTICE] switch_loadable_module.c:556 Adding > Limit interface 'db' > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres > mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-24 23:23 GMT+02:00 Madovsky : > >> and anything in FS logs? >> On 5/24/2018 1:59 PM, Blackhold wrote: >> >> done, restarted psql and turned on freeswitch, nothing in psql log files, >> no tables where created. >> >> using psql conector >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-24 22:41 GMT+02:00 Madovsky : >> >>> remove these 2 lines >>> >>> local all postgres peer >>> >>> local all all peer >>> and replace with >>> >>> local all all trust >>> >>> in your pg_hba.conf >>> >>> >>> On 5/24/2018 1:26 PM, Blackhold wrote: >>> >>> Hi, >>> >>> I'm trying both ways, switching between one and the other... I initially >>> want to use psql directly, not using odbc, but when using directly I get >>> less info, well... logs files don't say nothing :( if the correct way is to >>> use that: >>> >>> >>> >>> so then, I only will use that, and the problem is my system, not >>> freeswitch. >>> >>> odbc configuration is an old odbc configuration that I used some time >>> ago when I had to use it... so... for actual psql db wich version is the >>> ok?! >>> >>> Here you have the versions of libraries I have: >>> >>> # debian 8 fresh install (x86_64) >>> >>> root at freeswitch-capa8:~# cat /etc/debian_version >>> 8.10 >>> root at freeswitch-capa8:~# dpkg -l |grep postgresql >>> ii odbc-postgresql:amd64 1:09.03.0300-1 >>> amd64 ODBC driver for PostgreSQL >>> ii postgresql 9.4+165+deb8u3 >>> all object-relational SQL database (supported version) >>> ii postgresql-9.4 9.4.15-0+deb8u1 >>> amd64 object-relational SQL database, version 9.4 server >>> ii postgresql-client 9.4+165+deb8u3 >>> all front-end programs for PostgreSQL (supported version) >>> ii postgresql-client-9.4 9.4.15-0+deb8u1 >>> amd64 front-end programs for PostgreSQL 9.4 >>> ii postgresql-client-common 165+deb8u3 >>> all manager for multiple PostgreSQL client versions >>> ii postgresql-common 165+deb8u3 >>> all PostgreSQL database-cluster manager >>> root at freeswitch-capa8:~# dpkg -l |grep libpq >>> ii libpq-dev 9.4.15-0+deb8u1 >>> amd64 header files for libpq5 (PostgreSQL library) >>> ii libpq5:amd64 9.4.15-0+deb8u1 >>> amd64 PostgreSQL C client library >>> >>> all these packages are downloaded from sources >>> >>> the lines enabled at pg_hba.conf are these (the debian default ones) >>> >>> local all postgres peer >>> local all all peer >>> host all all 127.0.0.1/32 md5 >>> host all all ::1/128 md5 >>> >>> the script that I have used to do the installation is the one located in >>> source code >>> >>> root at freeswitch-capa8:/usr/src/freeswitch/scripts# ls -l |grep >>> raspbian-installer >>> -rwxr-xr-x 1 root root 7922 May 23 20:26 FreeSWITCH-debian-raspbian-ins >>> taller.sh >>> >>> >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>> nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-24 21:58 GMT+02:00 Madovsky : >>> >>>> First of all, pgsql:// does not use odbc, instead use odbc:// to use >>>> odbc (btw your odbc.ini file shows Protocol=6.4 (!?) are you using >>>> >>>> postgresql 6.x !??!) >>>> >>>> what version of postgresql are you using? compiled yourself or from >>>> system package? >>>> >>>> check if there are not multiple versions of libpq.xx in your system. >>>> >>>> check pg_hba.conf if localhost is on trust mode for all local users. >>>> >>>> if you compiled yourself so be sure the right libpq.xx have been chosen. >>>> On 5/24/2018 12:33 PM, Blackhold wrote: >>>> >>>> nope, it is not able to create stuff >>>> >>>> now I also have enabled that in switch.conf.xml >>>> >>>> >>>> >>>> >>>> tested with odbc and directly with psql and behaviour is the same. >>>> >>>> for psql the procedure I have followed is >>>> >>>> root at freeswitch-capa8:~# su - postgres >>>> root at freeswitch-capa8:~# postgres at freeswitch-capa8:~$ createuser >>>> freeswitch_user >>>> root at freeswitch-capa8:~# createdb -O freeswitch_user freeswitch_db >>>> root at freeswitch-capa8:~# psql freeswitch_db >>>> freeswitch_db=# ALTER USER freeswitch_user WITH PASSWORD 'XXX'; >>>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO >>>> freeswitch_user; >>>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public >>>> TO freeswitch_user; >>>> >>>> the most beatiful was with odbc + tables created... in the last mail... >>>> freeswitch turned on, in other ways freeswitch doesn't turns on. >>>> >>>> logs doesn't talk about permissions.... >>>> >>>> >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-24 21:20 GMT+02:00 Michael Jerris : >>>> >>>>> you shouldn't need to pre-import the tables, if the permissions are >>>>> right, it should create the tables and indexes for you. >>>>> >>>>> >>>>> On May 24, 2018, at 3:15 PM, Blackhold >>>>> wrote: >>>>> >>>>> I continue with tests >>>>> >>>>> I think I know wich problem I had with errors >>>>> >>>>> I have missed to grant privileges in psql: >>>>> >>>>> GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO freeswitch_user; >>>>> GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO >>>>> freeswitch_user; >>>>> >>>>> # with tables imported from sqlite it shows (freeswitch runs) >>>>> >>>>> root at freeswitch-capa8:/var/log/postgresql# tail -f >>>>> postgresql-9.4-main.log >>>>> >>>>> 2018-05-24 21:03:34 CEST [8623-1] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-2] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery1 on >>>>> recovery(technology);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-3] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-4] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery2 on >>>>> recovery(profile_name);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-5] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-6] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on >>>>> recovery(uuid);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-7] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-8] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on >>>>> recovery(runtime_uuid);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-9] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-10] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index alias1 on aliases >>>>> (alias);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-11] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-12] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index tasks1 on tasks >>>>> (hostname,task_id);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-13] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-14] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete1 on complete >>>>> (a1,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-15] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-16] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete2 on complete >>>>> (a2,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-17] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-18] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete3 on complete >>>>> (a3,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-19] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-20] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete4 on complete >>>>> (a4,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-21] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-22] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete5 on complete >>>>> (a5,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-23] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-24] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete6 on complete >>>>> (a6,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-25] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-26] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete7 on complete >>>>> (a7,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-27] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-28] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete8 on complete >>>>> (a8,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-29] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-30] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete9 on complete >>>>> (a9,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-31] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-32] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete10 on complete >>>>> (a10,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-33] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-34] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete11 on complete >>>>> (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-35] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-36] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index nat_map_port_proto on >>>>> nat (port,proto,hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-37] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-38] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index channels1 on >>>>> channels(hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-39] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-40] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index calls1 on >>>>> calls(hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-41] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-42] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index chidx1 on channels >>>>> (hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-43] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-44] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex on channels >>>>> (uuid, hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-45] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-46] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex2 on channels >>>>> (call_uuid);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-47] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-48] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index callsidx1 on calls >>>>> (hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-49] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-50] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eruuindex on calls >>>>> (caller_uuid, hostname);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-51] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-52] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex on calls >>>>> (callee_uuid);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-53] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-54] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex2 on calls >>>>> (call_uuid);EXECUTE "_PLAN0x123ff90" >>>>> 2018-05-24 21:03:34 CEST [8623-55] freeswitch_user at freeswitch_db >>>>> ERROR: syntax error at or near "create" at character 29 >>>>> 2018-05-24 21:03:34 CEST [8623-56] freeswitch_user at freeswitch_db >>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index regindex1 on >>>>> registrations (reg_user,realm,hostname);EXECUTE "_PLAN0x123ff90" >>>>> >>>>> # with a clean database >>>>> >>>>> start dropping last errors, and don't create any table in db. >>>>> Freeswitch doesn't turns on. >>>>> >>>>> each time I stop freeswitch when it don't runs, it keeps a process >>>>> running that I have to kill manually >>>>> >>>>> root at freeswitch-capa8:/var/log/postgresql# ps aux |grep free >>>>> root 8706 39.6 0.7 141296 15244 ? S>>>> /usr/local/freeswitch/bin/freeswitch -nc >>>>> >>>>> >>>>> # with granted permisions if I turn configuration to not use odbc, >>>>> using psql directly >>>>> >>>>> freeswitch turns on, there's no errors in psql log file and no table >>>>> was created on db. >>>>> >>>>> >>>>> >>>>> - Blackhold >>>>> http://blackhold.nusepas.com >>>>> @blackhold_ >>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>> <°((( >< >>>>> >>>>> 2018-05-24 20:31 GMT+02:00 Blackhold : >>>>> >>>>>> # OK for location of ODBC files >>>>>> >>>>>> # output freeswitch using psql (I only edited switch.conf.xml file) >>>>>> (switch.conf.xml file) >>>>>> >>>>>> I see no errors related on logs (nor freeswitch, nor psql -debug5-), >>>>>> obviously restarted psql to reload config. >>>>>> >>>>>> in sofia.conf.xml file I found no option to configure it pointing to >>>>>> database >>>>>> no other config file, except switch.conf.xml has configured database >>>>>> pointing >>>>>> >>>>>> I tried to configure db.conf.xml file, with switch.conf.xml line but >>>>>> also do nothing >>>>>> >>>>>> # output freeswtich using odbc >>>>>> >>>>>> (switch.conf.xml file) >>>>>> >>>>>> these are the first lines of postgresql log file >>>>>> >>>>>> 2018-05-24 20:23:15 CEST [7518-7] LOG: received fast shutdown request >>>>>> 2018-05-24 20:23:15 CEST [7518-8] LOG: aborting any active >>>>>> transactions >>>>>> 2018-05-24 20:23:15 CEST [7548-2] LOG: autovacuum launcher shutting >>>>>> down >>>>>> 2018-05-24 20:23:15 CEST [7545-1] LOG: shutting down >>>>>> 2018-05-24 20:23:15 CEST [7545-2] LOG: database system is shut down >>>>>> 2018-05-24 20:23:16 CEST [7568-1] LOG: database system was shut down >>>>>> at 2018-05-24 20:23:15 CEST >>>>>> 2018-05-24 20:23:16 CEST [7568-2] LOG: MultiXact member wraparound >>>>>> protections are now enabled >>>>>> 2018-05-24 20:23:16 CEST [7567-1] LOG: database system is ready to >>>>>> accept connections >>>>>> 2018-05-24 20:23:16 CEST [7572-1] LOG: autovacuum launcher started >>>>>> 2018-05-24 20:23:16 CEST [7574-1] [unknown]@[unknown] LOG: >>>>>> incomplete startup packet >>>>>> 2018-05-24 20:23:39 CEST [7596-1] freeswitch_user at freeswitch_db >>>>>> ERROR: relation "channels" does not exist at character 40 >>>>>> 2018-05-24 20:23:39 CEST [7596-2] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from channels where >>>>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>>>> 2018-05-24 20:23:39 CEST [7596-3] freeswitch_user at freeswitch_db >>>>>> ERROR: relation "calls" does not exist at character 40 >>>>>> 2018-05-24 20:23:39 CEST [7596-4] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from calls where >>>>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>>>> 2018-05-24 20:23:39 CEST [7596-5] freeswitch_user at freeswitch_db >>>>>> ERROR: relation "tasks" does not exist at character 40 >>>>>> 2018-05-24 20:23:39 CEST [7596-6] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from tasks where >>>>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>>>> 2018-05-24 20:23:39 CEST [7596-7] freeswitch_user at freeswitch_db >>>>>> ERROR: relation "aliases" does not exist at character 49 >>>>>> 2018-05-24 20:23:39 CEST [7596-8] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as select hostname from aliases;EXECUTE >>>>>> "_PLAN0x9f3f90" >>>>>> 2018-05-24 20:23:39 CEST [7596-9] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "DROP" at character 28 >>>>>> 2018-05-24 20:23:39 CEST [7596-10] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as DROP TABLE aliases;EXECUTE >>>>>> "_PLAN0x9f3f90" >>>>>> 2018-05-24 20:23:39 CEST [7596-11] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "CREATE" at character 28 >>>>>> 2018-05-24 20:23:39 CEST [7596-12] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as CREATE TABLE aliases ( >>>>>> sticky INTEGER, >>>>>> alias VARCHAR(128), >>>>>> command VARCHAR(4096), >>>>>> hostname VARCHAR(256) >>>>>> ); >>>>>> ;EXECUTE "_PLAN0x9f3f90" >>>>>> >>>>>> and now freeswitch isn't able to run. >>>>>> >>>>>> If I enable odbc trace in odbcinst.ini >>>>>> >>>>>> Trace=Yes >>>>>> TraceFile=/var/log/odbctrace.log >>>>>> >>>>>> Also there's no output.... >>>>>> >>>>>> In freeswitch log also there's nothing about what is happening :( >>>>>> >>>>>> >>>>>> - Blackhold >>>>>> http://blackhold.nusepas.com >>>>>> @blackhold_ >>>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>>> <°((( >< >>>>>> >>>>>> 2018-05-24 19:30 GMT+02:00 Michael Jerris : >>>>>> >>>>>>> but that table layout is like that because you imported the tables, >>>>>>> i was asking what is in the recreated sqlite ones. If it fails to connect >>>>>>> like you later describe, its going to fall back, you should see stuff in >>>>>>> the fs logs on startup about this. the odbc configs go in the normal place >>>>>>> they go in the os, not in fs specific dirs. Those errors tell me something >>>>>>> is up, but not sure what, might need to turn on some debug on pg side to >>>>>>> see. some of our tests like to see if table schema is right throw errors >>>>>>> then we act on them, if you restart a second time you should get a more >>>>>>> useful set of errors. >>>>>>> >>>>>>> >>>>>>> On May 24, 2018, at 1:11 PM, Blackhold >>>>>>> wrote: >>>>>>> >>>>>>> Hi, >>>>>>> The tables are: >>>>>>> >>>>>>> ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db >>>>>>> freeswitch_db-# \dt >>>>>>> >>>>>>> List of relations >>>>>>> Schema | Name | Type | Owner >>>>>>> --------+-------------------------------------+-------+---------- >>>>>>> public | aliases | table | postgres >>>>>>> public | calls | table | postgres >>>>>>> public | channels | table | postgres >>>>>>> public | complete | table | postgres >>>>>>> public | db_data | table | postgres >>>>>>> public | fifo_bridge | table | postgres >>>>>>> public | fifo_callers | table | postgres >>>>>>> public | fifo_outbound | table | postgres >>>>>>> public | group_data | table | postgres >>>>>>> public | interfaces | table | postgres >>>>>>> public | json_store | table | postgres >>>>>>> public | limit_data | table | postgres >>>>>>> public | nat | table | postgres >>>>>>> public | recovery | table | postgres >>>>>>> public | registrations | table | postgres >>>>>>> public | sip_authentication | table | postgres >>>>>>> public | sip_dialogs | table | postgres >>>>>>> public | sip_presence | table | postgres >>>>>>> public | sip_registrations | table | postgres >>>>>>> public | sip_shared_appearance_dialogs | table | postgres >>>>>>> public | sip_shared_appearance_subscriptions | table | postgres >>>>>>> public | sip_subscriptions | table | postgres >>>>>>> public | tasks | table | postgres >>>>>>> public | voicemail_msgs | table | postgres >>>>>>> public | voicemail_prefs | table | postgres >>>>>>> (25 rows) >>>>>>> >>>>>>> I continued testing and found that if I configure switch.conf.xml >>>>>>> file like this: >>>>>>> >>>>>>> >>>>>>> >>>>>>> When I turn on freeswitch, postgresql don't output nothing. Then I >>>>>>> tried to configure freeswitch using odbc I then YES I get something in >>>>>>> postgresql logs >>>>>>> >>>>>>> For odbc I have something not clear, it is mandatory to put files in >>>>>>> /usr/local/freeswitch/etc ? or leaving them at default directory (/etc) is >>>>>>> enough? >>>>>>> >>>>>>> Here I show the config of odbc files: >>>>>>> root at freeswitch-capa8:/etc# cat odbc.ini >>>>>>> [freeswitch] >>>>>>> ; WARNING: The old psql odbc driver psqlodbc.so is now renamed >>>>>>> psqlodbcw.so >>>>>>> ; in version 08.x. Note that the library can also be installed under >>>>>>> an other >>>>>>> ; path than /usr/local/lib/ following your installation. >>>>>>> ; Driver = /usr/lib64/odbc/psqlodbcw.so >>>>>>> ; Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so >>>>>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>>>> Description=Connection to LDAP/POSTGRESQL >>>>>>> Servername=localhost >>>>>>> Port=5432 >>>>>>> Protocol=6.4 >>>>>>> FetchBufferSize=99 >>>>>>> Username=freeswitch_user >>>>>>> Password=XXX >>>>>>> Database=freeswitch_db >>>>>>> ReadOnly=no >>>>>>> Debug=0 >>>>>>> CommLog=0 >>>>>>> >>>>>>> root at freeswitch-capa8:/etc# cat odbcinst.ini >>>>>>> [PostgreSQL] >>>>>>> Description = PostgreSQL driver for Linux & Win32 >>>>>>> ;Driver = /usr/lib64/odbc/psqlodbcw.so >>>>>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>>>> Threading = 0 >>>>>>> MaxLongVarcharSize=65536 >>>>>>> >>>>>>> And then connect to psql through odbc >>>>>>> >>>>>>> root at freeswitch-capa8:/etc# isql -v freeswitch >>>>>>> +---------------------------------------+ >>>>>>> | Connected! | >>>>>>> | | >>>>>>> | sql-statement | >>>>>>> | help [tablename] | >>>>>>> | quit | >>>>>>> | | >>>>>>> +---------------------------------------+ >>>>>>> SQL> >>>>>>> >>>>>>> Then in file switch.conf.xml I changed db connection configuration >>>>>>> >>>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# >>>>>>> cat switch.conf.xml |grep core-db-dsn >>>>>>> >>>>>>> >>>>>>> >>>>>>> Last night SwK user at freenode channel told me that freeswitch on >>>>>>> turning on, it creates tables at database (thanks SwK). >>>>>>> >>>>>>> I spect that configuration of odbc is working but drops lot of >>>>>>> errors (here you have some lines): >>>>>>> >>>>>>> 2018-05-24 02:03:25 CEST [3099-338780] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE nat ( >>>>>>> sticky INTEGER, >>>>>>> port INTEGER, >>>>>>> proto INTEGER, >>>>>>> hostname VARCHAR(256) >>>>>>> ); >>>>>>> ;EXECUTE "_PLAN0x140bf90" >>>>>>> 2018-05-24 02:03:25 CEST [3099-338781] freeswitch_user at freeswitch_db >>>>>>> WARNING: there is already a transaction in progress >>>>>>> 2018-05-24 02:03:25 CEST [3099-338782] freeswitch_user at freeswitch_db >>>>>>> ERROR: relation "registrations" does not exist at character 41 >>>>>>> 2018-05-24 02:03:25 CEST [3099-338783] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as delete from registrations where >>>>>>> reg_user='';EXECUTE "_PLAN0x140bf90" >>>>>>> 2018-05-24 02:03:25 CEST [3099-338784] freeswitch_user at freeswitch_db >>>>>>> WARNING: there is already a transaction in progress >>>>>>> 2018-05-24 02:03:25 CEST [3099-338785] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "DROP" at character 29 >>>>>>> 2018-05-24 02:03:25 CEST [3099-338786] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as DROP TABLE registrations;EXECUTE >>>>>>> "_PLAN0x140bf90" >>>>>>> 2018-05-24 02:03:25 CEST [3099-338787] freeswitch_user at freeswitch_db >>>>>>> WARNING: there is already a transaction in progress >>>>>>> 2018-05-24 02:03:25 CEST [3099-338788] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "CREATE" at character 29 >>>>>>> 2018-05-24 02:03:25 CEST [3099-338789] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE registrations ( >>>>>>> reg_user VARCHAR(256), >>>>>>> realm VARCHAR(256), >>>>>>> token VARCHAR(256), >>>>>>> url TEXT, >>>>>>> expires INTEGER, >>>>>>> network_ip VARCHAR(256), >>>>>>> network_port VARCHAR(256), >>>>>>> network_proto VARCHAR(256), >>>>>>> hostname VARCHAR(256), >>>>>>> metadata VARCHAR(256) >>>>>>> ); >>>>>>> ;EXECUTE "_PLAN0x140bf90" >>>>>>> 2018-05-24 02:03:25 CEST [3099-338790] freeswitch_user at freeswitch_db >>>>>>> WARNING: there is already a transaction in progress >>>>>>> 2018-05-24 02:03:25 CEST [3099-338791] freeswitch_user at freeswitch_db >>>>>>> LOG: unexpected EOF on client connection with an open transaction >>>>>>> >>>>>>> >>>>>>> I tested with tables in psql database and without tables in psql >>>>>>> database. >>>>>>> >>>>>>> freeswitch at freeswitch-capa8> version >>>>>>> FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git >>>>>>> 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>>>> >>>>>>> As I told in last mail, I'm working with last git version. >>>>>>> >>>>>>> Then I have a last question, related to that (db), when it will >>>>>>> work, all mods will save the information to pgsql or a mix some to sqlite >>>>>>> and some to pgsql? I saw in other files the availibility to configure also >>>>>>> db, like /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>>>>> >>>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# cat >>>>>>> /usr/local/freeswitch/conf/sip_profiles/internal.xml |grep db >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> The config you see in the mail is the last configuration I defined. >>>>>>> Yesterday I get lost with wich config work or wich one no... >>>>>>> >>>>>>> I feel I'm almost at end of this installation! I'm doing a step by >>>>>>> step manual in spanish to how to install last version of freeswitch, this >>>>>>> will be public and if you want I could upload to wiki. >>>>>>> >>>>>>> Thanks you much for your help :) >>>>>>> >>>>>>> References: >>>>>>> https://freeswitch.org/confluence/display/FREESWITCH/Postgre >>>>>>> SQL+in+the+core >>>>>>> https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN >>>>>>> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWI >>>>>>> TCH+Databases >>>>>>> >>>>>>> >>>>>>> >>>>>>> - Blackhold >>>>>>> http://blackhold.nusepas.com >>>>>>> @blackhold_ >>>>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>>>> <°((( >< >>>>>>> >>>>>>> 2018-05-24 18:21 GMT+02:00 Michael Jerris : >>>>>>> >>>>>>>> what tables are ending up in the recreated sqlite db? You need to >>>>>>>> set it for the modules that use sqlite too (like for mod_sofia). we have a >>>>>>>> global var for this in default configs. >>>>>>>> >>>>>>>> > On May 23, 2018, at 6:13 PM, Blackhold >>>>>>>> wrote: >>>>>>>> > >>>>>>>> > Hi, >>>>>>>> > I have just installed freeswitch 1.9 >>>>>>>> > >>>>>>>> > freeswitch at freeswitch-capa8> version >>>>>>>> > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit >>>>>>>> (git 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>>>>> > >>>>>>>> > And I'm trying to freeswitch use postgresql instead sqlitedb. >>>>>>>> > >>>>>>>> > I have configured the file switch.conf.xml of >>>>>>>> /usr/local/freeswitch/conf/autoload_configs with uncomenting and >>>>>>>> configuring this line >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > then I exported all sqlitedbs to sql and then imported to a >>>>>>>> database that I have created in postgresql >>>>>>>> > >>>>>>>> > I have run again /etc/init.d/freeswitch.sh start >>>>>>>> > >>>>>>>> > But seems it still is taking sqlitedb. >>>>>>>> > >>>>>>>> > I tried to move the sqlitedbs files to other side and turned on >>>>>>>> again freeswitch, but it creates sqlitedbs again. >>>>>>>> > >>>>>>>> > What I'm missing? what I'm doing wrong? what could I check? >>>>>>>> >>>>>>>> >>>>>>>> ____________________________________________________________ >>>>>>>> _____________ >>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>> consulting at freeswitch.org >>>>>>>> http://www.freeswitchsolutions.com >>>>>>>> >>>>>>>> Official FreeSWITCH Sites >>>>>>>> http://www.freeswitch.org >>>>>>>> http://confluence.freeswitch.org >>>>>>>> http://www.cluecon.com >>>>>>>> >>>>>>>> FreeSWITCH-users mailing list >>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>>>> switch-users >>>>>>>> http://www.freeswitch.org >>>>>>> >>>>>>> >>>>>>> ____________________________________________________________ >>>>>>> _____________ >>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>> consulting at freeswitch.org >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> http://confluence.freeswitch.org >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>>> switch-users >>>>>>> http://www.freeswitch.org >>>>>>> >>>>>>> >>>>>>> >>>>>>> ____________________________________________________________ >>>>>>> _____________ >>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>> consulting at freeswitch.org >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> http://confluence.freeswitch.org >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>>> switch-users >>>>>>> http://www.freeswitch.org >>>>>>> >>>>>> >>>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>> switch-users >>>>> http://www.freeswitch.org >>>>> >>>>> >>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>> switch-users >>>>> http://www.freeswitch.org >>>>> >>>> >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>>> >>>> >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>> switch-users >>>> http://www.freeswitch.org >>>> >>> >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>> >>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>> >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >> >> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >> >> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com > > Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com > > FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From infos at madovsky.org Thu May 24 23:33:36 2018 From: infos at madovsky.org (Madovsky) Date: Thu, 24 May 2018 16:33:36 -0700 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> <6f187dfd-449c-9ab1-4132-d38d8c2cf08a@madovsky.org> Message-ID: if you set pgsql:// in switch.conf.xml so you must set pgsql:// in every config where a DB is involved On 5/24/2018 4:11 PM, Blackhold wrote: > what or wich is the sip profile? > > I understand that all tables that are created in sqlite are the ones > that have to create to psql database that I'm refering all time... > > The configs I'm showing all time are the real config (only changing > password value) > > 2018-05-25 0:43 GMT+02:00 Madovsky >: > > are you sure you are using the proper sip profile which use pgsql:// ? > > On 5/24/2018 3:20 PM, Blackhold wrote: >> it seems nothing... yes tells something, but no one error, it >> seems all modules are loaded ok. >> >> >> 2018-05-24 22:58:20.552211 [INFO] sofia.c:5987 Setting MAX Auth >> Validity to 0 Attempts >> >> 2018-05-24 22:58:20.557248 [INFO] switch_core_sqldb.c:1693 >> sofia:external Starting SQL thread. >> >> 2018-05-24 22:58:20.562295 [NOTICE] sofia.c:4172 Adding Alias >> [10.90.226.83] for profile [internal] >> 2018-05-24 22:58:20.562424 [WARNING] sofia.c:2285 MSG Thread 0 >> Started >> >> 2018-05-24 22:58:22.059111 [CONSOLE] >> switch_loadable_module.c:1540 Successfully Loaded [mod_db] >> 2018-05-24 22:58:22.059118 [NOTICE] switch_loadable_module.c:292 >> Adding Application 'db' >> 2018-05-24 22:58:22.059128 [NOTICE] switch_loadable_module.c:292 >> Adding Application 'group' >> 2018-05-24 22:58:22.059137 [NOTICE] switch_loadable_module.c:338 >> Adding API Function 'db' >> 2018-05-24 22:58:22.059146 [NOTICE] switch_loadable_module.c:338 >> Adding API Function 'group' >> 2018-05-24 22:58:22.059154 [NOTICE] switch_loadable_module.c:556 >> Adding Limit interface 'db' >> >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-24 23:23 GMT+02:00 Madovsky > >: >> >> and anything in FS logs? >> >> On 5/24/2018 1:59 PM, Blackhold wrote: >>> done, restarted psql and turned on freeswitch, nothing in >>> psql log files, no tables where created. >>> >>> using psql conector >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i >>> contra nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-24 22:41 GMT+02:00 Madovsky >> >: >>> >>> remove these 2 lines >>> >>> local   all             postgres                         >>>       peer >>> >>> local   all             all  peer >>> >>> and replace with >>> >>> local   all all  trust >>> >>> in your pg_hba.conf >>> >>> >>> On 5/24/2018 1:26 PM, Blackhold wrote: >>>> Hi, >>>> >>>> I'm trying both ways, switching between one and the >>>> other... I initially want to use psql directly, not >>>> using odbc, but when using directly I get less info, >>>> well... logs files don't say nothing :( if the correct >>>> way is to use that: >>>> >>>> >>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>> user=freeswitch_user password='XXX' options='-c >>>> client_min_messages=NOTICE'" /> >>>> >>>> so then, I only will use that, and the problem is my >>>> system, not freeswitch. >>>> >>>> odbc configuration is an old odbc configuration that I >>>> used some time ago when I had to use it... so... for >>>> actual psql db wich version is the ok?! >>>> >>>> Here you have the versions of libraries I have: >>>> >>>> # debian 8 fresh install (x86_64) >>>> >>>> root at freeswitch-capa8:~# cat /etc/debian_version >>>> 8.10 >>>> root at freeswitch-capa8:~# dpkg -l |grep postgresql >>>> ii odbc-postgresql:amd64        1:09.03.0300-1         >>>>      amd64 ODBC driver for PostgreSQL >>>> ii  postgresql 9.4+165+deb8u3        all >>>> object-relational SQL database (supported version) >>>> ii  postgresql-9.4 9.4.15-0+deb8u1       amd64 >>>> object-relational SQL database, version 9.4 server >>>> ii  postgresql-client  9.4+165+deb8u3        all >>>> front-end programs for PostgreSQL (supported version) >>>> ii postgresql-client-9.4        9.4.15-0+deb8u1         >>>>       amd64 front-end programs for PostgreSQL 9.4 >>>> ii postgresql-client-common         165+deb8u3         >>>>        all manager for multiple PostgreSQL client versions >>>> ii  postgresql-common                165+deb8u3         >>>>              all       PostgreSQL database-cluster manager >>>> root at freeswitch-capa8:~# dpkg -l |grep libpq >>>> ii  libpq-dev  9.4.15-0+deb8u1         amd64        >>>> header files for libpq5 (PostgreSQL library) >>>> ii  libpq5:amd64 9.4.15-0+deb8u1       amd64 PostgreSQL >>>> C client library >>>> >>>> all these packages are downloaded from sources >>>> >>>> the lines enabled at pg_hba.conf are these (the debian >>>> default ones) >>>> >>>> local   all  postgres           peer >>>> local   all  all              peer >>>> host    all  all 127.0.0.1/32     >>>>       md5 >>>> host    all  all             ::1/128              md5 >>>> >>>> the script that I have used to do the installation is >>>> the one located in source code >>>> >>>> root at freeswitch-capa8:/usr/src/freeswitch/scripts# ls >>>> -l |grep raspbian-installer >>>> -rwxr-xr-x 1 root root 7922 May 23 20:26 >>>> FreeSWITCH-debian-raspbian-installer.sh >>>> >>>> >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser febles, >>>> i contra nosaltres mateixos quan siguem forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-24 21:58 GMT+02:00 Madovsky >>> >: >>>> >>>> First of all, pgsql:// does not use odbc, instead >>>> use odbc:// to use odbc (btw your odbc.ini file >>>> shows Protocol=6.4 (!?) are you using >>>> >>>> postgresql 6.x !??!) >>>> >>>> what version of postgresql are you using? compiled >>>> yourself or from system package? >>>> >>>> check if there are not multiple versions of >>>> libpq.xx in your system. >>>> >>>> check pg_hba.conf if localhost is on trust mode for >>>> all local users. >>>> >>>> if you compiled yourself so be sure the right >>>> libpq.xx have been chosen. >>>> >>>> On 5/24/2018 12:33 PM, Blackhold wrote: >>>>> nope, it is not able to create stuff >>>>> >>>>> now I also have enabled that in switch.conf.xml >>>>> >>>>>     >>>>>     >>>>> >>>>> tested with odbc and directly with psql and >>>>> behaviour is the same. >>>>> >>>>> for psql the procedure I have followed is >>>>> >>>>> root at freeswitch-capa8:~# su - postgres >>>>> root at freeswitch-capa8:~#postgres at freeswitch-capa8:~$ createuser >>>>> freeswitch_user >>>>> root at freeswitch-capa8:~#createdb -O >>>>> freeswitch_user freeswitch_db >>>>> root at freeswitch-capa8:~#psql freeswitch_db >>>>> freeswitch_db=# ALTER USER freeswitch_user WITH >>>>> PASSWORD 'XXX'; >>>>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL TABLES >>>>> IN SCHEMA public TO freeswitch_user; >>>>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL >>>>> SEQUENCES IN SCHEMA public TO freeswitch_user; >>>>> >>>>> the most beatiful was with odbc + tables >>>>> created... in the last mail... freeswitch turned >>>>> on, in other ways freeswitch doesn't turns on. >>>>> >>>>> logs doesn't talk about permissions.... >>>>> >>>>> >>>>> >>>>> >>>>> - Blackhold >>>>> http://blackhold.nusepas.com >>>>> @blackhold_ >>>>> ~> cal lluitar contra el fort per deixar de ser >>>>> febles, i contra nosaltres mateixos quan siguem >>>>> forts (Xirinacs) >>>>> <°((( >< >>>>> >>>>> 2018-05-24 21:20 GMT+02:00 Michael Jerris >>>>> >: >>>>> >>>>> you shouldn't need to pre-import the tables, >>>>> if the permissions are right, it should create >>>>> the tables and indexes for you. >>>>> >>>>> >>>>>> On May 24, 2018, at 3:15 PM, Blackhold >>>>>> >>>>> > wrote: >>>>>> >>>>>> I continue with tests >>>>>> >>>>>> I think I know wich problem I had with errors >>>>>> >>>>>> I have missed to grant privileges in psql: >>>>>> >>>>>> GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA >>>>>> public TO freeswitch_user; >>>>>> GRANT ALL PRIVILEGES ON ALL SEQUENCES IN >>>>>> SCHEMA public TO freeswitch_user; >>>>>> >>>>>> # with tables imported from sqlite it shows >>>>>> (freeswitch runs) >>>>>> >>>>>> root at freeswitch-capa8:/var/log/postgresql# >>>>>> tail -f postgresql-9.4-main.log >>>>>> >>>>>> 2018-05-24 21:03:34 CEST [8623-1] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-2] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> recovery1 on recovery(technology);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-3] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-4] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> recovery2 on recovery(profile_name);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-5] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-6] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> recovery3 on recovery(uuid);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-7] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-8] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> recovery3 on recovery(runtime_uuid);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-9] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-10] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> alias1 on aliases (alias);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-11] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-12] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> tasks1 on tasks (hostname,task_id);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-13] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-14] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> complete1 on complete (a1,hostname);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-15] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-16] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> complete2 on complete (a2,hostname);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-17] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-18] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> complete3 on complete (a3,hostname);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-19] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-20] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> complete4 on complete (a4,hostname);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-21] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-22] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> complete5 on complete (a5,hostname);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-23] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-24] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> complete6 on complete (a6,hostname);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-25] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-26] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> complete7 on complete (a7,hostname);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-27] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-28] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> complete8 on complete (a8,hostname);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-29] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-30] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> complete9 on complete (a9,hostname);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-31] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-32] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> complete10 on complete (a10,hostname);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-33] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-34] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> complete11 on complete >>>>>> (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-35] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-36] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> nat_map_port_proto on nat >>>>>> (port,proto,hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-37] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-38] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> channels1 on channels(hostname);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-39] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-40] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> calls1 on calls(hostname);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-41] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-42] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> chidx1 on channels (hostname);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-43] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-44] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> uuindex on channels (uuid, hostname);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-45] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-46] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> uuindex2 on channels (call_uuid);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-47] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-48] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> callsidx1 on calls (hostname);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-49] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-50] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> eruuindex on calls (caller_uuid, >>>>>> hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-51] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-52] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> eeuuindex on calls (callee_uuid);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-53] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-54] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> eeuuindex2 on calls (call_uuid);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-55] >>>>>> freeswitch_user at freeswitch_db ERROR:  syntax >>>>>> error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-56] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>> regindex1 on registrations >>>>>> (reg_user,realm,hostname);EXECUTE >>>>>> "_PLAN0x123ff90" >>>>>> >>>>>> # with a clean database >>>>>> >>>>>> start dropping last errors, and don't create >>>>>> any table in db. Freeswitch doesn't turns on. >>>>>> >>>>>> each time I stop freeswitch when it don't >>>>>> runs, it keeps a process running that I have >>>>>> to kill manually >>>>>> >>>>>> root at freeswitch-capa8:/var/log/postgresql#  ps >>>>>> aux |grep free >>>>>> root 8706 39.6  0.7 141296 15244 ? S>>>>>  1:13 /usr/local/freeswitch/bin/freeswitch -nc >>>>>> >>>>>> >>>>>> # with granted permisions if I turn >>>>>> configuration to not use odbc, using psql >>>>>> directly >>>>>> >>>>>> freeswitch turns on, there's no errors in >>>>>> psql log file and no table was created on db. >>>>>> >>>>>> >>>>>> >>>>>> - Blackhold >>>>>> http://blackhold.nusepas.com >>>>>> >>>>>> @blackhold_ >>>>>> ~> cal lluitar contra el fort per deixar de >>>>>> ser febles, i contra nosaltres mateixos quan >>>>>> siguem forts (Xirinacs) >>>>>> <°((( >< >>>>>> >>>>>> 2018-05-24 20:31 GMT+02:00 Blackhold >>>>>> >>>>> >: >>>>>> >>>>>> # OK for location of ODBC files >>>>>> >>>>>> # output freeswitch using psql (I only >>>>>> edited switch.conf.xml file) >>>>>> >>>>> value="pgsql://hostaddr=127.0.0.1 >>>>>> dbname=freeswitch_db user=freeswitch_user >>>>>> password='XXX' options='-c >>>>>> client_min_messages=NOTICE'" /> >>>>>> (switch.conf.xml file) >>>>>> >>>>>> I see no errors related on logs (nor >>>>>> freeswitch, nor psql -debug5-), obviously >>>>>> restarted psql to reload config. >>>>>> >>>>>> in sofia.conf.xml file I found no option >>>>>> to configure it pointing to database >>>>>> no other config file, except >>>>>> switch.conf.xml has configured database >>>>>> pointing >>>>>> >>>>>> I tried to configure db.conf.xml file, >>>>>> with switch.conf.xml line but also do nothing >>>>>> >>>>>> # output freeswtich using odbc >>>>>> >>>>> value="freeswitch:freeswitch_user:XXX"/> >>>>>> (switch.conf.xml file) >>>>>> >>>>>> these are the first lines of postgresql >>>>>> log file >>>>>> >>>>>> 2018-05-24 20:23:15 CEST [7518-7] LOG: >>>>>> received fast shutdown request >>>>>> 2018-05-24 20:23:15 CEST [7518-8] LOG: >>>>>> aborting any active transactions >>>>>> 2018-05-24 20:23:15 CEST [7548-2] LOG: >>>>>> autovacuum launcher shutting down >>>>>> 2018-05-24 20:23:15 CEST [7545-1] LOG: >>>>>> shutting down >>>>>> 2018-05-24 20:23:15 CEST [7545-2] LOG: >>>>>> database system is shut down >>>>>> 2018-05-24 20:23:16 CEST [7568-1] LOG: >>>>>> database system was shut down at >>>>>> 2018-05-24 20:23:15 CEST >>>>>> 2018-05-24 20:23:16 CEST [7568-2] LOG: >>>>>> MultiXact member wraparound protections >>>>>> are now enabled >>>>>> 2018-05-24 20:23:16 CEST [7567-1] LOG: >>>>>> database system is ready to accept >>>>>> connections >>>>>> 2018-05-24 20:23:16 CEST [7572-1] LOG: >>>>>> autovacuum launcher started >>>>>> 2018-05-24 20:23:16 CEST [7574-1] >>>>>> [unknown]@[unknown] LOG: incomplete >>>>>> startup packet >>>>>> 2018-05-24 20:23:39 CEST [7596-1] >>>>>> freeswitch_user at freeswitch_db ERROR: >>>>>> relation "channels" does not exist at >>>>>> character 40 >>>>>> 2018-05-24 20:23:39 CEST [7596-2] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x9f3f90" as delete from >>>>>> channels where >>>>>> hostname='freeswitch-capa8';EXECUTE >>>>>> "_PLAN0x9f3f90" >>>>>> 2018-05-24 20:23:39 CEST [7596-3] >>>>>> freeswitch_user at freeswitch_db ERROR: >>>>>> relation "calls" does not exist at >>>>>> character 40 >>>>>> 2018-05-24 20:23:39 CEST [7596-4] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x9f3f90" as delete from >>>>>> calls where >>>>>> hostname='freeswitch-capa8';EXECUTE >>>>>> "_PLAN0x9f3f90" >>>>>> 2018-05-24 20:23:39 CEST [7596-5] >>>>>> freeswitch_user at freeswitch_db ERROR: >>>>>> relation "tasks" does not exist at >>>>>> character 40 >>>>>> 2018-05-24 20:23:39 CEST [7596-6] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x9f3f90" as delete from >>>>>> tasks where >>>>>> hostname='freeswitch-capa8';EXECUTE >>>>>> "_PLAN0x9f3f90" >>>>>> 2018-05-24 20:23:39 CEST [7596-7] >>>>>> freeswitch_user at freeswitch_db ERROR: >>>>>> relation "aliases" does not exist at >>>>>> character 49 >>>>>> 2018-05-24 20:23:39 CEST [7596-8] >>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>> PREPARE "_PLAN0x9f3f90" as select >>>>>> hostname from aliases;EXECUTE "_PLAN0x9f3f90" >>>>>> 2018-05-24 20:23:39 CEST [7596-9] >>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>> syntax error at or near "DROP" at >>>>>> character 28 >>>>>> 2018-05-24 20:23:39 CEST [7596-10] >>>>>> freeswitch_user at freeswitch_db STATEMENT:  >>>>>> PREPARE "_PLAN0x9f3f90" as DROP TABLE >>>>>> aliases;EXECUTE "_PLAN0x9f3f90" >>>>>> 2018-05-24 20:23:39 CEST [7596-11] >>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>> syntax error at or near "CREATE" at >>>>>> character 28 >>>>>> 2018-05-24 20:23:39 CEST [7596-12] >>>>>> freeswitch_user at freeswitch_db STATEMENT:  >>>>>> PREPARE "_PLAN0x9f3f90" as CREATE TABLE >>>>>> aliases ( >>>>>>  sticky INTEGER, >>>>>>  alias VARCHAR(128), >>>>>>  command VARCHAR(4096), >>>>>>  hostname VARCHAR(256) >>>>>>       ); >>>>>>       ;EXECUTE "_PLAN0x9f3f90" >>>>>> >>>>>> and now freeswitch isn't able to run. >>>>>> >>>>>> If I enable odbc trace in odbcinst.ini >>>>>> >>>>>> Trace=Yes >>>>>> TraceFile=/var/log/odbctrace.log >>>>>> >>>>>> Also there's no output.... >>>>>> >>>>>> In freeswitch log also there's nothing >>>>>> about what is happening :( >>>>>> >>>>>> >>>>>> - Blackhold >>>>>> http://blackhold.nusepas.com >>>>>> >>>>>> @blackhold_ >>>>>> ~> cal lluitar contra el fort per deixar >>>>>> de ser febles, i contra nosaltres >>>>>> mateixos quan siguem forts (Xirinacs) >>>>>> <°((( >< >>>>>> >>>>>> 2018-05-24 19:30 GMT+02:00 Michael Jerris >>>>>> >: >>>>>> >>>>>> but that table layout is like that >>>>>> because you imported the tables, i >>>>>> was asking what is in the recreated >>>>>> sqlite ones. If it fails to connect >>>>>> like you later describe, its going to >>>>>> fall back, you should see stuff in >>>>>> the fs logs on startup about this. >>>>>>  the odbc configs go in the normal >>>>>> place they go in the os, not in fs >>>>>> specific dirs.  Those errors tell me >>>>>> something is up, but not sure what, >>>>>> might need to turn on some debug on >>>>>> pg side to see.  some of our tests >>>>>> like to see if table schema is right >>>>>> throw errors then we act on them, if >>>>>> you restart a second time you should >>>>>> get a more useful set of errors. >>>>>> >>>>>> >>>>>>> On May 24, 2018, at 1:11 PM, >>>>>>> Blackhold >>>>>> > >>>>>>> wrote: >>>>>>> >>>>>>> Hi, >>>>>>> The tables are: >>>>>>> >>>>>>> ostgres at freeswitch-capa8:~/sql$ psql >>>>>>> freeswitch_db >>>>>>> freeswitch_db-# \dt >>>>>>> >>>>>>> List of relations >>>>>>>  Schema |   Name          | Type  | >>>>>>> Owner >>>>>>> --------+-------------------------------------+-------+---------- >>>>>>>  public | aliases        | table | >>>>>>> postgres >>>>>>>  public | calls        | table | >>>>>>> postgres >>>>>>>  public | channels         | table | >>>>>>> postgres >>>>>>>  public | complete         | table | >>>>>>> postgres >>>>>>>  public | db_data        | table | >>>>>>> postgres >>>>>>>  public | fifo_bridge        | table >>>>>>> | postgres >>>>>>>  public | fifo_callers         | >>>>>>> table | postgres >>>>>>>  public | fifo_outbound        | >>>>>>> table | postgres >>>>>>>  public | group_data         | table >>>>>>> | postgres >>>>>>>  public | interfaces         | table >>>>>>> | postgres >>>>>>>  public | json_store         | table >>>>>>> | postgres >>>>>>>  public | limit_data         | table >>>>>>> | postgres >>>>>>>  public | nat        | table | postgres >>>>>>>  public | recovery         | table | >>>>>>> postgres >>>>>>>  public | registrations        | >>>>>>> table | postgres >>>>>>>  public | sip_authentication        >>>>>>>           | table | postgres >>>>>>>  public | sip_dialogs        | table >>>>>>> | postgres >>>>>>>  public | sip_presence         | >>>>>>> table | postgres >>>>>>>  public | sip_registrations          >>>>>>>          | table | postgres >>>>>>>  public | >>>>>>> sip_shared_appearance_dialogs      >>>>>>>  | table | postgres >>>>>>>  public | >>>>>>> sip_shared_appearance_subscriptions >>>>>>> | table | postgres >>>>>>>  public | sip_subscriptions          >>>>>>>          | table | postgres >>>>>>>  public | tasks        | table | >>>>>>> postgres >>>>>>>  public | voicemail_msgs            >>>>>>>           | table | postgres >>>>>>>  public | voicemail_prefs            >>>>>>>          | table | postgres >>>>>>> (25 rows) >>>>>>> >>>>>>> I continued testing and found that >>>>>>> if I configure switch.conf.xml file >>>>>>> like this: >>>>>>> >>>>>>> >>>>>> value="pgsql://hostaddr=127.0.0.1 >>>>>>> dbname=freeswitch_db >>>>>>> user=freeswitch_user password='****' >>>>>>> options='-c >>>>>>> client_min_messages=NOTICE'" /> >>>>>>> >>>>>>> When I turn on freeswitch, >>>>>>> postgresql don't output nothing. >>>>>>> Then I tried to configure freeswitch >>>>>>> using odbc I then YES I get >>>>>>> something in postgresql logs >>>>>>> >>>>>>> For odbc I have something not clear, >>>>>>> it is mandatory to put files in >>>>>>> /usr/local/freeswitch/etc ? or >>>>>>> leaving them at default directory >>>>>>> (/etc) is enough? >>>>>>> >>>>>>> Here I show the config of odbc files: >>>>>>> root at freeswitch-capa8:/etc# cat >>>>>>> odbc.ini >>>>>>> [freeswitch] >>>>>>> ; WARNING: The old psql odbc driver >>>>>>> psqlodbc.so is now renamed psqlodbcw.so >>>>>>> ; in version 08.x. Note that the >>>>>>> library can also be installed under >>>>>>> an other >>>>>>> ; path than /usr/local/lib/ >>>>>>> following your installation. >>>>>>> ; Driver = /usr/lib64/odbc/psqlodbcw.so >>>>>>> ; Driver = >>>>>>> /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so >>>>>>> Driver = >>>>>>> /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>>>> Description=Connection to >>>>>>> LDAP/POSTGRESQL >>>>>>> Servername=localhost >>>>>>> Port=5432 >>>>>>> Protocol=6.4 >>>>>>> FetchBufferSize=99 >>>>>>> Username=freeswitch_user >>>>>>> Password=XXX >>>>>>> Database=freeswitch_db >>>>>>> ReadOnly=no >>>>>>> Debug=0 >>>>>>> CommLog=0 >>>>>>> >>>>>>> root at freeswitch-capa8:/etc# cat >>>>>>> odbcinst.ini >>>>>>> [PostgreSQL] >>>>>>> Description = PostgreSQL driver for >>>>>>> Linux & Win32 >>>>>>> ;Driver = /usr/lib64/odbc/psqlodbcw.so >>>>>>> Driver = >>>>>>> /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>>>> Threading = 0 >>>>>>> MaxLongVarcharSize=65536 >>>>>>> >>>>>>> And then connect to psql through odbc >>>>>>> >>>>>>> root at freeswitch-capa8:/etc# isql -v >>>>>>> freeswitch >>>>>>> +---------------------------------------+ >>>>>>> | Connected!           | >>>>>>> |    | >>>>>>> | sql-statement          | >>>>>>> | help [tablename]     | >>>>>>> | quit   | >>>>>>> |    | >>>>>>> +---------------------------------------+ >>>>>>> SQL> >>>>>>> >>>>>>> Then in file switch.conf.xml I >>>>>>> changed db connection configuration >>>>>>> >>>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# >>>>>>> cat switch.conf.xml |grep core-db-dsn >>>>>>> >>>>>> value="pgsql://hostaddr=127.0.0.1 >>>>>>> dbname=freeswitch_db >>>>>>> user=freeswitch_user password='XXX' >>>>>>> options='-c >>>>>>> client_min_messages=NOTICE'" /> >>>>>>> >>>>>>> >>>>>>> Last night SwK user at freenode >>>>>>> channel told me that freeswitch on >>>>>>> turning on, it creates tables at >>>>>>> database (thanks SwK). >>>>>>> >>>>>>> I spect that configuration of odbc >>>>>>> is working but drops lot of errors >>>>>>> (here you have some lines): >>>>>>> >>>>>>> 2018-05-24 02:03:25 CEST >>>>>>> [3099-338780] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> STATEMENT:  PREPARE "_PLAN0x140bf90" >>>>>>> as CREATE TABLE nat ( >>>>>>>  sticky INTEGER, >>>>>>> portINTEGER, >>>>>>> protoINTEGER, >>>>>>>  hostname VARCHAR(256) >>>>>>> ); >>>>>>> ;EXECUTE "_PLAN0x140bf90" >>>>>>> 2018-05-24 02:03:25 CEST >>>>>>> [3099-338781] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> WARNING:  there is already a >>>>>>> transaction in progress >>>>>>> 2018-05-24 02:03:25 CEST >>>>>>> [3099-338782] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> ERROR:  relation "registrations" >>>>>>> does not exist at character 41 >>>>>>> 2018-05-24 02:03:25 CEST >>>>>>> [3099-338783] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> STATEMENT:  PREPARE "_PLAN0x140bf90" >>>>>>> as delete from registrations where >>>>>>> reg_user='';EXECUTE "_PLAN0x140bf90" >>>>>>> 2018-05-24 02:03:25 CEST >>>>>>> [3099-338784] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> WARNING:  there is already a >>>>>>> transaction in progress >>>>>>> 2018-05-24 02:03:25 CEST >>>>>>> [3099-338785] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> ERROR:  syntax error at or near >>>>>>> "DROP" at character 29 >>>>>>> 2018-05-24 02:03:25 CEST >>>>>>> [3099-338786] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> STATEMENT:  PREPARE "_PLAN0x140bf90" >>>>>>> as DROP TABLE registrations;EXECUTE >>>>>>> "_PLAN0x140bf90" >>>>>>> 2018-05-24 02:03:25 CEST >>>>>>> [3099-338787] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> WARNING:  there is already a >>>>>>> transaction in progress >>>>>>> 2018-05-24 02:03:25 CEST >>>>>>> [3099-338788] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> ERROR:  syntax error at or near >>>>>>> "CREATE" at character 29 >>>>>>> 2018-05-24 02:03:25 CEST >>>>>>> [3099-338789] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> STATEMENT:  PREPARE "_PLAN0x140bf90" >>>>>>> as CREATE TABLE registrations ( >>>>>>>  reg_user VARCHAR(256), >>>>>>>  realm  VARCHAR(256), >>>>>>>  token  VARCHAR(256), >>>>>>>  url TEXT, >>>>>>>  expires INTEGER, >>>>>>>  network_ip VARCHAR(256), >>>>>>>  network_port VARCHAR(256), >>>>>>>  network_proto VARCHAR(256), >>>>>>>  hostname VARCHAR(256), >>>>>>>  metadata VARCHAR(256) >>>>>>> ); >>>>>>> ;EXECUTE "_PLAN0x140bf90" >>>>>>> 2018-05-24 02:03:25 CEST >>>>>>> [3099-338790] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> WARNING:  there is already a >>>>>>> transaction in progress >>>>>>> 2018-05-24 02:03:25 CEST >>>>>>> [3099-338791] >>>>>>> freeswitch_user at freeswitch_db LOG:  >>>>>>> unexpected EOF on client connection >>>>>>> with an open transaction >>>>>>> >>>>>>> >>>>>>> I tested with tables in psql >>>>>>> database and without tables in psql >>>>>>> database. >>>>>>> >>>>>>> freeswitch at freeswitch-capa8> version >>>>>>> FreeSWITCH Version >>>>>>> 1.9.0+git~20180516T211208Z~3c7db639fd~64bit >>>>>>> (git 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>>>> >>>>>>> As I told in last mail, I'm working >>>>>>> with last git version. >>>>>>> >>>>>>> Then I have a last question, related >>>>>>> to that (db), when it will work, all >>>>>>> mods will save the information to >>>>>>> pgsql or a mix some to sqlite and >>>>>>> some to pgsql? I saw in other files >>>>>>> the availibility to configure also >>>>>>> db, like >>>>>>> /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>>>>> >>>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# >>>>>>> cat >>>>>>> /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>>>>> |grep db >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> name="force-register-db-domain" >>>>>>> value="$${domain}"/> >>>>>>> >>>>>>> The config you see in the mail is >>>>>>> the last configuration I defined. >>>>>>> Yesterday I get lost with wich >>>>>>> config work or wich one no... >>>>>>> >>>>>>> I feel I'm almost at end of this >>>>>>> installation! I'm doing a step by >>>>>>> step manual in spanish to how to >>>>>>> install last version of freeswitch, >>>>>>> this will be public and if you want >>>>>>> I could upload to wiki. >>>>>>> >>>>>>> Thanks you much for your help :) >>>>>>> >>>>>>> References: >>>>>>> https://freeswitch.org/confluence/display/FREESWITCH/PostgreSQL+in+the+core >>>>>>> >>>>>>> https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN >>>>>>> >>>>>>> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+Databases >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> - Blackhold >>>>>>> http://blackhold.nusepas.com >>>>>>> >>>>>>> @blackhold_ >>>>>>> ~> cal lluitar contra el fort per >>>>>>> deixar de ser febles, i contra >>>>>>> nosaltres mateixos quan siguem forts >>>>>>> (Xirinacs) >>>>>>> <°((( >< >>>>>>> >>>>>>> 2018-05-24 18:21 GMT+02:00 Michael >>>>>>> Jerris >>>>>> >: >>>>>>> >>>>>>> what tables are ending up in the >>>>>>> recreated sqlite db? You need to >>>>>>> set it for the modules that use >>>>>>> sqlite too (like for mod_sofia). >>>>>>> we have a global var for this in >>>>>>> default configs. >>>>>>> >>>>>>> > On May 23, 2018, at 6:13 PM, >>>>>>> Blackhold >>>>>>> >>>>>> > >>>>>>> wrote: >>>>>>> > >>>>>>> > Hi, >>>>>>> > I have just installed >>>>>>> freeswitch 1.9 >>>>>>> > >>>>>>> > freeswitch at freeswitch-capa8> >>>>>>> version >>>>>>> > FreeSWITCH Version >>>>>>> 1.9.0+git~20180516T211208Z~3c7db639fd~64bit >>>>>>> (git 3c7db63 2018-05-16 >>>>>>> 21:12:08Z 64bit) >>>>>>> > >>>>>>> > And I'm trying to freeswitch >>>>>>> use postgresql instead sqlitedb. >>>>>>> > >>>>>>> > I have configured the file >>>>>>> switch.conf.xml of >>>>>>> /usr/local/freeswitch/conf/autoload_configs >>>>>>> with uncomenting and configuring >>>>>>> this line >>>>>>> > >>>>>>> >  >>>>>> value="pgsql://hostaddr=127.0.0.1 >>>>>>> dbname=freeswitch_db >>>>>>> user=freeswitch_user >>>>>>> password='****' options='-c >>>>>>> client_min_messages=NOTICE'" /> >>>>>>> > >>>>>>> > then I exported all sqlitedbs >>>>>>> to sql and then imported to a >>>>>>> database that I have created in >>>>>>> postgresql >>>>>>> > >>>>>>> > I have run again >>>>>>> /etc/init.d/freeswitch.sh start >>>>>>> > >>>>>>> > But seems it still is taking >>>>>>> sqlitedb. >>>>>>> > >>>>>>> > I tried to move the sqlitedbs >>>>>>> files to other side and turned >>>>>>> on again freeswitch, but it >>>>>>> creates sqlitedbs again. >>>>>>> > >>>>>>> > What I'm missing? what I'm >>>>>>> doing wrong? what could I check? >>>>>>> >>>>>>> >>>>>>> _________________________________________________________________________ >>>>>>> Professional FreeSWITCH >>>>>>> Consulting Services: >>>>>>> consulting at freeswitch.org >>>>>>> >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> >>>>>>> http://confluence.freeswitch.org >>>>>>> >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>> >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> >>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>>> >>>>>>> http://www.freeswitch.org >>>>>>> >>>>>>> >>>>>>> >>>>>>> _________________________________________________________________________ >>>>>>> Professional FreeSWITCH Consulting >>>>>>> Services: >>>>>>> consulting at freeswitch.org >>>>>>> >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> >>>>>>> http://confluence.freeswitch.org >>>>>>> >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>> >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> >>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>>> >>>>>>> http://www.freeswitch.org >>>>>>> >>>>>> >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting >>>>>> Services: >>>>>> consulting at freeswitch.org >>>>>> >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> >>>>>> http://confluence.freeswitch.org >>>>>> >>>>>> http://www.cluecon.com >>>>>> >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>> >>>>>> http://www.freeswitch.org >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>> >>>>>> http://www.freeswitch.org >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>> >>>>> http://www.freeswitch.org >>>>> >>>>> >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>> >>>>> http://www.freeswitch.org >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> >>>> http://www.freeswitchsolutions.com >>>> >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> >>>> http://www.freeswitch.org >>>> >>>> >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> >>>> http://www.freeswitchsolutions.com >>>> >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> >>>> http://www.freeswitch.org >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> >>> http://www.freeswitch.org >>> >>> >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> >>> http://www.freeswitch.org >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Fri May 25 00:13:04 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Fri, 25 May 2018 02:13:04 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> <6f187dfd-449c-9ab1-4132-d38d8c2cf08a@madovsky.org> Message-ID: wich string I have to add? or ? for example for file conf/sip_profiles/internal.xml:231 wich modules needs db connection? thanks! - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-25 1:33 GMT+02:00 Madovsky : > if you set pgsql:// in switch.conf.xml so > > you must set pgsql:// in every config where a DB is involved > On 5/24/2018 4:11 PM, Blackhold wrote: > > what or wich is the sip profile? > > I understand that all tables that are created in sqlite are the ones that > have to create to psql database that I'm refering all time... > > The configs I'm showing all time are the real config (only changing > password value) > > 2018-05-25 0:43 GMT+02:00 Madovsky : > >> are you sure you are using the proper sip profile which use pgsql:// ? >> On 5/24/2018 3:20 PM, Blackhold wrote: >> >> it seems nothing... yes tells something, but no one error, it seems all >> modules are loaded ok. >> >> >> 2018-05-24 22:58:20.552211 [INFO] sofia.c:5987 Setting MAX Auth Validity >> to 0 Attempts >> >> 2018-05-24 22:58:20.557248 [INFO] switch_core_sqldb.c:1693 sofia:external >> Starting SQL thread. >> >> 2018-05-24 22:58:20.562295 [NOTICE] sofia.c:4172 Adding Alias >> [10.90.226.83] for profile [internal] >> 2018-05-24 22:58:20.562424 [WARNING] sofia.c:2285 MSG Thread 0 Started >> >> 2018-05-24 22:58:22.059111 [CONSOLE] switch_loadable_module.c:1540 >> Successfully Loaded [mod_db] >> 2018-05-24 22:58:22.059118 [NOTICE] switch_loadable_module.c:292 Adding >> Application 'db' >> 2018-05-24 22:58:22.059128 [NOTICE] switch_loadable_module.c:292 Adding >> Application 'group' >> 2018-05-24 22:58:22.059137 [NOTICE] switch_loadable_module.c:338 Adding >> API Function 'db' >> 2018-05-24 22:58:22.059146 [NOTICE] switch_loadable_module.c:338 Adding >> API Function 'group' >> 2018-05-24 22:58:22.059154 [NOTICE] switch_loadable_module.c:556 Adding >> Limit interface 'db' >> >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-24 23:23 GMT+02:00 Madovsky : >> >>> and anything in FS logs? >>> On 5/24/2018 1:59 PM, Blackhold wrote: >>> >>> done, restarted psql and turned on freeswitch, nothing in psql log >>> files, no tables where created. >>> >>> using psql conector >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>> nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-24 22:41 GMT+02:00 Madovsky : >>> >>>> remove these 2 lines >>>> >>>> local all postgres peer >>>> >>>> local all all peer >>>> and replace with >>>> >>>> local all all trust >>>> >>>> in your pg_hba.conf >>>> >>>> >>>> On 5/24/2018 1:26 PM, Blackhold wrote: >>>> >>>> Hi, >>>> >>>> I'm trying both ways, switching between one and the other... I >>>> initially want to use psql directly, not using odbc, but when using >>>> directly I get less info, well... logs files don't say nothing :( if the >>>> correct way is to use that: >>>> >>>> >>>> >>>> so then, I only will use that, and the problem is my system, not >>>> freeswitch. >>>> >>>> odbc configuration is an old odbc configuration that I used some time >>>> ago when I had to use it... so... for actual psql db wich version is the >>>> ok?! >>>> >>>> Here you have the versions of libraries I have: >>>> >>>> # debian 8 fresh install (x86_64) >>>> >>>> root at freeswitch-capa8:~# cat /etc/debian_version >>>> 8.10 >>>> root at freeswitch-capa8:~# dpkg -l |grep postgresql >>>> ii odbc-postgresql:amd64 1:09.03.0300-1 >>>> amd64 ODBC driver for PostgreSQL >>>> ii postgresql 9.4+165+deb8u3 >>>> all object-relational SQL database (supported version) >>>> ii postgresql-9.4 9.4.15-0+deb8u1 >>>> amd64 object-relational SQL database, version 9.4 server >>>> ii postgresql-client 9.4+165+deb8u3 >>>> all front-end programs for PostgreSQL (supported version) >>>> ii postgresql-client-9.4 9.4.15-0+deb8u1 >>>> amd64 front-end programs for PostgreSQL 9.4 >>>> ii postgresql-client-common 165+deb8u3 >>>> all manager for multiple PostgreSQL client versions >>>> ii postgresql-common 165+deb8u3 >>>> all PostgreSQL database-cluster manager >>>> root at freeswitch-capa8:~# dpkg -l |grep libpq >>>> ii libpq-dev 9.4.15-0+deb8u1 >>>> amd64 header files for libpq5 (PostgreSQL library) >>>> ii libpq5:amd64 9.4.15-0+deb8u1 >>>> amd64 PostgreSQL C client library >>>> >>>> all these packages are downloaded from sources >>>> >>>> the lines enabled at pg_hba.conf are these (the debian default ones) >>>> >>>> local all postgres peer >>>> local all all peer >>>> host all all 127.0.0.1/32 md5 >>>> host all all ::1/128 md5 >>>> >>>> the script that I have used to do the installation is the one located >>>> in source code >>>> >>>> root at freeswitch-capa8:/usr/src/freeswitch/scripts# ls -l |grep >>>> raspbian-installer >>>> -rwxr-xr-x 1 root root 7922 May 23 20:26 FreeSWITCH-debian-raspbian-ins >>>> taller.sh >>>> >>>> >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-24 21:58 GMT+02:00 Madovsky : >>>> >>>>> First of all, pgsql:// does not use odbc, instead use odbc:// to use >>>>> odbc (btw your odbc.ini file shows Protocol=6.4 (!?) are you using >>>>> >>>>> postgresql 6.x !??!) >>>>> >>>>> what version of postgresql are you using? compiled yourself or from >>>>> system package? >>>>> >>>>> check if there are not multiple versions of libpq.xx in your system. >>>>> >>>>> check pg_hba.conf if localhost is on trust mode for all local users. >>>>> >>>>> if you compiled yourself so be sure the right libpq.xx have been >>>>> chosen. >>>>> On 5/24/2018 12:33 PM, Blackhold wrote: >>>>> >>>>> nope, it is not able to create stuff >>>>> >>>>> now I also have enabled that in switch.conf.xml >>>>> >>>>> >>>>> >>>>> >>>>> tested with odbc and directly with psql and behaviour is the same. >>>>> >>>>> for psql the procedure I have followed is >>>>> >>>>> root at freeswitch-capa8:~# su - postgres >>>>> root at freeswitch-capa8:~# postgres at freeswitch-capa8:~$ createuser >>>>> freeswitch_user >>>>> root at freeswitch-capa8:~# createdb -O freeswitch_user freeswitch_db >>>>> root at freeswitch-capa8:~# psql freeswitch_db >>>>> freeswitch_db=# ALTER USER freeswitch_user WITH PASSWORD 'XXX'; >>>>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO >>>>> freeswitch_user; >>>>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public >>>>> TO freeswitch_user; >>>>> >>>>> the most beatiful was with odbc + tables created... in the last >>>>> mail... freeswitch turned on, in other ways freeswitch doesn't turns on. >>>>> >>>>> logs doesn't talk about permissions.... >>>>> >>>>> >>>>> >>>>> >>>>> - Blackhold >>>>> http://blackhold.nusepas.com >>>>> @blackhold_ >>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>> <°((( >< >>>>> >>>>> 2018-05-24 21:20 GMT+02:00 Michael Jerris : >>>>> >>>>>> you shouldn't need to pre-import the tables, if the permissions are >>>>>> right, it should create the tables and indexes for you. >>>>>> >>>>>> >>>>>> On May 24, 2018, at 3:15 PM, Blackhold >>>>>> wrote: >>>>>> >>>>>> I continue with tests >>>>>> >>>>>> I think I know wich problem I had with errors >>>>>> >>>>>> I have missed to grant privileges in psql: >>>>>> >>>>>> GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO >>>>>> freeswitch_user; >>>>>> GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO >>>>>> freeswitch_user; >>>>>> >>>>>> # with tables imported from sqlite it shows (freeswitch runs) >>>>>> >>>>>> root at freeswitch-capa8:/var/log/postgresql# tail -f >>>>>> postgresql-9.4-main.log >>>>>> >>>>>> 2018-05-24 21:03:34 CEST [8623-1] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-2] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery1 on >>>>>> recovery(technology);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-3] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-4] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery2 on >>>>>> recovery(profile_name);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-5] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-6] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on >>>>>> recovery(uuid);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-7] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-8] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on >>>>>> recovery(runtime_uuid);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-9] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-10] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index alias1 on aliases >>>>>> (alias);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-11] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-12] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index tasks1 on tasks >>>>>> (hostname,task_id);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-13] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-14] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete1 on complete >>>>>> (a1,hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-15] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-16] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete2 on complete >>>>>> (a2,hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-17] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-18] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete3 on complete >>>>>> (a3,hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-19] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-20] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete4 on complete >>>>>> (a4,hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-21] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-22] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete5 on complete >>>>>> (a5,hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-23] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-24] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete6 on complete >>>>>> (a6,hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-25] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-26] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete7 on complete >>>>>> (a7,hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-27] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-28] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete8 on complete >>>>>> (a8,hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-29] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-30] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete9 on complete >>>>>> (a9,hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-31] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-32] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete10 on complete >>>>>> (a10,hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-33] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-34] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete11 on complete >>>>>> (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-35] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-36] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index nat_map_port_proto on >>>>>> nat (port,proto,hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-37] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-38] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index channels1 on >>>>>> channels(hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-39] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-40] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index calls1 on >>>>>> calls(hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-41] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-42] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index chidx1 on channels >>>>>> (hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-43] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-44] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex on channels >>>>>> (uuid, hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-45] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-46] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex2 on channels >>>>>> (call_uuid);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-47] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-48] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index callsidx1 on calls >>>>>> (hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-49] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-50] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eruuindex on calls >>>>>> (caller_uuid, hostname);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-51] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-52] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex on calls >>>>>> (callee_uuid);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-53] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-54] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex2 on calls >>>>>> (call_uuid);EXECUTE "_PLAN0x123ff90" >>>>>> 2018-05-24 21:03:34 CEST [8623-55] freeswitch_user at freeswitch_db >>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>> 2018-05-24 21:03:34 CEST [8623-56] freeswitch_user at freeswitch_db >>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index regindex1 on >>>>>> registrations (reg_user,realm,hostname);EXECUTE "_PLAN0x123ff90" >>>>>> >>>>>> # with a clean database >>>>>> >>>>>> start dropping last errors, and don't create any table in db. >>>>>> Freeswitch doesn't turns on. >>>>>> >>>>>> each time I stop freeswitch when it don't runs, it keeps a process >>>>>> running that I have to kill manually >>>>>> >>>>>> root at freeswitch-capa8:/var/log/postgresql# ps aux |grep free >>>>>> root 8706 39.6 0.7 141296 15244 ? S>>>>> /usr/local/freeswitch/bin/freeswitch -nc >>>>>> >>>>>> >>>>>> # with granted permisions if I turn configuration to not use odbc, >>>>>> using psql directly >>>>>> >>>>>> freeswitch turns on, there's no errors in psql log file and no table >>>>>> was created on db. >>>>>> >>>>>> >>>>>> >>>>>> - Blackhold >>>>>> http://blackhold.nusepas.com >>>>>> @blackhold_ >>>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>>> <°((( >< >>>>>> >>>>>> 2018-05-24 20:31 GMT+02:00 Blackhold : >>>>>> >>>>>>> # OK for location of ODBC files >>>>>>> >>>>>>> # output freeswitch using psql (I only edited switch.conf.xml file) >>>>>>> (switch.conf.xml file) >>>>>>> >>>>>>> I see no errors related on logs (nor freeswitch, nor psql -debug5-), >>>>>>> obviously restarted psql to reload config. >>>>>>> >>>>>>> in sofia.conf.xml file I found no option to configure it pointing to >>>>>>> database >>>>>>> no other config file, except switch.conf.xml has configured database >>>>>>> pointing >>>>>>> >>>>>>> I tried to configure db.conf.xml file, with switch.conf.xml line but >>>>>>> also do nothing >>>>>>> >>>>>>> # output freeswtich using odbc >>>>>>> >>>>>>> (switch.conf.xml file) >>>>>>> >>>>>>> these are the first lines of postgresql log file >>>>>>> >>>>>>> 2018-05-24 20:23:15 CEST [7518-7] LOG: received fast shutdown >>>>>>> request >>>>>>> 2018-05-24 20:23:15 CEST [7518-8] LOG: aborting any active >>>>>>> transactions >>>>>>> 2018-05-24 20:23:15 CEST [7548-2] LOG: autovacuum launcher shutting >>>>>>> down >>>>>>> 2018-05-24 20:23:15 CEST [7545-1] LOG: shutting down >>>>>>> 2018-05-24 20:23:15 CEST [7545-2] LOG: database system is shut down >>>>>>> 2018-05-24 20:23:16 CEST [7568-1] LOG: database system was shut >>>>>>> down at 2018-05-24 20:23:15 CEST >>>>>>> 2018-05-24 20:23:16 CEST [7568-2] LOG: MultiXact member wraparound >>>>>>> protections are now enabled >>>>>>> 2018-05-24 20:23:16 CEST [7567-1] LOG: database system is ready to >>>>>>> accept connections >>>>>>> 2018-05-24 20:23:16 CEST [7572-1] LOG: autovacuum launcher started >>>>>>> 2018-05-24 20:23:16 CEST [7574-1] [unknown]@[unknown] LOG: >>>>>>> incomplete startup packet >>>>>>> 2018-05-24 20:23:39 CEST [7596-1] freeswitch_user at freeswitch_db >>>>>>> ERROR: relation "channels" does not exist at character 40 >>>>>>> 2018-05-24 20:23:39 CEST [7596-2] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from channels where >>>>>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>>>>> 2018-05-24 20:23:39 CEST [7596-3] freeswitch_user at freeswitch_db >>>>>>> ERROR: relation "calls" does not exist at character 40 >>>>>>> 2018-05-24 20:23:39 CEST [7596-4] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from calls where >>>>>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>>>>> 2018-05-24 20:23:39 CEST [7596-5] freeswitch_user at freeswitch_db >>>>>>> ERROR: relation "tasks" does not exist at character 40 >>>>>>> 2018-05-24 20:23:39 CEST [7596-6] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from tasks where >>>>>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>>>>> 2018-05-24 20:23:39 CEST [7596-7] freeswitch_user at freeswitch_db >>>>>>> ERROR: relation "aliases" does not exist at character 49 >>>>>>> 2018-05-24 20:23:39 CEST [7596-8] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as select hostname from aliases;EXECUTE >>>>>>> "_PLAN0x9f3f90" >>>>>>> 2018-05-24 20:23:39 CEST [7596-9] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "DROP" at character 28 >>>>>>> 2018-05-24 20:23:39 CEST [7596-10] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as DROP TABLE aliases;EXECUTE >>>>>>> "_PLAN0x9f3f90" >>>>>>> 2018-05-24 20:23:39 CEST [7596-11] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "CREATE" at character 28 >>>>>>> 2018-05-24 20:23:39 CEST [7596-12] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as CREATE TABLE aliases ( >>>>>>> sticky INTEGER, >>>>>>> alias VARCHAR(128), >>>>>>> command VARCHAR(4096), >>>>>>> hostname VARCHAR(256) >>>>>>> ); >>>>>>> ;EXECUTE "_PLAN0x9f3f90" >>>>>>> >>>>>>> and now freeswitch isn't able to run. >>>>>>> >>>>>>> If I enable odbc trace in odbcinst.ini >>>>>>> >>>>>>> Trace=Yes >>>>>>> TraceFile=/var/log/odbctrace.log >>>>>>> >>>>>>> Also there's no output.... >>>>>>> >>>>>>> In freeswitch log also there's nothing about what is happening :( >>>>>>> >>>>>>> >>>>>>> - Blackhold >>>>>>> http://blackhold.nusepas.com >>>>>>> @blackhold_ >>>>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>>>> <°((( >< >>>>>>> >>>>>>> 2018-05-24 19:30 GMT+02:00 Michael Jerris : >>>>>>> >>>>>>>> but that table layout is like that because you imported the tables, >>>>>>>> i was asking what is in the recreated sqlite ones. If it fails to connect >>>>>>>> like you later describe, its going to fall back, you should see stuff in >>>>>>>> the fs logs on startup about this. the odbc configs go in the normal place >>>>>>>> they go in the os, not in fs specific dirs. Those errors tell me something >>>>>>>> is up, but not sure what, might need to turn on some debug on pg side to >>>>>>>> see. some of our tests like to see if table schema is right throw errors >>>>>>>> then we act on them, if you restart a second time you should get a more >>>>>>>> useful set of errors. >>>>>>>> >>>>>>>> >>>>>>>> On May 24, 2018, at 1:11 PM, Blackhold >>>>>>>> wrote: >>>>>>>> >>>>>>>> Hi, >>>>>>>> The tables are: >>>>>>>> >>>>>>>> ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db >>>>>>>> freeswitch_db-# \dt >>>>>>>> >>>>>>>> List of relations >>>>>>>> Schema | Name | Type | Owner >>>>>>>> --------+-------------------------------------+-------+---------- >>>>>>>> public | aliases | table | postgres >>>>>>>> public | calls | table | postgres >>>>>>>> public | channels | table | postgres >>>>>>>> public | complete | table | postgres >>>>>>>> public | db_data | table | postgres >>>>>>>> public | fifo_bridge | table | postgres >>>>>>>> public | fifo_callers | table | postgres >>>>>>>> public | fifo_outbound | table | postgres >>>>>>>> public | group_data | table | postgres >>>>>>>> public | interfaces | table | postgres >>>>>>>> public | json_store | table | postgres >>>>>>>> public | limit_data | table | postgres >>>>>>>> public | nat | table | postgres >>>>>>>> public | recovery | table | postgres >>>>>>>> public | registrations | table | postgres >>>>>>>> public | sip_authentication | table | postgres >>>>>>>> public | sip_dialogs | table | postgres >>>>>>>> public | sip_presence | table | postgres >>>>>>>> public | sip_registrations | table | postgres >>>>>>>> public | sip_shared_appearance_dialogs | table | postgres >>>>>>>> public | sip_shared_appearance_subscriptions | table | postgres >>>>>>>> public | sip_subscriptions | table | postgres >>>>>>>> public | tasks | table | postgres >>>>>>>> public | voicemail_msgs | table | postgres >>>>>>>> public | voicemail_prefs | table | postgres >>>>>>>> (25 rows) >>>>>>>> >>>>>>>> I continued testing and found that if I configure switch.conf.xml >>>>>>>> file like this: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> When I turn on freeswitch, postgresql don't output nothing. Then I >>>>>>>> tried to configure freeswitch using odbc I then YES I get something in >>>>>>>> postgresql logs >>>>>>>> >>>>>>>> For odbc I have something not clear, it is mandatory to put files >>>>>>>> in /usr/local/freeswitch/etc ? or leaving them at default directory (/etc) >>>>>>>> is enough? >>>>>>>> >>>>>>>> Here I show the config of odbc files: >>>>>>>> root at freeswitch-capa8:/etc# cat odbc.ini >>>>>>>> [freeswitch] >>>>>>>> ; WARNING: The old psql odbc driver psqlodbc.so is now renamed >>>>>>>> psqlodbcw.so >>>>>>>> ; in version 08.x. Note that the library can also be installed >>>>>>>> under an other >>>>>>>> ; path than /usr/local/lib/ following your installation. >>>>>>>> ; Driver = /usr/lib64/odbc/psqlodbcw.so >>>>>>>> ; Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so >>>>>>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>>>>> Description=Connection to LDAP/POSTGRESQL >>>>>>>> Servername=localhost >>>>>>>> Port=5432 >>>>>>>> Protocol=6.4 >>>>>>>> FetchBufferSize=99 >>>>>>>> Username=freeswitch_user >>>>>>>> Password=XXX >>>>>>>> Database=freeswitch_db >>>>>>>> ReadOnly=no >>>>>>>> Debug=0 >>>>>>>> CommLog=0 >>>>>>>> >>>>>>>> root at freeswitch-capa8:/etc# cat odbcinst.ini >>>>>>>> [PostgreSQL] >>>>>>>> Description = PostgreSQL driver for Linux & Win32 >>>>>>>> ;Driver = /usr/lib64/odbc/psqlodbcw.so >>>>>>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>>>>> Threading = 0 >>>>>>>> MaxLongVarcharSize=65536 >>>>>>>> >>>>>>>> And then connect to psql through odbc >>>>>>>> >>>>>>>> root at freeswitch-capa8:/etc# isql -v freeswitch >>>>>>>> +---------------------------------------+ >>>>>>>> | Connected! | >>>>>>>> | | >>>>>>>> | sql-statement | >>>>>>>> | help [tablename] | >>>>>>>> | quit | >>>>>>>> | | >>>>>>>> +---------------------------------------+ >>>>>>>> SQL> >>>>>>>> >>>>>>>> Then in file switch.conf.xml I changed db connection configuration >>>>>>>> >>>>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# >>>>>>>> cat switch.conf.xml |grep core-db-dsn >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Last night SwK user at freenode channel told me that freeswitch on >>>>>>>> turning on, it creates tables at database (thanks SwK). >>>>>>>> >>>>>>>> I spect that configuration of odbc is working but drops lot of >>>>>>>> errors (here you have some lines): >>>>>>>> >>>>>>>> 2018-05-24 02:03:25 CEST [3099-338780] freeswitch_user at freeswitch_db >>>>>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE nat ( >>>>>>>> sticky INTEGER, >>>>>>>> port INTEGER, >>>>>>>> proto INTEGER, >>>>>>>> hostname VARCHAR(256) >>>>>>>> ); >>>>>>>> ;EXECUTE "_PLAN0x140bf90" >>>>>>>> 2018-05-24 02:03:25 CEST [3099-338781] freeswitch_user at freeswitch_db >>>>>>>> WARNING: there is already a transaction in progress >>>>>>>> 2018-05-24 02:03:25 CEST [3099-338782] freeswitch_user at freeswitch_db >>>>>>>> ERROR: relation "registrations" does not exist at character 41 >>>>>>>> 2018-05-24 02:03:25 CEST [3099-338783] freeswitch_user at freeswitch_db >>>>>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as delete from registrations where >>>>>>>> reg_user='';EXECUTE "_PLAN0x140bf90" >>>>>>>> 2018-05-24 02:03:25 CEST [3099-338784] freeswitch_user at freeswitch_db >>>>>>>> WARNING: there is already a transaction in progress >>>>>>>> 2018-05-24 02:03:25 CEST [3099-338785] freeswitch_user at freeswitch_db >>>>>>>> ERROR: syntax error at or near "DROP" at character 29 >>>>>>>> 2018-05-24 02:03:25 CEST [3099-338786] freeswitch_user at freeswitch_db >>>>>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as DROP TABLE registrations;EXECUTE >>>>>>>> "_PLAN0x140bf90" >>>>>>>> 2018-05-24 02:03:25 CEST [3099-338787] freeswitch_user at freeswitch_db >>>>>>>> WARNING: there is already a transaction in progress >>>>>>>> 2018-05-24 02:03:25 CEST [3099-338788] freeswitch_user at freeswitch_db >>>>>>>> ERROR: syntax error at or near "CREATE" at character 29 >>>>>>>> 2018-05-24 02:03:25 CEST [3099-338789] freeswitch_user at freeswitch_db >>>>>>>> STATEMENT: PREPARE "_PLAN0x140bf90" as CREATE TABLE registrations ( >>>>>>>> reg_user VARCHAR(256), >>>>>>>> realm VARCHAR(256), >>>>>>>> token VARCHAR(256), >>>>>>>> url TEXT, >>>>>>>> expires INTEGER, >>>>>>>> network_ip VARCHAR(256), >>>>>>>> network_port VARCHAR(256), >>>>>>>> network_proto VARCHAR(256), >>>>>>>> hostname VARCHAR(256), >>>>>>>> metadata VARCHAR(256) >>>>>>>> ); >>>>>>>> ;EXECUTE "_PLAN0x140bf90" >>>>>>>> 2018-05-24 02:03:25 CEST [3099-338790] freeswitch_user at freeswitch_db >>>>>>>> WARNING: there is already a transaction in progress >>>>>>>> 2018-05-24 02:03:25 CEST [3099-338791] freeswitch_user at freeswitch_db >>>>>>>> LOG: unexpected EOF on client connection with an open transaction >>>>>>>> >>>>>>>> >>>>>>>> I tested with tables in psql database and without tables in psql >>>>>>>> database. >>>>>>>> >>>>>>>> freeswitch at freeswitch-capa8> version >>>>>>>> FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit >>>>>>>> (git 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>>>>> >>>>>>>> As I told in last mail, I'm working with last git version. >>>>>>>> >>>>>>>> Then I have a last question, related to that (db), when it will >>>>>>>> work, all mods will save the information to pgsql or a mix some to sqlite >>>>>>>> and some to pgsql? I saw in other files the availibility to configure also >>>>>>>> db, like /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>>>>>> >>>>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# cat >>>>>>>> /usr/local/freeswitch/conf/sip_profiles/internal.xml |grep db >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> The config you see in the mail is the last configuration I defined. >>>>>>>> Yesterday I get lost with wich config work or wich one no... >>>>>>>> >>>>>>>> I feel I'm almost at end of this installation! I'm doing a step by >>>>>>>> step manual in spanish to how to install last version of freeswitch, this >>>>>>>> will be public and if you want I could upload to wiki. >>>>>>>> >>>>>>>> Thanks you much for your help :) >>>>>>>> >>>>>>>> References: >>>>>>>> https://freeswitch.org/confluence/display/FREESWITCH/Postgre >>>>>>>> SQL+in+the+core >>>>>>>> https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN >>>>>>>> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWI >>>>>>>> TCH+Databases >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> - Blackhold >>>>>>>> http://blackhold.nusepas.com >>>>>>>> @blackhold_ >>>>>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>>>>> <°((( >< >>>>>>>> >>>>>>>> 2018-05-24 18:21 GMT+02:00 Michael Jerris : >>>>>>>> >>>>>>>>> what tables are ending up in the recreated sqlite db? You need to >>>>>>>>> set it for the modules that use sqlite too (like for mod_sofia). we have a >>>>>>>>> global var for this in default configs. >>>>>>>>> >>>>>>>>> > On May 23, 2018, at 6:13 PM, Blackhold < >>>>>>>>> blackholdmailer at gmail.com> wrote: >>>>>>>>> > >>>>>>>>> > Hi, >>>>>>>>> > I have just installed freeswitch 1.9 >>>>>>>>> > >>>>>>>>> > freeswitch at freeswitch-capa8> version >>>>>>>>> > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit >>>>>>>>> (git 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>>>>>> > >>>>>>>>> > And I'm trying to freeswitch use postgresql instead sqlitedb. >>>>>>>>> > >>>>>>>>> > I have configured the file switch.conf.xml of >>>>>>>>> /usr/local/freeswitch/conf/autoload_configs with uncomenting and >>>>>>>>> configuring this line >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > then I exported all sqlitedbs to sql and then imported to a >>>>>>>>> database that I have created in postgresql >>>>>>>>> > >>>>>>>>> > I have run again /etc/init.d/freeswitch.sh start >>>>>>>>> > >>>>>>>>> > But seems it still is taking sqlitedb. >>>>>>>>> > >>>>>>>>> > I tried to move the sqlitedbs files to other side and turned on >>>>>>>>> again freeswitch, but it creates sqlitedbs again. >>>>>>>>> > >>>>>>>>> > What I'm missing? what I'm doing wrong? what could I check? >>>>>>>>> >>>>>>>>> >>>>>>>>> ____________________________________________________________ >>>>>>>>> _____________ >>>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>>> consulting at freeswitch.org >>>>>>>>> http://www.freeswitchsolutions.com >>>>>>>>> >>>>>>>>> Official FreeSWITCH Sites >>>>>>>>> http://www.freeswitch.org >>>>>>>>> http://confluence.freeswitch.org >>>>>>>>> http://www.cluecon.com >>>>>>>>> >>>>>>>>> FreeSWITCH-users mailing list >>>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>>>>> switch-users >>>>>>>>> http://www.freeswitch.org >>>>>>>> >>>>>>>> >>>>>>>> ____________________________________________________________ >>>>>>>> _____________ >>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>> consulting at freeswitch.org >>>>>>>> http://www.freeswitchsolutions.com >>>>>>>> >>>>>>>> Official FreeSWITCH Sites >>>>>>>> http://www.freeswitch.org >>>>>>>> http://confluence.freeswitch.org >>>>>>>> http://www.cluecon.com >>>>>>>> >>>>>>>> FreeSWITCH-users mailing list >>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>>>> switch-users >>>>>>>> http://www.freeswitch.org >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ____________________________________________________________ >>>>>>>> _____________ >>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>> consulting at freeswitch.org >>>>>>>> http://www.freeswitchsolutions.com >>>>>>>> >>>>>>>> Official FreeSWITCH Sites >>>>>>>> http://www.freeswitch.org >>>>>>>> http://confluence.freeswitch.org >>>>>>>> http://www.cluecon.com >>>>>>>> >>>>>>>> FreeSWITCH-users mailing list >>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>>>> switch-users >>>>>>>> http://www.freeswitch.org >>>>>>>> >>>>>>> >>>>>>> >>>>>> ____________________________________________________________ >>>>>> _____________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>> switch-users >>>>>> http://www.freeswitch.org >>>>>> >>>>>> >>>>>> >>>>>> ____________________________________________________________ >>>>>> _____________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>> switch-users >>>>>> http://www.freeswitch.org >>>>>> >>>>> >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>>>> >>>>> >>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>> switch-users >>>>> http://www.freeswitch.org >>>>> >>>> >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>>> >>>> >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>> switch-users >>>> http://www.freeswitch.org >>>> >>> >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>> >>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>> >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >> >> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >> >> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com > > Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com > > FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Fri May 25 00:17:33 2018 From: mike at jerris.com (Michael Jerris) Date: Thu, 24 May 2018 20:17:33 -0400 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> <6f187dfd-449c-9ab1-4132-d38d8c2cf08a@madovsky.org> Message-ID: core-db-dsn in switch.conf.xml covers the core db, there is additional settings for mod_sofia, and a var to set for some things in mod_verto. That probably covers most of it. Each module is different and has settings for things like this. > On May 24, 2018, at 8:13 PM, Blackhold wrote: > > wich string I have to add? > > > > or > > > > ? > > for example for file conf/sip_profiles/internal.xml:231 > > wich modules needs db connection? > > thanks! From blackholdmailer at gmail.com Fri May 25 00:18:15 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Fri, 25 May 2018 02:18:15 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> <6f187dfd-449c-9ab1-4132-d38d8c2cf08a@madovsky.org> Message-ID: uh... I started searching for db string in files and the first I have seen it asks for an other variables, and the line that I have to activate is not to de db connection. So then, which options I have to configure to get it working? the file is: root at freeswitch-capa8:/usr/local/freeswitch/conf/sip_profiles# vi external-ipv6.xml - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-25 2:13 GMT+02:00 Blackhold : > wich string I have to add? > > > > or > > > > ? > > for example for file conf/sip_profiles/internal.xml:231 > > wich modules needs db connection? > > thanks! > > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres > mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-25 1:33 GMT+02:00 Madovsky : > >> if you set pgsql:// in switch.conf.xml so >> >> you must set pgsql:// in every config where a DB is involved >> On 5/24/2018 4:11 PM, Blackhold wrote: >> >> what or wich is the sip profile? >> >> I understand that all tables that are created in sqlite are the ones that >> have to create to psql database that I'm refering all time... >> >> The configs I'm showing all time are the real config (only changing >> password value) >> >> 2018-05-25 0:43 GMT+02:00 Madovsky : >> >>> are you sure you are using the proper sip profile which use pgsql:// ? >>> On 5/24/2018 3:20 PM, Blackhold wrote: >>> >>> it seems nothing... yes tells something, but no one error, it seems all >>> modules are loaded ok. >>> >>> >>> 2018-05-24 22:58:20.552211 [INFO] sofia.c:5987 Setting MAX Auth Validity >>> to 0 Attempts >>> >>> 2018-05-24 22:58:20.557248 [INFO] switch_core_sqldb.c:1693 >>> sofia:external Starting SQL thread. >>> >>> 2018-05-24 22:58:20.562295 [NOTICE] sofia.c:4172 Adding Alias >>> [10.90.226.83] for profile [internal] >>> 2018-05-24 22:58:20.562424 [WARNING] sofia.c:2285 MSG Thread 0 Started >>> >>> 2018-05-24 22:58:22.059111 [CONSOLE] switch_loadable_module.c:1540 >>> Successfully Loaded [mod_db] >>> 2018-05-24 22:58:22.059118 [NOTICE] switch_loadable_module.c:292 Adding >>> Application 'db' >>> 2018-05-24 22:58:22.059128 [NOTICE] switch_loadable_module.c:292 Adding >>> Application 'group' >>> 2018-05-24 22:58:22.059137 [NOTICE] switch_loadable_module.c:338 Adding >>> API Function 'db' >>> 2018-05-24 22:58:22.059146 [NOTICE] switch_loadable_module.c:338 Adding >>> API Function 'group' >>> 2018-05-24 22:58:22.059154 [NOTICE] switch_loadable_module.c:556 Adding >>> Limit interface 'db' >>> >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>> nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-24 23:23 GMT+02:00 Madovsky : >>> >>>> and anything in FS logs? >>>> On 5/24/2018 1:59 PM, Blackhold wrote: >>>> >>>> done, restarted psql and turned on freeswitch, nothing in psql log >>>> files, no tables where created. >>>> >>>> using psql conector >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-24 22:41 GMT+02:00 Madovsky : >>>> >>>>> remove these 2 lines >>>>> >>>>> local all postgres peer >>>>> >>>>> local all all peer >>>>> and replace with >>>>> >>>>> local all all trust >>>>> >>>>> in your pg_hba.conf >>>>> >>>>> >>>>> On 5/24/2018 1:26 PM, Blackhold wrote: >>>>> >>>>> Hi, >>>>> >>>>> I'm trying both ways, switching between one and the other... I >>>>> initially want to use psql directly, not using odbc, but when using >>>>> directly I get less info, well... logs files don't say nothing :( if the >>>>> correct way is to use that: >>>>> >>>>> >>>>> >>>>> so then, I only will use that, and the problem is my system, not >>>>> freeswitch. >>>>> >>>>> odbc configuration is an old odbc configuration that I used some time >>>>> ago when I had to use it... so... for actual psql db wich version is the >>>>> ok?! >>>>> >>>>> Here you have the versions of libraries I have: >>>>> >>>>> # debian 8 fresh install (x86_64) >>>>> >>>>> root at freeswitch-capa8:~# cat /etc/debian_version >>>>> 8.10 >>>>> root at freeswitch-capa8:~# dpkg -l |grep postgresql >>>>> ii odbc-postgresql:amd64 1:09.03.0300-1 >>>>> amd64 ODBC driver for PostgreSQL >>>>> ii postgresql 9.4+165+deb8u3 >>>>> all object-relational SQL database (supported version) >>>>> ii postgresql-9.4 9.4.15-0+deb8u1 >>>>> amd64 object-relational SQL database, version 9.4 server >>>>> ii postgresql-client 9.4+165+deb8u3 >>>>> all front-end programs for PostgreSQL (supported version) >>>>> ii postgresql-client-9.4 9.4.15-0+deb8u1 >>>>> amd64 front-end programs for PostgreSQL 9.4 >>>>> ii postgresql-client-common 165+deb8u3 >>>>> all manager for multiple PostgreSQL client versions >>>>> ii postgresql-common 165+deb8u3 >>>>> all PostgreSQL database-cluster manager >>>>> root at freeswitch-capa8:~# dpkg -l |grep libpq >>>>> ii libpq-dev 9.4.15-0+deb8u1 >>>>> amd64 header files for libpq5 (PostgreSQL library) >>>>> ii libpq5:amd64 9.4.15-0+deb8u1 >>>>> amd64 PostgreSQL C client library >>>>> >>>>> all these packages are downloaded from sources >>>>> >>>>> the lines enabled at pg_hba.conf are these (the debian default ones) >>>>> >>>>> local all postgres peer >>>>> local all all peer >>>>> host all all 127.0.0.1/32 md5 >>>>> host all all ::1/128 md5 >>>>> >>>>> the script that I have used to do the installation is the one located >>>>> in source code >>>>> >>>>> root at freeswitch-capa8:/usr/src/freeswitch/scripts# ls -l |grep >>>>> raspbian-installer >>>>> -rwxr-xr-x 1 root root 7922 May 23 20:26 FreeSWITCH-debian-raspbian-ins >>>>> taller.sh >>>>> >>>>> >>>>> >>>>> >>>>> - Blackhold >>>>> http://blackhold.nusepas.com >>>>> @blackhold_ >>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>> <°((( >< >>>>> >>>>> 2018-05-24 21:58 GMT+02:00 Madovsky : >>>>> >>>>>> First of all, pgsql:// does not use odbc, instead use odbc:// to use >>>>>> odbc (btw your odbc.ini file shows Protocol=6.4 (!?) are you using >>>>>> >>>>>> postgresql 6.x !??!) >>>>>> >>>>>> what version of postgresql are you using? compiled yourself or from >>>>>> system package? >>>>>> >>>>>> check if there are not multiple versions of libpq.xx in your system. >>>>>> >>>>>> check pg_hba.conf if localhost is on trust mode for all local users. >>>>>> >>>>>> if you compiled yourself so be sure the right libpq.xx have been >>>>>> chosen. >>>>>> On 5/24/2018 12:33 PM, Blackhold wrote: >>>>>> >>>>>> nope, it is not able to create stuff >>>>>> >>>>>> now I also have enabled that in switch.conf.xml >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> tested with odbc and directly with psql and behaviour is the same. >>>>>> >>>>>> for psql the procedure I have followed is >>>>>> >>>>>> root at freeswitch-capa8:~# su - postgres >>>>>> root at freeswitch-capa8:~# postgres at freeswitch-capa8:~$ createuser >>>>>> freeswitch_user >>>>>> root at freeswitch-capa8:~# createdb -O freeswitch_user freeswitch_db >>>>>> root at freeswitch-capa8:~# psql freeswitch_db >>>>>> freeswitch_db=# ALTER USER freeswitch_user WITH PASSWORD 'XXX'; >>>>>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public >>>>>> TO freeswitch_user; >>>>>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA >>>>>> public TO freeswitch_user; >>>>>> >>>>>> the most beatiful was with odbc + tables created... in the last >>>>>> mail... freeswitch turned on, in other ways freeswitch doesn't turns on. >>>>>> >>>>>> logs doesn't talk about permissions.... >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> - Blackhold >>>>>> http://blackhold.nusepas.com >>>>>> @blackhold_ >>>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>>> <°((( >< >>>>>> >>>>>> 2018-05-24 21:20 GMT+02:00 Michael Jerris : >>>>>> >>>>>>> you shouldn't need to pre-import the tables, if the permissions are >>>>>>> right, it should create the tables and indexes for you. >>>>>>> >>>>>>> >>>>>>> On May 24, 2018, at 3:15 PM, Blackhold >>>>>>> wrote: >>>>>>> >>>>>>> I continue with tests >>>>>>> >>>>>>> I think I know wich problem I had with errors >>>>>>> >>>>>>> I have missed to grant privileges in psql: >>>>>>> >>>>>>> GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO >>>>>>> freeswitch_user; >>>>>>> GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO >>>>>>> freeswitch_user; >>>>>>> >>>>>>> # with tables imported from sqlite it shows (freeswitch runs) >>>>>>> >>>>>>> root at freeswitch-capa8:/var/log/postgresql# tail -f >>>>>>> postgresql-9.4-main.log >>>>>>> >>>>>>> 2018-05-24 21:03:34 CEST [8623-1] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-2] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery1 on >>>>>>> recovery(technology);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-3] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-4] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery2 on >>>>>>> recovery(profile_name);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-5] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-6] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on >>>>>>> recovery(uuid);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-7] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-8] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index recovery3 on >>>>>>> recovery(runtime_uuid);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-9] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-10] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index alias1 on aliases >>>>>>> (alias);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-11] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-12] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index tasks1 on tasks >>>>>>> (hostname,task_id);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-13] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-14] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete1 on complete >>>>>>> (a1,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-15] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-16] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete2 on complete >>>>>>> (a2,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-17] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-18] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete3 on complete >>>>>>> (a3,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-19] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-20] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete4 on complete >>>>>>> (a4,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-21] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-22] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete5 on complete >>>>>>> (a5,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-23] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-24] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete6 on complete >>>>>>> (a6,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-25] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-26] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete7 on complete >>>>>>> (a7,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-27] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-28] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete8 on complete >>>>>>> (a8,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-29] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-30] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete9 on complete >>>>>>> (a9,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-31] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-32] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete10 on complete >>>>>>> (a10,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-33] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-34] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index complete11 on complete >>>>>>> (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-35] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-36] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index nat_map_port_proto on >>>>>>> nat (port,proto,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-37] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-38] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index channels1 on >>>>>>> channels(hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-39] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-40] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index calls1 on >>>>>>> calls(hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-41] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-42] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index chidx1 on channels >>>>>>> (hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-43] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-44] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex on channels >>>>>>> (uuid, hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-45] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-46] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index uuindex2 on channels >>>>>>> (call_uuid);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-47] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-48] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index callsidx1 on calls >>>>>>> (hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-49] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-50] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eruuindex on calls >>>>>>> (caller_uuid, hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-51] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-52] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex on calls >>>>>>> (callee_uuid);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-53] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-54] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index eeuuindex2 on calls >>>>>>> (call_uuid);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-55] freeswitch_user at freeswitch_db >>>>>>> ERROR: syntax error at or near "create" at character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-56] freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x123ff90" as create index regindex1 on >>>>>>> registrations (reg_user,realm,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> >>>>>>> # with a clean database >>>>>>> >>>>>>> start dropping last errors, and don't create any table in db. >>>>>>> Freeswitch doesn't turns on. >>>>>>> >>>>>>> each time I stop freeswitch when it don't runs, it keeps a process >>>>>>> running that I have to kill manually >>>>>>> >>>>>>> root at freeswitch-capa8:/var/log/postgresql# ps aux |grep free >>>>>>> root 8706 39.6 0.7 141296 15244 ? S>>>>>> /usr/local/freeswitch/bin/freeswitch -nc >>>>>>> >>>>>>> >>>>>>> # with granted permisions if I turn configuration to not use odbc, >>>>>>> using psql directly >>>>>>> >>>>>>> freeswitch turns on, there's no errors in psql log file and no table >>>>>>> was created on db. >>>>>>> >>>>>>> >>>>>>> >>>>>>> - Blackhold >>>>>>> http://blackhold.nusepas.com >>>>>>> @blackhold_ >>>>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>>>> <°((( >< >>>>>>> >>>>>>> 2018-05-24 20:31 GMT+02:00 Blackhold : >>>>>>> >>>>>>>> # OK for location of ODBC files >>>>>>>> >>>>>>>> # output freeswitch using psql (I only edited switch.conf.xml file) >>>>>>>> (switch.conf.xml file) >>>>>>>> >>>>>>>> I see no errors related on logs (nor freeswitch, nor psql >>>>>>>> -debug5-), obviously restarted psql to reload config. >>>>>>>> >>>>>>>> in sofia.conf.xml file I found no option to configure it pointing >>>>>>>> to database >>>>>>>> no other config file, except switch.conf.xml has configured >>>>>>>> database pointing >>>>>>>> >>>>>>>> I tried to configure db.conf.xml file, with switch.conf.xml line >>>>>>>> but also do nothing >>>>>>>> >>>>>>>> # output freeswtich using odbc >>>>>>>> >>>>>>>> (switch.conf.xml file) >>>>>>>> >>>>>>>> these are the first lines of postgresql log file >>>>>>>> >>>>>>>> 2018-05-24 20:23:15 CEST [7518-7] LOG: received fast shutdown >>>>>>>> request >>>>>>>> 2018-05-24 20:23:15 CEST [7518-8] LOG: aborting any active >>>>>>>> transactions >>>>>>>> 2018-05-24 20:23:15 CEST [7548-2] LOG: autovacuum launcher >>>>>>>> shutting down >>>>>>>> 2018-05-24 20:23:15 CEST [7545-1] LOG: shutting down >>>>>>>> 2018-05-24 20:23:15 CEST [7545-2] LOG: database system is shut down >>>>>>>> 2018-05-24 20:23:16 CEST [7568-1] LOG: database system was shut >>>>>>>> down at 2018-05-24 20:23:15 CEST >>>>>>>> 2018-05-24 20:23:16 CEST [7568-2] LOG: MultiXact member wraparound >>>>>>>> protections are now enabled >>>>>>>> 2018-05-24 20:23:16 CEST [7567-1] LOG: database system is ready to >>>>>>>> accept connections >>>>>>>> 2018-05-24 20:23:16 CEST [7572-1] LOG: autovacuum launcher started >>>>>>>> 2018-05-24 20:23:16 CEST [7574-1] [unknown]@[unknown] LOG: >>>>>>>> incomplete startup packet >>>>>>>> 2018-05-24 20:23:39 CEST [7596-1] freeswitch_user at freeswitch_db >>>>>>>> ERROR: relation "channels" does not exist at character 40 >>>>>>>> 2018-05-24 20:23:39 CEST [7596-2] freeswitch_user at freeswitch_db >>>>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from channels where >>>>>>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>>>>>> 2018-05-24 20:23:39 CEST [7596-3] freeswitch_user at freeswitch_db >>>>>>>> ERROR: relation "calls" does not exist at character 40 >>>>>>>> 2018-05-24 20:23:39 CEST [7596-4] freeswitch_user at freeswitch_db >>>>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from calls where >>>>>>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>>>>>> 2018-05-24 20:23:39 CEST [7596-5] freeswitch_user at freeswitch_db >>>>>>>> ERROR: relation "tasks" does not exist at character 40 >>>>>>>> 2018-05-24 20:23:39 CEST [7596-6] freeswitch_user at freeswitch_db >>>>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as delete from tasks where >>>>>>>> hostname='freeswitch-capa8';EXECUTE "_PLAN0x9f3f90" >>>>>>>> 2018-05-24 20:23:39 CEST [7596-7] freeswitch_user at freeswitch_db >>>>>>>> ERROR: relation "aliases" does not exist at character 49 >>>>>>>> 2018-05-24 20:23:39 CEST [7596-8] freeswitch_user at freeswitch_db >>>>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as select hostname from aliases;EXECUTE >>>>>>>> "_PLAN0x9f3f90" >>>>>>>> 2018-05-24 20:23:39 CEST [7596-9] freeswitch_user at freeswitch_db >>>>>>>> ERROR: syntax error at or near "DROP" at character 28 >>>>>>>> 2018-05-24 20:23:39 CEST [7596-10] freeswitch_user at freeswitch_db >>>>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as DROP TABLE aliases;EXECUTE >>>>>>>> "_PLAN0x9f3f90" >>>>>>>> 2018-05-24 20:23:39 CEST [7596-11] freeswitch_user at freeswitch_db >>>>>>>> ERROR: syntax error at or near "CREATE" at character 28 >>>>>>>> 2018-05-24 20:23:39 CEST [7596-12] freeswitch_user at freeswitch_db >>>>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" as CREATE TABLE aliases ( >>>>>>>> sticky INTEGER, >>>>>>>> alias VARCHAR(128), >>>>>>>> command VARCHAR(4096), >>>>>>>> hostname VARCHAR(256) >>>>>>>> ); >>>>>>>> ;EXECUTE "_PLAN0x9f3f90" >>>>>>>> >>>>>>>> and now freeswitch isn't able to run. >>>>>>>> >>>>>>>> If I enable odbc trace in odbcinst.ini >>>>>>>> >>>>>>>> Trace=Yes >>>>>>>> TraceFile=/var/log/odbctrace.log >>>>>>>> >>>>>>>> Also there's no output.... >>>>>>>> >>>>>>>> In freeswitch log also there's nothing about what is happening :( >>>>>>>> >>>>>>>> >>>>>>>> - Blackhold >>>>>>>> http://blackhold.nusepas.com >>>>>>>> @blackhold_ >>>>>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>>>>> <°((( >< >>>>>>>> >>>>>>>> 2018-05-24 19:30 GMT+02:00 Michael Jerris : >>>>>>>> >>>>>>>>> but that table layout is like that because you imported the >>>>>>>>> tables, i was asking what is in the recreated sqlite ones. If it fails to >>>>>>>>> connect like you later describe, its going to fall back, you should see >>>>>>>>> stuff in the fs logs on startup about this. the odbc configs go in the >>>>>>>>> normal place they go in the os, not in fs specific dirs. Those errors tell >>>>>>>>> me something is up, but not sure what, might need to turn on some debug on >>>>>>>>> pg side to see. some of our tests like to see if table schema is right >>>>>>>>> throw errors then we act on them, if you restart a second time you should >>>>>>>>> get a more useful set of errors. >>>>>>>>> >>>>>>>>> >>>>>>>>> On May 24, 2018, at 1:11 PM, Blackhold >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>> Hi, >>>>>>>>> The tables are: >>>>>>>>> >>>>>>>>> ostgres at freeswitch-capa8:~/sql$ psql freeswitch_db >>>>>>>>> freeswitch_db-# \dt >>>>>>>>> >>>>>>>>> List of relations >>>>>>>>> Schema | Name | Type | Owner >>>>>>>>> --------+-------------------------------------+-------+---------- >>>>>>>>> public | aliases | table | postgres >>>>>>>>> public | calls | table | postgres >>>>>>>>> public | channels | table | postgres >>>>>>>>> public | complete | table | postgres >>>>>>>>> public | db_data | table | postgres >>>>>>>>> public | fifo_bridge | table | postgres >>>>>>>>> public | fifo_callers | table | postgres >>>>>>>>> public | fifo_outbound | table | postgres >>>>>>>>> public | group_data | table | postgres >>>>>>>>> public | interfaces | table | postgres >>>>>>>>> public | json_store | table | postgres >>>>>>>>> public | limit_data | table | postgres >>>>>>>>> public | nat | table | postgres >>>>>>>>> public | recovery | table | postgres >>>>>>>>> public | registrations | table | postgres >>>>>>>>> public | sip_authentication | table | postgres >>>>>>>>> public | sip_dialogs | table | postgres >>>>>>>>> public | sip_presence | table | postgres >>>>>>>>> public | sip_registrations | table | postgres >>>>>>>>> public | sip_shared_appearance_dialogs | table | postgres >>>>>>>>> public | sip_shared_appearance_subscriptions | table | postgres >>>>>>>>> public | sip_subscriptions | table | postgres >>>>>>>>> public | tasks | table | postgres >>>>>>>>> public | voicemail_msgs | table | postgres >>>>>>>>> public | voicemail_prefs | table | postgres >>>>>>>>> (25 rows) >>>>>>>>> >>>>>>>>> I continued testing and found that if I configure switch.conf.xml >>>>>>>>> file like this: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> When I turn on freeswitch, postgresql don't output nothing. Then I >>>>>>>>> tried to configure freeswitch using odbc I then YES I get something in >>>>>>>>> postgresql logs >>>>>>>>> >>>>>>>>> For odbc I have something not clear, it is mandatory to put files >>>>>>>>> in /usr/local/freeswitch/etc ? or leaving them at default directory (/etc) >>>>>>>>> is enough? >>>>>>>>> >>>>>>>>> Here I show the config of odbc files: >>>>>>>>> root at freeswitch-capa8:/etc# cat odbc.ini >>>>>>>>> [freeswitch] >>>>>>>>> ; WARNING: The old psql odbc driver psqlodbc.so is now renamed >>>>>>>>> psqlodbcw.so >>>>>>>>> ; in version 08.x. Note that the library can also be installed >>>>>>>>> under an other >>>>>>>>> ; path than /usr/local/lib/ following your installation. >>>>>>>>> ; Driver = /usr/lib64/odbc/psqlodbcw.so >>>>>>>>> ; Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so >>>>>>>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>>>>>> Description=Connection to LDAP/POSTGRESQL >>>>>>>>> Servername=localhost >>>>>>>>> Port=5432 >>>>>>>>> Protocol=6.4 >>>>>>>>> FetchBufferSize=99 >>>>>>>>> Username=freeswitch_user >>>>>>>>> Password=XXX >>>>>>>>> Database=freeswitch_db >>>>>>>>> ReadOnly=no >>>>>>>>> Debug=0 >>>>>>>>> CommLog=0 >>>>>>>>> >>>>>>>>> root at freeswitch-capa8:/etc# cat odbcinst.ini >>>>>>>>> [PostgreSQL] >>>>>>>>> Description = PostgreSQL driver for Linux & Win32 >>>>>>>>> ;Driver = /usr/lib64/odbc/psqlodbcw.so >>>>>>>>> Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>>>>>> Threading = 0 >>>>>>>>> MaxLongVarcharSize=65536 >>>>>>>>> >>>>>>>>> And then connect to psql through odbc >>>>>>>>> >>>>>>>>> root at freeswitch-capa8:/etc# isql -v freeswitch >>>>>>>>> +---------------------------------------+ >>>>>>>>> | Connected! | >>>>>>>>> | | >>>>>>>>> | sql-statement | >>>>>>>>> | help [tablename] | >>>>>>>>> | quit | >>>>>>>>> | | >>>>>>>>> +---------------------------------------+ >>>>>>>>> SQL> >>>>>>>>> >>>>>>>>> Then in file switch.conf.xml I changed db connection configuration >>>>>>>>> >>>>>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# >>>>>>>>> cat switch.conf.xml |grep core-db-dsn >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> Last night SwK user at freenode channel told me that freeswitch on >>>>>>>>> turning on, it creates tables at database (thanks SwK). >>>>>>>>> >>>>>>>>> I spect that configuration of odbc is working but drops lot of >>>>>>>>> errors (here you have some lines): >>>>>>>>> >>>>>>>>> 2018-05-24 02:03:25 CEST [3099-338780] >>>>>>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>>>>>> "_PLAN0x140bf90" as CREATE TABLE nat ( >>>>>>>>> sticky INTEGER, >>>>>>>>> port INTEGER, >>>>>>>>> proto INTEGER, >>>>>>>>> hostname VARCHAR(256) >>>>>>>>> ); >>>>>>>>> ;EXECUTE "_PLAN0x140bf90" >>>>>>>>> 2018-05-24 02:03:25 CEST [3099-338781] >>>>>>>>> freeswitch_user at freeswitch_db WARNING: there is already a >>>>>>>>> transaction in progress >>>>>>>>> 2018-05-24 02:03:25 CEST [3099-338782] >>>>>>>>> freeswitch_user at freeswitch_db ERROR: relation "registrations" >>>>>>>>> does not exist at character 41 >>>>>>>>> 2018-05-24 02:03:25 CEST [3099-338783] >>>>>>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>>>>>> "_PLAN0x140bf90" as delete from registrations where reg_user='';EXECUTE >>>>>>>>> "_PLAN0x140bf90" >>>>>>>>> 2018-05-24 02:03:25 CEST [3099-338784] >>>>>>>>> freeswitch_user at freeswitch_db WARNING: there is already a >>>>>>>>> transaction in progress >>>>>>>>> 2018-05-24 02:03:25 CEST [3099-338785] >>>>>>>>> freeswitch_user at freeswitch_db ERROR: syntax error at or near >>>>>>>>> "DROP" at character 29 >>>>>>>>> 2018-05-24 02:03:25 CEST [3099-338786] >>>>>>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>>>>>> "_PLAN0x140bf90" as DROP TABLE registrations;EXECUTE "_PLAN0x140bf90" >>>>>>>>> 2018-05-24 02:03:25 CEST [3099-338787] >>>>>>>>> freeswitch_user at freeswitch_db WARNING: there is already a >>>>>>>>> transaction in progress >>>>>>>>> 2018-05-24 02:03:25 CEST [3099-338788] >>>>>>>>> freeswitch_user at freeswitch_db ERROR: syntax error at or near >>>>>>>>> "CREATE" at character 29 >>>>>>>>> 2018-05-24 02:03:25 CEST [3099-338789] >>>>>>>>> freeswitch_user at freeswitch_db STATEMENT: PREPARE >>>>>>>>> "_PLAN0x140bf90" as CREATE TABLE registrations ( >>>>>>>>> reg_user VARCHAR(256), >>>>>>>>> realm VARCHAR(256), >>>>>>>>> token VARCHAR(256), >>>>>>>>> url TEXT, >>>>>>>>> expires INTEGER, >>>>>>>>> network_ip VARCHAR(256), >>>>>>>>> network_port VARCHAR(256), >>>>>>>>> network_proto VARCHAR(256), >>>>>>>>> hostname VARCHAR(256), >>>>>>>>> metadata VARCHAR(256) >>>>>>>>> ); >>>>>>>>> ;EXECUTE "_PLAN0x140bf90" >>>>>>>>> 2018-05-24 02:03:25 CEST [3099-338790] >>>>>>>>> freeswitch_user at freeswitch_db WARNING: there is already a >>>>>>>>> transaction in progress >>>>>>>>> 2018-05-24 02:03:25 CEST [3099-338791] >>>>>>>>> freeswitch_user at freeswitch_db LOG: unexpected EOF on client >>>>>>>>> connection with an open transaction >>>>>>>>> >>>>>>>>> >>>>>>>>> I tested with tables in psql database and without tables in psql >>>>>>>>> database. >>>>>>>>> >>>>>>>>> freeswitch at freeswitch-capa8> version >>>>>>>>> FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit >>>>>>>>> (git 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>>>>>> >>>>>>>>> As I told in last mail, I'm working with last git version. >>>>>>>>> >>>>>>>>> Then I have a last question, related to that (db), when it will >>>>>>>>> work, all mods will save the information to pgsql or a mix some to sqlite >>>>>>>>> and some to pgsql? I saw in other files the availibility to configure also >>>>>>>>> db, like /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>>>>>>> >>>>>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# cat >>>>>>>>> /usr/local/freeswitch/conf/sip_profiles/internal.xml |grep db >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> The config you see in the mail is the last configuration I >>>>>>>>> defined. Yesterday I get lost with wich config work or wich one no... >>>>>>>>> >>>>>>>>> I feel I'm almost at end of this installation! I'm doing a step by >>>>>>>>> step manual in spanish to how to install last version of freeswitch, this >>>>>>>>> will be public and if you want I could upload to wiki. >>>>>>>>> >>>>>>>>> Thanks you much for your help :) >>>>>>>>> >>>>>>>>> References: >>>>>>>>> https://freeswitch.org/confluence/display/FREESWITCH/Postgre >>>>>>>>> SQL+in+the+core >>>>>>>>> https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN >>>>>>>>> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWI >>>>>>>>> TCH+Databases >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> - Blackhold >>>>>>>>> http://blackhold.nusepas.com >>>>>>>>> @blackhold_ >>>>>>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>>>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>>>>>> <°((( >< >>>>>>>>> >>>>>>>>> 2018-05-24 18:21 GMT+02:00 Michael Jerris : >>>>>>>>> >>>>>>>>>> what tables are ending up in the recreated sqlite db? You need >>>>>>>>>> to set it for the modules that use sqlite too (like for mod_sofia). we >>>>>>>>>> have a global var for this in default configs. >>>>>>>>>> >>>>>>>>>> > On May 23, 2018, at 6:13 PM, Blackhold < >>>>>>>>>> blackholdmailer at gmail.com> wrote: >>>>>>>>>> > >>>>>>>>>> > Hi, >>>>>>>>>> > I have just installed freeswitch 1.9 >>>>>>>>>> > >>>>>>>>>> > freeswitch at freeswitch-capa8> version >>>>>>>>>> > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit >>>>>>>>>> (git 3c7db63 2018-05-16 21:12:08Z 64bit) >>>>>>>>>> > >>>>>>>>>> > And I'm trying to freeswitch use postgresql instead sqlitedb. >>>>>>>>>> > >>>>>>>>>> > I have configured the file switch.conf.xml of >>>>>>>>>> /usr/local/freeswitch/conf/autoload_configs with uncomenting and >>>>>>>>>> configuring this line >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > then I exported all sqlitedbs to sql and then imported to a >>>>>>>>>> database that I have created in postgresql >>>>>>>>>> > >>>>>>>>>> > I have run again /etc/init.d/freeswitch.sh start >>>>>>>>>> > >>>>>>>>>> > But seems it still is taking sqlitedb. >>>>>>>>>> > >>>>>>>>>> > I tried to move the sqlitedbs files to other side and turned on >>>>>>>>>> again freeswitch, but it creates sqlitedbs again. >>>>>>>>>> > >>>>>>>>>> > What I'm missing? what I'm doing wrong? what could I check? >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ____________________________________________________________ >>>>>>>>>> _____________ >>>>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>>>> consulting at freeswitch.org >>>>>>>>>> http://www.freeswitchsolutions.com >>>>>>>>>> >>>>>>>>>> Official FreeSWITCH Sites >>>>>>>>>> http://www.freeswitch.org >>>>>>>>>> http://confluence.freeswitch.org >>>>>>>>>> http://www.cluecon.com >>>>>>>>>> >>>>>>>>>> FreeSWITCH-users mailing list >>>>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>>>>>> switch-users >>>>>>>>>> http://www.freeswitch.org >>>>>>>>> >>>>>>>>> >>>>>>>>> ____________________________________________________________ >>>>>>>>> _____________ >>>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>>> consulting at freeswitch.org >>>>>>>>> http://www.freeswitchsolutions.com >>>>>>>>> >>>>>>>>> Official FreeSWITCH Sites >>>>>>>>> http://www.freeswitch.org >>>>>>>>> http://confluence.freeswitch.org >>>>>>>>> http://www.cluecon.com >>>>>>>>> >>>>>>>>> FreeSWITCH-users mailing list >>>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>>>>> switch-users >>>>>>>>> http://www.freeswitch.org >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> ____________________________________________________________ >>>>>>>>> _____________ >>>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>>> consulting at freeswitch.org >>>>>>>>> http://www.freeswitchsolutions.com >>>>>>>>> >>>>>>>>> Official FreeSWITCH Sites >>>>>>>>> http://www.freeswitch.org >>>>>>>>> http://confluence.freeswitch.org >>>>>>>>> http://www.cluecon.com >>>>>>>>> >>>>>>>>> FreeSWITCH-users mailing list >>>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>>>>> switch-users >>>>>>>>> http://www.freeswitch.org >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> ____________________________________________________________ >>>>>>> _____________ >>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>> consulting at freeswitch.org >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> http://confluence.freeswitch.org >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>>> switch-users >>>>>>> http://www.freeswitch.org >>>>>>> >>>>>>> >>>>>>> >>>>>>> ____________________________________________________________ >>>>>>> _____________ >>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>> consulting at freeswitch.org >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> http://confluence.freeswitch.org >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>>> switch-users >>>>>>> http://www.freeswitch.org >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>>>>> >>>>>> >>>>>> >>>>>> ____________________________________________________________ >>>>>> _____________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>> switch-users >>>>>> http://www.freeswitch.org >>>>>> >>>>> >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>>>> >>>>> >>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>> switch-users >>>>> http://www.freeswitch.org >>>>> >>>> >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>>> >>>> >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>> switch-users >>>> http://www.freeswitch.org >>>> >>> >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>> >>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>> >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >> >> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >> >> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Fri May 25 00:45:31 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Fri, 25 May 2018 02:45:31 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> <6f187dfd-449c-9ab1-4132-d38d8c2cf08a@madovsky.org> Message-ID: I have search string odbc in each config file and added the line for connecting to psql 549 vi autoload_configs/switch.conf.xml 550 vi sip_profiles/internal.xml 551 vi autoload_configs/directory.conf.xml 552 vi autoload_configs/voicemail.conf.xml 553 vi autoload_configs/easyroute.conf.xml 554 vi autoload_configs/db.conf.xml 555 vi sip_profiles/internal.xml 556 vi autoload_configs/db.conf.xml 557 vi autoload_configs/cidlookup.conf.xml 558 vi autoload_configs/lcr.conf.xml 559 vi autoload_configs/nibblebill.conf.xml 560 vi autoload_configs/callcenter.conf.xml 561 vi jingle_profiles/server.xml 562 vi sip_profiles/internal-ipv6.xml 563 vi sip_profiles/internal-ipv6.xml 564 vi skinny_profiles/internal.xml this is the line I have added (not to all files, the ones that asks for odbc-dsn: I started freeswitch again, and now it don't turns on and postgresql logs are crazy! - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-25 2:17 GMT+02:00 Michael Jerris : > core-db-dsn in switch.conf.xml covers the core db, there is additional > settings for mod_sofia, and a var to set for some things in mod_verto. > That probably covers most of it. Each module is different and has settings > for things like this. > > > On May 24, 2018, at 8:13 PM, Blackhold > wrote: > > > > wich string I have to add? > > > > > > > > or > > > > > > > > ? > > > > for example for file conf/sip_profiles/internal.xml:231 > > > > wich modules needs db connection? > > > > thanks! > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From raimundo.perez.cuba at gmail.com Fri May 25 06:12:40 2018 From: raimundo.perez.cuba at gmail.com (=?utf-8?Q?Raimundo_P=C3=A9rez_Nieves?=) Date: Fri, 25 May 2018 08:12:40 +0200 Subject: [Freeswitch-users] Bye isn't taking to hangup Message-ID: Hi, I have this particular problem. When I turn on sip trace global, I get a bye from legB but it does not hangup the call, how can I capture this bye and hangup. I attach sip trace Thanks -------------- next part -------------- A non-text attachment was scrubbed... Name: SipTrace.rtf Type: text/rtf Size: 15662 bytes Desc: not available URL: From s.safarov at gmail.com Fri May 25 06:26:15 2018 From: s.safarov at gmail.com (Sergey Safarov) Date: Fri, 25 May 2018 09:26:15 +0300 Subject: [Freeswitch-users] Bye does not hangup In-Reply-To: <8280EF9E-A19F-445C-818C-A22E9D3170B3@gmail.com> References: <8280EF9E-A19F-445C-818C-A22E9D3170B3@gmail.com> Message-ID: I not see any issue. What is wrong are you think? пт, 25 мая 2018 г. в 2:52, Raimundo Pérez Nieves < raimundo.perez.cuba at gmail.com>: > Hi, I have this particular problem. > When I turn on sip trace global, I get a bye from legB but it does not > hangup the call, how can I capture this bye and hangup. > I attach sip trace > Thanks > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From atulthosar at gmail.com Fri May 25 08:44:44 2018 From: atulthosar at gmail.com (Atul Thosar) Date: Fri, 25 May 2018 14:14:44 +0530 Subject: [Freeswitch-users] Configuring timer-T1X64 In-Reply-To: <01B46841-070E-49FF-8C20-FC5BB19BD609@jerris.com> References: <01B46841-070E-49FF-8C20-FC5BB19BD609@jerris.com> Message-ID: Thanks Michael for the response. Btw I see timer-T1X64 works. It was my bad :-(. One of downstream element was sending 100 Trying and I missed that one. Really sorry. Was looking for alternative and found originate_timeout. This suits my requirement too. -- BR, Atul On 14 May 2018 at 22:29, Michael Jerris wrote: > The config looks right, maybe the additional sofia log level will tell > more, i know this used to work, but its not something i see people change > often. > > > On May 13, 2018, at 1:04 PM, Atul Thosar wrote: > > Any pointers? > ​Thanks.​ > > -- > ​ > > Atul > > > On 10 May 2018 at 20:32, Atul Thosar wrote: > >> Hi All, >> I want to change the timer B of INVITE Client Transaction. So I set >> following in conf/sip_profiles/external.xml >> >> >> >> Restarted freeswitch and observed following debug line in logs >> >> 2018-05-10 16:57:43.799719 [DEBUG] sofia.c:4629 timer-T1X64 [4000] >> >> However, INVITE Client Transaction is not timing out in 4 sec. It still >> takes 32 sec to timed out. What could be the reason? Did I miss anything? >> >> Btw I am using external Lua client to control the freeswitch call flow. >> My Lua script connects to freeswitch over ESL connection and fires >> following command to make outbound call >> >> >> [DEBUG Thu May 10 17:00:17 2018] : command for outbound call is: lua >> ~freeswitch.Session('{origination_uuid=197422a3-e29e-452a- >> bf4e-86a6895a8cd5,sip_invite_route_uri=> lr=on;ftag=K9ZF9aXv8ra1e>}sofia/external/sip:18447770001 at domain.com', >> freeswitch.Session('0b4aaab6-cee8-1236-d897-005056b308ba')) >> >> 0b4aaab6-cee8-1236-d897-005056b308ba is call-id of my incoming call to >> freeswitch. >> >> I am using following version of freeswitch >> >> freeswitch at as80> version >> FreeSWITCH Version 1.8.0~64bit ( 64bit) >> ​​ >> > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vma at vallimamod.org Fri May 25 08:56:51 2018 From: vma at vallimamod.org (Vallimamod Abdullah) Date: Fri, 25 May 2018 10:56:51 +0200 Subject: [Freeswitch-users] FS uses external IP address for Contact in 200 to internal server In-Reply-To: <9BD8CDAE-0BEB-46A3-8379-6616DF439AD4@pobox.com> References: <9BD8CDAE-0BEB-46A3-8379-6616DF439AD4@pobox.com> Message-ID: <8843A360-F2E4-4B04-B15F-D192FB72AC59@vallimamod.org> Hi, > > > > These are not channel variables but profile params. So they have to be set on the profile configuration file under sip_profiles. And for your case, if all your traffic is internal on this profile, remove the last 2 params (ext-sip-ip and est-rtp-ip) as freeswitch use them to set the public ip on the contact and SDP if your server is nated. Best Regards, -- Vallimamod Abdullah SIP Solutions vma at sip.solutions linkedin.com/in/vallimamod . > On 24 May 2018, at 22:43, M Yudkowsky > wrote: > > Comrades! > > I'm using FreeSWITCH (FS) as a proxy between an internal server that makes calls and an external SIP provider. The internal server is a speech recognition server that has a telephony component to originate and terminate calls. > > Here's the sequence of messages between the internal server (IS) and FS: > > Starting the call, we see: > > IS (internal IP) == INVITE ==> FS (internal IP) > IS (internal IP) <== 100 == FS (internal IP) > IS (internal IP) <== 183 == FS (internal IP) > > FS gets a connection to SIP provider, and the internal call continues: > > IS (internal IP) <== 200 OK == FS (internal IP) > > But the 200 OK from FS contains, in the Contact field, the *external* IP address: > Contact: (external IP):5060;transport=udp> > As a result, the IS sends a response to the *external* IP address: > > IS (external IP) == ACK ==> FS (external IP) > > FS resends several 200's, which IS properly ignores. > Eventually FS gives up on hearing from IS and sends a > BYE with a Reason of 408 ACK Timeout. > > > I'm not clear which server is to "blame," if either. FS has "inbound-proxy-media" set to true in (my-dialplan).xml, and I would therefore expect that the Contact field would treat internal servers as internal and use internal IP addresses exclusively. Or is FS correct? Is the problem that IS attempting to do NAT based on the Contact and making an error? (I tried disabling IS's NAT, and almost certainly did it correctly, but that does not seem to help.) > > Variables set in (my_dialplan).xml: > > > > > > > And the next two were added on in an attempt to fix this, but failed to do so: > > > > > So, any ideas? > > -- > Moshe Yudkowsky > Disaggregate Corporation > 2952 W Fargo > Chicago, IL 60645 USA > > +1 773 764 8727 > speech at pobox.com > > http://www.Disaggregate.com > http://www.PebbleAndAvalanche.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From vma at vallimamod.org Fri May 25 09:02:01 2018 From: vma at vallimamod.org (Vallimamod Abdullah) Date: Fri, 25 May 2018 11:02:01 +0200 Subject: [Freeswitch-users] Multiple external profiles In-Reply-To: <1655081756.440956.1527192571807.JavaMail.zimbra@convergedgroup.net> References: <1655081756.440956.1527192571807.JavaMail.zimbra@convergedgroup.net> Message-ID: <1F92EEE6-00E1-4C84-97DF-D771966A3A63@vallimamod.org> Hi, Your gateways are included in the sip profile. You have something like this in your profile: Which attaches all the gateways in directory external to this profile. Best Regards, -- Vallimamod Abdullah SIP Solutions vma at sip.solutions linkedin.com/in/vallimamod . > On 24 May 2018, at 22:09, Andrew Colin wrote: > > Hi Guys > > If i am running 2 external sip profiles both running port 5080 but with different ip's how do i tell a specific gateway to use which sip profile? From raimundo.perez.cuba at gmail.com Fri May 25 11:03:08 2018 From: raimundo.perez.cuba at gmail.com (=?utf-8?Q?Raimundo_P=C3=A9rez_Nieves?=) Date: Fri, 25 May 2018 13:03:08 +0200 Subject: [Freeswitch-users] Bye does not hangup Message-ID: <340CD4FC-263B-417C-A152-121EB550EE60@gmail.com> The problem I am having is that the bye in sip trace isn’t hanging up the call, It keeps waiting to another bye from another ip, look the time between that bye from sip trace and the hangup that FS shows in debug. Thanks for your time From speech at pobox.com Fri May 25 12:46:51 2018 From: speech at pobox.com (M Yudkowsky) Date: Fri, 25 May 2018 07:46:51 -0500 Subject: [Freeswitch-users] FS uses external IP address for Contact in 200 to internal server In-Reply-To: <8843A360-F2E4-4B04-B15F-D192FB72AC59@vallimamod.org> References: <9BD8CDAE-0BEB-46A3-8379-6616DF439AD4@pobox.com> <8843A360-F2E4-4B04-B15F-D192FB72AC59@vallimamod.org> Message-ID: <659B3EFB-12D9-42B8-AD44-86502064BA6B@pobox.com> Hi, Thanks for your response, quite helpful. > On May 25, 2018, at 03:56 , Vallimamod Abdullah wrote: > >> >> >> >> >> > > These are not channel variables but profile params. So they have to be set on the profile configuration file under sip_profiles. I expect I was not clear: the params are set in sip_profiles/(profile name).xml, where "profile name" is a valid profile name. > And for your case, if all your traffic is internal on this profile, remove the last 2 params (ext-sip-ip and est-rtp-ip) as freeswitch use them to set the public ip on the contact and SDP if your server is nated. Going back to my original diagram, let me add the external leg explicitly: IS (internal IP) == INVITE ==> FS (internal IP) IS (internal IP) <== 100 == FS (internal IP) IS (internal IP) <== 183 == FS (internal IP) FS starts a call to the external provider: FS (external IP) == INVITE ==> SIP PROVIDER FS (external IP) <== 200 OK == SIP PROVIDER FS (external IP) == ACK ==> SIP PROVIDER FS continues the internal call: IS (internal IP) <== 200 OK == FS (internal IP) But the 200 OK from FS contains, in the Contact field, the *external* IP address: Contact: As a result, the IS sends a response to the *external* IP address: IS (external IP) == ACK ==> FS (external IP) FS resends several 200's, which IS properly ignores. Eventually FS gives up on hearing from IS and sends a BYE with a Reason of 408 ACK Timeout. Just to check, then: is the ext-rtp-ip and ext-sip-ip somehow too aggressive, and I should rely on NAT and localnet.auto and other automatic discovery mechanisms instead? Or is this configuration correct, and I have a different problem? -- Moshe Yudkowsky Disaggregate Corporation 2952 W Fargo Chicago, IL 60645 USA +1 773 764 8727 speech at pobox.com http://www.Disaggregate.com http://www.PebbleAndAvalanche.com From vma at vallimamod.org Fri May 25 13:15:26 2018 From: vma at vallimamod.org (Vallimamod Abdullah) Date: Fri, 25 May 2018 15:15:26 +0200 Subject: [Freeswitch-users] FS uses external IP address for Contact in 200 to internal server In-Reply-To: <659B3EFB-12D9-42B8-AD44-86502064BA6B@pobox.com> References: <9BD8CDAE-0BEB-46A3-8379-6616DF439AD4@pobox.com> <8843A360-F2E4-4B04-B15F-D192FB72AC59@vallimamod.org> <659B3EFB-12D9-42B8-AD44-86502064BA6B@pobox.com> Message-ID: <00A365E2-CFD5-471E-8E5C-3185CF46815A@vallimamod.org> Hi, The ext-xxx-ip is only needed if your external IP is private and nated to a public one defined on your router. This setting tells freeswitch to put directly the public IP in the contact and the SDP. If it's not already the case, you should use a different internal profile (attached to your internal IP) to discuss with your IS. In this profile, you don't need to define any NAT setting. Best Regards, -- Vallimamod Abdullah SIP Solutions vma at sip.solutions linkedin.com/in/vallimamod . > On 25 May 2018, at 14:46, M Yudkowsky wrote: > > Hi, > > Thanks for your response, quite helpful. > >> On May 25, 2018, at 03:56 , Vallimamod Abdullah wrote: >> >>> >>> >>> >>> >>> >> >> These are not channel variables but profile params. So they have to be set on the profile configuration file under sip_profiles. > > I expect I was not clear: the params are set in sip_profiles/(profile name).xml, where "profile name" is a valid profile name. > > >> And for your case, if all your traffic is internal on this profile, remove the last 2 params (ext-sip-ip and est-rtp-ip) as freeswitch use them to set the public ip on the contact and SDP if your server is nated. > > Going back to my original diagram, let me add the external leg explicitly: > > IS (internal IP) == INVITE ==> FS (internal IP) > IS (internal IP) <== 100 == FS (internal IP) > IS (internal IP) <== 183 == FS (internal IP) > > FS starts a call to the external provider: > > FS (external IP) == INVITE ==> SIP PROVIDER > FS (external IP) <== 200 OK == SIP PROVIDER > FS (external IP) == ACK ==> SIP PROVIDER > > FS continues the internal call: > > IS (internal IP) <== 200 OK == FS (internal IP) > > But the 200 OK from FS contains, in the Contact field, the *external* IP address: > Contact: > As a result, the IS sends a response to the *external* IP address: > > IS (external IP) == ACK ==> FS (external IP) > > FS resends several 200's, which IS properly ignores. > Eventually FS gives up on hearing from IS and sends a > BYE with a Reason of 408 ACK Timeout. > > > Just to check, then: is the and ext-sip-ip somehow too aggressive, and I should rely on NAT and localnet.auto and other automatic discovery mechanisms instead? Or is this configuration correct, and I have a different problem? > > > > -- > Moshe Yudkowsky > Disaggregate Corporation > 2952 W Fargo > Chicago, IL 60645 USA > > +1 773 764 8727 > speech at pobox.com > > http://www.Disaggregate.com > http://www.PebbleAndAvalanche.com > > > > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at freeswitch.com Fri May 25 13:48:41 2018 From: brian at freeswitch.com (Brian West) Date: Fri, 25 May 2018 08:48:41 -0500 Subject: [Freeswitch-users] FS uses external IP address for Contact in 200 to internal server In-Reply-To: <00A365E2-CFD5-471E-8E5C-3185CF46815A@vallimamod.org> References: <9BD8CDAE-0BEB-46A3-8379-6616DF439AD4@pobox.com> <8843A360-F2E4-4B04-B15F-D192FB72AC59@vallimamod.org> <659B3EFB-12D9-42B8-AD44-86502064BA6B@pobox.com> <00A365E2-CFD5-471E-8E5C-3185CF46815A@vallimamod.org> Message-ID: >> >> Change to: /b On Fri, May 25, 2018 at 8:15 AM, Vallimamod Abdullah wrote: > Hi, > > The ext-xxx-ip is only needed if your external IP is private and nated to > a public one defined on your router. This setting tells freeswitch to put > directly the public IP in the contact and the SDP. > > If it's not already the case, you should use a different internal profile > (attached to your internal IP) to discuss with your IS. In this profile, > you don't need to define any NAT setting. > > Best Regards, > -- > Vallimamod Abdullah > SIP Solutions > vma at sip.solutions > linkedin.com/in/vallimamod > . > > > On 25 May 2018, at 14:46, M Yudkowsky wrote: > > Hi, > > Thanks for your response, quite helpful. > > On May 25, 2018, at 03:56 , Vallimamod Abdullah > wrote: > > > > > > > > > These are not channel variables but profile params. So they have to be set > on the profile configuration file under sip_profiles. > > > I expect I was not clear: the params are set in sip_profiles/(profile > name).xml, where "profile name" is a valid profile name. > > > And for your case, if all your traffic is internal on this profile, remove > the last 2 params (ext-sip-ip and est-rtp-ip) as freeswitch use them to set > the public ip on the contact and SDP if your server is nated. > > > Going back to my original diagram, let me add the external leg explicitly: > > IS (internal IP) == INVITE ==> FS (internal IP) > IS (internal IP) <== 100 == FS (internal IP) > IS (internal IP) <== 183 == FS (internal IP) > > FS starts a call to the external provider: > > FS (external IP) == INVITE ==> SIP > PROVIDER > FS (external IP) <== 200 OK == SIP > PROVIDER > FS (external IP) == ACK ==> SIP PROVIDER > > FS continues the internal call: > > IS (internal IP) <== 200 OK == FS (internal IP) > > But the 200 OK from FS contains, in the Contact field, the *external* IP > address: > Contact: > As a result, the IS sends a response to the *external* IP address: > > IS (external IP) == ACK ==> FS (external IP) > > FS resends several 200's, which IS properly ignores. > Eventually FS gives up on hearing from IS and sends a > BYE with a Reason of 408 ACK Timeout. > > > Just to check, then: is the and ext-sip-ip somehow too aggressive, and I > should rely on NAT and localnet.auto and other automatic discovery > mechanisms instead? Or is this configuration correct, and I have a > different problem? > > > > -- > Moshe Yudkowsky > Disaggregate Corporation > 2952 W Fargo > Chicago, IL 60645 USA > > +1 773 764 8727 > speech at pobox.com > > http://www.Disaggregate.com > http://www.PebbleAndAvalanche.com > > > > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -- Brian West | Co-founder and Developer Need Commercial support? email sales at freeswitch.com FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 Email: brian at freeswitch.com Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com [image: https://www.facebook.com/signalwireinc?src=email] [image: https://twitter.com/freeswitch] -------------- next part -------------- An HTML attachment was scrubbed... URL: From speech at pobox.com Fri May 25 14:10:34 2018 From: speech at pobox.com (M Yudkowsky) Date: Fri, 25 May 2018 09:10:34 -0500 Subject: [Freeswitch-users] FS uses external IP address for Contact in 200 to internal server In-Reply-To: <00A365E2-CFD5-471E-8E5C-3185CF46815A@vallimamod.org> References: <9BD8CDAE-0BEB-46A3-8379-6616DF439AD4@pobox.com> <8843A360-F2E4-4B04-B15F-D192FB72AC59@vallimamod.org> <659B3EFB-12D9-42B8-AD44-86502064BA6B@pobox.com> <00A365E2-CFD5-471E-8E5C-3185CF46815A@vallimamod.org> Message-ID: <184AF0BF-8867-491B-AFBC-F3FECD13DB14@pobox.com> Hi, > On May 25, 2018, at 08:15 , Vallimamod Abdullah wrote: > The ext-xxx-ip is only needed if your external IP is private and nated to a public one defined on your router. This setting tells freeswitch to put directly the public IP in the contact and the SDP. That is crucial, undocumented (as far as I know) information. The external IP in my case is publicly visible. > If it's not already the case, you should use a different internal profile (attached to your internal IP) to discuss with your IS. In this profile, you don't need to define any NAT setting. Oh, excellent. That's the missing piece of the puzzle: an internal profile. I didn't realize that was necessary, since it _almost_ worked in a single profile that did both. Use of the single profile is no doubt why I needed ext-sip-ip defined to get this working even partially. Now comes some testing and experimentation, to put it mildly. Thank you very much! -- Moshe Yudkowsky Disaggregate Corporation 2952 W Fargo Chicago, IL 60645 USA +1 773 764 8727 speech at pobox.com http://www.Disaggregate.com http://www.PebbleAndAvalanche.com From speech at pobox.com Fri May 25 15:35:24 2018 From: speech at pobox.com (M Yudkowsky) Date: Fri, 25 May 2018 10:35:24 -0500 Subject: [Freeswitch-users] FS uses external IP address for Contact in 200 to internal server In-Reply-To: References: <9BD8CDAE-0BEB-46A3-8379-6616DF439AD4@pobox.com> <8843A360-F2E4-4B04-B15F-D192FB72AC59@vallimamod.org> <659B3EFB-12D9-42B8-AD44-86502064BA6B@pobox.com> <00A365E2-CFD5-471E-8E5C-3185CF46815A@vallimamod.org> Message-ID: <7BDB7917-D27F-42E4-BC7B-7A2495FA0643@pobox.com> > On May 25, 2018, at 08:48 , Brian West wrote: > > > \ This solution works perfectly with my current setup, thanks! I'd tried autonat in the past, but not after I made some other, recent improvements. I'll explore internal vs external profiles later, in my Copious Free Time, because it's likely a great idea. -- Moshe Yudkowsky Disaggregate Corporation 2952 W Fargo Chicago, IL 60645 USA +1 773 764 8727 speech at pobox.com http://www.Disaggregate.com http://www.PebbleAndAvalanche.com From mike at jerris.com Fri May 25 16:23:02 2018 From: mike at jerris.com (Michael Jerris) Date: Fri, 25 May 2018 12:23:02 -0400 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> <6f187dfd-449c-9ab1-4132-d38d8c2cf08a@madovsky.org> Message-ID: <9EE015D1-8137-4421-82FE-5F0E7C956389@jerris.com> would need to see specifics. from what you said earlier, it sounds like there are permissions issues creating some things. the first time you boot up you will see a lot of sql errors as it checks if the tables are there, fails, then creates them. > On May 24, 2018, at 8:45 PM, Blackhold wrote: > > > > I have search string odbc in each config file and added the line for connecting to psql > > 549 vi autoload_configs/switch.conf.xml > 550 vi sip_profiles/internal.xml > 551 vi autoload_configs/directory.conf.xml > 552 vi autoload_configs/voicemail.conf.xml > 553 vi autoload_configs/easyroute.conf.xml > 554 vi autoload_configs/db.conf.xml > 555 vi sip_profiles/internal.xml > 556 vi autoload_configs/db.conf.xml > 557 vi autoload_configs/cidlookup.conf.xml > 558 vi autoload_configs/lcr.conf.xml > 559 vi autoload_configs/nibblebill.conf.xml > 560 vi autoload_configs/callcenter.conf.xml > 561 vi jingle_profiles/server.xml > 562 vi sip_profiles/internal-ipv6.xml > 563 vi sip_profiles/internal-ipv6.xml > 564 vi skinny_profiles/internal.xml > > this is the line I have added (not to all files, the ones that asks for odbc-dsn: > > > > I started freeswitch again, and now it don't turns on and postgresql logs are crazy! > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) > <°((( >< -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Fri May 25 16:26:38 2018 From: mike at jerris.com (Michael Jerris) Date: Fri, 25 May 2018 12:26:38 -0400 Subject: [Freeswitch-users] Bye isn't taking to hangup In-Reply-To: References: Message-ID: I would need to see the trace + debug log of the entire call to answer this question. > On May 25, 2018, at 2:12 AM, Raimundo Pérez Nieves wrote: > > Hi, I have this particular problem. > When I turn on sip trace global, I get a bye from legB but it does not hangup the call, how can I capture this bye and hangup. > I attach sip trace > Thanks From infos at madovsky.org Fri May 25 00:19:35 2018 From: infos at madovsky.org (Madovsky) Date: Thu, 24 May 2018 17:19:35 -0700 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <50B969AD-259D-4CDF-9990-B5FEF5252742@jerris.com> <8b717e55-e58f-5ee3-1891-8a021ff0a266@madovsky.org> <6f187dfd-449c-9ab1-4132-d38d8c2cf08a@madovsky.org> Message-ID: for the profile this one core-db-dsn is only for swithc.conf.xml if I recall well. On 5/24/2018 5:13 PM, Blackhold wrote: > wich string I have to add? > > > > or > > > > ? > > for example for file conf/sip_profiles/internal.xml:231 > > wich modules needs db connection? > > thanks! > > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra > nosaltres mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-25 1:33 GMT+02:00 Madovsky >: > > if you set pgsql:// in switch.conf.xml so > > you must set pgsql:// in every config where a DB is involved > > On 5/24/2018 4:11 PM, Blackhold wrote: >> what or wich is the sip profile? >> >> I understand that all tables that are created in sqlite are the >> ones that have to create to psql database that I'm refering all >> time... >> >> The configs I'm showing all time are the real config (only >> changing password value) >> >> 2018-05-25 0:43 GMT+02:00 Madovsky > >: >> >> are you sure you are using the proper sip profile which use >> pgsql:// ? >> >> On 5/24/2018 3:20 PM, Blackhold wrote: >>> it seems nothing... yes tells something, but no one error, >>> it seems all modules are loaded ok. >>> >>> >>> 2018-05-24 22:58:20.552211 [INFO] sofia.c:5987 Setting MAX >>> Auth Validity to 0 Attempts >>> >>> 2018-05-24 22:58:20.557248 [INFO] switch_core_sqldb.c:1693 >>> sofia:external Starting SQL thread. >>> >>> 2018-05-24 22:58:20.562295 [NOTICE] sofia.c:4172 Adding >>> Alias [10.90.226.83] for profile [internal] >>> 2018-05-24 22:58:20.562424 [WARNING] sofia.c:2285 MSG Thread >>> 0 Started >>> >>> 2018-05-24 22:58:22.059111 [CONSOLE] >>> switch_loadable_module.c:1540 Successfully Loaded [mod_db] >>> 2018-05-24 22:58:22.059118 [NOTICE] >>> switch_loadable_module.c:292 Adding Application 'db' >>> 2018-05-24 22:58:22.059128 [NOTICE] >>> switch_loadable_module.c:292 Adding Application 'group' >>> 2018-05-24 22:58:22.059137 [NOTICE] >>> switch_loadable_module.c:338 Adding API Function 'db' >>> 2018-05-24 22:58:22.059146 [NOTICE] >>> switch_loadable_module.c:338 Adding API Function 'group' >>> 2018-05-24 22:58:22.059154 [NOTICE] >>> switch_loadable_module.c:556 Adding Limit interface 'db' >>> >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i >>> contra nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-24 23:23 GMT+02:00 Madovsky >> >: >>> >>> and anything in FS logs? >>> >>> On 5/24/2018 1:59 PM, Blackhold wrote: >>>> done, restarted psql and turned on freeswitch, nothing >>>> in psql log files, no tables where created. >>>> >>>> using psql conector >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser febles, >>>> i contra nosaltres mateixos quan siguem forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-24 22:41 GMT+02:00 Madovsky >>> >: >>>> >>>> remove these 2 lines >>>> >>>> local   all  postgres                 peer >>>> >>>> local   all  all                  peer >>>> >>>> and replace with >>>> >>>> local   all all  trust >>>> >>>> in your pg_hba.conf >>>> >>>> >>>> On 5/24/2018 1:26 PM, Blackhold wrote: >>>>> Hi, >>>>> >>>>> I'm trying both ways, switching between one and >>>>> the other... I initially want to use psql >>>>> directly, not using odbc, but when using directly >>>>> I get less info, well... logs files don't say >>>>> nothing :( if the correct way is to use that: >>>>> >>>>> >>>> value="pgsql://hostaddr=127.0.0.1 >>>>> dbname=freeswitch_db user=freeswitch_user >>>>> password='XXX' options='-c >>>>> client_min_messages=NOTICE'" /> >>>>> >>>>> so then, I only will use that, and the problem is >>>>> my system, not freeswitch. >>>>> >>>>> odbc configuration is an old odbc configuration >>>>> that I used some time ago when I had to use it... >>>>> so... for actual psql db wich version is the ok?! >>>>> >>>>> Here you have the versions of libraries I have: >>>>> >>>>> # debian 8 fresh install (x86_64) >>>>> >>>>> root at freeswitch-capa8:~# cat /etc/debian_version >>>>> 8.10 >>>>> root at freeswitch-capa8:~# dpkg -l |grep postgresql >>>>> ii odbc-postgresql:amd64  1:09.03.0300-1  amd64    >>>>>     ODBC driver for PostgreSQL >>>>> ii  postgresql 9.4+165+deb8u3  all >>>>> object-relational SQL database (supported version) >>>>> ii postgresql-9.4 9.4.15-0+deb8u1 amd64 >>>>> object-relational SQL database, version 9.4 server >>>>> ii postgresql-client  9.4+165+deb8u3  all >>>>> front-end programs for PostgreSQL (supported version) >>>>> ii postgresql-client-9.4  9.4.15-0+deb8u1 amd64 >>>>> front-end programs for PostgreSQL 9.4 >>>>> ii postgresql-client-common 165+deb8u3  all >>>>> manager for multiple PostgreSQL client versions >>>>> ii postgresql-common  165+deb8u3  all PostgreSQL >>>>> database-cluster manager >>>>> root at freeswitch-capa8:~# dpkg -l |grep libpq >>>>> ii  libpq-dev  9.4.15-0+deb8u1 amd64 header files >>>>> for libpq5 (PostgreSQL library) >>>>> ii libpq5:amd64 9.4.15-0+deb8u1 amd64 PostgreSQL C >>>>> client library >>>>> >>>>> all these packages are downloaded from sources >>>>> >>>>> the lines enabled at pg_hba.conf are these (the >>>>> debian default ones) >>>>> >>>>> local   all        postgres       peer >>>>> local   all          all              peer >>>>> host    all          all 127.0.0.1/32 >>>>>             md5 >>>>> host    all          all        ::1/128           >>>>>    md5 >>>>> >>>>> the script that I have used to do the installation >>>>> is the one located in source code >>>>> >>>>> root at freeswitch-capa8:/usr/src/freeswitch/scripts# >>>>> ls -l |grep raspbian-installer >>>>> -rwxr-xr-x 1 root root 7922 May 23 20:26 >>>>> FreeSWITCH-debian-raspbian-installer.sh >>>>> >>>>> >>>>> >>>>> >>>>> - Blackhold >>>>> http://blackhold.nusepas.com >>>>> @blackhold_ >>>>> ~> cal lluitar contra el fort per deixar de ser >>>>> febles, i contra nosaltres mateixos quan siguem >>>>> forts (Xirinacs) >>>>> <°((( >< >>>>> >>>>> 2018-05-24 21:58 GMT+02:00 Madovsky >>>>> >: >>>>> >>>>> First of all, pgsql:// does not use odbc, >>>>> instead use odbc:// to use odbc (btw your >>>>> odbc.ini file shows Protocol=6.4 (!?) are you >>>>> using >>>>> >>>>> postgresql 6.x !??!) >>>>> >>>>> what version of postgresql are you using? >>>>> compiled yourself or from system package? >>>>> >>>>> check if there are not multiple versions of >>>>> libpq.xx in your system. >>>>> >>>>> check pg_hba.conf if localhost is on trust >>>>> mode for all local users. >>>>> >>>>> if you compiled yourself so be sure the right >>>>> libpq.xx have been chosen. >>>>> >>>>> On 5/24/2018 12:33 PM, Blackhold wrote: >>>>>> nope, it is not able to create stuff >>>>>> >>>>>> now I also have enabled that in switch.conf.xml >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> tested with odbc and directly with psql and >>>>>> behaviour is the same. >>>>>> >>>>>> for psql the procedure I have followed is >>>>>> >>>>>> root at freeswitch-capa8:~# su - postgres >>>>>> root at freeswitch-capa8:~#postgres at freeswitch-capa8:~$ createuser >>>>>> freeswitch_user >>>>>> root at freeswitch-capa8:~#createdb -O >>>>>> freeswitch_user freeswitch_db >>>>>> root at freeswitch-capa8:~#psql freeswitch_db >>>>>> freeswitch_db=# ALTER USER freeswitch_user >>>>>> WITH PASSWORD 'XXX'; >>>>>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL >>>>>> TABLES IN SCHEMA public TO freeswitch_user; >>>>>> freeswitch_db=# GRANT ALL PRIVILEGES ON ALL >>>>>> SEQUENCES IN SCHEMA public TO freeswitch_user; >>>>>> >>>>>> the most beatiful was with odbc + tables >>>>>> created... in the last mail... freeswitch >>>>>> turned on, in other ways freeswitch doesn't >>>>>> turns on. >>>>>> >>>>>> logs doesn't talk about permissions.... >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> - Blackhold >>>>>> http://blackhold.nusepas.com >>>>>> @blackhold_ >>>>>> ~> cal lluitar contra el fort per deixar de >>>>>> ser febles, i contra nosaltres mateixos quan >>>>>> siguem forts (Xirinacs) >>>>>> <°((( >< >>>>>> >>>>>> 2018-05-24 21:20 GMT+02:00 Michael Jerris >>>>>> >: >>>>>> >>>>>> you shouldn't need to pre-import the >>>>>> tables, if the permissions are right, it >>>>>> should create the tables and indexes for >>>>>> you. >>>>>> >>>>>> >>>>>>> On May 24, 2018, at 3:15 PM, Blackhold >>>>>>> >>>>>> > wrote: >>>>>>> >>>>>>> I continue with tests >>>>>>> >>>>>>> I think I know wich problem I had with >>>>>>> errors >>>>>>> >>>>>>> I have missed to grant privileges in psql: >>>>>>> >>>>>>> GRANT ALL PRIVILEGES ON ALL TABLES IN >>>>>>> SCHEMA public TO freeswitch_user; >>>>>>> GRANT ALL PRIVILEGES ON ALL SEQUENCES IN >>>>>>> SCHEMA public TO freeswitch_user; >>>>>>> >>>>>>> # with tables imported from sqlite it >>>>>>> shows (freeswitch runs) >>>>>>> >>>>>>> root at freeswitch-capa8:/var/log/postgresql# >>>>>>> tail -f postgresql-9.4-main.log >>>>>>> >>>>>>> 2018-05-24 21:03:34 CEST [8623-1] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-2] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> recovery1 on >>>>>>> recovery(technology);EXECUTE >>>>>>> "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-3] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-4] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> recovery2 on >>>>>>> recovery(profile_name);EXECUTE >>>>>>> "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-5] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-6] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> recovery3 on recovery(uuid);EXECUTE >>>>>>> "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-7] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-8] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> recovery3 on >>>>>>> recovery(runtime_uuid);EXECUTE >>>>>>> "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-9] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-10] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> alias1 on aliases (alias);EXECUTE >>>>>>> "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-11] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-12] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> tasks1 on tasks >>>>>>> (hostname,task_id);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-13] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-14] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> complete1 on complete >>>>>>> (a1,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-15] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-16] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> complete2 on complete >>>>>>> (a2,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-17] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-18] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> complete3 on complete >>>>>>> (a3,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-19] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-20] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> complete4 on complete >>>>>>> (a4,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-21] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-22] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> complete5 on complete >>>>>>> (a5,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-23] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-24] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> complete6 on complete >>>>>>> (a6,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-25] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-26] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> complete7 on complete >>>>>>> (a7,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-27] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-28] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> complete8 on complete >>>>>>> (a8,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-29] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-30] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> complete9 on complete >>>>>>> (a9,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-31] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-32] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> complete10 on complete >>>>>>> (a10,hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-33] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-34] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> complete11 on complete >>>>>>> (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname);EXECUTE >>>>>>> "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-35] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-36] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> nat_map_port_proto on nat >>>>>>> (port,proto,hostname);EXECUTE >>>>>>> "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-37] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-38] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> channels1 on channels(hostname);EXECUTE >>>>>>> "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-39] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-40] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> calls1 on calls(hostname);EXECUTE >>>>>>> "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-41] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-42] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> chidx1 on channels (hostname);EXECUTE >>>>>>> "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-43] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-44] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> uuindex on channels (uuid, >>>>>>> hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-45] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-46] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> uuindex2 on channels (call_uuid);EXECUTE >>>>>>> "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-47] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-48] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> callsidx1 on calls (hostname);EXECUTE >>>>>>> "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-49] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-50] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> eruuindex on calls (caller_uuid, >>>>>>> hostname);EXECUTE "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-51] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-52] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> eeuuindex on calls (callee_uuid);EXECUTE >>>>>>> "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-53] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-54] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> eeuuindex2 on calls (call_uuid);EXECUTE >>>>>>> "_PLAN0x123ff90" >>>>>>> 2018-05-24 21:03:34 CEST [8623-55] >>>>>>> freeswitch_user at freeswitch_db ERROR:  >>>>>>> syntax error at or near "create" at >>>>>>> character 29 >>>>>>> 2018-05-24 21:03:34 CEST [8623-56] >>>>>>> freeswitch_user at freeswitch_db STATEMENT: >>>>>>> PREPARE "_PLAN0x123ff90" as create index >>>>>>> regindex1 on registrations >>>>>>> (reg_user,realm,hostname);EXECUTE >>>>>>> "_PLAN0x123ff90" >>>>>>> >>>>>>> # with a clean database >>>>>>> >>>>>>> start dropping last errors, and don't >>>>>>> create any table in db. Freeswitch >>>>>>> doesn't turns on. >>>>>>> >>>>>>> each time I stop freeswitch when it >>>>>>> don't runs, it keeps a process running >>>>>>> that I have to kill manually >>>>>>> >>>>>>> root at freeswitch-capa8:/var/log/postgresql#  ps >>>>>>> aux |grep free >>>>>>> root 8706 39.6  0.7 141296 15244 ? S>>>>>> 21:08  1:13 >>>>>>> /usr/local/freeswitch/bin/freeswitch -nc >>>>>>> >>>>>>> >>>>>>> # with granted permisions if I turn >>>>>>> configuration to not use odbc, using >>>>>>> psql directly >>>>>>> >>>>>>> freeswitch turns on, there's no errors >>>>>>> in psql log file and no table was >>>>>>> created on db. >>>>>>> >>>>>>> >>>>>>> >>>>>>> - Blackhold >>>>>>> http://blackhold.nusepas.com >>>>>>> >>>>>>> @blackhold_ >>>>>>> ~> cal lluitar contra el fort per deixar >>>>>>> de ser febles, i contra nosaltres >>>>>>> mateixos quan siguem forts (Xirinacs) >>>>>>> <°((( >< >>>>>>> >>>>>>> 2018-05-24 20:31 GMT+02:00 Blackhold >>>>>>> >>>>>> >: >>>>>>> >>>>>>> # OK for location of ODBC files >>>>>>> >>>>>>> # output freeswitch using psql (I >>>>>>> only edited switch.conf.xml file) >>>>>>> >>>>>> value="pgsql://hostaddr=127.0.0.1 >>>>>>> dbname=freeswitch_db >>>>>>> user=freeswitch_user password='XXX' >>>>>>> options='-c >>>>>>> client_min_messages=NOTICE'" /> >>>>>>> (switch.conf.xml file) >>>>>>> >>>>>>> I see no errors related on logs (nor >>>>>>> freeswitch, nor psql -debug5-), >>>>>>> obviously restarted psql to reload >>>>>>> config. >>>>>>> >>>>>>> in sofia.conf.xml file I found no >>>>>>> option to configure it pointing to >>>>>>> database >>>>>>> no other config file, except >>>>>>> switch.conf.xml has configured >>>>>>> database pointing >>>>>>> >>>>>>> I tried to configure db.conf.xml >>>>>>> file, with switch.conf.xml line but >>>>>>> also do nothing >>>>>>> >>>>>>> # output freeswtich using odbc >>>>>>> >>>>>> value="freeswitch:freeswitch_user:XXX"/> >>>>>>> (switch.conf.xml file) >>>>>>> >>>>>>> these are the first lines of >>>>>>> postgresql log file >>>>>>> >>>>>>> 2018-05-24 20:23:15 CEST [7518-7] >>>>>>> LOG: received fast shutdown request >>>>>>> 2018-05-24 20:23:15 CEST [7518-8] >>>>>>> LOG: aborting any active transactions >>>>>>> 2018-05-24 20:23:15 CEST [7548-2] >>>>>>> LOG: autovacuum launcher shutting down >>>>>>> 2018-05-24 20:23:15 CEST [7545-1] >>>>>>> LOG: shutting down >>>>>>> 2018-05-24 20:23:15 CEST [7545-2] >>>>>>> LOG: database system is shut down >>>>>>> 2018-05-24 20:23:16 CEST [7568-1] >>>>>>> LOG: database system was shut down >>>>>>> at 2018-05-24 20:23:15 CEST >>>>>>> 2018-05-24 20:23:16 CEST [7568-2] >>>>>>> LOG: MultiXact member wraparound >>>>>>> protections are now enabled >>>>>>> 2018-05-24 20:23:16 CEST [7567-1] >>>>>>> LOG: database system is ready to >>>>>>> accept connections >>>>>>> 2018-05-24 20:23:16 CEST [7572-1] >>>>>>> LOG: autovacuum launcher started >>>>>>> 2018-05-24 20:23:16 CEST [7574-1] >>>>>>> [unknown]@[unknown] LOG: incomplete >>>>>>> startup packet >>>>>>> 2018-05-24 20:23:39 CEST [7596-1] >>>>>>> freeswitch_user at freeswitch_db ERROR: >>>>>>> relation "channels" does not exist >>>>>>> at character 40 >>>>>>> 2018-05-24 20:23:39 CEST [7596-2] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" >>>>>>> as delete from channels where >>>>>>> hostname='freeswitch-capa8';EXECUTE >>>>>>> "_PLAN0x9f3f90" >>>>>>> 2018-05-24 20:23:39 CEST [7596-3] >>>>>>> freeswitch_user at freeswitch_db ERROR: >>>>>>> relation "calls" does not exist at >>>>>>> character 40 >>>>>>> 2018-05-24 20:23:39 CEST [7596-4] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" >>>>>>> as delete from calls where >>>>>>> hostname='freeswitch-capa8';EXECUTE >>>>>>> "_PLAN0x9f3f90" >>>>>>> 2018-05-24 20:23:39 CEST [7596-5] >>>>>>> freeswitch_user at freeswitch_db ERROR: >>>>>>> relation "tasks" does not exist at >>>>>>> character 40 >>>>>>> 2018-05-24 20:23:39 CEST [7596-6] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" >>>>>>> as delete from tasks where >>>>>>> hostname='freeswitch-capa8';EXECUTE >>>>>>> "_PLAN0x9f3f90" >>>>>>> 2018-05-24 20:23:39 CEST [7596-7] >>>>>>> freeswitch_user at freeswitch_db ERROR: >>>>>>> relation "aliases" does not exist at >>>>>>> character 49 >>>>>>> 2018-05-24 20:23:39 CEST [7596-8] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> STATEMENT: PREPARE "_PLAN0x9f3f90" >>>>>>> as select hostname from >>>>>>> aliases;EXECUTE "_PLAN0x9f3f90" >>>>>>> 2018-05-24 20:23:39 CEST [7596-9] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> ERROR:  syntax error at or near >>>>>>> "DROP" at character 28 >>>>>>> 2018-05-24 20:23:39 CEST [7596-10] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> STATEMENT:  PREPARE "_PLAN0x9f3f90" >>>>>>> as DROP TABLE aliases;EXECUTE >>>>>>> "_PLAN0x9f3f90" >>>>>>> 2018-05-24 20:23:39 CEST [7596-11] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> ERROR:  syntax error at or near >>>>>>> "CREATE" at character 28 >>>>>>> 2018-05-24 20:23:39 CEST [7596-12] >>>>>>> freeswitch_user at freeswitch_db >>>>>>> STATEMENT:  PREPARE "_PLAN0x9f3f90" >>>>>>> as CREATE TABLE aliases ( >>>>>>>  sticky INTEGER, >>>>>>>  alias VARCHAR(128), >>>>>>>  command VARCHAR(4096), >>>>>>>  hostname VARCHAR(256) >>>>>>>       ); >>>>>>>       ;EXECUTE "_PLAN0x9f3f90" >>>>>>> >>>>>>> and now freeswitch isn't able to run. >>>>>>> >>>>>>> If I enable odbc trace in odbcinst.ini >>>>>>> >>>>>>> Trace=Yes >>>>>>> TraceFile=/var/log/odbctrace.log >>>>>>> >>>>>>> Also there's no output.... >>>>>>> >>>>>>> In freeswitch log also there's >>>>>>> nothing about what is happening :( >>>>>>> >>>>>>> >>>>>>> - Blackhold >>>>>>> http://blackhold.nusepas.com >>>>>>> >>>>>>> @blackhold_ >>>>>>> ~> cal lluitar contra el fort per >>>>>>> deixar de ser febles, i contra >>>>>>> nosaltres mateixos quan siguem forts >>>>>>> (Xirinacs) >>>>>>> <°((( >< >>>>>>> >>>>>>> 2018-05-24 19:30 GMT+02:00 Michael >>>>>>> Jerris >>>>>> >: >>>>>>> >>>>>>> but that table layout is like >>>>>>> that because you imported the >>>>>>> tables, i was asking what is in >>>>>>> the recreated sqlite ones. If it >>>>>>> fails to connect like you later >>>>>>> describe, its going to fall >>>>>>> back, you should see stuff in >>>>>>> the fs logs on startup about >>>>>>> this.  the odbc configs go in >>>>>>> the normal place they go in the >>>>>>> os, not in fs specific dirs.  >>>>>>> Those errors tell me something >>>>>>> is up, but not sure what, might >>>>>>> need to turn on some debug on pg >>>>>>> side to see.  some of our tests >>>>>>> like to see if table schema is >>>>>>> right throw errors then we act >>>>>>> on them, if you restart a second >>>>>>> time you should get a more >>>>>>> useful set of errors. >>>>>>> >>>>>>> >>>>>>>> On May 24, 2018, at 1:11 PM, >>>>>>>> Blackhold >>>>>>>> >>>>>>> > >>>>>>>> wrote: >>>>>>>> >>>>>>>> Hi, >>>>>>>> The tables are: >>>>>>>> >>>>>>>> ostgres at freeswitch-capa8:~/sql$ >>>>>>>> psql freeswitch_db >>>>>>>> freeswitch_db-# \dt >>>>>>>> >>>>>>>> List of relations >>>>>>>>  Schema |   Name          | >>>>>>>> Type  | Owner >>>>>>>> --------+-------------------------------------+-------+---------- >>>>>>>>  public | aliases        | >>>>>>>> table | postgres >>>>>>>>  public | calls        | table >>>>>>>> | postgres >>>>>>>>  public | channels         | >>>>>>>> table | postgres >>>>>>>>  public | complete         | >>>>>>>> table | postgres >>>>>>>>  public | db_data        | >>>>>>>> table | postgres >>>>>>>>  public | fifo_bridge        | >>>>>>>> table | postgres >>>>>>>>  public | fifo_callers         >>>>>>>> | table | postgres >>>>>>>>  public | fifo_outbound       >>>>>>>>  | table | postgres >>>>>>>>  public | group_data         | >>>>>>>> table | postgres >>>>>>>>  public | interfaces         | >>>>>>>> table | postgres >>>>>>>>  public | json_store         | >>>>>>>> table | postgres >>>>>>>>  public | limit_data         | >>>>>>>> table | postgres >>>>>>>>  public | nat        | table | >>>>>>>> postgres >>>>>>>>  public | recovery         | >>>>>>>> table | postgres >>>>>>>>  public | registrations       >>>>>>>>  | table | postgres >>>>>>>>  public | sip_authentication    >>>>>>>>               | table | postgres >>>>>>>>  public | sip_dialogs        | >>>>>>>> table | postgres >>>>>>>>  public | sip_presence         >>>>>>>> | table | postgres >>>>>>>>  public | sip_registrations    >>>>>>>>                | table | postgres >>>>>>>>  public | >>>>>>>> sip_shared_appearance_dialogs  >>>>>>>>      | table | postgres >>>>>>>>  public | >>>>>>>> sip_shared_appearance_subscriptions >>>>>>>> | table | postgres >>>>>>>>  public | sip_subscriptions    >>>>>>>>                | table | postgres >>>>>>>>  public | tasks        | table >>>>>>>> | postgres >>>>>>>>  public | voicemail_msgs        >>>>>>>>               | table | postgres >>>>>>>>  public | voicemail_prefs      >>>>>>>>                | table | postgres >>>>>>>> (25 rows) >>>>>>>> >>>>>>>> I continued testing and found >>>>>>>> that if I configure >>>>>>>> switch.conf.xml file like this: >>>>>>>> >>>>>>>> >>>>>>> value="pgsql://hostaddr=127.0.0.1 >>>>>>>> dbname=freeswitch_db >>>>>>>> user=freeswitch_user >>>>>>>> password='****' options='-c >>>>>>>> client_min_messages=NOTICE'" /> >>>>>>>> >>>>>>>> When I turn on freeswitch, >>>>>>>> postgresql don't output >>>>>>>> nothing. Then I tried to >>>>>>>> configure freeswitch using odbc >>>>>>>> I then YES I get something in >>>>>>>> postgresql logs >>>>>>>> >>>>>>>> For odbc I have something not >>>>>>>> clear, it is mandatory to put >>>>>>>> files in >>>>>>>> /usr/local/freeswitch/etc ? or >>>>>>>> leaving them at default >>>>>>>> directory (/etc) is enough? >>>>>>>> >>>>>>>> Here I show the config of odbc >>>>>>>> files: >>>>>>>> root at freeswitch-capa8:/etc# cat >>>>>>>> odbc.ini >>>>>>>> [freeswitch] >>>>>>>> ; WARNING: The old psql odbc >>>>>>>> driver psqlodbc.so is now >>>>>>>> renamed psqlodbcw.so >>>>>>>> ; in version 08.x. Note that >>>>>>>> the library can also be >>>>>>>> installed under an other >>>>>>>> ; path than /usr/local/lib/ >>>>>>>> following your installation. >>>>>>>> ; Driver = >>>>>>>> /usr/lib64/odbc/psqlodbcw.so >>>>>>>> ; Driver = >>>>>>>> /usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so >>>>>>>> Driver = >>>>>>>> /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>>>>> Description=Connection to >>>>>>>> LDAP/POSTGRESQL >>>>>>>> Servername=localhost >>>>>>>> Port=5432 >>>>>>>> Protocol=6.4 >>>>>>>> FetchBufferSize=99 >>>>>>>> Username=freeswitch_user >>>>>>>> Password=XXX >>>>>>>> Database=freeswitch_db >>>>>>>> ReadOnly=no >>>>>>>> Debug=0 >>>>>>>> CommLog=0 >>>>>>>> >>>>>>>> root at freeswitch-capa8:/etc# cat >>>>>>>> odbcinst.ini >>>>>>>> [PostgreSQL] >>>>>>>> Description = PostgreSQL driver >>>>>>>> for Linux & Win32 >>>>>>>> ;Driver = >>>>>>>> /usr/lib64/odbc/psqlodbcw.so >>>>>>>> Driver = >>>>>>>> /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so >>>>>>>> Threading = 0 >>>>>>>> MaxLongVarcharSize=65536 >>>>>>>> >>>>>>>> And then connect to psql >>>>>>>> through odbc >>>>>>>> >>>>>>>> root at freeswitch-capa8:/etc# >>>>>>>> isql -v freeswitch >>>>>>>> +---------------------------------------+ >>>>>>>> | Connected!           | >>>>>>>> |    | >>>>>>>> | sql-statement          | >>>>>>>> | help [tablename]     | >>>>>>>> | quit   | >>>>>>>> |    | >>>>>>>> +---------------------------------------+ >>>>>>>> SQL> >>>>>>>> >>>>>>>> Then in file switch.conf.xml I >>>>>>>> changed db connection configuration >>>>>>>> >>>>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf/autoload_configs# >>>>>>>> cat switch.conf.xml |grep >>>>>>>> core-db-dsn >>>>>>>> >>>>>>> value="pgsql://hostaddr=127.0.0.1 >>>>>>>> dbname=freeswitch_db >>>>>>>> user=freeswitch_user >>>>>>>> password='XXX' options='-c >>>>>>>> client_min_messages=NOTICE'" /> >>>>>>>> >>>>>>>> >>>>>>>> Last night SwK user at freenode >>>>>>>> channel told me that freeswitch >>>>>>>> on turning on, it creates >>>>>>>> tables at database (thanks SwK). >>>>>>>> >>>>>>>> I spect that configuration of >>>>>>>> odbc is working but drops lot >>>>>>>> of errors (here you have some >>>>>>>> lines): >>>>>>>> >>>>>>>> 2018-05-24 02:03:25 CEST >>>>>>>> [3099-338780] >>>>>>>> freeswitch_user at freeswitch_db >>>>>>>> STATEMENT:  PREPARE >>>>>>>> "_PLAN0x140bf90" as CREATE >>>>>>>> TABLE nat ( >>>>>>>>  sticky INTEGER, >>>>>>>> portINTEGER, >>>>>>>> protoINTEGER, >>>>>>>>  hostname VARCHAR(256) >>>>>>>> ); >>>>>>>> ;EXECUTE "_PLAN0x140bf90" >>>>>>>> 2018-05-24 02:03:25 CEST >>>>>>>> [3099-338781] >>>>>>>> freeswitch_user at freeswitch_db >>>>>>>> WARNING:  there is already a >>>>>>>> transaction in progress >>>>>>>> 2018-05-24 02:03:25 CEST >>>>>>>> [3099-338782] >>>>>>>> freeswitch_user at freeswitch_db >>>>>>>> ERROR:  relation >>>>>>>> "registrations" does not exist >>>>>>>> at character 41 >>>>>>>> 2018-05-24 02:03:25 CEST >>>>>>>> [3099-338783] >>>>>>>> freeswitch_user at freeswitch_db >>>>>>>> STATEMENT:  PREPARE >>>>>>>> "_PLAN0x140bf90" as delete from >>>>>>>> registrations where >>>>>>>> reg_user='';EXECUTE >>>>>>>> "_PLAN0x140bf90" >>>>>>>> 2018-05-24 02:03:25 CEST >>>>>>>> [3099-338784] >>>>>>>> freeswitch_user at freeswitch_db >>>>>>>> WARNING:  there is already a >>>>>>>> transaction in progress >>>>>>>> 2018-05-24 02:03:25 CEST >>>>>>>> [3099-338785] >>>>>>>> freeswitch_user at freeswitch_db >>>>>>>> ERROR:  syntax error at or near >>>>>>>> "DROP" at character 29 >>>>>>>> 2018-05-24 02:03:25 CEST >>>>>>>> [3099-338786] >>>>>>>> freeswitch_user at freeswitch_db >>>>>>>> STATEMENT:  PREPARE >>>>>>>> "_PLAN0x140bf90" as DROP TABLE >>>>>>>> registrations;EXECUTE >>>>>>>> "_PLAN0x140bf90" >>>>>>>> 2018-05-24 02:03:25 CEST >>>>>>>> [3099-338787] >>>>>>>> freeswitch_user at freeswitch_db >>>>>>>> WARNING:  there is already a >>>>>>>> transaction in progress >>>>>>>> 2018-05-24 02:03:25 CEST >>>>>>>> [3099-338788] >>>>>>>> freeswitch_user at freeswitch_db >>>>>>>> ERROR:  syntax error at or near >>>>>>>> "CREATE" at character 29 >>>>>>>> 2018-05-24 02:03:25 CEST >>>>>>>> [3099-338789] >>>>>>>> freeswitch_user at freeswitch_db >>>>>>>> STATEMENT:  PREPARE >>>>>>>> "_PLAN0x140bf90" as CREATE >>>>>>>> TABLE registrations ( >>>>>>>>  reg_user VARCHAR(256), >>>>>>>>  realm  VARCHAR(256), >>>>>>>>  token  VARCHAR(256), >>>>>>>>  url TEXT, >>>>>>>>  expires INTEGER, >>>>>>>>  network_ip VARCHAR(256), >>>>>>>>  network_port VARCHAR(256), >>>>>>>>  network_proto VARCHAR(256), >>>>>>>>  hostname VARCHAR(256), >>>>>>>>  metadata VARCHAR(256) >>>>>>>> ); >>>>>>>> ;EXECUTE "_PLAN0x140bf90" >>>>>>>> 2018-05-24 02:03:25 CEST >>>>>>>> [3099-338790] >>>>>>>> freeswitch_user at freeswitch_db >>>>>>>> WARNING:  there is already a >>>>>>>> transaction in progress >>>>>>>> 2018-05-24 02:03:25 CEST >>>>>>>> [3099-338791] >>>>>>>> freeswitch_user at freeswitch_db >>>>>>>> LOG:  unexpected EOF on client >>>>>>>> connection with an open transaction >>>>>>>> >>>>>>>> >>>>>>>> I tested with tables in psql >>>>>>>> database and without tables in >>>>>>>> psql database. >>>>>>>> >>>>>>>> freeswitch at freeswitch-capa8> >>>>>>>> version >>>>>>>> FreeSWITCH Version >>>>>>>> 1.9.0+git~20180516T211208Z~3c7db639fd~64bit >>>>>>>> (git 3c7db63 2018-05-16 >>>>>>>> 21:12:08Z 64bit) >>>>>>>> >>>>>>>> As I told in last mail, I'm >>>>>>>> working with last git version. >>>>>>>> >>>>>>>> Then I have a last question, >>>>>>>> related to that (db), when it >>>>>>>> will work, all mods will save >>>>>>>> the information to pgsql or a >>>>>>>> mix some to sqlite and some to >>>>>>>> pgsql? I saw in other files the >>>>>>>> availibility to configure also >>>>>>>> db, like >>>>>>>> /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>>>>>> >>>>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# >>>>>>>> cat >>>>>>>> /usr/local/freeswitch/conf/sip_profiles/internal.xml >>>>>>>> |grep db >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> name="force-register-db-domain" >>>>>>>> value="$${domain}"/> >>>>>>>> >>>>>>>> The config you see in the mail >>>>>>>> is the last configuration I >>>>>>>> defined. Yesterday I get lost >>>>>>>> with wich config work or wich >>>>>>>> one no... >>>>>>>> >>>>>>>> I feel I'm almost at end of >>>>>>>> this installation! I'm doing a >>>>>>>> step by step manual in spanish >>>>>>>> to how to install last version >>>>>>>> of freeswitch, this will be >>>>>>>> public and if you want I could >>>>>>>> upload to wiki. >>>>>>>> >>>>>>>> Thanks you much for your help :) >>>>>>>> >>>>>>>> References: >>>>>>>> https://freeswitch.org/confluence/display/FREESWITCH/PostgreSQL+in+the+core >>>>>>>> >>>>>>>> https://freeswitch.org/confluence/display/FREESWITCH/ODBC+DSN >>>>>>>> >>>>>>>> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+Databases >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> - Blackhold >>>>>>>> http://blackhold.nusepas.com >>>>>>>> >>>>>>>> @blackhold_ >>>>>>>> ~> cal lluitar contra el fort >>>>>>>> per deixar de ser febles, i >>>>>>>> contra nosaltres mateixos quan >>>>>>>> siguem forts (Xirinacs) >>>>>>>> <°((( >< >>>>>>>> >>>>>>>> 2018-05-24 18:21 GMT+02:00 >>>>>>>> Michael Jerris >>>>>>> >: >>>>>>>> >>>>>>>> what tables are ending up >>>>>>>> in the recreated sqlite db? >>>>>>>> You need to set it for the >>>>>>>> modules that use sqlite too >>>>>>>> (like for mod_sofia). we >>>>>>>> have a global var for this >>>>>>>> in default configs. >>>>>>>> >>>>>>>> > On May 23, 2018, at 6:13 >>>>>>>> PM, Blackhold >>>>>>>> >>>>>>> > >>>>>>>> wrote: >>>>>>>> > >>>>>>>> > Hi, >>>>>>>> > I have just installed >>>>>>>> freeswitch 1.9 >>>>>>>> > >>>>>>>> > >>>>>>>> freeswitch at freeswitch-capa8> >>>>>>>> version >>>>>>>> > FreeSWITCH Version >>>>>>>> 1.9.0+git~20180516T211208Z~3c7db639fd~64bit >>>>>>>> (git 3c7db63 2018-05-16 >>>>>>>> 21:12:08Z 64bit) >>>>>>>> > >>>>>>>> > And I'm trying to >>>>>>>> freeswitch use postgresql >>>>>>>> instead sqlitedb. >>>>>>>> > >>>>>>>> > I have configured the >>>>>>>> file switch.conf.xml of >>>>>>>> /usr/local/freeswitch/conf/autoload_configs >>>>>>>> with uncomenting and >>>>>>>> configuring this line >>>>>>>> > >>>>>>>> >  >>>>>>> name="core-db-dsn" >>>>>>>> value="pgsql://hostaddr=127.0.0.1 >>>>>>>> dbname=freeswitch_db >>>>>>>> user=freeswitch_user >>>>>>>> password='****' options='-c >>>>>>>> client_min_messages=NOTICE'" /> >>>>>>>> > >>>>>>>> > then I exported all >>>>>>>> sqlitedbs to sql and then >>>>>>>> imported to a database that >>>>>>>> I have created in postgresql >>>>>>>> > >>>>>>>> > I have run again >>>>>>>> /etc/init.d/freeswitch.sh start >>>>>>>> > >>>>>>>> > But seems it still is >>>>>>>> taking sqlitedb. >>>>>>>> > >>>>>>>> > I tried to move the >>>>>>>> sqlitedbs files to other >>>>>>>> side and turned on again >>>>>>>> freeswitch, but it creates >>>>>>>> sqlitedbs again. >>>>>>>> > >>>>>>>> > What I'm missing? what >>>>>>>> I'm doing wrong? what could >>>>>>>> I check? >>>>>>>> >>>>>>>> >>>>>>>> _________________________________________________________________________ >>>>>>>> Professional FreeSWITCH >>>>>>>> Consulting Services: >>>>>>>> consulting at freeswitch.org >>>>>>>> >>>>>>>> http://www.freeswitchsolutions.com >>>>>>>> >>>>>>>> >>>>>>>> Official FreeSWITCH Sites >>>>>>>> http://www.freeswitch.org >>>>>>>> >>>>>>>> http://confluence.freeswitch.org >>>>>>>> >>>>>>>> http://www.cluecon.com >>>>>>>> >>>>>>>> >>>>>>>> FreeSWITCH-users mailing list >>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>> >>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>> >>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>>>> >>>>>>>> http://www.freeswitch.org >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _________________________________________________________________________ >>>>>>>> Professional FreeSWITCH >>>>>>>> Consulting Services: >>>>>>>> consulting at freeswitch.org >>>>>>>> >>>>>>>> http://www.freeswitchsolutions.com >>>>>>>> >>>>>>>> >>>>>>>> Official FreeSWITCH Sites >>>>>>>> http://www.freeswitch.org >>>>>>>> >>>>>>>> http://confluence.freeswitch.org >>>>>>>> >>>>>>>> http://www.cluecon.com >>>>>>>> >>>>>>>> >>>>>>>> FreeSWITCH-users mailing list >>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>> >>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>> >>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>>>> >>>>>>>> http://www.freeswitch.org >>>>>>>> >>>>>>> >>>>>>> >>>>>>> _________________________________________________________________________ >>>>>>> Professional FreeSWITCH >>>>>>> Consulting Services: >>>>>>> consulting at freeswitch.org >>>>>>> >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> >>>>>>> http://confluence.freeswitch.org >>>>>>> >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>> >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> >>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>>> >>>>>>> http://www.freeswitch.org >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> _________________________________________________________________________ >>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>> consulting at freeswitch.org >>>>>>> >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> http://confluence.freeswitch.org >>>>>>> >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>> >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> >>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>>> >>>>>>> http://www.freeswitch.org >>>>>> >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>> >>>>>> http://www.freeswitch.org >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>> >>>>>> http://www.freeswitch.org >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>> >>>>> http://www.freeswitch.org >>>>> >>>>> >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>> >>>>> http://www.freeswitch.org >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> >>>> http://www.freeswitchsolutions.com >>>> >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> >>>> http://www.freeswitch.org >>>> >>>> >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> >>>> http://www.freeswitchsolutions.com >>>> >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> >>>> http://www.freeswitch.org >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> >>> http://www.freeswitch.org >>> >>> >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> >>> http://www.freeswitch.org >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From jungleboogie0 at gmail.com Thu May 24 20:34:26 2018 From: jungleboogie0 at gmail.com (jungle Boogie) Date: Thu, 24 May 2018 13:34:26 -0700 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> Message-ID: On 24 May 2018 at 11:31, Blackhold wrote: > # OK for location of ODBC files > > # output freeswitch using psql (I only edited switch.conf.xml file) > (switch.conf.xml file) > > I see no errors related on logs (nor freeswitch, nor psql -debug5-), > obviously restarted psql to reload config. Does your user have access to the database within postgres? From blackholdmailer at gmail.com Fri May 25 17:07:56 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Fri, 25 May 2018 19:07:56 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> Message-ID: it seems it is not a permissions problem, 'cause I can create and delete a table and insert registries to the table as user I have created postgres at freeswitch-capa8:~/sql$ psql -U freeswitch_user -d freeswitch_db --password Password for user freeswitch_user: psql (9.4.15) Type "help" for help. freeswitch_db=> CREATE TABLE complete ( freeswitch_db(> sticky INTEGER, freeswitch_db(> a1 VARCHAR(128), freeswitch_db(> a2 VARCHAR(128), freeswitch_db(> a3 VARCHAR(128), freeswitch_db(> a4 VARCHAR(128), freeswitch_db(> a5 VARCHAR(128), freeswitch_db(> a6 VARCHAR(128), freeswitch_db(> a7 VARCHAR(128), freeswitch_db(> a8 VARCHAR(128), freeswitch_db(> a9 VARCHAR(128), freeswitch_db(> a10 VARCHAR(128), freeswitch_db(> hostname VARCHAR(256) freeswitch_db(> ); CREATE TABLE freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','help','','','','','','','','','freeswitch-capa8'); INSERT 0 1 freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','','','','','','','','','freeswitch-capa8'); INSERT 0 1 freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','help','','','','','','','','freeswitch-capa8'); INSERT 0 1 freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','console','','','','','','','','freeswitch-capa8'); INSERT 0 1 freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','alert','','','','','','','','freeswitch-capa8'); INSERT 0 1 freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','crit','','','','','','','','freeswitch-capa8'); INSERT 0 1 freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','err','','','','','','','','freeswitch-capa8'); INSERT 0 1 freeswitch_db=> \dt List of relations Schema | Name | Type | Owner --------+----------+-------+----------------- public | complete | table | freeswitch_user (1 row) freeswitch_db=> drop table complete; DROP TABLE freeswitch_db=> \dt No relations found. I show the db config in the config files (grouped by config line): root at freeswitch-capa8:/usr/local/freeswitch/conf# grep XXX * -R autoload_configs/switch.conf.xml: autoload_configs/directory.conf.xml: autoload_configs/voicemail.conf.xml: autoload_configs/cidlookup.conf.xml: autoload_configs/db.conf.xml: autoload_configs/lcr.conf.xml: autoload_configs/callcenter.conf.xml: jingle_profiles/server.xml: sip_profiles/internal.xml: sip_profiles/internal-ipv6.xml: skinny_profiles/internal.xml: autoload_configs/easyroute.conf.xml: autoload_configs/easyroute.conf.xml: autoload_configs/lcr.conf.xml: sip_profiles/internal.xml: - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-24 22:34 GMT+02:00 jungle Boogie : > On 24 May 2018 at 11:31, Blackhold wrote: > > # OK for location of ODBC files > > > > # output freeswitch using psql (I only edited switch.conf.xml file) > > (switch.conf.xml file) > > > > I see no errors related on logs (nor freeswitch, nor psql -debug5-), > > obviously restarted psql to reload config. > > > Does your user have access to the database within postgres? > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Fri May 25 17:14:19 2018 From: mike at jerris.com (Michael Jerris) Date: Fri, 25 May 2018 13:14:19 -0400 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> Message-ID: it sounds like its actually working? > On May 25, 2018, at 1:07 PM, Blackhold wrote: > > it seems it is not a permissions problem, 'cause I can create and delete a table and insert registries to the table as user I have created > > postgres at freeswitch-capa8:~/sql$ psql -U freeswitch_user -d freeswitch_db --password > Password for user freeswitch_user: > psql (9.4.15) > Type "help" for help. > > freeswitch_db=> CREATE TABLE complete ( > freeswitch_db(> sticky INTEGER, > freeswitch_db(> a1 VARCHAR(128), > freeswitch_db(> a2 VARCHAR(128), > freeswitch_db(> a3 VARCHAR(128), > freeswitch_db(> a4 VARCHAR(128), > freeswitch_db(> a5 VARCHAR(128), > freeswitch_db(> a6 VARCHAR(128), > freeswitch_db(> a7 VARCHAR(128), > freeswitch_db(> a8 VARCHAR(128), > freeswitch_db(> a9 VARCHAR(128), > freeswitch_db(> a10 VARCHAR(128), > freeswitch_db(> hostname VARCHAR(256) > freeswitch_db(> ); > CREATE TABLE > freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','help','','','','','','','','','freeswitch-capa8'); > INSERT 0 1 > freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','','','','','','','','','freeswitch-capa8'); > INSERT 0 1 > freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','help','','','','','','','','freeswitch-capa8'); > INSERT 0 1 > freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','console','','','','','','','','freeswitch-capa8'); > INSERT 0 1 > freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','alert','','','','','','','','freeswitch-capa8'); > INSERT 0 1 > freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','crit','','','','','','','','freeswitch-capa8'); > INSERT 0 1 > freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','err','','','','','','','','freeswitch-capa8'); > INSERT 0 1 > freeswitch_db=> \dt > List of relations > Schema | Name | Type | Owner > --------+----------+-------+----------------- > public | complete | table | freeswitch_user > (1 row) > > freeswitch_db=> drop table complete; > DROP TABLE > freeswitch_db=> \dt > No relations found. > > > I show the db config in the config files (grouped by config line): > > root at freeswitch-capa8:/usr/local/freeswitch/conf# grep XXX * -R > > autoload_configs/switch.conf.xml: > > autoload_configs/directory.conf.xml: > autoload_configs/voicemail.conf.xml: > autoload_configs/cidlookup.conf.xml: > autoload_configs/db.conf.xml: > autoload_configs/lcr.conf.xml: > autoload_configs/callcenter.conf.xml: > jingle_profiles/server.xml: > sip_profiles/internal.xml: > sip_profiles/internal-ipv6.xml: > skinny_profiles/internal.xml: > > autoload_configs/easyroute.conf.xml: > autoload_configs/easyroute.conf.xml: > > autoload_configs/lcr.conf.xml: > sip_profiles/internal.xml: > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at freeswitch.com Fri May 25 18:03:49 2018 From: brian at freeswitch.com (Brian West) Date: Fri, 25 May 2018 13:03:49 -0500 Subject: [Freeswitch-users] FS uses external IP address for Contact in 200 to internal server In-Reply-To: <7BDB7917-D27F-42E4-BC7B-7A2495FA0643@pobox.com> References: <9BD8CDAE-0BEB-46A3-8379-6616DF439AD4@pobox.com> <8843A360-F2E4-4B04-B15F-D192FB72AC59@vallimamod.org> <659B3EFB-12D9-42B8-AD44-86502064BA6B@pobox.com> <00A365E2-CFD5-471E-8E5C-3185CF46815A@vallimamod.org> <7BDB7917-D27F-42E4-BC7B-7A2495FA0643@pobox.com> Message-ID: Without autonat: local-network-acl will not come into play, this was to preserve backwards compatibility with previous behavior. /b On Fri, May 25, 2018 at 10:35 AM, M Yudkowsky wrote: > > > > On May 25, 2018, at 08:48 , Brian West wrote: > > > > > > \ > > > This solution works perfectly with my current setup, thanks! I'd tried > autonat in the past, but not after I made some other, recent improvements. > > I'll explore internal vs external profiles later, in my Copious Free Time, > because it's likely a great idea. > > -- > Moshe Yudkowsky > Disaggregate Corporation > 2952 W Fargo > Chicago, IL 60645 USA > > +1 773 764 8727 > speech at pobox.com > > http://www.Disaggregate.com > http://www.PebbleAndAvalanche.com > > > > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -- Brian West | Co-founder and Developer Need Commercial support? email sales at freeswitch.com FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 Email: brian at freeswitch.com Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com [image: https://www.facebook.com/signalwireinc?src=email] [image: https://twitter.com/freeswitch] -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Fri May 25 18:15:01 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Fri, 25 May 2018 20:15:01 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> Message-ID: no, it still don't. It still don't create tables on turning on freeswitch :( - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-25 19:14 GMT+02:00 Michael Jerris : > it sounds like its actually working? > > > On May 25, 2018, at 1:07 PM, Blackhold wrote: > > it seems it is not a permissions problem, 'cause I can create and delete a > table and insert registries to the table as user I have created > > postgres at freeswitch-capa8:~/sql$ psql -U freeswitch_user -d freeswitch_db > --password > Password for user freeswitch_user: > psql (9.4.15) > Type "help" for help. > > freeswitch_db=> CREATE TABLE complete ( > freeswitch_db(> sticky INTEGER, > freeswitch_db(> a1 VARCHAR(128), > freeswitch_db(> a2 VARCHAR(128), > freeswitch_db(> a3 VARCHAR(128), > freeswitch_db(> a4 VARCHAR(128), > freeswitch_db(> a5 VARCHAR(128), > freeswitch_db(> a6 VARCHAR(128), > freeswitch_db(> a7 VARCHAR(128), > freeswitch_db(> a8 VARCHAR(128), > freeswitch_db(> a9 VARCHAR(128), > freeswitch_db(> a10 VARCHAR(128), > freeswitch_db(> hostname VARCHAR(256) > freeswitch_db(> ); > CREATE TABLE > freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','help','',' > ','','','','','','','freeswitch-capa8'); > INSERT 0 1 > freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', > '','','','','','','','','freeswitch-capa8'); > INSERT 0 1 > freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', > 'help','','','','','','','','freeswitch-capa8'); > INSERT 0 1 > freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', > 'console','','','','','','','','freeswitch-capa8'); > INSERT 0 1 > freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', > 'alert','','','','','','','','freeswitch-capa8'); > INSERT 0 1 > freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', > 'crit','','','','','','','','freeswitch-capa8'); > INSERT 0 1 > freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', > 'err','','','','','','','','freeswitch-capa8'); > INSERT 0 1 > freeswitch_db=> \dt > List of relations > Schema | Name | Type | Owner > --------+----------+-------+----------------- > public | complete | table | freeswitch_user > (1 row) > > freeswitch_db=> drop table complete; > DROP TABLE > freeswitch_db=> \dt > No relations found. > > > I show the db config in the config files (grouped by config line): > > root at freeswitch-capa8:/usr/local/freeswitch/conf# grep XXX * -R > > autoload_configs/switch.conf.xml: > > autoload_configs/directory.conf.xml: > autoload_configs/voicemail.conf.xml: > autoload_configs/cidlookup.conf.xml: > autoload_configs/db.conf.xml: > autoload_configs/lcr.conf.xml: > autoload_configs/callcenter.conf.xml: > jingle_profiles/server.xml: > sip_profiles/internal.xml: > sip_profiles/internal-ipv6.xml: > skinny_profiles/internal.xml: > > autoload_configs/easyroute.conf.xml: value="XXX"/> > autoload_configs/easyroute.conf.xml: > > autoload_configs/lcr.conf.xml: > sip_profiles/internal.xml: > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Fri May 25 18:18:39 2018 From: mike at jerris.com (Michael Jerris) Date: Fri, 25 May 2018 14:18:39 -0400 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> Message-ID: <67307984-EE24-4429-80C5-8FB14444F44D@jerris.com> there is an arg to not create schema, its possible thats default on odbc, but I didnt think so. You’ll need to look at the errors and see if its trying to create the schema or not. If it is and its failing, the errors should point you to why. > On May 25, 2018, at 2:15 PM, Blackhold wrote: > > no, it still don't. It still don't create tables on turning on freeswitch :( > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-25 19:14 GMT+02:00 Michael Jerris >: > it sounds like its actually working? > > >> On May 25, 2018, at 1:07 PM, Blackhold > wrote: >> >> it seems it is not a permissions problem, 'cause I can create and delete a table and insert registries to the table as user I have created >> >> postgres at freeswitch-capa8:~/sql$ psql -U freeswitch_user -d freeswitch_db --password >> Password for user freeswitch_user: >> psql (9.4.15) >> Type "help" for help. >> >> freeswitch_db=> CREATE TABLE complete ( >> freeswitch_db(> sticky INTEGER, >> freeswitch_db(> a1 VARCHAR(128), >> freeswitch_db(> a2 VARCHAR(128), >> freeswitch_db(> a3 VARCHAR(128), >> freeswitch_db(> a4 VARCHAR(128), >> freeswitch_db(> a5 VARCHAR(128), >> freeswitch_db(> a6 VARCHAR(128), >> freeswitch_db(> a7 VARCHAR(128), >> freeswitch_db(> a8 VARCHAR(128), >> freeswitch_db(> a9 VARCHAR(128), >> freeswitch_db(> a10 VARCHAR(128), >> freeswitch_db(> hostname VARCHAR(256) >> freeswitch_db(> ); >> CREATE TABLE >> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','help','','','','','','','','','freeswitch-capa8'); >> INSERT 0 1 >> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','','','','','','','','','freeswitch-capa8'); >> INSERT 0 1 >> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','help','','','','','','','','freeswitch-capa8'); >> INSERT 0 1 >> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','console','','','','','','','','freeswitch-capa8'); >> INSERT 0 1 >> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','alert','','','','','','','','freeswitch-capa8'); >> INSERT 0 1 >> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','crit','','','','','','','','freeswitch-capa8'); >> INSERT 0 1 >> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel','err','','','','','','','','freeswitch-capa8'); >> INSERT 0 1 >> freeswitch_db=> \dt >> List of relations >> Schema | Name | Type | Owner >> --------+----------+-------+----------------- >> public | complete | table | freeswitch_user >> (1 row) >> >> freeswitch_db=> drop table complete; >> DROP TABLE >> freeswitch_db=> \dt >> No relations found. >> >> >> I show the db config in the config files (grouped by config line): >> >> root at freeswitch-capa8:/usr/local/freeswitch/conf# grep XXX * -R >> >> autoload_configs/switch.conf.xml: >> >> autoload_configs/directory.conf.xml: >> autoload_configs/voicemail.conf.xml: >> autoload_configs/cidlookup.conf.xml: >> autoload_configs/db.conf.xml: >> autoload_configs/lcr.conf.xml: >> autoload_configs/callcenter.conf.xml: >> jingle_profiles/server.xml: >> sip_profiles/internal.xml: >> sip_profiles/internal-ipv6.xml: >> skinny_profiles/internal.xml: >> >> autoload_configs/easyroute.conf.xml: >> autoload_configs/easyroute.conf.xml: >> >> autoload_configs/lcr.conf.xml: >> sip_profiles/internal.xml: >> >> > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From bilaln018 at gmail.com Fri May 25 18:58:31 2018 From: bilaln018 at gmail.com (Bilal Abbasi) Date: Fri, 25 May 2018 23:58:31 +0500 Subject: [Freeswitch-users] [mod_unimrcp][Speech Recognition start/stop] In-Reply-To: References: Message-ID: anybody here who can help me with this please. On Fri, May 25, 2018 at 1:06 AM, Bilal Abbasi wrote: > Hi Users, > > I am using mod_unimrcp, i have successfully done the Speech to Text using > below function > data="ivr/ivr-welcome_to_freeswitch.wav detect:*unimrcp:uni2* {start-inp > ut-timers=false}*builtin:speech/transcribe*"/> > > But i don't need the play and detect, i need to put the caller in a > conference so i really need something like this > action application="start_detect:*unimrcp:uni2* {start-input-timers=false} > *builtin:speech/transcribe*"/> > > action application="stop_detect:*unimrcp:uni2* {start-input-timers=false} > *builtin:speech/transcribe*"/> > > I could not find a way to start the unimrcp client and then stop at > hangup, can somebody please help me out with this. > > > Regards > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From infos at madovsky.org Fri May 25 19:56:58 2018 From: infos at madovsky.org (Madovsky) Date: Fri, 25 May 2018 12:56:58 -0700 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: <67307984-EE24-4429-80C5-8FB14444F44D@jerris.com> References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <67307984-EE24-4429-80C5-8FB14444F44D@jerris.com> Message-ID: <861fea4a-8a91-9122-8b37-9de09c42225e@madovsky.org> also turn FS to debug level 7 to 9 to see if it tries to connect to the database On 5/25/2018 11:18 AM, Michael Jerris wrote: > there is an arg to not create schema, its possible thats default on > odbc, but I didnt think so.  You’ll need to look at the errors and see > if its trying to create the schema or not.  If it is and its failing, > the errors should point you to why. > >> On May 25, 2018, at 2:15 PM, Blackhold > > wrote: >> >> no, it still don't. It still don't create tables on turning on >> freeswitch :( >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-25 19:14 GMT+02:00 Michael Jerris > >: >> >> it sounds like its actually working? >> >> >>> On May 25, 2018, at 1:07 PM, Blackhold >>> > >>> wrote: >>> >>> it seems it is not a permissions problem, 'cause I can create >>> and delete a table and insert registries to the table as user I >>> have created >>> >>> postgres at freeswitch-capa8:~/sql$ psql -U freeswitch_user -d >>> freeswitch_db --password >>> Password for user freeswitch_user: >>> psql (9.4.15) >>> Type "help" for help. >>> >>> freeswitch_db=> CREATE TABLE complete ( >>> freeswitch_db(> sticky  INTEGER, >>> freeswitch_db(> a1  VARCHAR(128), >>> freeswitch_db(> a2  VARCHAR(128), >>> freeswitch_db(> a3  VARCHAR(128), >>> freeswitch_db(> a4  VARCHAR(128), >>> freeswitch_db(> a5  VARCHAR(128), >>> freeswitch_db(> a6  VARCHAR(128), >>> freeswitch_db(> a7  VARCHAR(128), >>> freeswitch_db(> a8  VARCHAR(128), >>> freeswitch_db(> a9  VARCHAR(128), >>> freeswitch_db(> a10 VARCHAR(128), >>> freeswitch_db(> hostname VARCHAR(256) >>> freeswitch_db(> ); >>> CREATE TABLE >>> freeswitch_db=> INSERT INTO "complete" >>> VALUES(0,'console','help','','','','','','','','','freeswitch-capa8'); >>> INSERT 0 1 >>> freeswitch_db=> INSERT INTO "complete" >>> VALUES(0,'console','loglevel','','','','','','','','','freeswitch-capa8'); >>> INSERT 0 1 >>> freeswitch_db=> INSERT INTO "complete" >>> VALUES(0,'console','loglevel','help','','','','','','','','freeswitch-capa8'); >>> INSERT 0 1 >>> freeswitch_db=> INSERT INTO "complete" >>> VALUES(0,'console','loglevel','console','','','','','','','','freeswitch-capa8'); >>> INSERT 0 1 >>> freeswitch_db=> INSERT INTO "complete" >>> VALUES(0,'console','loglevel','alert','','','','','','','','freeswitch-capa8'); >>> INSERT 0 1 >>> freeswitch_db=> INSERT INTO "complete" >>> VALUES(0,'console','loglevel','crit','','','','','','','','freeswitch-capa8'); >>> INSERT 0 1 >>> freeswitch_db=> INSERT INTO "complete" >>> VALUES(0,'console','loglevel','err','','','','','','','','freeswitch-capa8'); >>> INSERT 0 1 >>> freeswitch_db=> \dt >>>               List of relations >>>  Schema |   Name   | Type  |      Owner >>> --------+----------+-------+----------------- >>>  public | complete | table | freeswitch_user >>> (1 row) >>> >>> freeswitch_db=> drop table complete; >>> DROP TABLE >>> freeswitch_db=> \dt >>> No relations found. >>> >>> >>> I show the db config in the config files (grouped by config line): >>> >>> root at freeswitch-capa8:/usr/local/freeswitch/conf# grep XXX * -R >>> >>> autoload_configs/switch.conf.xml:    >> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='U8r9BuntD6iryrKK' options='-c >>> client_min_messages=NOTICE'" /> >>> >>> autoload_configs/directory.conf.xml:    >> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='XXX' options='-c >>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>> autoload_configs/voicemail.conf.xml:    >> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='XXX' options='-c >>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>> autoload_configs/cidlookup.conf.xml:    >> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='XXX' options='-c >>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>> autoload_configs/db.conf.xml:   >> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='XXX' options='-c >>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>> autoload_configs/lcr.conf.xml:    >> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='XXX' options='-c >>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>> autoload_configs/callcenter.conf.xml:    >> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='XXX' options='-c >>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>> jingle_profiles/server.xml:   >> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='XXX' options='-c >>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>> sip_profiles/internal.xml:   >> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='XXX' options='-c >>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>> sip_profiles/internal-ipv6.xml:    >> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='XXX' options='-c >>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>> skinny_profiles/internal.xml:   >> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='XXX' options='-c >>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>> >>> autoload_configs/easyroute.conf.xml:    >> name="db-password" value="XXX"/> >>> autoload_configs/easyroute.conf.xml:    >> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='XXX' options='-c >>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>> >>> autoload_configs/lcr.conf.xml:    >>> sip_profiles/internal.xml:   >>> >>> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Fri May 25 20:13:42 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Fri, 25 May 2018 22:13:42 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: <861fea4a-8a91-9122-8b37-9de09c42225e@madovsky.org> References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <67307984-EE24-4429-80C5-8FB14444F44D@jerris.com> <861fea4a-8a91-9122-8b37-9de09c42225e@madovsky.org> Message-ID: root at freeswitch-capa8:/usr/local/freeswitch/log# grep CRIT freeswitch.log 2018-05-25 22:11:59.362305 [CRIT] switch_core_sqldb.c:468 Failure! PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' application_name='freeswitch' 2018-05-25 22:11:59.362669 [CRIT] sofia.c:3130 Cannot Open SQL Database [internal-ipv6]! 2018-05-25 22:12:00.362142 [CRIT] switch_core_sqldb.c:468 Failure! PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' application_name='freeswitch' 2018-05-25 22:12:00.362145 [CRIT] sofia.c:3130 Cannot Open SQL Database [internal]! 2018-05-25 22:12:03.021179 [CRIT] switch_core_sqldb.c:468 Failure! PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' application_name='freeswitch' 2018-05-25 22:12:03.563069 [CRIT] switch_core_sqldb.c:468 Failure! PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' application_name='freeswitch' 2018-05-25 22:12:03.563076 [CRIT] mod_voicemail.c:774 Cannot open DB! - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-25 21:56 GMT+02:00 Madovsky : > also turn FS to debug level 7 to 9 to see if it tries to connect to the > database > On 5/25/2018 11:18 AM, Michael Jerris wrote: > > there is an arg to not create schema, its possible thats default on odbc, > but I didnt think so. You’ll need to look at the errors and see if its > trying to create the schema or not. If it is and its failing, the errors > should point you to why. > > On May 25, 2018, at 2:15 PM, Blackhold wrote: > > no, it still don't. It still don't create tables on turning on freeswitch > :( > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres > mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-25 19:14 GMT+02:00 Michael Jerris : > >> it sounds like its actually working? >> >> >> On May 25, 2018, at 1:07 PM, Blackhold wrote: >> >> it seems it is not a permissions problem, 'cause I can create and delete >> a table and insert registries to the table as user I have created >> >> postgres at freeswitch-capa8:~/sql$ psql -U freeswitch_user -d >> freeswitch_db --password >> Password for user freeswitch_user: >> psql (9.4.15) >> Type "help" for help. >> >> freeswitch_db=> CREATE TABLE complete ( >> freeswitch_db(> sticky INTEGER, >> freeswitch_db(> a1 VARCHAR(128), >> freeswitch_db(> a2 VARCHAR(128), >> freeswitch_db(> a3 VARCHAR(128), >> freeswitch_db(> a4 VARCHAR(128), >> freeswitch_db(> a5 VARCHAR(128), >> freeswitch_db(> a6 VARCHAR(128), >> freeswitch_db(> a7 VARCHAR(128), >> freeswitch_db(> a8 VARCHAR(128), >> freeswitch_db(> a9 VARCHAR(128), >> freeswitch_db(> a10 VARCHAR(128), >> freeswitch_db(> hostname VARCHAR(256) >> freeswitch_db(> ); >> CREATE TABLE >> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','help','',' >> ','','','','','','','freeswitch-capa8'); >> INSERT 0 1 >> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >> '','','','','','','','','freeswitch-capa8'); >> INSERT 0 1 >> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >> 'help','','','','','','','','freeswitch-capa8'); >> INSERT 0 1 >> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >> 'console','','','','','','','','freeswitch-capa8'); >> INSERT 0 1 >> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >> 'alert','','','','','','','','freeswitch-capa8'); >> INSERT 0 1 >> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >> 'crit','','','','','','','','freeswitch-capa8'); >> INSERT 0 1 >> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >> 'err','','','','','','','','freeswitch-capa8'); >> INSERT 0 1 >> freeswitch_db=> \dt >> List of relations >> Schema | Name | Type | Owner >> --------+----------+-------+----------------- >> public | complete | table | freeswitch_user >> (1 row) >> >> freeswitch_db=> drop table complete; >> DROP TABLE >> freeswitch_db=> \dt >> No relations found. >> >> >> I show the db config in the config files (grouped by config line): >> >> root at freeswitch-capa8:/usr/local/freeswitch/conf# grep XXX * -R >> >> autoload_configs/switch.conf.xml: >> >> autoload_configs/directory.conf.xml: >> autoload_configs/voicemail.conf.xml: >> autoload_configs/cidlookup.conf.xml: >> autoload_configs/db.conf.xml: >> autoload_configs/lcr.conf.xml: >> autoload_configs/callcenter.conf.xml: >> jingle_profiles/server.xml: >> sip_profiles/internal.xml: >> sip_profiles/internal-ipv6.xml: >> skinny_profiles/internal.xml: >> >> autoload_configs/easyroute.conf.xml: > value="XXX"/> >> autoload_configs/easyroute.conf.xml: >> >> autoload_configs/lcr.conf.xml: >> sip_profiles/internal.xml: >> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com > > Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com > > FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From infos at madovsky.org Fri May 25 20:21:45 2018 From: infos at madovsky.org (Madovsky) Date: Fri, 25 May 2018 13:21:45 -0700 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <67307984-EE24-4429-80C5-8FB14444F44D@jerris.com> <861fea4a-8a91-9122-8b37-9de09c42225e@madovsky.org> Message-ID: any iptables rules activated? SELinux? On 5/25/2018 1:13 PM, Blackhold wrote: > root at freeswitch-capa8:/usr/local/freeswitch/log# grep CRIT freeswitch.log > 2018-05-25 22:11:59.362305 [CRIT] switch_core_sqldb.c:468 Failure! > PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 > dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c > client_min_messages=NOTICE' application_name='freeswitch' > 2018-05-25 22:11:59.362669 [CRIT] sofia.c:3130 Cannot Open SQL > Database [internal-ipv6]! > 2018-05-25 22:12:00.362142 [CRIT] switch_core_sqldb.c:468 Failure! > PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 > dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c > client_min_messages=NOTICE' application_name='freeswitch' > 2018-05-25 22:12:00.362145 [CRIT] sofia.c:3130 Cannot Open SQL > Database [internal]! > 2018-05-25 22:12:03.021179 [CRIT] switch_core_sqldb.c:468 Failure! > PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 > dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c > client_min_messages=NOTICE' application_name='freeswitch' > 2018-05-25 22:12:03.563069 [CRIT] switch_core_sqldb.c:468 Failure! > PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 > dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c > client_min_messages=NOTICE' application_name='freeswitch' > 2018-05-25 22:12:03.563076 [CRIT] mod_voicemail.c:774 Cannot open DB! > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra > nosaltres mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-25 21:56 GMT+02:00 Madovsky >: > > also turn FS to debug level 7 to 9 to see if it tries to connect > to the database > > On 5/25/2018 11:18 AM, Michael Jerris wrote: >> there is an arg to not create schema, its possible thats default >> on odbc, but I didnt think so.  You’ll need to look at the errors >> and see if its trying to create the schema or not. If it is and >> its failing, the errors should point you to why. >> >>> On May 25, 2018, at 2:15 PM, Blackhold >>> > >>> wrote: >>> >>> no, it still don't. It still don't create tables on turning on >>> freeswitch :( >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>> nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-25 19:14 GMT+02:00 Michael Jerris >> >: >>> >>> it sounds like its actually working? >>> >>> >>>> On May 25, 2018, at 1:07 PM, Blackhold >>>> >>> > wrote: >>>> >>>> it seems it is not a permissions problem, 'cause I can >>>> create and delete a table and insert registries to the >>>> table as user I have created >>>> >>>> postgres at freeswitch-capa8:~/sql$ psql -U freeswitch_user -d >>>> freeswitch_db --password >>>> Password for user freeswitch_user: >>>> psql (9.4.15) >>>> Type "help" for help. >>>> >>>> freeswitch_db=> CREATE TABLE complete ( >>>> freeswitch_db(>   sticky  INTEGER, >>>> freeswitch_db(>   a1  VARCHAR(128), >>>> freeswitch_db(>   a2  VARCHAR(128), >>>> freeswitch_db(>   a3  VARCHAR(128), >>>> freeswitch_db(>   a4  VARCHAR(128), >>>> freeswitch_db(>   a5  VARCHAR(128), >>>> freeswitch_db(>   a6  VARCHAR(128), >>>> freeswitch_db(>   a7  VARCHAR(128), >>>> freeswitch_db(>   a8  VARCHAR(128), >>>> freeswitch_db(>   a9  VARCHAR(128), >>>> freeswitch_db(>   a10 VARCHAR(128), >>>> freeswitch_db(>   hostname VARCHAR(256) >>>> freeswitch_db(> ); >>>> CREATE TABLE >>>> freeswitch_db=> INSERT INTO "complete" >>>> VALUES(0,'console','help','','','','','','','','','freeswitch-capa8'); >>>> INSERT 0 1 >>>> freeswitch_db=> INSERT INTO "complete" >>>> VALUES(0,'console','loglevel','','','','','','','','','freeswitch-capa8'); >>>> INSERT 0 1 >>>> freeswitch_db=> INSERT INTO "complete" >>>> VALUES(0,'console','loglevel','help','','','','','','','','freeswitch-capa8'); >>>> INSERT 0 1 >>>> freeswitch_db=> INSERT INTO "complete" >>>> VALUES(0,'console','loglevel','console','','','','','','','','freeswitch-capa8'); >>>> INSERT 0 1 >>>> freeswitch_db=> INSERT INTO "complete" >>>> VALUES(0,'console','loglevel','alert','','','','','','','','freeswitch-capa8'); >>>> INSERT 0 1 >>>> freeswitch_db=> INSERT INTO "complete" >>>> VALUES(0,'console','loglevel','crit','','','','','','','','freeswitch-capa8'); >>>> INSERT 0 1 >>>> freeswitch_db=> INSERT INTO "complete" >>>> VALUES(0,'console','loglevel','err','','','','','','','','freeswitch-capa8'); >>>> INSERT 0 1 >>>> freeswitch_db=> \dt >>>> List of relations >>>>  Schema |   Name  | Type  | Owner >>>> --------+----------+-------+----------------- >>>>  public | complete | table | freeswitch_user >>>> (1 row) >>>> >>>> freeswitch_db=> drop table complete; >>>> DROP TABLE >>>> freeswitch_db=> \dt >>>> No relations found. >>>> >>>> >>>> I show the db config in the config files (grouped by config >>>> line): >>>> >>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# grep XXX * -R >>>> >>>> autoload_configs/switch.conf.xml:   >>> name="core-db-dsn" value="pgsql://hostaddr=127.0.0.1 >>>> dbname=freeswitch_db user=freeswitch_user >>>> password='U8r9BuntD6iryrKK' options='-c >>>> client_min_messages=NOTICE'" /> >>>> >>>> autoload_configs/directory.conf.xml:   >>> name="odbc-dsn" value="pgsql://hostaddr=127.0.0.1 >>>> dbname=freeswitch_db user=freeswitch_user password='XXX' >>>> options='-c client_min_messages=NOTICE' >>>> application_name='freeswitch'" /> >>>> autoload_configs/voicemail.conf.xml:   >>> name="odbc-dsn" value="pgsql://hostaddr=127.0.0.1 >>>> dbname=freeswitch_db user=freeswitch_user password='XXX' >>>> options='-c client_min_messages=NOTICE' >>>> application_name='freeswitch'" /> >>>> autoload_configs/cidlookup.conf.xml:   >>> name="odbc-dsn" value="pgsql://hostaddr=127.0.0.1 >>>> dbname=freeswitch_db user=freeswitch_user password='XXX' >>>> options='-c client_min_messages=NOTICE' >>>> application_name='freeswitch'" /> >>>> autoload_configs/db.conf.xml:   >>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>> user=freeswitch_user password='XXX' options='-c >>>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>>> autoload_configs/lcr.conf.xml:   >>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>> user=freeswitch_user password='XXX' options='-c >>>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>>> autoload_configs/callcenter.co >>>> nf.xml:   >>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>> user=freeswitch_user password='XXX' options='-c >>>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>>> jingle_profiles/server.xml:   >>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>> user=freeswitch_user password='XXX' options='-c >>>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>>> sip_profiles/internal.xml:   >>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>> user=freeswitch_user password='XXX' options='-c >>>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>>> sip_profiles/internal-ipv6.xml:   >>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>> user=freeswitch_user password='XXX' options='-c >>>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>>> skinny_profiles/internal.xml:   >>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>> user=freeswitch_user password='XXX' options='-c >>>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>>> >>>> autoload_configs/easyroute.conf.xml:   >>> name="db-password" value="XXX"/> >>>> autoload_configs/easyroute.conf.xml:   >>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>> user=freeswitch_user password='XXX' options='-c >>>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>>> >>>> autoload_configs/lcr.conf.xml:   >>>> sip_profiles/internal.xml:   >>>> >>>> >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> >>> http://www.freeswitch.org >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> >>> http://www.freeswitch.org >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Fri May 25 20:22:58 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Fri, 25 May 2018 22:22:58 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <67307984-EE24-4429-80C5-8FB14444F44D@jerris.com> <861fea4a-8a91-9122-8b37-9de09c42225e@madovsky.org> Message-ID: nope, debian 8 installed by default using net-install iso. I'm inside a kvm machine - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-25 22:21 GMT+02:00 Madovsky : > any iptables rules activated? SELinux? > On 5/25/2018 1:13 PM, Blackhold wrote: > > root at freeswitch-capa8:/usr/local/freeswitch/log# grep CRIT freeswitch.log > 2018-05-25 22:11:59.362305 [CRIT] switch_core_sqldb.c:468 Failure! PGSQL > NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 dbname=freeswitch_db > user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' > application_name='freeswitch' > 2018-05-25 22:11:59.362669 [CRIT] sofia.c:3130 Cannot Open SQL Database > [internal-ipv6]! > 2018-05-25 22:12:00.362142 [CRIT] switch_core_sqldb.c:468 Failure! PGSQL > NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 dbname=freeswitch_db > user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' > application_name='freeswitch' > 2018-05-25 22:12:00.362145 [CRIT] sofia.c:3130 Cannot Open SQL Database > [internal]! > 2018-05-25 22:12:03.021179 [CRIT] switch_core_sqldb.c:468 Failure! PGSQL > NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 dbname=freeswitch_db > user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' > application_name='freeswitch' > 2018-05-25 22:12:03.563069 [CRIT] switch_core_sqldb.c:468 Failure! PGSQL > NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 dbname=freeswitch_db > user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' > application_name='freeswitch' > 2018-05-25 22:12:03.563076 [CRIT] mod_voicemail.c:774 Cannot open DB! > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres > mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-25 21:56 GMT+02:00 Madovsky : > >> also turn FS to debug level 7 to 9 to see if it tries to connect to the >> database >> On 5/25/2018 11:18 AM, Michael Jerris wrote: >> >> there is an arg to not create schema, its possible thats default on odbc, >> but I didnt think so. You’ll need to look at the errors and see if its >> trying to create the schema or not. If it is and its failing, the errors >> should point you to why. >> >> On May 25, 2018, at 2:15 PM, Blackhold wrote: >> >> no, it still don't. It still don't create tables on turning on freeswitch >> :( >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-25 19:14 GMT+02:00 Michael Jerris : >> >>> it sounds like its actually working? >>> >>> >>> On May 25, 2018, at 1:07 PM, Blackhold >>> wrote: >>> >>> it seems it is not a permissions problem, 'cause I can create and delete >>> a table and insert registries to the table as user I have created >>> >>> postgres at freeswitch-capa8:~/sql$ psql -U freeswitch_user -d >>> freeswitch_db --password >>> Password for user freeswitch_user: >>> psql (9.4.15) >>> Type "help" for help. >>> >>> freeswitch_db=> CREATE TABLE complete ( >>> freeswitch_db(> sticky INTEGER, >>> freeswitch_db(> a1 VARCHAR(128), >>> freeswitch_db(> a2 VARCHAR(128), >>> freeswitch_db(> a3 VARCHAR(128), >>> freeswitch_db(> a4 VARCHAR(128), >>> freeswitch_db(> a5 VARCHAR(128), >>> freeswitch_db(> a6 VARCHAR(128), >>> freeswitch_db(> a7 VARCHAR(128), >>> freeswitch_db(> a8 VARCHAR(128), >>> freeswitch_db(> a9 VARCHAR(128), >>> freeswitch_db(> a10 VARCHAR(128), >>> freeswitch_db(> hostname VARCHAR(256) >>> freeswitch_db(> ); >>> CREATE TABLE >>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','help','',' >>> ','','','','','','','freeswitch-capa8'); >>> INSERT 0 1 >>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>> '','','','','','','','','freeswitch-capa8'); >>> INSERT 0 1 >>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>> 'help','','','','','','','','freeswitch-capa8'); >>> INSERT 0 1 >>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>> 'console','','','','','','','','freeswitch-capa8'); >>> INSERT 0 1 >>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>> 'alert','','','','','','','','freeswitch-capa8'); >>> INSERT 0 1 >>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>> 'crit','','','','','','','','freeswitch-capa8'); >>> INSERT 0 1 >>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>> 'err','','','','','','','','freeswitch-capa8'); >>> INSERT 0 1 >>> freeswitch_db=> \dt >>> List of relations >>> Schema | Name | Type | Owner >>> --------+----------+-------+----------------- >>> public | complete | table | freeswitch_user >>> (1 row) >>> >>> freeswitch_db=> drop table complete; >>> DROP TABLE >>> freeswitch_db=> \dt >>> No relations found. >>> >>> >>> I show the db config in the config files (grouped by config line): >>> >>> root at freeswitch-capa8:/usr/local/freeswitch/conf# grep XXX * -R >>> >>> autoload_configs/switch.conf.xml: >>> >>> autoload_configs/directory.conf.xml: >>> autoload_configs/voicemail.conf.xml: >>> autoload_configs/cidlookup.conf.xml: >>> autoload_configs/db.conf.xml: >>> autoload_configs/lcr.conf.xml: >>> autoload_configs/callcenter.conf.xml: >>> jingle_profiles/server.xml: >>> sip_profiles/internal.xml: >>> sip_profiles/internal-ipv6.xml: >>> skinny_profiles/internal.xml: >>> >>> autoload_configs/easyroute.conf.xml: >> value="XXX"/> >>> autoload_configs/easyroute.conf.xml: >>> >>> autoload_configs/lcr.conf.xml: >>> sip_profiles/internal.xml: >>> >>> >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >> >> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >> >> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com > > Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com > > FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Fri May 25 20:30:06 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Fri, 25 May 2018 22:30:06 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <67307984-EE24-4429-80C5-8FB14444F44D@jerris.com> <861fea4a-8a91-9122-8b37-9de09c42225e@madovsky.org> Message-ID: I revised kvm configuration and firewall is disabled. also I have set to 1 /proc/sys/net/ipv4/ip_forward and the behaviour is the same - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-25 22:22 GMT+02:00 Blackhold : > nope, debian 8 installed by default using net-install iso. > > I'm inside a kvm machine > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres > mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-25 22:21 GMT+02:00 Madovsky : > >> any iptables rules activated? SELinux? >> On 5/25/2018 1:13 PM, Blackhold wrote: >> >> root at freeswitch-capa8:/usr/local/freeswitch/log# grep CRIT >> freeswitch.log >> 2018-05-25 22:11:59.362305 [CRIT] switch_core_sqldb.c:468 Failure! PGSQL >> NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 dbname=freeswitch_db >> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >> application_name='freeswitch' >> 2018-05-25 22:11:59.362669 [CRIT] sofia.c:3130 Cannot Open SQL Database >> [internal-ipv6]! >> 2018-05-25 22:12:00.362142 [CRIT] switch_core_sqldb.c:468 Failure! PGSQL >> NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 dbname=freeswitch_db >> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >> application_name='freeswitch' >> 2018-05-25 22:12:00.362145 [CRIT] sofia.c:3130 Cannot Open SQL Database >> [internal]! >> 2018-05-25 22:12:03.021179 [CRIT] switch_core_sqldb.c:468 Failure! PGSQL >> NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 dbname=freeswitch_db >> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >> application_name='freeswitch' >> 2018-05-25 22:12:03.563069 [CRIT] switch_core_sqldb.c:468 Failure! PGSQL >> NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 dbname=freeswitch_db >> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >> application_name='freeswitch' >> 2018-05-25 22:12:03.563076 [CRIT] mod_voicemail.c:774 Cannot open DB! >> >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-25 21:56 GMT+02:00 Madovsky : >> >>> also turn FS to debug level 7 to 9 to see if it tries to connect to the >>> database >>> On 5/25/2018 11:18 AM, Michael Jerris wrote: >>> >>> there is an arg to not create schema, its possible thats default on >>> odbc, but I didnt think so. You’ll need to look at the errors and see if >>> its trying to create the schema or not. If it is and its failing, the >>> errors should point you to why. >>> >>> On May 25, 2018, at 2:15 PM, Blackhold >>> wrote: >>> >>> no, it still don't. It still don't create tables on turning on >>> freeswitch :( >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>> nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-25 19:14 GMT+02:00 Michael Jerris : >>> >>>> it sounds like its actually working? >>>> >>>> >>>> On May 25, 2018, at 1:07 PM, Blackhold >>>> wrote: >>>> >>>> it seems it is not a permissions problem, 'cause I can create and >>>> delete a table and insert registries to the table as user I have created >>>> >>>> postgres at freeswitch-capa8:~/sql$ psql -U freeswitch_user -d >>>> freeswitch_db --password >>>> Password for user freeswitch_user: >>>> psql (9.4.15) >>>> Type "help" for help. >>>> >>>> freeswitch_db=> CREATE TABLE complete ( >>>> freeswitch_db(> sticky INTEGER, >>>> freeswitch_db(> a1 VARCHAR(128), >>>> freeswitch_db(> a2 VARCHAR(128), >>>> freeswitch_db(> a3 VARCHAR(128), >>>> freeswitch_db(> a4 VARCHAR(128), >>>> freeswitch_db(> a5 VARCHAR(128), >>>> freeswitch_db(> a6 VARCHAR(128), >>>> freeswitch_db(> a7 VARCHAR(128), >>>> freeswitch_db(> a8 VARCHAR(128), >>>> freeswitch_db(> a9 VARCHAR(128), >>>> freeswitch_db(> a10 VARCHAR(128), >>>> freeswitch_db(> hostname VARCHAR(256) >>>> freeswitch_db(> ); >>>> CREATE TABLE >>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','help','',' >>>> ','','','','','','','freeswitch-capa8'); >>>> INSERT 0 1 >>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>> '','','','','','','','','freeswitch-capa8'); >>>> INSERT 0 1 >>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>> 'help','','','','','','','','freeswitch-capa8'); >>>> INSERT 0 1 >>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>> 'console','','','','','','','','freeswitch-capa8'); >>>> INSERT 0 1 >>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>> 'alert','','','','','','','','freeswitch-capa8'); >>>> INSERT 0 1 >>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>> 'crit','','','','','','','','freeswitch-capa8'); >>>> INSERT 0 1 >>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>> 'err','','','','','','','','freeswitch-capa8'); >>>> INSERT 0 1 >>>> freeswitch_db=> \dt >>>> List of relations >>>> Schema | Name | Type | Owner >>>> --------+----------+-------+----------------- >>>> public | complete | table | freeswitch_user >>>> (1 row) >>>> >>>> freeswitch_db=> drop table complete; >>>> DROP TABLE >>>> freeswitch_db=> \dt >>>> No relations found. >>>> >>>> >>>> I show the db config in the config files (grouped by config line): >>>> >>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# grep XXX * -R >>>> >>>> autoload_configs/switch.conf.xml: >>>> >>>> autoload_configs/directory.conf.xml: >>>> autoload_configs/voicemail.conf.xml: >>>> autoload_configs/cidlookup.conf.xml: >>>> autoload_configs/db.conf.xml: >>>> autoload_configs/lcr.conf.xml: >>>> autoload_configs/callcenter.conf.xml: >>>> jingle_profiles/server.xml: >>>> sip_profiles/internal.xml: >>>> sip_profiles/internal-ipv6.xml: >>>> skinny_profiles/internal.xml: >>>> >>>> autoload_configs/easyroute.conf.xml: >>> value="XXX"/> >>>> autoload_configs/easyroute.conf.xml: >>>> >>>> autoload_configs/lcr.conf.xml: >>>> sip_profiles/internal.xml: >>>> >>>> >>>> >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>> switch-users >>>> http://www.freeswitch.org >>>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >>> >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>> >>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>> >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >> >> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >> >> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Fri May 25 20:55:15 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Fri, 25 May 2018 22:55:15 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <67307984-EE24-4429-80C5-8FB14444F44D@jerris.com> <861fea4a-8a91-9122-8b37-9de09c42225e@madovsky.org> Message-ID: maybe on using configure script doesn't configured freeswitch without PGSQL support? https://marc.info/?l=freeswitch-users&m=135482851910677&w=2 ./configure --enable-core-pgsql-support --no-create --no-recursion I have to move from my site a while, in a while I test to configure, make and make install again... - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-25 22:30 GMT+02:00 Blackhold : > I revised kvm configuration and firewall is disabled. > > also I have set to 1 /proc/sys/net/ipv4/ip_forward and the behaviour is > the same > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres > mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-25 22:22 GMT+02:00 Blackhold : > >> nope, debian 8 installed by default using net-install iso. >> >> I'm inside a kvm machine >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-25 22:21 GMT+02:00 Madovsky : >> >>> any iptables rules activated? SELinux? >>> On 5/25/2018 1:13 PM, Blackhold wrote: >>> >>> root at freeswitch-capa8:/usr/local/freeswitch/log# grep CRIT >>> freeswitch.log >>> 2018-05-25 22:11:59.362305 [CRIT] switch_core_sqldb.c:468 Failure! PGSQL >>> NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >>> application_name='freeswitch' >>> 2018-05-25 22:11:59.362669 [CRIT] sofia.c:3130 Cannot Open SQL Database >>> [internal-ipv6]! >>> 2018-05-25 22:12:00.362142 [CRIT] switch_core_sqldb.c:468 Failure! PGSQL >>> NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >>> application_name='freeswitch' >>> 2018-05-25 22:12:00.362145 [CRIT] sofia.c:3130 Cannot Open SQL Database >>> [internal]! >>> 2018-05-25 22:12:03.021179 [CRIT] switch_core_sqldb.c:468 Failure! PGSQL >>> NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >>> application_name='freeswitch' >>> 2018-05-25 22:12:03.563069 [CRIT] switch_core_sqldb.c:468 Failure! PGSQL >>> NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 dbname=freeswitch_db >>> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >>> application_name='freeswitch' >>> 2018-05-25 22:12:03.563076 [CRIT] mod_voicemail.c:774 Cannot open DB! >>> >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>> nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-25 21:56 GMT+02:00 Madovsky : >>> >>>> also turn FS to debug level 7 to 9 to see if it tries to connect to the >>>> database >>>> On 5/25/2018 11:18 AM, Michael Jerris wrote: >>>> >>>> there is an arg to not create schema, its possible thats default on >>>> odbc, but I didnt think so. You’ll need to look at the errors and see if >>>> its trying to create the schema or not. If it is and its failing, the >>>> errors should point you to why. >>>> >>>> On May 25, 2018, at 2:15 PM, Blackhold >>>> wrote: >>>> >>>> no, it still don't. It still don't create tables on turning on >>>> freeswitch :( >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-25 19:14 GMT+02:00 Michael Jerris : >>>> >>>>> it sounds like its actually working? >>>>> >>>>> >>>>> On May 25, 2018, at 1:07 PM, Blackhold >>>>> wrote: >>>>> >>>>> it seems it is not a permissions problem, 'cause I can create and >>>>> delete a table and insert registries to the table as user I have created >>>>> >>>>> postgres at freeswitch-capa8:~/sql$ psql -U freeswitch_user -d >>>>> freeswitch_db --password >>>>> Password for user freeswitch_user: >>>>> psql (9.4.15) >>>>> Type "help" for help. >>>>> >>>>> freeswitch_db=> CREATE TABLE complete ( >>>>> freeswitch_db(> sticky INTEGER, >>>>> freeswitch_db(> a1 VARCHAR(128), >>>>> freeswitch_db(> a2 VARCHAR(128), >>>>> freeswitch_db(> a3 VARCHAR(128), >>>>> freeswitch_db(> a4 VARCHAR(128), >>>>> freeswitch_db(> a5 VARCHAR(128), >>>>> freeswitch_db(> a6 VARCHAR(128), >>>>> freeswitch_db(> a7 VARCHAR(128), >>>>> freeswitch_db(> a8 VARCHAR(128), >>>>> freeswitch_db(> a9 VARCHAR(128), >>>>> freeswitch_db(> a10 VARCHAR(128), >>>>> freeswitch_db(> hostname VARCHAR(256) >>>>> freeswitch_db(> ); >>>>> CREATE TABLE >>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','help','',' >>>>> ','','','','','','','freeswitch-capa8'); >>>>> INSERT 0 1 >>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>> '','','','','','','','','freeswitch-capa8'); >>>>> INSERT 0 1 >>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>> 'help','','','','','','','','freeswitch-capa8'); >>>>> INSERT 0 1 >>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>> 'console','','','','','','','','freeswitch-capa8'); >>>>> INSERT 0 1 >>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>> 'alert','','','','','','','','freeswitch-capa8'); >>>>> INSERT 0 1 >>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>> 'crit','','','','','','','','freeswitch-capa8'); >>>>> INSERT 0 1 >>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>> 'err','','','','','','','','freeswitch-capa8'); >>>>> INSERT 0 1 >>>>> freeswitch_db=> \dt >>>>> List of relations >>>>> Schema | Name | Type | Owner >>>>> --------+----------+-------+----------------- >>>>> public | complete | table | freeswitch_user >>>>> (1 row) >>>>> >>>>> freeswitch_db=> drop table complete; >>>>> DROP TABLE >>>>> freeswitch_db=> \dt >>>>> No relations found. >>>>> >>>>> >>>>> I show the db config in the config files (grouped by config line): >>>>> >>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# grep XXX * -R >>>>> >>>>> autoload_configs/switch.conf.xml: >>>> /> >>>>> >>>>> autoload_configs/directory.conf.xml: >>>>> autoload_configs/voicemail.conf.xml: >>>>> autoload_configs/cidlookup.conf.xml: >>>>> autoload_configs/db.conf.xml: >>>>> autoload_configs/lcr.conf.xml: >>>>> autoload_configs/callcenter.conf.xml: >>>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>>> user=freeswitch_user password='XXX' options='-c >>>>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>>>> jingle_profiles/server.xml: >>>>> sip_profiles/internal.xml: >>>>> sip_profiles/internal-ipv6.xml: >>>>> skinny_profiles/internal.xml: >>>>> >>>>> autoload_configs/easyroute.conf.xml: >>>> value="XXX"/> >>>>> autoload_configs/easyroute.conf.xml: >>>>> >>>>> autoload_configs/lcr.conf.xml: >>>>> sip_profiles/internal.xml: >>>>> >>>>> >>>>> >>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>> switch-users >>>>> http://www.freeswitch.org >>>>> >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>> switch-users >>>> http://www.freeswitch.org >>>> >>>> >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>>> >>>> >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>> switch-users >>>> http://www.freeswitch.org >>>> >>> >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>> >>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>> >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Fri May 25 22:01:37 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Sat, 26 May 2018 00:01:37 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <67307984-EE24-4429-80C5-8FB14444F44D@jerris.com> <861fea4a-8a91-9122-8b37-9de09c42225e@madovsky.org> Message-ID: THAT'S IT!!! all time has no support for psql now on configuring and compiling it creates the tables! \o/ hurrah! Thanks you much! I have learnt a lot! :) - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-25 22:55 GMT+02:00 Blackhold : > maybe on using configure script doesn't configured freeswitch without > PGSQL support? > > https://marc.info/?l=freeswitch-users&m=135482851910677&w=2 > > ./configure --enable-core-pgsql-support --no-create --no-recursion > > I have to move from my site a while, in a while I test to configure, make > and make install again... > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres > mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-25 22:30 GMT+02:00 Blackhold : > >> I revised kvm configuration and firewall is disabled. >> >> also I have set to 1 /proc/sys/net/ipv4/ip_forward and the behaviour is >> the same >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-25 22:22 GMT+02:00 Blackhold : >> >>> nope, debian 8 installed by default using net-install iso. >>> >>> I'm inside a kvm machine >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>> nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-25 22:21 GMT+02:00 Madovsky : >>> >>>> any iptables rules activated? SELinux? >>>> On 5/25/2018 1:13 PM, Blackhold wrote: >>>> >>>> root at freeswitch-capa8:/usr/local/freeswitch/log# grep CRIT >>>> freeswitch.log >>>> 2018-05-25 22:11:59.362305 [CRIT] switch_core_sqldb.c:468 Failure! >>>> PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 >>>> dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c >>>> client_min_messages=NOTICE' application_name='freeswitch' >>>> 2018-05-25 22:11:59.362669 [CRIT] sofia.c:3130 Cannot Open SQL Database >>>> [internal-ipv6]! >>>> 2018-05-25 22:12:00.362142 [CRIT] switch_core_sqldb.c:468 Failure! >>>> PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 >>>> dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c >>>> client_min_messages=NOTICE' application_name='freeswitch' >>>> 2018-05-25 22:12:00.362145 [CRIT] sofia.c:3130 Cannot Open SQL Database >>>> [internal]! >>>> 2018-05-25 22:12:03.021179 [CRIT] switch_core_sqldb.c:468 Failure! >>>> PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 >>>> dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c >>>> client_min_messages=NOTICE' application_name='freeswitch' >>>> 2018-05-25 22:12:03.563069 [CRIT] switch_core_sqldb.c:468 Failure! >>>> PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 >>>> dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c >>>> client_min_messages=NOTICE' application_name='freeswitch' >>>> 2018-05-25 22:12:03.563076 [CRIT] mod_voicemail.c:774 Cannot open DB! >>>> >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-25 21:56 GMT+02:00 Madovsky : >>>> >>>>> also turn FS to debug level 7 to 9 to see if it tries to connect to >>>>> the database >>>>> On 5/25/2018 11:18 AM, Michael Jerris wrote: >>>>> >>>>> there is an arg to not create schema, its possible thats default on >>>>> odbc, but I didnt think so. You’ll need to look at the errors and see if >>>>> its trying to create the schema or not. If it is and its failing, the >>>>> errors should point you to why. >>>>> >>>>> On May 25, 2018, at 2:15 PM, Blackhold >>>>> wrote: >>>>> >>>>> no, it still don't. It still don't create tables on turning on >>>>> freeswitch :( >>>>> >>>>> >>>>> - Blackhold >>>>> http://blackhold.nusepas.com >>>>> @blackhold_ >>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>> <°((( >< >>>>> >>>>> 2018-05-25 19:14 GMT+02:00 Michael Jerris : >>>>> >>>>>> it sounds like its actually working? >>>>>> >>>>>> >>>>>> On May 25, 2018, at 1:07 PM, Blackhold >>>>>> wrote: >>>>>> >>>>>> it seems it is not a permissions problem, 'cause I can create and >>>>>> delete a table and insert registries to the table as user I have created >>>>>> >>>>>> postgres at freeswitch-capa8:~/sql$ psql -U freeswitch_user -d >>>>>> freeswitch_db --password >>>>>> Password for user freeswitch_user: >>>>>> psql (9.4.15) >>>>>> Type "help" for help. >>>>>> >>>>>> freeswitch_db=> CREATE TABLE complete ( >>>>>> freeswitch_db(> sticky INTEGER, >>>>>> freeswitch_db(> a1 VARCHAR(128), >>>>>> freeswitch_db(> a2 VARCHAR(128), >>>>>> freeswitch_db(> a3 VARCHAR(128), >>>>>> freeswitch_db(> a4 VARCHAR(128), >>>>>> freeswitch_db(> a5 VARCHAR(128), >>>>>> freeswitch_db(> a6 VARCHAR(128), >>>>>> freeswitch_db(> a7 VARCHAR(128), >>>>>> freeswitch_db(> a8 VARCHAR(128), >>>>>> freeswitch_db(> a9 VARCHAR(128), >>>>>> freeswitch_db(> a10 VARCHAR(128), >>>>>> freeswitch_db(> hostname VARCHAR(256) >>>>>> freeswitch_db(> ); >>>>>> CREATE TABLE >>>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','help','',' >>>>>> ','','','','','','','freeswitch-capa8'); >>>>>> INSERT 0 1 >>>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>>> '','','','','','','','','freeswitch-capa8'); >>>>>> INSERT 0 1 >>>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>>> 'help','','','','','','','','freeswitch-capa8'); >>>>>> INSERT 0 1 >>>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>>> 'console','','','','','','','','freeswitch-capa8'); >>>>>> INSERT 0 1 >>>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>>> 'alert','','','','','','','','freeswitch-capa8'); >>>>>> INSERT 0 1 >>>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>>> 'crit','','','','','','','','freeswitch-capa8'); >>>>>> INSERT 0 1 >>>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>>> 'err','','','','','','','','freeswitch-capa8'); >>>>>> INSERT 0 1 >>>>>> freeswitch_db=> \dt >>>>>> List of relations >>>>>> Schema | Name | Type | Owner >>>>>> --------+----------+-------+----------------- >>>>>> public | complete | table | freeswitch_user >>>>>> (1 row) >>>>>> >>>>>> freeswitch_db=> drop table complete; >>>>>> DROP TABLE >>>>>> freeswitch_db=> \dt >>>>>> No relations found. >>>>>> >>>>>> >>>>>> I show the db config in the config files (grouped by config line): >>>>>> >>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# grep XXX * -R >>>>>> >>>>>> autoload_configs/switch.conf.xml: >>>>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>>>> user=freeswitch_user password='U8r9BuntD6iryrKK' options='-c >>>>>> client_min_messages=NOTICE'" /> >>>>>> >>>>>> autoload_configs/directory.conf.xml: >>>>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>>>> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >>>>>> application_name='freeswitch'" /> >>>>>> autoload_configs/voicemail.conf.xml: >>>>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>>>> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >>>>>> application_name='freeswitch'" /> >>>>>> autoload_configs/cidlookup.conf.xml: >>>>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>>>> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >>>>>> application_name='freeswitch'" /> >>>>>> autoload_configs/db.conf.xml: >>>>>> autoload_configs/lcr.conf.xml: >>>>>> autoload_configs/callcenter.conf.xml: >>>>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>>>> user=freeswitch_user password='XXX' options='-c >>>>>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>>>>> jingle_profiles/server.xml: >>>>>> sip_profiles/internal.xml: >>>>>> sip_profiles/internal-ipv6.xml: >>>>>> skinny_profiles/internal.xml: >>>>>> >>>>>> autoload_configs/easyroute.conf.xml: >>>>> value="XXX"/> >>>>>> autoload_configs/easyroute.conf.xml: >>>>>> >>>>>> autoload_configs/lcr.conf.xml: >>>>>> sip_profiles/internal.xml: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ____________________________________________________________ >>>>>> _____________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>> switch-users >>>>>> http://www.freeswitch.org >>>>>> >>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>> switch-users >>>>> http://www.freeswitch.org >>>>> >>>>> >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>>>> >>>>> >>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>> switch-users >>>>> http://www.freeswitch.org >>>>> >>>> >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>>> >>>> >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>> switch-users >>>> http://www.freeswitch.org >>>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Sat May 26 00:44:30 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Sat, 26 May 2018 02:44:30 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <67307984-EE24-4429-80C5-8FB14444F44D@jerris.com> <861fea4a-8a91-9122-8b37-9de09c42225e@madovsky.org> Message-ID: Hi again, I have just make a new install using debian 8 and I created a post (in spanish), maybe today, maybe tomorrow I'll test with a debian 9. http://blackhold.nusepas.com/2018/05/26/freeswitch-1-9-en-debian-8-psql/ - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-26 0:01 GMT+02:00 Blackhold : > THAT'S IT!!! > > all time has no support for psql > > now on configuring and compiling it creates the tables! \o/ > > hurrah! > > Thanks you much! I have learnt a lot! :) > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres > mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-25 22:55 GMT+02:00 Blackhold : > >> maybe on using configure script doesn't configured freeswitch without >> PGSQL support? >> >> https://marc.info/?l=freeswitch-users&m=135482851910677&w=2 >> >> ./configure --enable-core-pgsql-support --no-create --no-recursion >> >> I have to move from my site a while, in a while I test to configure, make >> and make install again... >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-25 22:30 GMT+02:00 Blackhold : >> >>> I revised kvm configuration and firewall is disabled. >>> >>> also I have set to 1 /proc/sys/net/ipv4/ip_forward and the behaviour is >>> the same >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>> nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-25 22:22 GMT+02:00 Blackhold : >>> >>>> nope, debian 8 installed by default using net-install iso. >>>> >>>> I'm inside a kvm machine >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-25 22:21 GMT+02:00 Madovsky : >>>> >>>>> any iptables rules activated? SELinux? >>>>> On 5/25/2018 1:13 PM, Blackhold wrote: >>>>> >>>>> root at freeswitch-capa8:/usr/local/freeswitch/log# grep CRIT >>>>> freeswitch.log >>>>> 2018-05-25 22:11:59.362305 [CRIT] switch_core_sqldb.c:468 Failure! >>>>> PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 >>>>> dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c >>>>> client_min_messages=NOTICE' application_name='freeswitch' >>>>> 2018-05-25 22:11:59.362669 [CRIT] sofia.c:3130 Cannot Open SQL >>>>> Database [internal-ipv6]! >>>>> 2018-05-25 22:12:00.362142 [CRIT] switch_core_sqldb.c:468 Failure! >>>>> PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 >>>>> dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c >>>>> client_min_messages=NOTICE' application_name='freeswitch' >>>>> 2018-05-25 22:12:00.362145 [CRIT] sofia.c:3130 Cannot Open SQL >>>>> Database [internal]! >>>>> 2018-05-25 22:12:03.021179 [CRIT] switch_core_sqldb.c:468 Failure! >>>>> PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 >>>>> dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c >>>>> client_min_messages=NOTICE' application_name='freeswitch' >>>>> 2018-05-25 22:12:03.563069 [CRIT] switch_core_sqldb.c:468 Failure! >>>>> PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 >>>>> dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c >>>>> client_min_messages=NOTICE' application_name='freeswitch' >>>>> 2018-05-25 22:12:03.563076 [CRIT] mod_voicemail.c:774 Cannot open DB! >>>>> >>>>> >>>>> >>>>> - Blackhold >>>>> http://blackhold.nusepas.com >>>>> @blackhold_ >>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>> <°((( >< >>>>> >>>>> 2018-05-25 21:56 GMT+02:00 Madovsky : >>>>> >>>>>> also turn FS to debug level 7 to 9 to see if it tries to connect to >>>>>> the database >>>>>> On 5/25/2018 11:18 AM, Michael Jerris wrote: >>>>>> >>>>>> there is an arg to not create schema, its possible thats default on >>>>>> odbc, but I didnt think so. You’ll need to look at the errors and see if >>>>>> its trying to create the schema or not. If it is and its failing, the >>>>>> errors should point you to why. >>>>>> >>>>>> On May 25, 2018, at 2:15 PM, Blackhold >>>>>> wrote: >>>>>> >>>>>> no, it still don't. It still don't create tables on turning on >>>>>> freeswitch :( >>>>>> >>>>>> >>>>>> - Blackhold >>>>>> http://blackhold.nusepas.com >>>>>> @blackhold_ >>>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>>> <°((( >< >>>>>> >>>>>> 2018-05-25 19:14 GMT+02:00 Michael Jerris : >>>>>> >>>>>>> it sounds like its actually working? >>>>>>> >>>>>>> >>>>>>> On May 25, 2018, at 1:07 PM, Blackhold >>>>>>> wrote: >>>>>>> >>>>>>> it seems it is not a permissions problem, 'cause I can create and >>>>>>> delete a table and insert registries to the table as user I have created >>>>>>> >>>>>>> postgres at freeswitch-capa8:~/sql$ psql -U freeswitch_user -d >>>>>>> freeswitch_db --password >>>>>>> Password for user freeswitch_user: >>>>>>> psql (9.4.15) >>>>>>> Type "help" for help. >>>>>>> >>>>>>> freeswitch_db=> CREATE TABLE complete ( >>>>>>> freeswitch_db(> sticky INTEGER, >>>>>>> freeswitch_db(> a1 VARCHAR(128), >>>>>>> freeswitch_db(> a2 VARCHAR(128), >>>>>>> freeswitch_db(> a3 VARCHAR(128), >>>>>>> freeswitch_db(> a4 VARCHAR(128), >>>>>>> freeswitch_db(> a5 VARCHAR(128), >>>>>>> freeswitch_db(> a6 VARCHAR(128), >>>>>>> freeswitch_db(> a7 VARCHAR(128), >>>>>>> freeswitch_db(> a8 VARCHAR(128), >>>>>>> freeswitch_db(> a9 VARCHAR(128), >>>>>>> freeswitch_db(> a10 VARCHAR(128), >>>>>>> freeswitch_db(> hostname VARCHAR(256) >>>>>>> freeswitch_db(> ); >>>>>>> CREATE TABLE >>>>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','help','',' >>>>>>> ','','','','','','','freeswitch-capa8'); >>>>>>> INSERT 0 1 >>>>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>>>> '','','','','','','','','freeswitch-capa8'); >>>>>>> INSERT 0 1 >>>>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>>>> 'help','','','','','','','','freeswitch-capa8'); >>>>>>> INSERT 0 1 >>>>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>>>> 'console','','','','','','','','freeswitch-capa8'); >>>>>>> INSERT 0 1 >>>>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>>>> 'alert','','','','','','','','freeswitch-capa8'); >>>>>>> INSERT 0 1 >>>>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>>>> 'crit','','','','','','','','freeswitch-capa8'); >>>>>>> INSERT 0 1 >>>>>>> freeswitch_db=> INSERT INTO "complete" VALUES(0,'console','loglevel', >>>>>>> 'err','','','','','','','','freeswitch-capa8'); >>>>>>> INSERT 0 1 >>>>>>> freeswitch_db=> \dt >>>>>>> List of relations >>>>>>> Schema | Name | Type | Owner >>>>>>> --------+----------+-------+----------------- >>>>>>> public | complete | table | freeswitch_user >>>>>>> (1 row) >>>>>>> >>>>>>> freeswitch_db=> drop table complete; >>>>>>> DROP TABLE >>>>>>> freeswitch_db=> \dt >>>>>>> No relations found. >>>>>>> >>>>>>> >>>>>>> I show the db config in the config files (grouped by config line): >>>>>>> >>>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# grep XXX * -R >>>>>>> >>>>>>> autoload_configs/switch.conf.xml: >>>>>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>>>>> user=freeswitch_user password='U8r9BuntD6iryrKK' options='-c >>>>>>> client_min_messages=NOTICE'" /> >>>>>>> >>>>>>> autoload_configs/directory.conf.xml: >>>>>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>>>>> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >>>>>>> application_name='freeswitch'" /> >>>>>>> autoload_configs/voicemail.conf.xml: >>>>>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>>>>> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >>>>>>> application_name='freeswitch'" /> >>>>>>> autoload_configs/cidlookup.conf.xml: >>>>>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>>>>> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >>>>>>> application_name='freeswitch'" /> >>>>>>> autoload_configs/db.conf.xml: >>>>>>> autoload_configs/lcr.conf.xml: >>>>>>> autoload_configs/callcenter.conf.xml: >>>>>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>>>>> user=freeswitch_user password='XXX' options='-c >>>>>>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>>>>>> jingle_profiles/server.xml: >>>>>>> sip_profiles/internal.xml: >>>>>>> sip_profiles/internal-ipv6.xml: >>>>>>> skinny_profiles/internal.xml: >>>>>>> >>>>>>> autoload_configs/easyroute.conf.xml: >>>>>> value="XXX"/> >>>>>>> autoload_configs/easyroute.conf.xml: >>>>>>> >>>>>>> autoload_configs/lcr.conf.xml: >>>>>>> sip_profiles/internal.xml: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ____________________________________________________________ >>>>>>> _____________ >>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>> consulting at freeswitch.org >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> http://confluence.freeswitch.org >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>>> switch-users >>>>>>> http://www.freeswitch.org >>>>>>> >>>>>> >>>>>> ____________________________________________________________ >>>>>> _____________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>> switch-users >>>>>> http://www.freeswitch.org >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>>>>> >>>>>> >>>>>> >>>>>> ____________________________________________________________ >>>>>> _____________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>> switch-users >>>>>> http://www.freeswitch.org >>>>>> >>>>> >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>>>> >>>>> >>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>> switch-users >>>>> http://www.freeswitch.org >>>>> >>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blackholdmailer at gmail.com Sat May 26 02:17:45 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Sat, 26 May 2018 04:17:45 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <67307984-EE24-4429-80C5-8FB14444F44D@jerris.com> <861fea4a-8a91-9122-8b37-9de09c42225e@madovsky.org> Message-ID: The script also works for debian 9. At the bottom of the post I have added the differences between debian 8 and debian 9 installation. Thanks a lot! :D - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-26 2:44 GMT+02:00 Blackhold : > Hi again, > I have just make a new install using debian 8 and I created a post (in > spanish), maybe today, maybe tomorrow I'll test with a debian 9. > > http://blackhold.nusepas.com/2018/05/26/freeswitch-1-9-en-debian-8-psql/ > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres > mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-26 0:01 GMT+02:00 Blackhold : > >> THAT'S IT!!! >> >> all time has no support for psql >> >> now on configuring and compiling it creates the tables! \o/ >> >> hurrah! >> >> Thanks you much! I have learnt a lot! :) >> >> >> - Blackhold >> http://blackhold.nusepas.com >> @blackhold_ >> ~> cal lluitar contra el fort per deixar de ser febles, i contra >> nosaltres mateixos quan siguem forts (Xirinacs) >> <°((( >< >> >> 2018-05-25 22:55 GMT+02:00 Blackhold : >> >>> maybe on using configure script doesn't configured freeswitch without >>> PGSQL support? >>> >>> https://marc.info/?l=freeswitch-users&m=135482851910677&w=2 >>> >>> ./configure --enable-core-pgsql-support --no-create --no-recursion >>> >>> I have to move from my site a while, in a while I test to configure, >>> make and make install again... >>> >>> >>> - Blackhold >>> http://blackhold.nusepas.com >>> @blackhold_ >>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>> nosaltres mateixos quan siguem forts (Xirinacs) >>> <°((( >< >>> >>> 2018-05-25 22:30 GMT+02:00 Blackhold : >>> >>>> I revised kvm configuration and firewall is disabled. >>>> >>>> also I have set to 1 /proc/sys/net/ipv4/ip_forward and the behaviour is >>>> the same >>>> >>>> >>>> - Blackhold >>>> http://blackhold.nusepas.com >>>> @blackhold_ >>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>> <°((( >< >>>> >>>> 2018-05-25 22:22 GMT+02:00 Blackhold : >>>> >>>>> nope, debian 8 installed by default using net-install iso. >>>>> >>>>> I'm inside a kvm machine >>>>> >>>>> >>>>> - Blackhold >>>>> http://blackhold.nusepas.com >>>>> @blackhold_ >>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>> <°((( >< >>>>> >>>>> 2018-05-25 22:21 GMT+02:00 Madovsky : >>>>> >>>>>> any iptables rules activated? SELinux? >>>>>> On 5/25/2018 1:13 PM, Blackhold wrote: >>>>>> >>>>>> root at freeswitch-capa8:/usr/local/freeswitch/log# grep CRIT >>>>>> freeswitch.log >>>>>> 2018-05-25 22:11:59.362305 [CRIT] switch_core_sqldb.c:468 Failure! >>>>>> PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 >>>>>> dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c >>>>>> client_min_messages=NOTICE' application_name='freeswitch' >>>>>> 2018-05-25 22:11:59.362669 [CRIT] sofia.c:3130 Cannot Open SQL >>>>>> Database [internal-ipv6]! >>>>>> 2018-05-25 22:12:00.362142 [CRIT] switch_core_sqldb.c:468 Failure! >>>>>> PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 >>>>>> dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c >>>>>> client_min_messages=NOTICE' application_name='freeswitch' >>>>>> 2018-05-25 22:12:00.362145 [CRIT] sofia.c:3130 Cannot Open SQL >>>>>> Database [internal]! >>>>>> 2018-05-25 22:12:03.021179 [CRIT] switch_core_sqldb.c:468 Failure! >>>>>> PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 >>>>>> dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c >>>>>> client_min_messages=NOTICE' application_name='freeswitch' >>>>>> 2018-05-25 22:12:03.563069 [CRIT] switch_core_sqldb.c:468 Failure! >>>>>> PGSQL NOT AVAILABLE! Can't connect to DSN hostaddr=127.0.0.1 >>>>>> dbname=freeswitch_db user=freeswitch_user password='XXX' options='-c >>>>>> client_min_messages=NOTICE' application_name='freeswitch' >>>>>> 2018-05-25 22:12:03.563076 [CRIT] mod_voicemail.c:774 Cannot open DB! >>>>>> >>>>>> >>>>>> >>>>>> - Blackhold >>>>>> http://blackhold.nusepas.com >>>>>> @blackhold_ >>>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>>> <°((( >< >>>>>> >>>>>> 2018-05-25 21:56 GMT+02:00 Madovsky : >>>>>> >>>>>>> also turn FS to debug level 7 to 9 to see if it tries to connect to >>>>>>> the database >>>>>>> On 5/25/2018 11:18 AM, Michael Jerris wrote: >>>>>>> >>>>>>> there is an arg to not create schema, its possible thats default on >>>>>>> odbc, but I didnt think so. You’ll need to look at the errors and see if >>>>>>> its trying to create the schema or not. If it is and its failing, the >>>>>>> errors should point you to why. >>>>>>> >>>>>>> On May 25, 2018, at 2:15 PM, Blackhold >>>>>>> wrote: >>>>>>> >>>>>>> no, it still don't. It still don't create tables on turning on >>>>>>> freeswitch :( >>>>>>> >>>>>>> >>>>>>> - Blackhold >>>>>>> http://blackhold.nusepas.com >>>>>>> @blackhold_ >>>>>>> ~> cal lluitar contra el fort per deixar de ser febles, i contra >>>>>>> nosaltres mateixos quan siguem forts (Xirinacs) >>>>>>> <°((( >< >>>>>>> >>>>>>> 2018-05-25 19:14 GMT+02:00 Michael Jerris : >>>>>>> >>>>>>>> it sounds like its actually working? >>>>>>>> >>>>>>>> >>>>>>>> On May 25, 2018, at 1:07 PM, Blackhold >>>>>>>> wrote: >>>>>>>> >>>>>>>> it seems it is not a permissions problem, 'cause I can create and >>>>>>>> delete a table and insert registries to the table as user I have created >>>>>>>> >>>>>>>> postgres at freeswitch-capa8:~/sql$ psql -U freeswitch_user -d >>>>>>>> freeswitch_db --password >>>>>>>> Password for user freeswitch_user: >>>>>>>> psql (9.4.15) >>>>>>>> Type "help" for help. >>>>>>>> >>>>>>>> freeswitch_db=> CREATE TABLE complete ( >>>>>>>> freeswitch_db(> sticky INTEGER, >>>>>>>> freeswitch_db(> a1 VARCHAR(128), >>>>>>>> freeswitch_db(> a2 VARCHAR(128), >>>>>>>> freeswitch_db(> a3 VARCHAR(128), >>>>>>>> freeswitch_db(> a4 VARCHAR(128), >>>>>>>> freeswitch_db(> a5 VARCHAR(128), >>>>>>>> freeswitch_db(> a6 VARCHAR(128), >>>>>>>> freeswitch_db(> a7 VARCHAR(128), >>>>>>>> freeswitch_db(> a8 VARCHAR(128), >>>>>>>> freeswitch_db(> a9 VARCHAR(128), >>>>>>>> freeswitch_db(> a10 VARCHAR(128), >>>>>>>> freeswitch_db(> hostname VARCHAR(256) >>>>>>>> freeswitch_db(> ); >>>>>>>> CREATE TABLE >>>>>>>> freeswitch_db=> INSERT INTO "complete" >>>>>>>> VALUES(0,'console','help','','','','','','','','','freeswitc >>>>>>>> h-capa8'); >>>>>>>> INSERT 0 1 >>>>>>>> freeswitch_db=> INSERT INTO "complete" >>>>>>>> VALUES(0,'console','loglevel','','','','','','','','','frees >>>>>>>> witch-capa8'); >>>>>>>> INSERT 0 1 >>>>>>>> freeswitch_db=> INSERT INTO "complete" >>>>>>>> VALUES(0,'console','loglevel','help','','','','','','','','f >>>>>>>> reeswitch-capa8'); >>>>>>>> INSERT 0 1 >>>>>>>> freeswitch_db=> INSERT INTO "complete" >>>>>>>> VALUES(0,'console','loglevel','console','','','','','','','' >>>>>>>> ,'freeswitch-capa8'); >>>>>>>> INSERT 0 1 >>>>>>>> freeswitch_db=> INSERT INTO "complete" >>>>>>>> VALUES(0,'console','loglevel','alert','','','','','','','',' >>>>>>>> freeswitch-capa8'); >>>>>>>> INSERT 0 1 >>>>>>>> freeswitch_db=> INSERT INTO "complete" >>>>>>>> VALUES(0,'console','loglevel','crit','','','','','','','','f >>>>>>>> reeswitch-capa8'); >>>>>>>> INSERT 0 1 >>>>>>>> freeswitch_db=> INSERT INTO "complete" >>>>>>>> VALUES(0,'console','loglevel','err','','','','','','','','fr >>>>>>>> eeswitch-capa8'); >>>>>>>> INSERT 0 1 >>>>>>>> freeswitch_db=> \dt >>>>>>>> List of relations >>>>>>>> Schema | Name | Type | Owner >>>>>>>> --------+----------+-------+----------------- >>>>>>>> public | complete | table | freeswitch_user >>>>>>>> (1 row) >>>>>>>> >>>>>>>> freeswitch_db=> drop table complete; >>>>>>>> DROP TABLE >>>>>>>> freeswitch_db=> \dt >>>>>>>> No relations found. >>>>>>>> >>>>>>>> >>>>>>>> I show the db config in the config files (grouped by config line): >>>>>>>> >>>>>>>> root at freeswitch-capa8:/usr/local/freeswitch/conf# grep XXX * -R >>>>>>>> >>>>>>>> autoload_configs/switch.conf.xml: >>>>>>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>>>>>> user=freeswitch_user password='U8r9BuntD6iryrKK' options='-c >>>>>>>> client_min_messages=NOTICE'" /> >>>>>>>> >>>>>>>> autoload_configs/directory.conf.xml: >>>>>>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>>>>>> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >>>>>>>> application_name='freeswitch'" /> >>>>>>>> autoload_configs/voicemail.conf.xml: >>>>>>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>>>>>> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >>>>>>>> application_name='freeswitch'" /> >>>>>>>> autoload_configs/cidlookup.conf.xml: >>>>>>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>>>>>> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >>>>>>>> application_name='freeswitch'" /> >>>>>>>> autoload_configs/db.conf.xml: >>>>>>>> autoload_configs/lcr.conf.xml: >>>>>>>> autoload_configs/callcenter.conf.xml: >>>>>>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>>>>>> user=freeswitch_user password='XXX' options='-c >>>>>>>> client_min_messages=NOTICE' application_name='freeswitch'" /> >>>>>>>> jingle_profiles/server.xml: >>>>>>>> sip_profiles/internal.xml: >>>>>>>> sip_profiles/internal-ipv6.xml: >>>>>>>> skinny_profiles/internal.xml: >>>>>>>> >>>>>>>> autoload_configs/easyroute.conf.xml: >>>>>>> value="XXX"/> >>>>>>>> autoload_configs/easyroute.conf.xml: >>>>>>> value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch_db >>>>>>>> user=freeswitch_user password='XXX' options='-c client_min_messages=NOTICE' >>>>>>>> application_name='freeswitch'" /> >>>>>>>> >>>>>>>> autoload_configs/lcr.conf.xml: >>>>>>>> sip_profiles/internal.xml: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ____________________________________________________________ >>>>>>>> _____________ >>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>> consulting at freeswitch.org >>>>>>>> http://www.freeswitchsolutions.com >>>>>>>> >>>>>>>> Official FreeSWITCH Sites >>>>>>>> http://www.freeswitch.org >>>>>>>> http://confluence.freeswitch.org >>>>>>>> http://www.cluecon.com >>>>>>>> >>>>>>>> FreeSWITCH-users mailing list >>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>>>> switch-users >>>>>>>> http://www.freeswitch.org >>>>>>>> >>>>>>> >>>>>>> ____________________________________________________________ >>>>>>> _____________ >>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>> consulting at freeswitch.org >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> http://confluence.freeswitch.org >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>>> switch-users >>>>>>> http://www.freeswitch.org >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> _________________________________________________________________________ >>>>>>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>>>>>> >>>>>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>>>>>> >>>>>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>>>>>> >>>>>>> >>>>>>> >>>>>>> ____________________________________________________________ >>>>>>> _____________ >>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>> consulting at freeswitch.org >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> http://confluence.freeswitch.org >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>>> switch-users >>>>>>> http://www.freeswitch.org >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org >>>>>> >>>>>> >>>>>> >>>>>> ____________________________________________________________ >>>>>> _____________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free >>>>>> switch-users >>>>>> http://www.freeswitch.org >>>>>> >>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Sat May 26 02:21:08 2018 From: mike at jerris.com (Michael Jerris) Date: Fri, 25 May 2018 22:21:08 -0400 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <67307984-EE24-4429-80C5-8FB14444F44D@jerris.com> <861fea4a-8a91-9122-8b37-9de09c42225e@madovsky.org> Message-ID: <0170B685-8FED-44E4-B0DC-B8C81A87C034@jerris.com> 1.6 will NOT work properly against Debian 9. > On May 25, 2018, at 10:17 PM, Blackhold wrote: > > The script also works for debian 9. At the bottom of the post I have added the differences between debian 8 and debian 9 installation. > > Thanks a lot! :D > From blackholdmailer at gmail.com Sat May 26 02:33:33 2018 From: blackholdmailer at gmail.com (Blackhold) Date: Sat, 26 May 2018 04:33:33 +0200 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: <0170B685-8FED-44E4-B0DC-B8C81A87C034@jerris.com> References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <67307984-EE24-4429-80C5-8FB14444F44D@jerris.com> <861fea4a-8a91-9122-8b37-9de09c42225e@madovsky.org> <0170B685-8FED-44E4-B0DC-B8C81A87C034@jerris.com> Message-ID: I'm using last version, the one in master branch, it says 1.9 freeswitch at freeswitch-capa8> version FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git 3c7db63 2018-05-16 21:12:08Z 64bit) - Blackhold http://blackhold.nusepas.com @blackhold_ ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) <°((( >< 2018-05-26 4:21 GMT+02:00 Michael Jerris : > 1.6 will NOT work properly against Debian 9. > > > On May 25, 2018, at 10:17 PM, Blackhold > wrote: > > > > The script also works for debian 9. At the bottom of the post I have > added the differences between debian 8 and debian 9 installation. > > > > Thanks a lot! :D > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hggh96.hg at gmail.com Sun May 27 07:40:31 2018 From: hggh96.hg at gmail.com (Hossein Gholizadeh) Date: Sun, 27 May 2018 12:10:31 +0430 Subject: [Freeswitch-users] Freeswitch fax by loopback Message-ID: Hi i want to send fax by loopback to my self ... here is my configurations of fax in dialplan : after configuring these i want to send a fax file by loopback in fs_cli i run this command: originate loopback/9978 (/tmp/test.tif) but i just get this error: cannot send non-existant fax file . but my fax file is there already. is my loopback sending correct ? am i right that every fax files which received will be saved in this directory ( $${base_dir}/faxes/${uuid}.tif)? -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidswalkabout at gmail.com Sun May 27 08:39:09 2018 From: davidswalkabout at gmail.com (David P) Date: Sun, 27 May 2018 01:39:09 -0700 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls In-Reply-To: References: Message-ID: I've tried working through the page you provided, but I've encountered some loose ends. First, in order to use a CA cert, I installed certbot alongside Apache on Ubuntu16.04. This is an AWS EC2, so I don't have many options on which distro I can use. You recommended against Ubuntu; would you elaborate why? This Apache is on the same machine as FS. I no longer serve verto files from Apache (they're now in S3/CloudFront), but I suspect Apache may still be needed to serve the cert for wss. But FS can probably do that itself. Anyway, https://www.ssllabs.com/ssltest/analyze.html?d=my.domain.com shows the cert is reachable and valid. On disk, they're at: /etc/letsencrypt/live/my.domain.com/fullchain.pem /etc/letsencrypt/live/my.domain.com/privkey.pem Do these need to be renamed for FS to find them? https://freeswitch.org/confluence/display/FREESWITCH/WebRTC#WebRTC-InstallCertificates says I should edit sip_profiles/internal.xml so that Should (path to certs) be replaced with /etc/letsencrypt/live/ my.domain.com/ ? Even though I haven't finished the config above, this test suggests something is working: sudo /opt/freeswitch/bin/fs_cli -x 'sofia status profile internal' | grep WSS-BIND-URL WSS-BIND-URL sips:mod_sofia@(private EC2 IP):7443;transport=wss Later steps say to create a wss.pem under /usr/local/freeswitch/certs/wss.pem but there is no certs/ after FS install; am I supposed to mkdir it? Later steps also say to create conf/autoload_configs/verto.conf.xml but there is no conf/ Should I mkdir it? David On Thu, May 24, 2018 at 9:32 AM, Michael Jerris wrote: > we will gen whats needed for dtls srtp automatically, you need to provide > the cert for wss (same as what you need for tls, as wss is just tls secured > ws) It does require the cert and chain. More info: > > https://freeswitch.org/confluence/display/FREESWITCH/WebRTC#WebRTC- > InstallCertificates > > Mike > > > On May 24, 2018, at 12:23 PM, David P wrote: > > Thanks, Mike, I'll try another distro. > > About verto, which I already serve under an AWS free non-exportable cert, > does it need the gentls-generated CA root cert somewhere? > > And do I need any more steps to secure the streamed media? > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From francesco at delagarda.com Sun May 27 11:48:10 2018 From: francesco at delagarda.com (Francesco Facco de Lagarda) Date: Sun, 27 May 2018 13:48:10 +0200 Subject: [Freeswitch-users] Call monitoring Message-ID: <076401d3f5b0$97145e20$c53d1a60$@delagarda.com> I am writing a "call monitor", something like an operator panel. I am capturing events via esl in php, filtering down the data and then sending them to a javascript UI via websocket. My problem is that I am totally bewildered by the amount of events that fs generates, and I'd like to filter it down to a bare minimum. New outgoing call (with uuid, extension and dialed number) Call answererd from other party Line busy Call hung up from either party. Can anyone give me a pointer to which events I really need to monitor, and which fields inside? I will obviously share finished code! -------------- next part -------------- An HTML attachment was scrubbed... URL: From gmaruzz at gmail.com Sun May 27 14:15:05 2018 From: gmaruzz at gmail.com (Giovanni Maruzzelli) Date: Sun, 27 May 2018 16:15:05 +0200 Subject: [Freeswitch-users] Call monitoring In-Reply-To: <076401d3f5b0$97145e20$c53d1a60$@delagarda.com> References: <076401d3f5b0$97145e20$c53d1a60$@delagarda.com> Message-ID: Check https://freeswitch.org/confluence plenty of documentation about event filtering On Sun, May 27, 2018, 13:48 Francesco Facco de Lagarda < francesco at delagarda.com> wrote: > I am writing a “call monitor”, something like an operator panel. > > I am capturing events via esl in php, filtering down the data and then > sending them to a javascript UI via websocket. > > > > My problem is that I am totally bewildered by the amount of events that fs > generates, and I’d like to filter it down to a bare minimum. > > > > New outgoing call (with uuid, extension and dialed number) > Call answererd from other party > > Line busy > > Call hung up from either party. > > > > Can anyone give me a pointer to which events I really need to monitor, and > which fields inside? > > > > I will obviously share finished code! > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From francesco at delagarda.com Sun May 27 15:58:27 2018 From: francesco at delagarda.com (Francesco Facco de Lagarda) Date: Sun, 27 May 2018 17:58:27 +0200 Subject: [Freeswitch-users] Call monitoring In-Reply-To: References: <076401d3f5b0$97145e20$c53d1a60$@delagarda.com> Message-ID: <07a901d3f5d3$8db7bd90$a92738b0$@delagarda.com> Grazie Giovanni! You think I didnt go through that with a fine-toothed comb? 😉 I was looking for some simpler explanations! F From: FreeSWITCH-users On Behalf Of Giovanni Maruzzelli Sent: domenica 27 maggio 2018 16:15 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Call monitoring Check https://freeswitch.org/confluence plenty of documentation about event filtering On Sun, May 27, 2018, 13:48 Francesco Facco de Lagarda > wrote: I am writing a “call monitor”, something like an operator panel. I am capturing events via esl in php, filtering down the data and then sending them to a javascript UI via websocket. My problem is that I am totally bewildered by the amount of events that fs generates, and I’d like to filter it down to a bare minimum. New outgoing call (with uuid, extension and dialed number) Call answererd from other party Line busy Call hung up from either party. Can anyone give me a pointer to which events I really need to monitor, and which fields inside? I will obviously share finished code! _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From gmaruzz at gmail.com Sun May 27 16:25:08 2018 From: gmaruzz at gmail.com (Giovanni Maruzzelli) Date: Sun, 27 May 2018 18:25:08 +0200 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls In-Reply-To: References: Message-ID: Use debian 8 jessie 64 bit minimal server install On Sun, May 27, 2018, 10:57 David P wrote: > I've tried working through the page you provided, but I've encountered > some loose ends. First, in order to use a CA cert, I installed certbot > alongside Apache on Ubuntu16.04. This is an AWS EC2, so I don't have many > options on which distro I can use. You recommended against Ubuntu; would > you elaborate why? > > This Apache is on the same machine as FS. I no longer serve verto files > from Apache (they're now in S3/CloudFront), but I suspect Apache may still > be needed to serve the cert for wss. But FS can probably do that itself. > Anyway, https://www.ssllabs.com/ssltest/analyze.html?d=my.domain.com > shows the cert is reachable and valid. On disk, they're at: > /etc/letsencrypt/live/my.domain.com/fullchain.pem > /etc/letsencrypt/live/my.domain.com/privkey.pem > > Do these need to be renamed for FS to find them? > > > https://freeswitch.org/confluence/display/FREESWITCH/WebRTC#WebRTC-InstallCertificates > says I should edit sip_profiles/internal.xml > so that > > > > Should (path to certs) be replaced with /etc/letsencrypt/live/ > my.domain.com/ ? > > Even though I haven't finished the config above, this test suggests > something is working: > > sudo /opt/freeswitch/bin/fs_cli -x 'sofia status profile internal' | grep > WSS-BIND-URL > WSS-BIND-URL sips:mod_sofia@(private EC2 IP):7443;transport=wss > > Later steps say to create a wss.pem > under /usr/local/freeswitch/certs/wss.pem but there is no certs/ after FS > install; am I supposed to mkdir it? > > Later steps also say to create conf/autoload_configs/verto.conf.xml but > there is no conf/ Should I mkdir it? > > David > > On Thu, May 24, 2018 at 9:32 AM, Michael Jerris wrote: > >> we will gen whats needed for dtls srtp automatically, you need to provide >> the cert for wss (same as what you need for tls, as wss is just tls secured >> ws) It does require the cert and chain. More info: >> >> >> https://freeswitch.org/confluence/display/FREESWITCH/WebRTC#WebRTC-InstallCertificates >> >> Mike >> >> >> On May 24, 2018, at 12:23 PM, David P wrote: >> >> Thanks, Mike, I'll try another distro. >> >> About verto, which I already serve under an AWS free non-exportable cert, >> does it need the gentls-generated CA root cert somewhere? >> >> And do I need any more steps to secure the streamed media? >> >> > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidswalkabout at gmail.com Sun May 27 16:51:45 2018 From: davidswalkabout at gmail.com (David P) Date: Sun, 27 May 2018 09:51:45 -0700 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls In-Reply-To: References: Message-ID: On Sun, 27 May 2018, 9:46 am Giovanni Maruzzelli, wrote: > Use debian 8 jessie 64 bit minimal server install > I haven't seen that as an EC2 image option. Also, does gentls create a true, browser-trusted cert like certbot/LetsEncrypt does? And if so, how does it get renewed? -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidswalkabout at gmail.com Mon May 28 04:16:21 2018 From: davidswalkabout at gmail.com (David P) Date: Sun, 27 May 2018 21:16:21 -0700 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls In-Reply-To: References: Message-ID: On Sun, May 27, 2018 at 9:25 AM, Giovanni Maruzzelli wrote: > Use debian 8 jessie 64 bit minimal server install > Thanks, Giovanni (and Mike). I found an EC2 AMI for debian jessie. Then, when I follow https://freeswitch.org/confluence/display/FREESWITCH/WebRTC#WebRTC-InstallCertificates I get to: ./configure -C which fails with: error: "Cannot build without libtiff (does your system require a libtiff-devel package?)" I tried: sudo apt-get install libtiff-tools and then re-running configure, but it has the same result. Googling this error yields a single result, an FS bug report: https://freeswitch.org/jira/browse/FS-10556 Please let me know how to resolve this dependency. The obvious thing to try (i.e. sudo apt-get install libtiff-devel) didn't work. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hggh96.hg at gmail.com Mon May 28 05:20:37 2018 From: hggh96.hg at gmail.com (Hossein Gholizadeh) Date: Mon, 28 May 2018 09:50:37 +0430 Subject: [Freeswitch-users] mod_lua Message-ID: hi ... after freeswitch version 1.4 , we don't need mod_lua? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gmaruzz at gmail.com Mon May 28 07:26:13 2018 From: gmaruzz at gmail.com (Giovanni Maruzzelli) Date: Mon, 28 May 2018 09:26:13 +0200 Subject: [Freeswitch-users] mod_lua In-Reply-To: References: Message-ID: mod_lua is embedded, so is always there, so you do not need to explicitly load it, and you cannot unload it On Mon, May 28, 2018, 07:21 Hossein Gholizadeh wrote: > hi ... after freeswitch version 1.4 , we don't need mod_lua? > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From hggh96.hg at gmail.com Mon May 28 08:17:52 2018 From: hggh96.hg at gmail.com (Hossein Gholizadeh) Date: Mon, 28 May 2018 12:47:52 +0430 Subject: [Freeswitch-users] mod_lua In-Reply-To: References: Message-ID: i'm using freeswitch version 1.6.18 ... my mod directory didn't have mod_lua file ... i added it manually but it cannot read it On Mon, May 28, 2018 at 12:28 PM Giovanni Maruzzelli wrote: > mod_lua is embedded, so is always there, so you do not need to explicitly > load it, and you cannot unload it > > > On Mon, May 28, 2018, 07:21 Hossein Gholizadeh > wrote: > >> hi ... after freeswitch version 1.4 , we don't need mod_lua? >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From gmaruzz at gmail.com Mon May 28 12:53:23 2018 From: gmaruzz at gmail.com (Giovanni Maruzzelli) Date: Mon, 28 May 2018 14:53:23 +0200 Subject: [Freeswitch-users] mod_lua In-Reply-To: References: Message-ID: Hossein, Read my lips: NO MOD_LUA ! On Mon, May 28, 2018, 10:18 Hossein Gholizadeh wrote: > i'm using freeswitch version 1.6.18 ... my mod directory didn't have > mod_lua file ... i added it manually but it cannot read it > > > On Mon, May 28, 2018 at 12:28 PM Giovanni Maruzzelli > wrote: > >> mod_lua is embedded, so is always there, so you do not need to explicitly >> load it, and you cannot unload it >> >> >> On Mon, May 28, 2018, 07:21 Hossein Gholizadeh >> wrote: >> >>> hi ... after freeswitch version 1.4 , we don't need mod_lua? >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick at magicmail.mooo.com Mon May 28 13:40:50 2018 From: rick at magicmail.mooo.com (Rick Jarvis) Date: Mon, 28 May 2018 14:40:50 +0100 Subject: [Freeswitch-users] Domains and contexts with single dialplan Message-ID: <87A89F1B-C413-4DA3-8F42-F0542165D8EE@magicmail.mooo.com> This is something I really should understand by now, but for some reason I have always struggled with contexts vs dialplans Is it possible to share the same *dialplan*, but be ring fenced from other *domains*? So there would be a single default dialplan, but 201 at domain1 calling into conference 3200 is talking to others at domain1 but no-one from @domain2? R From gmaruzz at gmail.com Mon May 28 14:58:03 2018 From: gmaruzz at gmail.com (Giovanni Maruzzelli) Date: Mon, 28 May 2018 16:58:03 +0200 Subject: [Freeswitch-users] Domains and contexts with single dialplan In-Reply-To: <87A89F1B-C413-4DA3-8F42-F0542165D8EE@magicmail.mooo.com> References: <87A89F1B-C413-4DA3-8F42-F0542165D8EE@magicmail.mooo.com> Message-ID: Yes, that is the default. Eg, by default there is.one only "default"named default dialplan. You go to a dialplan via a "profile". A sip (sofia) profile is a pair ipaddress:port You can have any number of sip domain names going into that ipaddress:port pair. How to.configure those domainnames is a matter of sip/sofia configuration. ( youcanalso have each domainname a different context, if you configure it, btw) On Mon, May 28, 2018, 15:41 Rick Jarvis wrote: > This is something I really should understand by now, but for some reason I > have always struggled with contexts vs dialplans > > Is it possible to share the same *dialplan*, but be ring fenced from other > *domains*? > > So there would be a single default dialplan, but 201 at domain1 calling into > conference 3200 is talking to others at domain1 but no-one from @domain2? > > R > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From gmaruzz at gmail.com Mon May 28 15:03:32 2018 From: gmaruzz at gmail.com (Giovanni Maruzzelli) Date: Mon, 28 May 2018 17:03:32 +0200 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls In-Reply-To: References: Message-ID: - Trash your aws instance - Start with a new jessie 64 sefver i stance (jessie!!!) - search in freeswitch.org/confluence about jessie - follow the steps to "install freeswit h on jessie" (copy and paste) - profit! Do not try anything advanced until you know the basics. -giovanni On Mon, May 28, 2018, 06:16 David P wrote: > On Sun, May 27, 2018 at 9:25 AM, Giovanni Maruzzelli > wrote: > >> Use debian 8 jessie 64 bit minimal server install >> > > Thanks, Giovanni (and Mike). > > I found an EC2 AMI for debian jessie. Then, when I follow > https://freeswitch.org/confluence/display/FREESWITCH/WebRTC#WebRTC-InstallCertificates > I get to: > > ./configure -C > > which fails with: > > error: "Cannot build without libtiff (does your system require a > libtiff-devel package?)" > > I tried: > > sudo apt-get install libtiff-tools > > and then re-running configure, but it has the same result. Googling this > error yields a single result, an FS bug report: > > https://freeswitch.org/jira/browse/FS-10556 > > Please let me know how to resolve this dependency. The obvious thing to > try (i.e. sudo apt-get install libtiff-devel) didn't work. > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick at magicmail.mooo.com Mon May 28 15:14:19 2018 From: rick at magicmail.mooo.com (Rick Jarvis) Date: Mon, 28 May 2018 16:14:19 +0100 Subject: [Freeswitch-users] Domains and contexts with single dialplan In-Reply-To: References: <87A89F1B-C413-4DA3-8F42-F0542165D8EE@magicmail.mooo.com> Message-ID: <769E74FC-BEAF-4C59-AD3B-11BC815FFADC@magicmail.mooo.com> Great! I had been worrying unnecessarily by the sound of it, so as far as Verto is concerned, if I have these users showing up in verto status: default-v4::204 at domain1 default-v4::202 at domain2 …this is showing they are on the same profile ‘default-v4’, but different domains… or to put it another way, the same ‘context’ / ‘dialplan’, but ring fenced as far as being able to reach each other (without inter domain routes set up)? > On 28 May 2018, at 15:58, Giovanni Maruzzelli wrote: > > Yes, that is the default. > > Eg, by default there is.one only "default"named default dialplan. > > You go to a dialplan via a "profile". > > A sip (sofia) profile is a pair ipaddress:port > > You can have any number of sip domain names going into that ipaddress:port pair. > > How to.configure those domainnames is a matter of sip/sofia configuration. > > ( youcanalso have each domainname a different context, if you configure it, btw) > > On Mon, May 28, 2018, 15:41 Rick Jarvis > wrote: > This is something I really should understand by now, but for some reason I have always struggled with contexts vs dialplans > > Is it possible to share the same *dialplan*, but be ring fenced from other *domains*? > > So there would be a single default dialplan, but 201 at domain1 calling into conference 3200 is talking to others at domain1 but no-one from @domain2? > > R > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From hggh96.hg at gmail.com Mon May 28 17:28:24 2018 From: hggh96.hg at gmail.com (Hossein Gholizadeh) Date: Mon, 28 May 2018 21:58:24 +0430 Subject: [Freeswitch-users] mod_lua In-Reply-To: References: Message-ID: OK I got...but after running lua script it says invalid application lua ... I have installed lua in my windows but free switch doesn't know it On Mon, May 28, 2018, 17:59 Giovanni Maruzzelli wrote: > Hossein, > > Read my lips: > > NO MOD_LUA ! > > > > On Mon, May 28, 2018, 10:18 Hossein Gholizadeh > wrote: > >> i'm using freeswitch version 1.6.18 ... my mod directory didn't have >> mod_lua file ... i added it manually but it cannot read it >> >> >> On Mon, May 28, 2018 at 12:28 PM Giovanni Maruzzelli >> wrote: >> >>> mod_lua is embedded, so is always there, so you do not need to >>> explicitly load it, and you cannot unload it >>> >>> >>> On Mon, May 28, 2018, 07:21 Hossein Gholizadeh >>> wrote: >>> >>>> hi ... after freeswitch version 1.4 , we don't need mod_lua? >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE: >>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> http://www.freeswitch.org >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at infomedia.si Mon May 28 17:53:07 2018 From: gregor at infomedia.si (Gregor Nanger) Date: Mon, 28 May 2018 19:53:07 +0200 Subject: [Freeswitch-users] mod_lua In-Reply-To: References: Message-ID: Is it possible that in Windows there is no compiled Lua? On Mon, May 28, 2018, 19:29 Hossein Gholizadeh wrote: > OK I got...but after running lua script it says invalid application lua > ... I have installed lua in my windows but free switch doesn't know it > > On Mon, May 28, 2018, 17:59 Giovanni Maruzzelli wrote: > >> Hossein, >> >> Read my lips: >> >> NO MOD_LUA ! >> >> >> >> On Mon, May 28, 2018, 10:18 Hossein Gholizadeh >> wrote: >> >>> i'm using freeswitch version 1.6.18 ... my mod directory didn't have >>> mod_lua file ... i added it manually but it cannot read it >>> >>> >>> On Mon, May 28, 2018 at 12:28 PM Giovanni Maruzzelli >>> wrote: >>> >>>> mod_lua is embedded, so is always there, so you do not need to >>>> explicitly load it, and you cannot unload it >>>> >>>> >>>> On Mon, May 28, 2018, 07:21 Hossein Gholizadeh >>>> wrote: >>>> >>>>> hi ... after freeswitch version 1.4 , we don't need mod_lua? >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE: >>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>> http://www.freeswitch.org >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE: >>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> http://www.freeswitch.org >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -- Gregor Nanger *CTO* t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si -------------- next part -------------- An HTML attachment was scrubbed... URL: From abaci64 at gmail.com Mon May 28 18:05:14 2018 From: abaci64 at gmail.com (Abaci B) Date: Mon, 28 May 2018 14:05:14 -0400 Subject: [Freeswitch-users] mod_lua In-Reply-To: References: Message-ID: the last few versions of windows didn't have lua mod built and unfortunately there is no recent build of freeswitch for windows see https://freeswitch.org/jira/browse/FS-9717 On Mon, May 28, 2018 at 1:53 PM, Gregor Nanger wrote: > Is it possible that in Windows there is no compiled Lua? > > > On Mon, May 28, 2018, 19:29 Hossein Gholizadeh > wrote: > >> OK I got...but after running lua script it says invalid application lua >> ... I have installed lua in my windows but free switch doesn't know it >> >> On Mon, May 28, 2018, 17:59 Giovanni Maruzzelli >> wrote: >> >>> Hossein, >>> >>> Read my lips: >>> >>> NO MOD_LUA ! >>> >>> >>> >>> On Mon, May 28, 2018, 10:18 Hossein Gholizadeh >>> wrote: >>> >>>> i'm using freeswitch version 1.6.18 ... my mod directory didn't have >>>> mod_lua file ... i added it manually but it cannot read it >>>> >>>> >>>> On Mon, May 28, 2018 at 12:28 PM Giovanni Maruzzelli >>>> wrote: >>>> >>>>> mod_lua is embedded, so is always there, so you do not need to >>>>> explicitly load it, and you cannot unload it >>>>> >>>>> >>>>> On Mon, May 28, 2018, 07:21 Hossein Gholizadeh >>>>> wrote: >>>>> >>>>>> hi ... after freeswitch version 1.4 , we don't need mod_lua? >>>>>> ____________________________________________________________ >>>>>> _____________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ >>>>>> options/freeswitch-users >>>>>> http://www.freeswitch.org >>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ >>>>> options/freeswitch-users >>>>> http://www.freeswitch.org >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ >>>> options/freeswitch-users >>>> http://www.freeswitch.org >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > -- > Gregor Nanger > > *CTO* > t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 > • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia > • www.infomedia.si > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gmaruzz at gmail.com Mon May 28 19:40:04 2018 From: gmaruzz at gmail.com (Giovanni Maruzzelli) Date: Mon, 28 May 2018 21:40:04 +0200 Subject: [Freeswitch-users] mod_lua In-Reply-To: References: Message-ID: Sorry Hossein and you all, I was not aware that mod_lua is not embedded in windows. My apologies! -giovanni On Mon, May 28, 2018, 20:45 Abaci B wrote: > the last few versions of windows didn't have lua mod built and > unfortunately there is no recent build of freeswitch for windows > see https://freeswitch.org/jira/browse/FS-9717 > > On Mon, May 28, 2018 at 1:53 PM, Gregor Nanger > wrote: > >> Is it possible that in Windows there is no compiled Lua? >> >> >> On Mon, May 28, 2018, 19:29 Hossein Gholizadeh >> wrote: >> >>> OK I got...but after running lua script it says invalid application lua >>> ... I have installed lua in my windows but free switch doesn't know it >>> >>> On Mon, May 28, 2018, 17:59 Giovanni Maruzzelli >>> wrote: >>> >>>> Hossein, >>>> >>>> Read my lips: >>>> >>>> NO MOD_LUA ! >>>> >>>> >>>> >>>> On Mon, May 28, 2018, 10:18 Hossein Gholizadeh >>>> wrote: >>>> >>>>> i'm using freeswitch version 1.6.18 ... my mod directory didn't have >>>>> mod_lua file ... i added it manually but it cannot read it >>>>> >>>>> >>>>> On Mon, May 28, 2018 at 12:28 PM Giovanni Maruzzelli < >>>>> gmaruzz at gmail.com> wrote: >>>>> >>>>>> mod_lua is embedded, so is always there, so you do not need to >>>>>> explicitly load it, and you cannot unload it >>>>>> >>>>>> >>>>>> On Mon, May 28, 2018, 07:21 Hossein Gholizadeh >>>>>> wrote: >>>>>> >>>>>>> hi ... after freeswitch version 1.4 , we don't need mod_lua? >>>>>>> >>>>>>> _________________________________________________________________________ >>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>> consulting at freeswitch.org >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> http://confluence.freeswitch.org >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> UNSUBSCRIBE: >>>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>>> http://www.freeswitch.org >>>>>> >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE: >>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>> http://www.freeswitch.org >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE: >>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>> http://www.freeswitch.org >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE: >>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> http://www.freeswitch.org >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >> >> -- >> Gregor Nanger >> >> *CTO* >> t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 >> • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia >> • www.infomedia.si >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidswalkabout at gmail.com Tue May 29 04:00:02 2018 From: davidswalkabout at gmail.com (David P) Date: Mon, 28 May 2018 21:00:02 -0700 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls In-Reply-To: References: Message-ID: Ok, Giovanni. Using your confluence page's search box (not google) for jessie yields one match: https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie I launched a debian jessie EC2, then followed section "Installing From Debian Packages" at the link above. In particular, I followed the advice in the comment about creating a "freeswitch" folder under /etc before the apt-get to install freeswitch. There were no errors. Now the only thing under /etc/freeswitch/ is an empty tls/ folder. Is this expected? Next, to install a CA cert for use by verto and SIP clients, do I follow steps 1-4 at https://freeswitch.org/confluence/display/FREESWITCH/SIP+TLS ? If so, what is {prefix} for this kind of FS install? On Mon, May 28, 2018 at 8:03 AM, Giovanni Maruzzelli wrote: > - Trash your aws instance > - Start with a new jessie 64 sefver i stance (jessie!!!) > - search in freeswitch.org/confluence about jessie > - follow the steps to "install freeswit h on jessie" (copy and paste) > - profit! > > Do not try anything advanced until you know the basics. > > -giovanni > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hggh96.hg at gmail.com Tue May 29 04:00:22 2018 From: hggh96.hg at gmail.com (Hossein Gholizadeh) Date: Tue, 29 May 2018 08:30:22 +0430 Subject: [Freeswitch-users] mod_lua In-Reply-To: References: Message-ID: No problem Giovanni , Thank you so much for devoting your time to answer my question, And Abaci thank you for help , i think i have to work with javascript. Best regards On Tue, May 29, 2018 at 12:19 AM Giovanni Maruzzelli wrote: > Sorry Hossein and you all, > > I was not aware that mod_lua is not embedded in windows. > > My apologies! > > -giovanni > > On Mon, May 28, 2018, 20:45 Abaci B wrote: > >> the last few versions of windows didn't have lua mod built and >> unfortunately there is no recent build of freeswitch for windows >> see https://freeswitch.org/jira/browse/FS-9717 >> >> On Mon, May 28, 2018 at 1:53 PM, Gregor Nanger >> wrote: >> >>> Is it possible that in Windows there is no compiled Lua? >>> >>> >>> On Mon, May 28, 2018, 19:29 Hossein Gholizadeh >>> wrote: >>> >>>> OK I got...but after running lua script it says invalid application lua >>>> ... I have installed lua in my windows but free switch doesn't know it >>>> >>>> On Mon, May 28, 2018, 17:59 Giovanni Maruzzelli >>>> wrote: >>>> >>>>> Hossein, >>>>> >>>>> Read my lips: >>>>> >>>>> NO MOD_LUA ! >>>>> >>>>> >>>>> >>>>> On Mon, May 28, 2018, 10:18 Hossein Gholizadeh >>>>> wrote: >>>>> >>>>>> i'm using freeswitch version 1.6.18 ... my mod directory didn't have >>>>>> mod_lua file ... i added it manually but it cannot read it >>>>>> >>>>>> >>>>>> On Mon, May 28, 2018 at 12:28 PM Giovanni Maruzzelli < >>>>>> gmaruzz at gmail.com> wrote: >>>>>> >>>>>>> mod_lua is embedded, so is always there, so you do not need to >>>>>>> explicitly load it, and you cannot unload it >>>>>>> >>>>>>> >>>>>>> On Mon, May 28, 2018, 07:21 Hossein Gholizadeh >>>>>>> wrote: >>>>>>> >>>>>>>> hi ... after freeswitch version 1.4 , we don't need mod_lua? >>>>>>>> >>>>>>>> _________________________________________________________________________ >>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>> consulting at freeswitch.org >>>>>>>> http://www.freeswitchsolutions.com >>>>>>>> >>>>>>>> Official FreeSWITCH Sites >>>>>>>> http://www.freeswitch.org >>>>>>>> http://confluence.freeswitch.org >>>>>>>> http://www.cluecon.com >>>>>>>> >>>>>>>> FreeSWITCH-users mailing list >>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>> UNSUBSCRIBE: >>>>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>>>> http://www.freeswitch.org >>>>>>> >>>>>>> >>>>>>> _________________________________________________________________________ >>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>> consulting at freeswitch.org >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> http://confluence.freeswitch.org >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> UNSUBSCRIBE: >>>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>>> http://www.freeswitch.org >>>>>> >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE: >>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>> http://www.freeswitch.org >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE: >>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>> http://www.freeswitch.org >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE: >>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> http://www.freeswitch.org >>> >>> -- >>> Gregor Nanger >>> >>> *CTO* >>> t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 >>> • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia >>> • www.infomedia.si >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidswalkabout at gmail.com Tue May 29 04:46:30 2018 From: davidswalkabout at gmail.com (David P) Date: Mon, 28 May 2018 21:46:30 -0700 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls In-Reply-To: References: Message-ID: To be a little more specific, I think you would suggest following https://freeswitch.org/confluence/display/FREESWITCH/WebRTC#WebRTC-InstallCertificates after installing fs on jessie. However, the section there about "Install Certificates" assumes there is already a cert, key, and chain on disk that can be concatenated into a wss.pem. But it seems to me those files don't exist after installing fs on jessie; in particular, /etc/freeswitch/tls/ is empty. On Mon, May 28, 2018 at 9:00 PM, David P wrote: > Ok, Giovanni. Using your confluence page's search box (not google) for > jessie yields one match: > > https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie > > I launched a debian jessie EC2, then followed section "Installing From > Debian Packages" at the link above. In particular, I followed the advice in > the comment about creating a "freeswitch" folder under /etc before the > apt-get to install freeswitch. There were no errors. > > Now the only thing under /etc/freeswitch/ is an empty tls/ folder. Is this > expected? > > Next, to install a CA cert for use by verto and SIP clients, do I follow > steps 1-4 at https://freeswitch.org/confluence/display/FREESWITCH/SIP+TLS > ? If so, what is {prefix} for this kind of FS install? > > > On Mon, May 28, 2018 at 8:03 AM, Giovanni Maruzzelli > wrote: > >> - Trash your aws instance >> - Start with a new jessie 64 sefver i stance (jessie!!!) >> - search in freeswitch.org/confluence about jessie >> - follow the steps to "install freeswit h on jessie" (copy and paste) >> - profit! >> >> Do not try anything advanced until you know the basics. >> >> -giovanni >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hggh96.hg at gmail.com Tue May 29 07:38:08 2018 From: hggh96.hg at gmail.com (Hossein Gholizadeh) Date: Tue, 29 May 2018 12:08:08 +0430 Subject: [Freeswitch-users] send fax Message-ID: hi all ... i already got the fax from a fax machine to my freeswitch gate way ok ... now i need to send this received fax file to other fax machine ... how can i do it? -------------- next part -------------- An HTML attachment was scrubbed... URL: From hggh96.hg at gmail.com Tue May 29 10:10:00 2018 From: hggh96.hg at gmail.com (Hossein Gholizadeh) Date: Tue, 29 May 2018 14:40:00 +0430 Subject: [Freeswitch-users] Gateway Message-ID: hi ... i have my gateway on 192.168.30.32 and a phone which connected to gateway 984432250161. I configured them like this : 1.created a xml file in \conf\sip_profiles\external with name cheap_tel.xml and the content is this : 2.and in acl.conf added this node : is my gateway config right ? because when i want to send a fax file by loopback with this command i have no error but fax is not saved in directory : Command ----> originate sofia/gateway/provider/984432250161 &txfax(C:/test.tiff) And also my dialplan configs for fax is this : Can any one help me? -------------- next part -------------- An HTML attachment was scrubbed... URL: From cong.wang.itsherpa at gmail.com Tue May 29 10:29:08 2018 From: cong.wang.itsherpa at gmail.com (=?utf-8?B?546L6IGh?=) Date: Tue, 29 May 2018 19:29:08 +0900 Subject: [Freeswitch-users] Crash on 1.6 when using ICE Message-ID: <52EC5D81-7AEE-44E7-8574-FC86B8E96774@gmail.com> Hey all, Recently I upgraded my FS server from 1.4 to 1.6.20 and enabled video record, but frequently crash occurred. The coredump file shows the crash occurred in handle_ice() function by a memory error like this: #0 switch_sockaddr_get_port (sa=0x0) at src/switch_apr.c:924 No locals. #1 0x00007f5aa524e662 in handle_ice (rtp_session=0x7f57e01a2138, ice=0x7f57e01a0cf0, data=0x0, len=140015398758072) at src/switch_rtp.c:1231 ipbuf = “58.93.127.1", '\000' cmp = -1521403865 stunbuf = "\001\001\000,!\022\244B\001o\025\177\236\006\262X\226Q\321$\000 \000\b\000\001:\266\033O\023`\000\b\000\024z\204%(\307>\352'\254jn\"K\255\227\376텠6\200(\000\004\366\065\062\177", '\000' rpacket = 0x7f59defcc2d0 remote_ip = 0x1ba4 from_addr = 0x7f57e01a0cf0 bytes = 64 buf = “58.93.127.1", '\000' port = 7076 buf2 = '\000' packet = 0x1ba4 attr = 0x7f57e01b26b8 end_buf = 0x0 username = "76MHJVvjVqM37tvJ:b94edc3e\000\000\000\000\000\000\000\000" buf = "\001\000T\000!\022\244B\001o\025\177\236\006\262X\226Q\321$\006\000\031\000\067\066MHJVvjVqM37tvJ:b94edc3e\000\000\000$\000\004\000n\377\377\377*\200\b\000n\033\004H0:9\254\b\000\024\000K\203Ə\264\242\063\303G\367\265\061\226v\233\206F\210\001G(\200\004\000iU\316\354", '\000' xlen = -553860400 __func__ = "handle_ice" #2 0x00007f5aa5252428 in read_rtp_packet (rtp_session=0x7f57e01a2138, bytes=0x7f59defcc740, flags=0x0, pmapP=0x0, poll_status=SWITCH_STATUS_SUCCESS, return_jb_packet=SWITCH_FALSE) at src/switch_rtp.c:5691 ts = 3759842008 sync = -535125288 now = 140027297347623 __PRETTY_FUNCTION__ = "read_rtp_packet" __func__ = "read_rtp_packet" More test shows that the crash occurred when client switched its network during a call. It always crash at the same point when I switched from wifi to carrier network. And the crash disappeared after I disabled the ICE settings in client. However, the same setting works well on previous server (1.4), so is there any changes on ICE solution between 1.4 and 1.6.20? Or the video record is the reason? Server: Old: FreeSWITCH Version 1.4.26+git~20160205T175853Z~ca9207aa32~64bit (git ca9207a 2016-02-05 17:58:53Z 64bit) New: FreeSWITCH Version 1.6.20+git~20180123T214909Z~987c9b9a2a~64bit (git 987c9b9 2018-01-23 21:49:09Z 64bit) Client: Custom SIP phone based on LibLinphone Regards. From krice at freeswitch.org Tue May 29 13:55:58 2018 From: krice at freeswitch.org (Ken Rice) Date: Tue, 29 May 2018 08:55:58 -0500 Subject: [Freeswitch-users] Crash on 1.6 when using ICE In-Reply-To: <52EC5D81-7AEE-44E7-8574-FC86B8E96774@gmail.com> References: <52EC5D81-7AEE-44E7-8574-FC86B8E96774@gmail.com> Message-ID: bug reports go to jira see: https://freeswitch.org/confluence/plugins/servlet/mobile#content/view/5046304 Sent from my iPhone > On May 29, 2018, at 05:29, 王聡 wrote: > > Hey all, > > Recently I upgraded my FS server from 1.4 to 1.6.20 and enabled video record, but frequently crash occurred. > The coredump file shows the crash occurred in handle_ice() function by a memory error like this: > > #0 switch_sockaddr_get_port (sa=0x0) at src/switch_apr.c:924 > No locals. > #1 0x00007f5aa524e662 in handle_ice (rtp_session=0x7f57e01a2138, ice=0x7f57e01a0cf0, data=0x0, len=140015398758072) at src/switch_rtp.c:1231 > ipbuf = “58.93.127.1", '\000' > cmp = -1521403865 > stunbuf = "\001\001\000,!\022\244B\001o\025\177\236\006\262X\226Q\321$\000 \000\b\000\001:\266\033O\023`\000\b\000\024z\204%(\307>\352'\254jn\"K\255\227\376텠6\200(\000\004\366\065\062\177", '\000' > rpacket = 0x7f59defcc2d0 > remote_ip = 0x1ba4 > from_addr = 0x7f57e01a0cf0 > bytes = 64 > buf = “58.93.127.1", '\000' > port = 7076 > buf2 = '\000' > packet = 0x1ba4 > attr = 0x7f57e01b26b8 > end_buf = 0x0 > username = "76MHJVvjVqM37tvJ:b94edc3e\000\000\000\000\000\000\000\000" > buf = "\001\000T\000!\022\244B\001o\025\177\236\006\262X\226Q\321$\006\000\031\000\067\066MHJVvjVqM37tvJ:b94edc3e\000\000\000$\000\004\000n\377\377\377*\200\b\000n\033\004H0:9\254\b\000\024\000K\203Ə\264\242\063\303G\367\265\061\226v\233\206F\210\001G(\200\004\000iU\316\354", '\000' > xlen = -553860400 > __func__ = "handle_ice" > #2 0x00007f5aa5252428 in read_rtp_packet (rtp_session=0x7f57e01a2138, bytes=0x7f59defcc740, flags=0x0, pmapP=0x0, poll_status=SWITCH_STATUS_SUCCESS, return_jb_packet=SWITCH_FALSE) at src/switch_rtp.c:5691 > ts = 3759842008 > sync = -535125288 > now = 140027297347623 > __PRETTY_FUNCTION__ = "read_rtp_packet" > __func__ = "read_rtp_packet" > > More test shows that the crash occurred when client switched its network during a call. > It always crash at the same point when I switched from wifi to carrier network. > And the crash disappeared after I disabled the ICE settings in client. > > However, the same setting works well on previous server (1.4), so is there any changes on ICE solution between 1.4 and 1.6.20? Or the video record is the reason? > > Server: > Old: FreeSWITCH Version 1.4.26+git~20160205T175853Z~ca9207aa32~64bit (git ca9207a 2016-02-05 17:58:53Z 64bit) > New: FreeSWITCH Version 1.6.20+git~20180123T214909Z~987c9b9a2a~64bit (git 987c9b9 2018-01-23 21:49:09Z 64bit) > > Client: > Custom SIP phone based on LibLinphone > > Regards. > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From abaci64 at gmail.com Tue May 29 14:57:02 2018 From: abaci64 at gmail.com (Abaci B) Date: Tue, 29 May 2018 10:57:02 -0400 Subject: [Freeswitch-users] mod_lua In-Reply-To: References: Message-ID: you can compile your own, I know others did and it works fine. On Tue, May 29, 2018 at 12:00 AM, Hossein Gholizadeh wrote: > No problem Giovanni , Thank you so much for devoting your time to answer > my question, > And Abaci thank you for help , i think i have to work with javascript. > > Best regards > > On Tue, May 29, 2018 at 12:19 AM Giovanni Maruzzelli > wrote: > >> Sorry Hossein and you all, >> >> I was not aware that mod_lua is not embedded in windows. >> >> My apologies! >> >> -giovanni >> >> On Mon, May 28, 2018, 20:45 Abaci B wrote: >> >>> the last few versions of windows didn't have lua mod built and >>> unfortunately there is no recent build of freeswitch for windows >>> see https://freeswitch.org/jira/browse/FS-9717 >>> >>> On Mon, May 28, 2018 at 1:53 PM, Gregor Nanger >>> wrote: >>> >>>> Is it possible that in Windows there is no compiled Lua? >>>> >>>> >>>> On Mon, May 28, 2018, 19:29 Hossein Gholizadeh >>>> wrote: >>>> >>>>> OK I got...but after running lua script it says invalid application >>>>> lua ... I have installed lua in my windows but free switch doesn't know it >>>>> >>>>> On Mon, May 28, 2018, 17:59 Giovanni Maruzzelli >>>>> wrote: >>>>> >>>>>> Hossein, >>>>>> >>>>>> Read my lips: >>>>>> >>>>>> NO MOD_LUA ! >>>>>> >>>>>> >>>>>> >>>>>> On Mon, May 28, 2018, 10:18 Hossein Gholizadeh >>>>>> wrote: >>>>>> >>>>>>> i'm using freeswitch version 1.6.18 ... my mod directory didn't have >>>>>>> mod_lua file ... i added it manually but it cannot read it >>>>>>> >>>>>>> >>>>>>> On Mon, May 28, 2018 at 12:28 PM Giovanni Maruzzelli < >>>>>>> gmaruzz at gmail.com> wrote: >>>>>>> >>>>>>>> mod_lua is embedded, so is always there, so you do not need to >>>>>>>> explicitly load it, and you cannot unload it >>>>>>>> >>>>>>>> >>>>>>>> On Mon, May 28, 2018, 07:21 Hossein Gholizadeh >>>>>>>> wrote: >>>>>>>> >>>>>>>>> hi ... after freeswitch version 1.4 , we don't need mod_lua? >>>>>>>>> ____________________________________________________________ >>>>>>>>> _____________ >>>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>>> consulting at freeswitch.org >>>>>>>>> http://www.freeswitchsolutions.com >>>>>>>>> >>>>>>>>> Official FreeSWITCH Sites >>>>>>>>> http://www.freeswitch.org >>>>>>>>> http://confluence.freeswitch.org >>>>>>>>> http://www.cluecon.com >>>>>>>>> >>>>>>>>> FreeSWITCH-users mailing list >>>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ >>>>>>>>> options/freeswitch-users >>>>>>>>> http://www.freeswitch.org >>>>>>>> >>>>>>>> ____________________________________________________________ >>>>>>>> _____________ >>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>> consulting at freeswitch.org >>>>>>>> http://www.freeswitchsolutions.com >>>>>>>> >>>>>>>> Official FreeSWITCH Sites >>>>>>>> http://www.freeswitch.org >>>>>>>> http://confluence.freeswitch.org >>>>>>>> http://www.cluecon.com >>>>>>>> >>>>>>>> FreeSWITCH-users mailing list >>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ >>>>>>>> options/freeswitch-users >>>>>>>> http://www.freeswitch.org >>>>>>> >>>>>>> ____________________________________________________________ >>>>>>> _____________ >>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>> consulting at freeswitch.org >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> http://confluence.freeswitch.org >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ >>>>>>> options/freeswitch-users >>>>>>> http://www.freeswitch.org >>>>>> >>>>>> ____________________________________________________________ >>>>>> _____________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ >>>>>> options/freeswitch-users >>>>>> http://www.freeswitch.org >>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ >>>>> options/freeswitch-users >>>>> http://www.freeswitch.org >>>> >>>> -- >>>> Gregor Nanger >>>> >>>> *CTO* >>>> t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 >>>> • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia >>>> • www.infomedia.si >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ >>>> options/freeswitch-users >>>> http://www.freeswitch.org >>>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tculjaga at gmail.com Tue May 29 16:07:17 2018 From: tculjaga at gmail.com (Tihomir Culjaga) Date: Tue, 29 May 2018 18:07:17 +0200 Subject: [Freeswitch-users] Call monitoring In-Reply-To: <07a901d3f5d3$8db7bd90$a92738b0$@delagarda.com> References: <076401d3f5b0$97145e20$c53d1a60$@delagarda.com> <07a901d3f5d3$8db7bd90$a92738b0$@delagarda.com> Message-ID: subscribe only to events you really need :=) events json CHANNEL_ANSWER CHANNEL_HANGUP CHANNEL_PROGRESS CHANNEL_PROGRESS_MEDIA ... this will limit the number of events being generated. On 27 May 2018 at 17:58, Francesco Facco de Lagarda wrote: > Grazie Giovanni! > > > > You think I didnt go through that with a fine-toothed comb? 😉 > > I was looking for some simpler explanations! > > > > F > > > > *From:* FreeSWITCH-users *On > Behalf Of *Giovanni Maruzzelli > *Sent:* domenica 27 maggio 2018 16:15 > *To:* FreeSWITCH Users Help > *Subject:* Re: [Freeswitch-users] Call monitoring > > > > Check https://freeswitch.org/confluence plenty of documentation about > event filtering > > > > On Sun, May 27, 2018, 13:48 Francesco Facco de Lagarda < > francesco at delagarda.com> wrote: > > I am writing a “call monitor”, something like an operator panel. > > I am capturing events via esl in php, filtering down the data and then > sending them to a javascript UI via websocket. > > > > My problem is that I am totally bewildered by the amount of events that fs > generates, and I’d like to filter it down to a bare minimum. > > > > New outgoing call (with uuid, extension and dialed number) > Call answererd from other party > > Line busy > > Call hung up from either party. > > > > Can anyone give me a pointer to which events I really need to monitor, and > which fields inside? > > > > I will obviously share finished code! > > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From both at antek.it Tue May 29 16:31:35 2018 From: both at antek.it (Petr Both) Date: Tue, 29 May 2018 18:31:35 +0200 Subject: [Freeswitch-users] Dialplan - bridging with transfer of destination_number In-Reply-To: References: <076401d3f5b0$97145e20$c53d1a60$@delagarda.com> <07a901d3f5d3$8db7bd90$a92738b0$@delagarda.com> Message-ID: Hi list, I'm already searching in FS manual several hours but cannot find the solution. My task is to receive SIP call from remote SIP device (registered to FS like User: 1005 at 192.168.8.6), using DIALPLAN route it back to SIP channel with the same (or increased) destination_number back to the remote SIP device. I.e. make such simple loopback in FS. Tested DIALPLAN extension is         The call is looped back to SIP channel but with destination_number 1005. Is there any way to enforce to this bridged outbound call the destination_number based on destination number of inbound call (which comes with destination number 5000) ? Thank you in advance Petr B. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hggh96.hg at gmail.com Tue May 29 16:58:37 2018 From: hggh96.hg at gmail.com (Hossein Gholizadeh) Date: Tue, 29 May 2018 21:28:37 +0430 Subject: [Freeswitch-users] mod_lua In-Reply-To: References: Message-ID: I didn't get you mean I can use lua? On Tue, May 29, 2018, 20:07 Abaci B wrote: > you can compile your own, I know others did and it works fine. > > On Tue, May 29, 2018 at 12:00 AM, Hossein Gholizadeh > wrote: > >> No problem Giovanni , Thank you so much for devoting your time to answer >> my question, >> And Abaci thank you for help , i think i have to work with javascript. >> >> Best regards >> >> On Tue, May 29, 2018 at 12:19 AM Giovanni Maruzzelli >> wrote: >> >>> Sorry Hossein and you all, >>> >>> I was not aware that mod_lua is not embedded in windows. >>> >>> My apologies! >>> >>> -giovanni >>> >>> On Mon, May 28, 2018, 20:45 Abaci B wrote: >>> >>>> the last few versions of windows didn't have lua mod built and >>>> unfortunately there is no recent build of freeswitch for windows >>>> see https://freeswitch.org/jira/browse/FS-9717 >>>> >>>> On Mon, May 28, 2018 at 1:53 PM, Gregor Nanger >>>> wrote: >>>> >>>>> Is it possible that in Windows there is no compiled Lua? >>>>> >>>>> >>>>> On Mon, May 28, 2018, 19:29 Hossein Gholizadeh >>>>> wrote: >>>>> >>>>>> OK I got...but after running lua script it says invalid application >>>>>> lua ... I have installed lua in my windows but free switch doesn't know it >>>>>> >>>>>> On Mon, May 28, 2018, 17:59 Giovanni Maruzzelli >>>>>> wrote: >>>>>> >>>>>>> Hossein, >>>>>>> >>>>>>> Read my lips: >>>>>>> >>>>>>> NO MOD_LUA ! >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Mon, May 28, 2018, 10:18 Hossein Gholizadeh >>>>>>> wrote: >>>>>>> >>>>>>>> i'm using freeswitch version 1.6.18 ... my mod directory didn't >>>>>>>> have mod_lua file ... i added it manually but it cannot read it >>>>>>>> >>>>>>>> >>>>>>>> On Mon, May 28, 2018 at 12:28 PM Giovanni Maruzzelli < >>>>>>>> gmaruzz at gmail.com> wrote: >>>>>>>> >>>>>>>>> mod_lua is embedded, so is always there, so you do not need to >>>>>>>>> explicitly load it, and you cannot unload it >>>>>>>>> >>>>>>>>> >>>>>>>>> On Mon, May 28, 2018, 07:21 Hossein Gholizadeh < >>>>>>>>> hggh96.hg at gmail.com> wrote: >>>>>>>>> >>>>>>>>>> hi ... after freeswitch version 1.4 , we don't need mod_lua? >>>>>>>>>> >>>>>>>>>> _________________________________________________________________________ >>>>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>>>> consulting at freeswitch.org >>>>>>>>>> http://www.freeswitchsolutions.com >>>>>>>>>> >>>>>>>>>> Official FreeSWITCH Sites >>>>>>>>>> http://www.freeswitch.org >>>>>>>>>> http://confluence.freeswitch.org >>>>>>>>>> http://www.cluecon.com >>>>>>>>>> >>>>>>>>>> FreeSWITCH-users mailing list >>>>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>>>> UNSUBSCRIBE: >>>>>>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>>>>>> http://www.freeswitch.org >>>>>>>>> >>>>>>>>> >>>>>>>>> _________________________________________________________________________ >>>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>>> consulting at freeswitch.org >>>>>>>>> http://www.freeswitchsolutions.com >>>>>>>>> >>>>>>>>> Official FreeSWITCH Sites >>>>>>>>> http://www.freeswitch.org >>>>>>>>> http://confluence.freeswitch.org >>>>>>>>> http://www.cluecon.com >>>>>>>>> >>>>>>>>> FreeSWITCH-users mailing list >>>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>>> UNSUBSCRIBE: >>>>>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>>>>> http://www.freeswitch.org >>>>>>>> >>>>>>>> >>>>>>>> _________________________________________________________________________ >>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>> consulting at freeswitch.org >>>>>>>> http://www.freeswitchsolutions.com >>>>>>>> >>>>>>>> Official FreeSWITCH Sites >>>>>>>> http://www.freeswitch.org >>>>>>>> http://confluence.freeswitch.org >>>>>>>> http://www.cluecon.com >>>>>>>> >>>>>>>> FreeSWITCH-users mailing list >>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>> UNSUBSCRIBE: >>>>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>>>> http://www.freeswitch.org >>>>>>> >>>>>>> >>>>>>> _________________________________________________________________________ >>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>> consulting at freeswitch.org >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> http://confluence.freeswitch.org >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> UNSUBSCRIBE: >>>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>>> http://www.freeswitch.org >>>>>> >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE: >>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>> http://www.freeswitch.org >>>>> >>>>> -- >>>>> Gregor Nanger >>>>> >>>>> *CTO* >>>>> t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 >>>>> • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia >>>>> • www.infomedia.si >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE: >>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>> http://www.freeswitch.org >>>>> >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE: >>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> http://www.freeswitch.org >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From abaci64 at gmail.com Tue May 29 17:05:38 2018 From: abaci64 at gmail.com (Abaci B) Date: Tue, 29 May 2018 13:05:38 -0400 Subject: [Freeswitch-users] mod_lua In-Reply-To: References: Message-ID: sure, you can either download from https://files.freeswitch.org/windows/installer/x64/ a version that has lua (I think up to 1.6.15) or you can compile from source On Tue, May 29, 2018 at 12:58 PM, Hossein Gholizadeh wrote: > I didn't get you mean I can use lua? > > On Tue, May 29, 2018, 20:07 Abaci B wrote: > >> you can compile your own, I know others did and it works fine. >> >> On Tue, May 29, 2018 at 12:00 AM, Hossein Gholizadeh > > wrote: >> >>> No problem Giovanni , Thank you so much for devoting your time to answer >>> my question, >>> And Abaci thank you for help , i think i have to work with javascript. >>> >>> Best regards >>> >>> On Tue, May 29, 2018 at 12:19 AM Giovanni Maruzzelli >>> wrote: >>> >>>> Sorry Hossein and you all, >>>> >>>> I was not aware that mod_lua is not embedded in windows. >>>> >>>> My apologies! >>>> >>>> -giovanni >>>> >>>> On Mon, May 28, 2018, 20:45 Abaci B wrote: >>>> >>>>> the last few versions of windows didn't have lua mod built and >>>>> unfortunately there is no recent build of freeswitch for windows >>>>> see https://freeswitch.org/jira/browse/FS-9717 >>>>> >>>>> On Mon, May 28, 2018 at 1:53 PM, Gregor Nanger >>>>> wrote: >>>>> >>>>>> Is it possible that in Windows there is no compiled Lua? >>>>>> >>>>>> >>>>>> On Mon, May 28, 2018, 19:29 Hossein Gholizadeh >>>>>> wrote: >>>>>> >>>>>>> OK I got...but after running lua script it says invalid application >>>>>>> lua ... I have installed lua in my windows but free switch doesn't know it >>>>>>> >>>>>>> On Mon, May 28, 2018, 17:59 Giovanni Maruzzelli >>>>>>> wrote: >>>>>>> >>>>>>>> Hossein, >>>>>>>> >>>>>>>> Read my lips: >>>>>>>> >>>>>>>> NO MOD_LUA ! >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Mon, May 28, 2018, 10:18 Hossein Gholizadeh >>>>>>>> wrote: >>>>>>>> >>>>>>>>> i'm using freeswitch version 1.6.18 ... my mod directory didn't >>>>>>>>> have mod_lua file ... i added it manually but it cannot read it >>>>>>>>> >>>>>>>>> >>>>>>>>> On Mon, May 28, 2018 at 12:28 PM Giovanni Maruzzelli < >>>>>>>>> gmaruzz at gmail.com> wrote: >>>>>>>>> >>>>>>>>>> mod_lua is embedded, so is always there, so you do not need to >>>>>>>>>> explicitly load it, and you cannot unload it >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Mon, May 28, 2018, 07:21 Hossein Gholizadeh < >>>>>>>>>> hggh96.hg at gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> hi ... after freeswitch version 1.4 , we don't need mod_lua? >>>>>>>>>>> ____________________________________________________________ >>>>>>>>>>> _____________ >>>>>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>>>>> consulting at freeswitch.org >>>>>>>>>>> http://www.freeswitchsolutions.com >>>>>>>>>>> >>>>>>>>>>> Official FreeSWITCH Sites >>>>>>>>>>> http://www.freeswitch.org >>>>>>>>>>> http://confluence.freeswitch.org >>>>>>>>>>> http://www.cluecon.com >>>>>>>>>>> >>>>>>>>>>> FreeSWITCH-users mailing list >>>>>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ >>>>>>>>>>> options/freeswitch-users >>>>>>>>>>> http://www.freeswitch.org >>>>>>>>>> >>>>>>>>>> ____________________________________________________________ >>>>>>>>>> _____________ >>>>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>>>> consulting at freeswitch.org >>>>>>>>>> http://www.freeswitchsolutions.com >>>>>>>>>> >>>>>>>>>> Official FreeSWITCH Sites >>>>>>>>>> http://www.freeswitch.org >>>>>>>>>> http://confluence.freeswitch.org >>>>>>>>>> http://www.cluecon.com >>>>>>>>>> >>>>>>>>>> FreeSWITCH-users mailing list >>>>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ >>>>>>>>>> options/freeswitch-users >>>>>>>>>> http://www.freeswitch.org >>>>>>>>> >>>>>>>>> ____________________________________________________________ >>>>>>>>> _____________ >>>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>>> consulting at freeswitch.org >>>>>>>>> http://www.freeswitchsolutions.com >>>>>>>>> >>>>>>>>> Official FreeSWITCH Sites >>>>>>>>> http://www.freeswitch.org >>>>>>>>> http://confluence.freeswitch.org >>>>>>>>> http://www.cluecon.com >>>>>>>>> >>>>>>>>> FreeSWITCH-users mailing list >>>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ >>>>>>>>> options/freeswitch-users >>>>>>>>> http://www.freeswitch.org >>>>>>>> >>>>>>>> ____________________________________________________________ >>>>>>>> _____________ >>>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>>> consulting at freeswitch.org >>>>>>>> http://www.freeswitchsolutions.com >>>>>>>> >>>>>>>> Official FreeSWITCH Sites >>>>>>>> http://www.freeswitch.org >>>>>>>> http://confluence.freeswitch.org >>>>>>>> http://www.cluecon.com >>>>>>>> >>>>>>>> FreeSWITCH-users mailing list >>>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ >>>>>>>> options/freeswitch-users >>>>>>>> http://www.freeswitch.org >>>>>>> >>>>>>> ____________________________________________________________ >>>>>>> _____________ >>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>> consulting at freeswitch.org >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> http://confluence.freeswitch.org >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ >>>>>>> options/freeswitch-users >>>>>>> http://www.freeswitch.org >>>>>> >>>>>> -- >>>>>> Gregor Nanger >>>>>> >>>>>> *CTO* >>>>>> t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 >>>>>> • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia >>>>>> • www.infomedia.si >>>>>> >>>>>> ____________________________________________________________ >>>>>> _____________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ >>>>>> options/freeswitch-users >>>>>> http://www.freeswitch.org >>>>>> >>>>> >>>>> ____________________________________________________________ >>>>> _____________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ >>>>> options/freeswitch-users >>>>> http://www.freeswitch.org >>>> >>>> ____________________________________________________________ >>>> _____________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ >>>> options/freeswitch-users >>>> http://www.freeswitch.org >>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From prestonh at gmail.com Tue May 29 17:08:26 2018 From: prestonh at gmail.com (Preston Hagar) Date: Tue, 29 May 2018 12:08:26 -0500 Subject: [Freeswitch-users] send fax In-Reply-To: References: Message-ID: I know this isn't exactly what you were asking, but we do a lot of faxing (receiving and sending) and usually it can come from various machines with various settings, so we needed something pretty flexible. We also wanted to keep our "regular" fax machines as that is what our users were accustomed to. In the end, we just bought a Cisco SPA112 ATA box for each fax machine. You just setup the extension to it and register it as a phone and then plug its analog port into the back of the fax machine. So far they have been working great. Here are my notes on setting them up in case you decide to go that route: To make our current fax machines work, I'm using a Cisco SPA112 ATA (Analog Telephone Adapter). One will be at each fax machine. It basically takes a sip account, takes the sip calls, and turns it into a regular "line" for faxes. Here are settings/important notes: Update the firmware!!! The firmware that comes shipped is terrible. Get to at least 1.4.1. By default, the box will get a DHCP lease and the username and password are both admin. You can find the IP in the dhcp leases file by searching for SPA112 You can use the "Quick Setup" for the initial account setup. Enter the following: Proxy:
Display Name: whatever name you want it to have User ID: (the extension number) Password: (the password) There is a fax optimizaion guide on page 136 of this document: https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/csbpvga/spa100-200/admin_guide_SPA100/spa100_ag.pdf Per that guide, set the following under Voice->Line1: SIP Settings: SIP Transport: TCP Network Settings Section - Network Jitter Level: very high Jitter Buffer Adjustment: no Supplementary Service Subscription Section - Call Waiting Serv: no Three Way CAll Serv: no Audio Configuration Section - Preferred Codec: G.771u Use pref. codec only: yes Silence Supp Enable: no Echo Canc Enable: no FAX Passthru Method: ReINVITE All other defaults should be good. On Tue, May 29, 2018 at 2:38 AM, Hossein Gholizadeh wrote: > hi all ... i already got the fax from a fax machine to my freeswitch gate > way ok ... now i need to send this received fax file to other fax machine > ... how can i do it? > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Tue May 29 17:32:56 2018 From: mike at jerris.com (Michael Jerris) Date: Tue, 29 May 2018 13:32:56 -0400 Subject: [Freeswitch-users] Connecting freeswitch to postgresql In-Reply-To: References: <6E69EE4D-55CB-466B-9CD0-2157F8E180DB@jerris.com> <67307984-EE24-4429-80C5-8FB14444F44D@jerris.com> <861fea4a-8a91-9122-8b37-9de09c42225e@madovsky.org> <0170B685-8FED-44E4-B0DC-B8C81A87C034@jerris.com> Message-ID: There are for sure issues that will cause crashes in some system supplied libraries on that. > On May 25, 2018, at 10:33 PM, Blackhold wrote: > > I'm using last version, the one in master branch, it says 1.9 > > freeswitch at freeswitch-capa8> version > FreeSWITCH Version 1.9.0+git~20180516T211208Z~3c7db639fd~64bit (git 3c7db63 2018-05-16 21:12:08Z 64bit) > > > > - Blackhold > http://blackhold.nusepas.com > @blackhold_ > ~> cal lluitar contra el fort per deixar de ser febles, i contra nosaltres mateixos quan siguem forts (Xirinacs) > <°((( >< > > 2018-05-26 4:21 GMT+02:00 Michael Jerris >: > 1.6 will NOT work properly against Debian 9. > > > On May 25, 2018, at 10:17 PM, Blackhold > wrote: > > > > The script also works for debian 9. At the bottom of the post I have added the differences between debian 8 and debian 9 installation. > > > > Thanks a lot! :D > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel at textplus.com Tue May 29 18:10:27 2018 From: joel at textplus.com (Joel Serrano) Date: Tue, 29 May 2018 11:10:27 -0700 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls In-Reply-To: References: Message-ID: Hi David, Have a look at: https://freeswitch.org/confluence/display/FREESWITCH/SIP+TLS You have information on how to generate the certificates.. On Mon, May 28, 2018 at 9:46 PM, David P wrote: > To be a little more specific, I think you would suggest following > https://freeswitch.org/confluence/display/FREESWITCH/WebRTC#WebRTC- > InstallCertificates after installing fs on jessie. However, the section > there about "Install Certificates" assumes there is already a cert, key, > and chain on disk that can be concatenated into a wss.pem. But it seems to > me those files don't exist after installing fs on jessie; in particular, > /etc/freeswitch/tls/ is empty. > > On Mon, May 28, 2018 at 9:00 PM, David P > wrote: > >> Ok, Giovanni. Using your confluence page's search box (not google) for >> jessie yields one match: >> >> https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie >> >> I launched a debian jessie EC2, then followed section "Installing From >> Debian Packages" at the link above. In particular, I followed the advice in >> the comment about creating a "freeswitch" folder under /etc before the >> apt-get to install freeswitch. There were no errors. >> >> Now the only thing under /etc/freeswitch/ is an empty tls/ folder. Is >> this expected? >> >> Next, to install a CA cert for use by verto and SIP clients, do I follow >> steps 1-4 at https://freeswitch.org/confluence/display/FREESWITCH/SIP+TLS >> ? If so, what is {prefix} for this kind of FS install? >> >> >> On Mon, May 28, 2018 at 8:03 AM, Giovanni Maruzzelli >> wrote: >> >>> - Trash your aws instance >>> - Start with a new jessie 64 sefver i stance (jessie!!!) >>> - search in freeswitch.org/confluence about jessie >>> - follow the steps to "install freeswit h on jessie" (copy and paste) >>> - profit! >>> >>> Do not try anything advanced until you know the basics. >>> >>> -giovanni >>> >> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick at magicmail.mooo.com Tue May 29 18:29:36 2018 From: rick at magicmail.mooo.com (Rick Jarvis) Date: Tue, 29 May 2018 19:29:36 +0100 Subject: [Freeswitch-users] Resuming Verto Message-ID: My Verto app currently checks:     vertoHandle (to see if Verto has been initialised     currentCall.state.name (to see if a call is connected) The problem with this of course is that if the browser is refreshed, those variables are lost and my app is assuming it needs to reconnect (which often, due to the magic of Verto, it doesn't actually need to). So my question is how best to check the session (and call) states? Would, say, loading those variables into the browser's localstorage be a good method, or is there a better way of querying the current sates? From davidswalkabout at gmail.com Tue May 29 18:48:36 2018 From: davidswalkabout at gmail.com (David P) Date: Tue, 29 May 2018 11:48:36 -0700 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls In-Reply-To: References: Message-ID: Hi Joel, please have a look at my first post yesterday in this thread in which I ask about that doc. In particular, what is {prefix} for a jessie install? And if I follow steps 1-4, how do I renew the cert later? On Tue, 29 May 2018, 11:28 am Joel Serrano, wrote: > Hi David, > > Have a look at: > https://freeswitch.org/confluence/display/FREESWITCH/SIP+TLS > > You have information on how to generate the certificates.. > > > On Mon, May 28, 2018 at 9:46 PM, David P > wrote: > >> To be a little more specific, I think you would suggest following >> https://freeswitch.org/confluence/display/FREESWITCH/WebRTC#WebRTC-InstallCertificates >> after installing fs on jessie. However, the section there about "Install >> Certificates" assumes there is already a cert, key, and chain on disk that >> can be concatenated into a wss.pem. But it seems to me those files don't >> exist after installing fs on jessie; in particular, /etc/freeswitch/tls/ is >> empty. >> >> On Mon, May 28, 2018 at 9:00 PM, David P >> wrote: >> >>> Ok, Giovanni. Using your confluence page's search box (not google) for >>> jessie yields one match: >>> >>> https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie >>> >>> I launched a debian jessie EC2, then followed section "Installing From >>> Debian Packages" at the link above. In particular, I followed the advice in >>> the comment about creating a "freeswitch" folder under /etc before the >>> apt-get to install freeswitch. There were no errors. >>> >>> Now the only thing under /etc/freeswitch/ is an empty tls/ folder. Is >>> this expected? >>> >>> Next, to install a CA cert for use by verto and SIP clients, do I follow >>> steps 1-4 at >>> https://freeswitch.org/confluence/display/FREESWITCH/SIP+TLS ? If so, >>> what is {prefix} for this kind of FS install? >>> >>> >>> On Mon, May 28, 2018 at 8:03 AM, Giovanni Maruzzelli >>> wrote: >>> >>>> - Trash your aws instance >>>> - Start with a new jessie 64 sefver i stance (jessie!!!) >>>> - search in freeswitch.org/confluence about jessie >>>> - follow the steps to "install freeswit h on jessie" (copy and paste) >>>> - profit! >>>> >>>> Do not try anything advanced until you know the basics. >>>> >>>> -giovanni >>>> >>> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Tue May 29 18:56:49 2018 From: mike at jerris.com (Michael Jerris) Date: Tue, 29 May 2018 14:56:49 -0400 Subject: [Freeswitch-users] mod_lua In-Reply-To: References: Message-ID: If mod_lua isn’t in that installer (I can’t recall for sure), you can still build it manually on windows. We are working on improvements here but its quite a bit of work to be done. > On May 29, 2018, at 1:05 PM, Abaci B wrote: > > sure, you can either download from https://files.freeswitch.org/windows/installer/x64/ a version that has lua (I think up to 1.6.15) or you can compile from source > > On Tue, May 29, 2018 at 12:58 PM, Hossein Gholizadeh > wrote: > I didn't get you mean I can use lua? > > On Tue, May 29, 2018, 20:07 Abaci B > wrote: > you can compile your own, I know others did and it works fine. > > On Tue, May 29, 2018 at 12:00 AM, Hossein Gholizadeh > wrote: > No problem Giovanni , Thank you so much for devoting your time to answer my question, > And Abaci thank you for help , i think i have to work with javascript. > > Best regards > > On Tue, May 29, 2018 at 12:19 AM Giovanni Maruzzelli > wrote: > Sorry Hossein and you all, > > I was not aware that mod_lua is not embedded in windows. > > My apologies! > > -giovanni > > On Mon, May 28, 2018, 20:45 Abaci B > wrote: > the last few versions of windows didn't have lua mod built and unfortunately there is no recent build of freeswitch for windows > see https://freeswitch.org/jira/browse/FS-9717 > > On Mon, May 28, 2018 at 1:53 PM, Gregor Nanger > wrote: > Is it possible that in Windows there is no compiled Lua? > > > On Mon, May 28, 2018, 19:29 Hossein Gholizadeh > wrote: > OK I got...but after running lua script it says invalid application lua ... I have installed lua in my windows but free switch doesn't know it > > On Mon, May 28, 2018, 17:59 Giovanni Maruzzelli > wrote: > Hossein, > > Read my lips: > > NO MOD_LUA ! > > > > On Mon, May 28, 2018, 10:18 Hossein Gholizadeh > wrote: > i'm using freeswitch version 1.6.18 ... my mod directory didn't have mod_lua file ... i added it manually but it cannot read it > > > On Mon, May 28, 2018 at 12:28 PM Giovanni Maruzzelli > wrote: > mod_lua is embedded, so is always there, so you do not need to explicitly load it, and you cannot unload it > > > On Mon, May 28, 2018, 07:21 Hossein Gholizadeh > wrote: > hi ... after freeswitch version 1.4 , we don't need mod_lua? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Tue May 29 18:58:33 2018 From: mike at jerris.com (Michael Jerris) Date: Tue, 29 May 2018 14:58:33 -0400 Subject: [Freeswitch-users] send fax In-Reply-To: References: Message-ID: <55FC05B1-78E1-4FCE-B859-1CAC88452C62@jerris.com> https://freeswitch.org/confluence/display/FREESWITCH/mod_spandsp#mod_spandsp-Fax https://freeswitch.org/confluence/display/FREESWITCH/T.38 > On May 29, 2018, at 3:38 AM, Hossein Gholizadeh wrote: > > hi all ... i already got the fax from a fax machine to my freeswitch gate way ok ... now i need to send this received fax file to other fax machine ... how can i do it?\ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Tue May 29 18:59:47 2018 From: mike at jerris.com (Michael Jerris) Date: Tue, 29 May 2018 14:59:47 -0400 Subject: [Freeswitch-users] Resuming Verto In-Reply-To: References: Message-ID: <461324D7-2248-4C47-8CA4-256FB5782055@jerris.com> verto communicator stuffs the session id down in local storage for this. > On May 29, 2018, at 2:29 PM, Rick Jarvis wrote: > > My Verto app currently checks: > > vertoHandle (to see if Verto has been initialised > currentCall.state.name (to see if a call is connected) > > The problem with this of course is that if the browser is refreshed, those variables are lost and my app is assuming it needs to reconnect (which often, due to the magic of Verto, it doesn't actually need to). > > So my question is how best to check the session (and call) states? Would, say, loading those variables into the browser's localstorage be a good method, or is there a better way of querying the current sates? > From speech at pobox.com Tue May 29 19:12:01 2018 From: speech at pobox.com (M Yudkowsky) Date: Tue, 29 May 2018 14:12:01 -0500 Subject: [Freeswitch-users] Can FS avoid sending re-INVITE to client? Or bridge on its behalf? Message-ID: Comrades! I'd like to find out of if FS, which is making calls on behalf of a client, can intercept timer-based re-INVITEs and respond to them without sending the INVITE to the client first. Alternatively, can FS be made smart enough to bridge "in the cloud" on behalf a client, even if the client uses internal RTP port numbers? Details: I've got an internal server (IS) that uses FS as a firewall. The IS asks for leg A, then leg B, and then bridges leg A and leg B "in the cloud." FS (working in media bypass mode) handles this without any problems. For many non-NANP and some NANP calls, some SIP providers insist on a re-INVITE every 5 to 15 minutes. Unfortunately, the IS has a bug: if you send it a re-INVITE -- which is what FS does at this point -- the IS will respond correctly and continue the call in the cloud. But at the same time, the IS will open an internal RTP port (which is not used for anything) and then fail 60s later when no RTP reaches that port. At this point, the IS sends a BYE for one of the legs, requests the other leg back from the cloud, and continues to handle the remaining leg. Note that the IS in the course of normal processing does break the cloud conference, talk to each individual leg, bridges them together again or each with some other new leg... it's quite a dance of INVITEs and re-INVITEs that the IS sends. But inbound re-INVITEs related to timers is the problem at the moment. Two possible solutions: Solution A. Is there a way for FS to be made smart enough and aggressive enough to act on a routine, timer-related re-INVITE? If so, this would bypass the bug in our IS. Solution B. When FS is set to bypass RTP media, the bridge happens up in the cloud. In normal operating mode, without bypass or proxy of RTP set, this is what happens: When the IS attempts to bridge the calls it sends the bridging re-INVITEs to FS, and those re-INVITEs are for _internal_ ports that FS offered to the IS. FS bridges these internal ports but (and perhaps I'm reading Wireshark wrong) does not attempt to bridge the external ports and take the media into the cloud. The bridge is done on FS itself. A possible solution, then, would be to configure FS to determine that the media can be bridged in the cloud and have it do so. -- Moshe Yudkowsky Disaggregate Corporation 2952 W Fargo Chicago, IL 60645 USA +1 773 764 8727 speech at pobox.com http://www.Disaggregate.com http://www.PebbleAndAvalanche.com From joel at textplus.com Tue May 29 19:34:12 2018 From: joel at textplus.com (Joel Serrano) Date: Tue, 29 May 2018 12:34:12 -0700 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls In-Reply-To: References: Message-ID: Hi David, So it all depends.. Those docs are just introductions to get a setup "up and running". For example, in the docs you generate self-signed certificates that (although perfectly valid) can give you issues with browsers because their CA is not trusted, etc. Regarding expiration, it all depends, as this is something you choose. Going down to your specific problems: 1- ..${prefix}.. is just a variable, that will be replaced with a value, normally /usr/local/freeswitch, but can be anything (depending on where you installed FS). 2- When it comes to the "path" that you specify in the config for the certificates, it can also be anything, the important part is that you make sure that the user you run FS with has access to reading those files. If you don't like using ${prefix} you can directly set /path/to/your/certs, just remember double checking the permissions. 3- When you renew your certificate, you will have to make FS aware of that, I'd have to check but I'm pretty sure that after updating the files a sofia profile rescan should be enough. On Tue, May 29, 2018 at 11:48 AM, David P wrote: > Hi Joel, please have a look at my first post yesterday in this thread in > which I ask about that doc. In particular, what is {prefix} for a jessie > install? And if I follow steps 1-4, how do I renew the cert later? > > On Tue, 29 May 2018, 11:28 am Joel Serrano, wrote: > >> Hi David, >> >> Have a look at: https://freeswitch.org/confluence/display/FREESWITCH/ >> SIP+TLS >> >> You have information on how to generate the certificates.. >> >> >> On Mon, May 28, 2018 at 9:46 PM, David P >> wrote: >> >>> To be a little more specific, I think you would suggest following >>> https://freeswitch.org/confluence/display/FREESWITCH/WebRTC#WebRTC- >>> InstallCertificates after installing fs on jessie. However, the section >>> there about "Install Certificates" assumes there is already a cert, key, >>> and chain on disk that can be concatenated into a wss.pem. But it seems to >>> me those files don't exist after installing fs on jessie; in particular, >>> /etc/freeswitch/tls/ is empty. >>> >>> On Mon, May 28, 2018 at 9:00 PM, David P >>> wrote: >>> >>>> Ok, Giovanni. Using your confluence page's search box (not google) for >>>> jessie yields one match: >>>> >>>> https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie >>>> >>>> I launched a debian jessie EC2, then followed section "Installing From >>>> Debian Packages" at the link above. In particular, I followed the advice in >>>> the comment about creating a "freeswitch" folder under /etc before the >>>> apt-get to install freeswitch. There were no errors. >>>> >>>> Now the only thing under /etc/freeswitch/ is an empty tls/ folder. Is >>>> this expected? >>>> >>>> Next, to install a CA cert for use by verto and SIP clients, do I >>>> follow steps 1-4 at https://freeswitch.org/ >>>> confluence/display/FREESWITCH/SIP+TLS ? If so, what is {prefix} for >>>> this kind of FS install? >>>> >>>> >>>> On Mon, May 28, 2018 at 8:03 AM, Giovanni Maruzzelli >>> > wrote: >>>> >>>>> - Trash your aws instance >>>>> - Start with a new jessie 64 sefver i stance (jessie!!!) >>>>> - search in freeswitch.org/confluence about jessie >>>>> - follow the steps to "install freeswit h on jessie" (copy and paste) >>>>> - profit! >>>>> >>>>> Do not try anything advanced until you know the basics. >>>>> >>>>> -giovanni >>>>> >>>> >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Tue May 29 19:37:15 2018 From: mike at jerris.com (Michael Jerris) Date: Tue, 29 May 2018 15:37:15 -0400 Subject: [Freeswitch-users] Can FS avoid sending re-INVITE to client? Or bridge on its behalf? In-Reply-To: References: Message-ID: > On May 29, 2018, at 3:12 PM, M Yudkowsky wrote: > > Comrades! > > I'd like to find out of if FS, which is making calls on behalf of a client, can intercept timer-based re-INVITEs and respond to them without sending the INVITE to the client first. Alternatively, can FS be made smart enough to bridge "in the cloud" on behalf a client, even if the client uses internal RTP port numbers? Freeswitch deals with each leg individually unless you tell it otherwise. session timer re-invite on one side would not normally trigger a re-invite on the other, at least with default settings. In bypass media mode I believe it always still does. > > Details: > > I've got an internal server (IS) that uses FS as a firewall. The IS asks for leg A, then leg B, and then bridges leg A and leg B "in the cloud." FS (working in media bypass mode) handles this without any problems. why are you starting each leg then bridging, starting them manually instead of just using the bridge app to start the b leg is probably the root of your issue. when you start individually there is no codec coordination for example. > > For many non-NANP and some NANP calls, some SIP providers insist on a re-INVITE every 5 to 15 minutes. > > Unfortunately, the IS has a bug: if you send it a re-INVITE -- which is what FS does at this point -- the IS will respond correctly and continue the call in the cloud. But at the same time, the IS will open an internal RTP port (which is not used for anything) and then fail 60s later when no RTP reaches that port. Need more info on what config you have, by default it wont be sending this re-invite, in bypass media it does as we don’t parse the sdp at all in that case, just pass to the other side. To determine this is just a session timer re-invite we would have to parse and see its a dup sdp to skip it. > > At this point, the IS sends a BYE for one of the legs, requests the other leg back from the cloud, and continues to handle the remaining leg. Note that the IS in the course of normal processing does break the cloud conference, talk to each individual leg, bridges them together again or each with some other new leg... it's quite a dance of INVITEs and re-INVITEs that the IS sends. But inbound re-INVITEs related to timers is the problem at the moment. > > > Two possible solutions: > > Solution A. Is there a way for FS to be made smart enough and aggressive enough to act on a routine, timer-related re-INVITE? If so, this would bypass the bug in our IS. > > Solution B. When FS is set to bypass RTP media, the bridge happens up in the cloud. In normal operating mode, without bypass or proxy of RTP set, this is what happens: When the IS attempts to bridge the calls it sends the bridging re-INVITEs to FS, and those re-INVITEs are for _internal_ ports that FS offered to the IS. FS bridges these internal ports but (and perhaps I'm reading Wireshark wrong) does not attempt to bridge the external ports and take the media into the cloud. The bridge is done on FS itself. A possible solution, then, would be to configure FS to determine that the media can be bridged in the cloud and have it do so. > Why are we doing internal ports here? > > -- > Moshe Yudkowsky > Disaggregate Corporation > 2952 W Fargo > Chicago, IL 60645 USA > > +1 773 764 8727 > speech at pobox.com > > http://www.Disaggregate.com > http://www.PebbleAndAvalanche.com > > > > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org From speech at pobox.com Tue May 29 19:57:02 2018 From: speech at pobox.com (M Yudkowsky) Date: Tue, 29 May 2018 14:57:02 -0500 Subject: [Freeswitch-users] (with corrections) Can FS avoid sending re-INVITE to client? Or bridge on its behalf? Message-ID: <0A3497A5-14ED-471A-B94F-6547DDD6CA18@pobox.com> Comrades! (with some corrections, IN UPPER CASE, as some words went astray in editing.) I'd like to find out of if FS, which is making calls on behalf of a client, can intercept timer-based re-INVITEs and respond to them without sending the INVITE to the client first. Alternatively, can FS be made smart enough to bridge "in the cloud" on behalf a client, even if the client uses internal RTP port numbers? Details: I've got an internal server (IS) that uses FS as a firewall. The IS asks for leg A, then leg B, and then bridges leg A and leg B "in the cloud." FS (working in media bypass mode) handles this without any problems. For many non-NANP and some NANP calls, some SIP providers insist on a re-INVITE every 5 to 15 minutes. Unfortunately, the IS has a bug: if you send it a re-INVITE -- WHEN THE SIP PROVIDER SENDS A RE-INVITE TO FS, AND THEN FS SENDS IT ON TO THE IS -- the IS will respond correctly and continue the call in the cloud. But at the same time, the IS will open an internal RTP port (which is not used for anything) and then fail 60s later when no RTP reaches that port. THIS ERROR IS NOT RELATED TO FS AT ALL AND HAPPENS EVEN WHEN THE IS INTERACTS DIRECTLY WITH THE SIP PROVIDER. At this point, the IS sends a BYE for one of the legs, requests the other leg back from the cloud, and continues to handle the remaining leg. Note that the IS in the course of normal processing does break the cloud conference, talk to each individual leg, bridges them together again or each with some other new leg... it's quite a dance of INVITEs and re-INVITEs that the IS sends. But inbound re-INVITEs related to timers is the problem at the moment. Two possible solutions: Solution A. Is there a way for FS to be made smart enough and aggressive enough to act on a routine, timer-related re-INVITE? THIS WOULD MEAN FS WOULD AUTOMATICALLY RESPOND TO THE RE-INVITE AND NOT SEND IT ON TO THE IS. This would bypass the bug in our IS. Solution B. When FS is set to bypass RTP media, the bridge happens up in the cloud. In normal operating mode, without bypass or proxy of RTP set, this is what happens: When the IS attempts to bridge the calls it sends the bridging re-INVITEs to FS, and those re-INVITEs are for _internal_ ports that FS offered to the IS. FS bridges these internal ports but (and perhaps I'm reading Wireshark wrong) does not attempt to bridge the external ports and take the media into the cloud. The bridge is done on FS itself. A possible solution, then, would be to configure FS to determine that the media can be bridged in the cloud and have it do so. -- Moshe Yudkowsky Disaggregate Corporation 2952 W Fargo Chicago, IL 60645 USA +1 773 764 8727 speech at pobox.com http://www.Disaggregate.com http://www.PebbleAndAvalanche.com From mike at jerris.com Tue May 29 21:13:31 2018 From: mike at jerris.com (Michael Jerris) Date: Tue, 29 May 2018 17:13:31 -0400 Subject: [Freeswitch-users] Resuming Verto In-Reply-To: References: <461324D7-2248-4C47-8CA4-256FB5782055@jerris.com> Message-ID: <3733F786-BD6B-40CD-A8E5-84C15932E822@jerris.com> in jquery.verto.js: if (verto.options.sessid) { verto.sessid = verto.options.sessid; } else { verto.sessid = localStorage.getItem("verto_session_uuid") || generateGUID(); localStorage.setItem("verto_session_uuid", verto.sessid); } > On May 29, 2018, at 5:06 PM, Rick Jarvis wrote: > > Thanks Mike. I wonder how a key/value store can report the correct state in that case? I realise this is beyond the scope of general Freeswitch stuff and more in the depths of coding, but if anyone has tackled this I'd love any pointers. I've looked through the Verto Communicator source and it didn't clue me up exactly (probably partly cos it's in Angular which I have no knowledge of).... > > > On 29/05/2018 19:59, Michael Jerris wrote: >> verto communicator stuffs the session id down in local storage for this. >> >> >>> On May 29, 2018, at 2:29 PM, Rick Jarvis wrote: >>> >>> My Verto app currently checks: >>> >>> vertoHandle (to see if Verto has been initialised >>> currentCall.state.name (to see if a call is connected) >>> >>> The problem with this of course is that if the browser is refreshed, those variables are lost and my app is assuming it needs to reconnect (which often, due to the magic of Verto, it doesn't actually need to). >>> >>> So my question is how best to check the session (and call) states? Would, say, loading those variables into the browser's localstorage be a good method, or is there a better way of querying the current sates? >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at infomedia.si Tue May 29 21:14:22 2018 From: gregor at infomedia.si (Gregor Nanger) Date: Tue, 29 May 2018 23:14:22 +0200 Subject: [Freeswitch-users] mod_lua In-Reply-To: References: Message-ID: Michael, r u working on improvements regarding building with Visual studio? 2018-05-29 20:56 GMT+02:00 Michael Jerris : > If mod_lua isn’t in that installer (I can’t recall for sure), you can > still build it manually on windows. We are working on improvements here > but its quite a bit of work to be done. > > > On May 29, 2018, at 1:05 PM, Abaci B wrote: > > sure, you can either download from https://files.freeswitch.org/ > windows/installer/x64/ a version that has lua (I think up to 1.6.15) or > you can compile from source > > On Tue, May 29, 2018 at 12:58 PM, Hossein Gholizadeh > wrote: > >> I didn't get you mean I can use lua? >> >> On Tue, May 29, 2018, 20:07 Abaci B wrote: >> >>> you can compile your own, I know others did and it works fine. >>> >>> On Tue, May 29, 2018 at 12:00 AM, Hossein Gholizadeh < >>> hggh96.hg at gmail.com> wrote: >>> >>>> No problem Giovanni , Thank you so much for devoting your time to >>>> answer my question, >>>> And Abaci thank you for help , i think i have to work with javascript. >>>> >>>> Best regards >>>> >>>> On Tue, May 29, 2018 at 12:19 AM Giovanni Maruzzelli >>>> wrote: >>>> >>>>> Sorry Hossein and you all, >>>>> >>>>> I was not aware that mod_lua is not embedded in windows. >>>>> >>>>> My apologies! >>>>> >>>>> -giovanni >>>>> >>>>> On Mon, May 28, 2018, 20:45 Abaci B wrote: >>>>> >>>>>> the last few versions of windows didn't have lua mod built and >>>>>> unfortunately there is no recent build of freeswitch for windows >>>>>> see https://freeswitch.org/jira/browse/FS-9717 >>>>>> >>>>>> On Mon, May 28, 2018 at 1:53 PM, Gregor Nanger >>>>>> wrote: >>>>>> >>>>>>> Is it possible that in Windows there is no compiled Lua? >>>>>>> >>>>>>> >>>>>>> On Mon, May 28, 2018, 19:29 Hossein Gholizadeh >>>>>>> wrote: >>>>>>> >>>>>>>> OK I got...but after running lua script it says invalid application >>>>>>>> lua ... I have installed lua in my windows but free switch doesn't know it >>>>>>>> >>>>>>>> On Mon, May 28, 2018, 17:59 Giovanni Maruzzelli >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Hossein, >>>>>>>>> >>>>>>>>> Read my lips: >>>>>>>>> >>>>>>>>> NO MOD_LUA ! >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Mon, May 28, 2018, 10:18 Hossein Gholizadeh < >>>>>>>>> hggh96.hg at gmail.com> wrote: >>>>>>>>> >>>>>>>>>> i'm using freeswitch version 1.6.18 ... my mod directory didn't >>>>>>>>>> have mod_lua file ... i added it manually but it cannot read it >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Mon, May 28, 2018 at 12:28 PM Giovanni Maruzzelli < >>>>>>>>>> gmaruzz at gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> mod_lua is embedded, so is always there, so you do not need to >>>>>>>>>>> explicitly load it, and you cannot unload it >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On Mon, May 28, 2018, 07:21 Hossein Gholizadeh < >>>>>>>>>>> hggh96.hg at gmail.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> hi ... after freeswitch version 1.4 , we don't need mod_lua? >>>>>>>>>>>> >>>>>>>>>>> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -- Gregor Nanger *CTO* t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Tue May 29 21:20:52 2018 From: mike at jerris.com (Michael Jerris) Date: Tue, 29 May 2018 17:20:52 -0400 Subject: [Freeswitch-users] mod_lua In-Reply-To: References: Message-ID: Yes, still in testing, going to be a while. We have a working system to use pre-compiled binaries for some deps that make the build process much less painful > On May 29, 2018, at 5:14 PM, Gregor Nanger wrote: > > Michael, r u working on improvements regarding building with Visual studio? > > > 2018-05-29 20:56 GMT+02:00 Michael Jerris >: > If mod_lua isn’t in that installer (I can’t recall for sure), you can still build it manually on windows. We are working on improvements here but its quite a bit of work to be done. > > >> On May 29, 2018, at 1:05 PM, Abaci B > wrote: >> >> sure, you can either download from https://files.freeswitch.org/windows/installer/x64/ a version that has lua (I think up to 1.6.15) or you can compile from source >> >> On Tue, May 29, 2018 at 12:58 PM, Hossein Gholizadeh > wrote: >> I didn't get you mean I can use lua? >> >> On Tue, May 29, 2018, 20:07 Abaci B > wrote: >> you can compile your own, I know others did and it works fine. >> >> On Tue, May 29, 2018 at 12:00 AM, Hossein Gholizadeh > wrote: >> No problem Giovanni , Thank you so much for devoting your time to answer my question, >> And Abaci thank you for help , i think i have to work with javascript. >> >> Best regards >> >> On Tue, May 29, 2018 at 12:19 AM Giovanni Maruzzelli > wrote: >> Sorry Hossein and you all, >> >> I was not aware that mod_lua is not embedded in windows. >> >> My apologies! >> >> -giovanni >> >> On Mon, May 28, 2018, 20:45 Abaci B > wrote: >> the last few versions of windows didn't have lua mod built and unfortunately there is no recent build of freeswitch for windows >> see https://freeswitch.org/jira/browse/FS-9717 >> >> On Mon, May 28, 2018 at 1:53 PM, Gregor Nanger > wrote: >> Is it possible that in Windows there is no compiled Lua? >> >> >> On Mon, May 28, 2018, 19:29 Hossein Gholizadeh > wrote: >> OK I got...but after running lua script it says invalid application lua ... I have installed lua in my windows but free switch doesn't know it >> >> On Mon, May 28, 2018, 17:59 Giovanni Maruzzelli > wrote: >> Hossein, >> >> Read my lips: >> >> NO MOD_LUA ! >> >> >> >> On Mon, May 28, 2018, 10:18 Hossein Gholizadeh > wrote: >> i'm using freeswitch version 1.6.18 ... my mod directory didn't have mod_lua file ... i added it manually but it cannot read it >> >> >> On Mon, May 28, 2018 at 12:28 PM Giovanni Maruzzelli > wrote: >> mod_lua is embedded, so is always there, so you do not need to explicitly load it, and you cannot unload it >> >> >> On Mon, May 28, 2018, 07:21 Hossein Gholizadeh > wrote: >> hi ... after freeswitch version 1.4 , we don't need mod_lua? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From prestonh at gmail.com Tue May 29 21:35:59 2018 From: prestonh at gmail.com (Preston Hagar) Date: Tue, 29 May 2018 16:35:59 -0500 Subject: [Freeswitch-users] Mini IVR for caller inside of voicemail Message-ID: We've just finished replacing an older Mitel system with our new FreeSWITCH system. One feature of the old Mitel system we are missing that a few of our users have asked for worked like this: Person calls user's number (DID or internal). Caller gets user's voicemail. Either the users greeting could be recorded to say something like "To reach my cell phone, press 2, To reach my assistant, press 3, To leave me a message, wait for the beep". The caller could then decide to either press a key to be transferred to somewhere else, or just wait for the beep and leave a message. The user could setup their forwarding number(s) to prompt for through the voicemail menu prompts, it didn't require an admin or any other access. I know I could generally do this with an IVR setup, but it would be nice to have it like the old system where the user could add/remove the forwarding numbers at will and I wouldn't have to build out custom IVRs for multiple extensions. Does anyone have any pointers on how to achieve something like this? Is it even possible with mod_voicemail, or do I need to be looking into doing VM completely differently somehow? Thanks. Preston -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Tue May 29 21:46:41 2018 From: mike at jerris.com (Michael Jerris) Date: Tue, 29 May 2018 17:46:41 -0400 Subject: [Freeswitch-users] Mini IVR for caller inside of voicemail In-Reply-To: References: Message-ID: <294ABF57-E84B-4AF9-99EA-6A90B780CF89@jerris.com> the closest thing we have is operator and vmain stuff, but nothing that would allow a user to edit these themselves. It could be added, right in the same places we handle operator-key in the code, but a whole config ivr section would have to be added for it too. Sounds like a cool addition if you’d like to take a crack at submitting a patch, but will need new sound files too for the ivr. > On May 29, 2018, at 5:35 PM, Preston Hagar wrote: > > We've just finished replacing an older Mitel system with our new FreeSWITCH system. One feature of the old Mitel system we are missing that a few of our users have asked for worked like this: > > Person calls user's number (DID or internal). Caller gets user's voicemail. Either the users greeting could be recorded to say something like "To reach my cell phone, press 2, To reach my assistant, press 3, To leave me a message, wait for the beep". > > The caller could then decide to either press a key to be transferred to somewhere else, or just wait for the beep and leave a message. > > The user could setup their forwarding number(s) to prompt for through the voicemail menu prompts, it didn't require an admin or any other access. > > I know I could generally do this with an IVR setup, but it would be nice to have it like the old system where the user could add/remove the forwarding numbers at will and I wouldn't have to build out custom IVRs for multiple extensions. > > Does anyone have any pointers on how to achieve something like this? Is it even possible with mod_voicemail, or do I need to be looking into doing VM completely differently somehow? > From gregor at infomedia.si Tue May 29 22:36:37 2018 From: gregor at infomedia.si (Gregor Nanger) Date: Wed, 30 May 2018 00:36:37 +0200 Subject: [Freeswitch-users] mod_lua In-Reply-To: References: Message-ID: Nice. If you would make windows better citizen, you could expand user base. 2018-05-29 23:20 GMT+02:00 Michael Jerris : > Yes, still in testing, going to be a while. We have a working system to > use pre-compiled binaries for some deps that make the build process much > less painful > > > On May 29, 2018, at 5:14 PM, Gregor Nanger wrote: > > Michael, r u working on improvements regarding building with Visual studio? > > 2018-05-29 20:56 GMT+02:00 Michael Jerris : > >> If mod_lua isn’t in that installer (I can’t recall for sure), you can >> still build it manually on windows. We are working on improvements here >> but its quite a bit of work to be done. >> >> >> On May 29, 2018, at 1:05 PM, Abaci B wrote: >> >> sure, you can either download from https://files.freeswitch.org/w >> indows/installer/x64/ a version that has lua (I think up to 1.6.15) or >> you can compile from source >> >> On Tue, May 29, 2018 at 12:58 PM, Hossein Gholizadeh > > wrote: >> >>> I didn't get you mean I can use lua? >>> >>> On Tue, May 29, 2018, 20:07 Abaci B wrote: >>> >>>> you can compile your own, I know others did and it works fine. >>>> >>>> On Tue, May 29, 2018 at 12:00 AM, Hossein Gholizadeh < >>>> hggh96.hg at gmail.com> wrote: >>>> >>>>> No problem Giovanni , Thank you so much for devoting your time to >>>>> answer my question, >>>>> And Abaci thank you for help , i think i have to work with javascript. >>>>> >>>>> Best regards >>>>> >>>>> On Tue, May 29, 2018 at 12:19 AM Giovanni Maruzzelli < >>>>> gmaruzz at gmail.com> wrote: >>>>> >>>>>> Sorry Hossein and you all, >>>>>> >>>>>> I was not aware that mod_lua is not embedded in windows. >>>>>> >>>>>> My apologies! >>>>>> >>>>>> -giovanni >>>>>> >>>>>> On Mon, May 28, 2018, 20:45 Abaci B wrote: >>>>>> >>>>>>> the last few versions of windows didn't have lua mod built and >>>>>>> unfortunately there is no recent build of freeswitch for windows >>>>>>> see https://freeswitch.org/jira/browse/FS-9717 >>>>>>> >>>>>>> On Mon, May 28, 2018 at 1:53 PM, Gregor Nanger >>>>>>> wrote: >>>>>>> >>>>>>>> Is it possible that in Windows there is no compiled Lua? >>>>>>>> >>>>>>>> >>>>>>>> On Mon, May 28, 2018, 19:29 Hossein Gholizadeh >>>>>>>> wrote: >>>>>>>> >>>>>>>>> OK I got...but after running lua script it says invalid >>>>>>>>> application lua ... I have installed lua in my windows but free switch >>>>>>>>> doesn't know it >>>>>>>>> >>>>>>>>> On Mon, May 28, 2018, 17:59 Giovanni Maruzzelli >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>>> Hossein, >>>>>>>>>> >>>>>>>>>> Read my lips: >>>>>>>>>> >>>>>>>>>> NO MOD_LUA ! >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Mon, May 28, 2018, 10:18 Hossein Gholizadeh < >>>>>>>>>> hggh96.hg at gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> i'm using freeswitch version 1.6.18 ... my mod directory didn't >>>>>>>>>>> have mod_lua file ... i added it manually but it cannot read it >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On Mon, May 28, 2018 at 12:28 PM Giovanni Maruzzelli < >>>>>>>>>>> gmaruzz at gmail.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> mod_lua is embedded, so is always there, so you do not need to >>>>>>>>>>>> explicitly load it, and you cannot unload it >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On Mon, May 28, 2018, 07:21 Hossein Gholizadeh < >>>>>>>>>>>> hggh96.hg at gmail.com> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> hi ... after freeswitch version 1.4 , we don't need mod_lua? >>>>>>>>>>>>> >>>>>>>>>>>> >> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -- Gregor Nanger *CTO* t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si -------------- next part -------------- An HTML attachment was scrubbed... URL: From BJordan at E-Teleco.com Wed May 30 03:52:35 2018 From: BJordan at E-Teleco.com (Branden Jordan) Date: Wed, 30 May 2018 03:52:35 +0000 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls In-Reply-To: References: Message-ID: Hey David, I did a search in the packages and found gentls_cert is put in /usr/bin by default unless you specified an argument to install FS somewhere else. Unless you have some need to be creating your own self-signed cert it seems like you could use lets encrypt (at least according to the Debian 8 install page) which may simplify some of the key management (creation/renewal) for you. I believe their simple renewal script is called certbot. You just need to wrap certbot in a bash script calling the profile rescan after the key is renewed like Joel Serrano said. Thanks, Branden From: FreeSWITCH-users On Behalf Of David P Sent: Tuesday, May 29, 2018 11:49 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Achieving TLS + SRTP for inbound calls Hi Joel, please have a look at my first post yesterday in this thread in which I ask about that doc. In particular, what is {prefix} for a jessie install? And if I follow steps 1-4, how do I renew the cert later? On Tue, 29 May 2018, 11:28 am Joel Serrano, > wrote: Hi David, Have a look at: https://freeswitch.org/confluence/display/FREESWITCH/SIP+TLS You have information on how to generate the certificates.. On Mon, May 28, 2018 at 9:46 PM, David P > wrote: To be a little more specific, I think you would suggest following https://freeswitch.org/confluence/display/FREESWITCH/WebRTC#WebRTC-InstallCertificates after installing fs on jessie. However, the section there about "Install Certificates" assumes there is already a cert, key, and chain on disk that can be concatenated into a wss.pem. But it seems to me those files don't exist after installing fs on jessie; in particular, /etc/freeswitch/tls/ is empty. On Mon, May 28, 2018 at 9:00 PM, David P > wrote: Ok, Giovanni. Using your confluence page's search box (not google) for jessie yields one match: https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie I launched a debian jessie EC2, then followed section "Installing From Debian Packages" at the link above. In particular, I followed the advice in the comment about creating a "freeswitch" folder under /etc before the apt-get to install freeswitch. There were no errors. Now the only thing under /etc/freeswitch/ is an empty tls/ folder. Is this expected? Next, to install a CA cert for use by verto and SIP clients, do I follow steps 1-4 at https://freeswitch.org/confluence/display/FREESWITCH/SIP+TLS ? If so, what is {prefix} for this kind of FS install? On Mon, May 28, 2018 at 8:03 AM, Giovanni Maruzzelli > wrote: - Trash your aws instance - Start with a new jessie 64 sefver i stance (jessie!!!) - search in freeswitch.org/confluence about jessie - follow the steps to "install freeswit h on jessie" (copy and paste) - profit! Do not try anything advanced until you know the basics. -giovanni _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From hggh96.hg at gmail.com Wed May 30 05:05:12 2018 From: hggh96.hg at gmail.com (Hossein Gholizadeh) Date: Wed, 30 May 2018 09:35:12 +0430 Subject: [Freeswitch-users] mod_lua In-Reply-To: References: Message-ID: Thanks all for helps. Best regards On Wed, May 30, 2018 at 3:22 AM Gregor Nanger wrote: > Nice. If you would make windows better citizen, you could expand user base. > > 2018-05-29 23:20 GMT+02:00 Michael Jerris : > >> Yes, still in testing, going to be a while. We have a working system to >> use pre-compiled binaries for some deps that make the build process much >> less painful >> >> >> On May 29, 2018, at 5:14 PM, Gregor Nanger wrote: >> >> Michael, r u working on improvements regarding building with Visual >> studio? >> >> 2018-05-29 20:56 GMT+02:00 Michael Jerris : >> >>> If mod_lua isn’t in that installer (I can’t recall for sure), you can >>> still build it manually on windows. We are working on improvements here >>> but its quite a bit of work to be done. >>> >>> >>> On May 29, 2018, at 1:05 PM, Abaci B wrote: >>> >>> sure, you can either download from >>> https://files.freeswitch.org/windows/installer/x64/ a version that has >>> lua (I think up to 1.6.15) or you can compile from source >>> >>> On Tue, May 29, 2018 at 12:58 PM, Hossein Gholizadeh < >>> hggh96.hg at gmail.com> wrote: >>> >>>> I didn't get you mean I can use lua? >>>> >>>> On Tue, May 29, 2018, 20:07 Abaci B wrote: >>>> >>>>> you can compile your own, I know others did and it works fine. >>>>> >>>>> On Tue, May 29, 2018 at 12:00 AM, Hossein Gholizadeh < >>>>> hggh96.hg at gmail.com> wrote: >>>>> >>>>>> No problem Giovanni , Thank you so much for devoting your time to >>>>>> answer my question, >>>>>> And Abaci thank you for help , i think i have to work with javascript. >>>>>> >>>>>> Best regards >>>>>> >>>>>> On Tue, May 29, 2018 at 12:19 AM Giovanni Maruzzelli < >>>>>> gmaruzz at gmail.com> wrote: >>>>>> >>>>>>> Sorry Hossein and you all, >>>>>>> >>>>>>> I was not aware that mod_lua is not embedded in windows. >>>>>>> >>>>>>> My apologies! >>>>>>> >>>>>>> -giovanni >>>>>>> >>>>>>> On Mon, May 28, 2018, 20:45 Abaci B wrote: >>>>>>> >>>>>>>> the last few versions of windows didn't have lua mod built and >>>>>>>> unfortunately there is no recent build of freeswitch for windows >>>>>>>> see https://freeswitch.org/jira/browse/FS-9717 >>>>>>>> >>>>>>>> On Mon, May 28, 2018 at 1:53 PM, Gregor Nanger >>>>>>> > wrote: >>>>>>>> >>>>>>>>> Is it possible that in Windows there is no compiled Lua? >>>>>>>>> >>>>>>>>> >>>>>>>>> On Mon, May 28, 2018, 19:29 Hossein Gholizadeh < >>>>>>>>> hggh96.hg at gmail.com> wrote: >>>>>>>>> >>>>>>>>>> OK I got...but after running lua script it says invalid >>>>>>>>>> application lua ... I have installed lua in my windows but free switch >>>>>>>>>> doesn't know it >>>>>>>>>> >>>>>>>>>> On Mon, May 28, 2018, 17:59 Giovanni Maruzzelli < >>>>>>>>>> gmaruzz at gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> Hossein, >>>>>>>>>>> >>>>>>>>>>> Read my lips: >>>>>>>>>>> >>>>>>>>>>> NO MOD_LUA ! >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On Mon, May 28, 2018, 10:18 Hossein Gholizadeh < >>>>>>>>>>> hggh96.hg at gmail.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> i'm using freeswitch version 1.6.18 ... my mod directory didn't >>>>>>>>>>>> have mod_lua file ... i added it manually but it cannot read it >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On Mon, May 28, 2018 at 12:28 PM Giovanni Maruzzelli < >>>>>>>>>>>> gmaruzz at gmail.com> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> mod_lua is embedded, so is always there, so you do not need to >>>>>>>>>>>>> explicitly load it, and you cannot unload it >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> On Mon, May 28, 2018, 07:21 Hossein Gholizadeh < >>>>>>>>>>>>> hggh96.hg at gmail.com> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> hi ... after freeswitch version 1.4 , we don't need mod_lua? >>>>>>>>>>>>>> >>>>>>>>>>>>> >>> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > -- > Gregor Nanger > > *CTO* > t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 > • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia > • www.infomedia.si > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From hggh96.hg at gmail.com Wed May 30 05:05:44 2018 From: hggh96.hg at gmail.com (Hossein Gholizadeh) Date: Wed, 30 May 2018 09:35:44 +0430 Subject: [Freeswitch-users] send fax In-Reply-To: <55FC05B1-78E1-4FCE-B859-1CAC88452C62@jerris.com> References: <55FC05B1-78E1-4FCE-B859-1CAC88452C62@jerris.com> Message-ID: Thank you so for helps. On Wed, May 30, 2018 at 12:42 AM Michael Jerris wrote: > > https://freeswitch.org/confluence/display/FREESWITCH/mod_spandsp#mod_spandsp-Fax > https://freeswitch.org/confluence/display/FREESWITCH/T.38 > > > On May 29, 2018, at 3:38 AM, Hossein Gholizadeh > wrote: > > hi all ... i already got the fax from a fax machine to my freeswitch gate > way ok ... now i need to send this received fax file to other fax machine > ... how can i do it?\ > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From hggh96.hg at gmail.com Wed May 30 05:22:57 2018 From: hggh96.hg at gmail.com (Hossein Gholizadeh) Date: Wed, 30 May 2018 09:52:57 +0430 Subject: [Freeswitch-users] Gateway Message-ID: Hello all I need to send fax from a fax machine which is out of our network to our freeswitch i need to register my gateway in freeswitch . my gateway configs is on HX4E which is on 192.168.30.32 . here i added a xml file in /conf/sip-profiles/external which content is like this: ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------ but after running freeswitch it cannot be registered and says : ---------------------------------------------------------------------------------------------------------- *2018-05-30 09:47:58.634332 [NOTICE] sofia_reg.c:448 Registering providerA* *2018-05-30 09:47:58.634332 [NOTICE] sofia_reg.c:448 Registering provider* *2018-05-30 09:47:58.655309 [WARNING] sofia_reg.c:2906 Can't find user [Etraab2018 at 192.168.30.211 ] from 192.168.30.211* *You must define a domain called '192.168.30.211' in your directory and add a user with the id="Etraab2018" attribute* *and you must configure your device to use the proper domain in it's authentication credentials.* *2018-05-30 09:47:58.675323 [ERR] sofia_reg.c:2447 provider Failed Registration with status Forbidden [403]. failure #8* *2018-05-30 09:47:58.684466 [ERR] sofia_reg.c:2447 providerA Failed Registration with status Method Not Allowed [405]. failure #8* *2018-05-30 09:47:59.634936 [WARNING] sofia_reg.c:505 providerA Failed Registration [405], setting retry to 240 seconds.* *2018-05-30 09:47:59.644552 [WARNING] sofia_reg.c:505 provider Failed Registration [403], setting retry to 240 seconds.* ---------------------------------------------------------------------------------------------------------- can anyone help me? -------------- next part -------------- An HTML attachment was scrubbed... URL: From babak.freeswitch at gmail.com Wed May 30 08:41:53 2018 From: babak.freeswitch at gmail.com (Babak Yakhchali) Date: Wed, 30 May 2018 13:11:53 +0430 Subject: [Freeswitch-users] Outgoing calls through freetdm drop with cause code 102=recovery_timer_expire Message-ID: Hi I connected freeswitch to tda600 using a pri line and mod_freetdm. incomming calls from tda600 work without any problems but outgoing calls to tda600 drop with cause 102 after a few seconds after answering. I pasted the logs from console on pastebin: https://pastebin.freeswitch.org/view/5da22227 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tculjaga at gmail.com Wed May 30 09:08:42 2018 From: tculjaga at gmail.com (Tihomir Culjaga) Date: Wed, 30 May 2018 11:08:42 +0200 Subject: [Freeswitch-users] Gateway In-Reply-To: References: Message-ID: you didn't explain the scenario you are trying to achieve so im afraid not many can help you. here i don't understand if you are trying to register freeswitch to an external provider or you need freeswitch to be a registrar for inbound registration. Also, you didn't explain how remote fax machine communicates with your freeswitch. you need to explain the topology as simple as this: fax_machine <==> something <==> freeswitch here from your e-mail i cannot guess whether you are trying to register freeswitch to a provider or you want to register a remote gateway to freeswitch. These are 2 different things and you need to explain it better in order to get help. Regards, Tihomir. On 30 May 2018 at 07:22, Hossein Gholizadeh wrote: > Hello all > I need to send fax from a fax machine which is out of our network to our > freeswitch > i need to register my gateway in freeswitch . my gateway configs is on > HX4E which is on 192.168.30.32 . > here i added a xml file in /conf/sip-profiles/external which content is > like this: > > ------------------------------------------------------------ > ------------------------------------------- > > > > > > > > > > > ------------------------------------------------------------ > ------------------------------------------ > > but after running freeswitch it cannot be registered and says : > ------------------------------------------------------------ > ---------------------------------------------- > *2018-05-30 09:47:58.634332 [NOTICE] sofia_reg.c:448 Registering providerA* > *2018-05-30 09:47:58.634332 [NOTICE] sofia_reg.c:448 Registering provider* > *2018-05-30 09:47:58.655309 [WARNING] sofia_reg.c:2906 Can't find user > [Etraab2018 at 192.168.30.211 ] from 192.168.30.211* > *You must define a domain called '192.168.30.211' in your directory and > add a user with the id="Etraab2018" attribute* > *and you must configure your device to use the proper domain in it's > authentication credentials.* > *2018-05-30 09:47:58.675323 [ERR] sofia_reg.c:2447 provider Failed > Registration with status Forbidden [403]. failure #8* > *2018-05-30 09:47:58.684466 [ERR] sofia_reg.c:2447 providerA Failed > Registration with status Method Not Allowed [405]. failure #8* > *2018-05-30 09:47:59.634936 [WARNING] sofia_reg.c:505 providerA Failed > Registration [405], setting retry to 240 seconds.* > *2018-05-30 09:47:59.644552 [WARNING] sofia_reg.c:505 provider Failed > Registration [403], setting retry to 240 seconds.* > > ------------------------------------------------------------ > ---------------------------------------------- > can anyone help me? > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From babak.freeswitch at gmail.com Wed May 30 09:56:58 2018 From: babak.freeswitch at gmail.com (Babak Yakhchali) Date: Wed, 30 May 2018 14:26:58 +0430 Subject: [Freeswitch-users] Outgoing calls through freetdm drop with cause code 102=recovery_timer_expire In-Reply-To: References: Message-ID: setting send-connect-ack to true as below solved my problem: ** On Wed, May 30, 2018 at 1:11 PM, Babak Yakhchali wrote: > Hi > I connected freeswitch to tda600 using a pri line and mod_freetdm. > incomming calls from tda600 work without any problems but outgoing calls to > tda600 drop with cause 102 after a few seconds after answering. > I pasted the logs from console on pastebin: > https://pastebin.freeswitch.org/view/5da22227 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hggh96.hg at gmail.com Wed May 30 10:38:41 2018 From: hggh96.hg at gmail.com (Hossein Gholizadeh) Date: Wed, 30 May 2018 15:08:41 +0430 Subject: [Freeswitch-users] Gateway In-Reply-To: References: Message-ID: More info: As I said my gateway is on 192.168.30.32. I want to send a fax from a fax server which is out of my network for example a website that gives me fax server like fax.ir . my topology : *Fax.ir <==> gateway(it's on 192.168.30.32) <==> freeswitch(it's running on 192.168.30.211) * When I send fax from fax.ir to my freeswitch , I want the gateway receive the fax and detect it and then send it to fax_receive extension which saves the fax in a directory . Also I must say that my phone number(984432250161) is connected to the gateway modem FXO1. The issue is that when I want to send fax from fax.ir to freeswitch , fax is not received . And I have to say that my gateway is not registered in freeswitch . is the problem because of that gate way is not registered ? Here is screenshot of my freeswitch gateway configurations on HX4E and my dialplan configs for detection and receiving fax Best regards Hossein On Wed, May 30, 2018 at 1:54 PM Tihomir Culjaga wrote: > you didn't explain the scenario you are trying to achieve so im afraid not > many can help you. > > here i don't understand if you are trying to register freeswitch to an > external provider or you need freeswitch to be a registrar for inbound > registration. > Also, you didn't explain how remote fax machine communicates with your > freeswitch. > > > you need to explain the topology as simple as this: > > fax_machine <==> something <==> freeswitch > > > here from your e-mail i cannot guess whether you are trying to register > freeswitch to a provider or you want to register a remote gateway to > freeswitch. These are 2 different things and you need to explain it better > in order to get help. > > Regards, > Tihomir. > > > > On 30 May 2018 at 07:22, Hossein Gholizadeh wrote: > >> Hello all >> I need to send fax from a fax machine which is out of our network to our >> freeswitch >> i need to register my gateway in freeswitch . my gateway configs is on >> HX4E which is on 192.168.30.32 . >> here i added a xml file in /conf/sip-profiles/external which content is >> like this: >> >> >> ------------------------------------------------------------------------------------------------------- >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------------------------------ >> >> but after running freeswitch it cannot be registered and says : >> >> ---------------------------------------------------------------------------------------------------------- >> *2018-05-30 09:47:58.634332 [NOTICE] sofia_reg.c:448 Registering >> providerA* >> *2018-05-30 09:47:58.634332 [NOTICE] sofia_reg.c:448 Registering provider* >> *2018-05-30 09:47:58.655309 [WARNING] sofia_reg.c:2906 Can't find user >> [Etraab2018 at 192.168.30.211 ] from 192.168.30.211* >> *You must define a domain called '192.168.30.211' in your directory and >> add a user with the id="Etraab2018" attribute* >> *and you must configure your device to use the proper domain in it's >> authentication credentials.* >> *2018-05-30 09:47:58.675323 [ERR] sofia_reg.c:2447 provider Failed >> Registration with status Forbidden [403]. failure #8* >> *2018-05-30 09:47:58.684466 [ERR] sofia_reg.c:2447 providerA Failed >> Registration with status Method Not Allowed [405]. failure #8* >> *2018-05-30 09:47:59.634936 [WARNING] sofia_reg.c:505 providerA Failed >> Registration [405], setting retry to 240 seconds.* >> *2018-05-30 09:47:59.644552 [WARNING] sofia_reg.c:505 provider Failed >> Registration [403], setting retry to 240 seconds.* >> >> >> ---------------------------------------------------------------------------------------------------------- >> >> can anyone help me? >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: HX4E.png Type: image/png Size: 73598 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Dialplan.png Type: image/png Size: 130042 bytes Desc: not available URL: From pierre at couderc.eu Tue May 29 21:59:11 2018 From: pierre at couderc.eu (Pierre Couderc) Date: Tue, 29 May 2018 23:59:11 +0200 Subject: [Freeswitch-users] Is there an exmple of "backup provider" ? Message-ID: <9477be6a-49f3-1861-8193-a719ce3f3e22@couderc.eu> I have a provider  not reliable but low cost so I need a backup provider in case of failure. Is there  a typical configuration in this case ? Where ? Thanks in advance PC From ximop_22 at hotmail.com Wed May 30 13:24:25 2018 From: ximop_22 at hotmail.com (Ximo Peral) Date: Wed, 30 May 2018 13:24:25 +0000 Subject: [Freeswitch-users] No Resend 183 with Ring Groups Message-ID: Hi! I have a bridge with ring groups in the dialplan, using ":_:". When I receive 183 from my provider, FS does not resend. I'm "solving" this with ring_ready, but I do not like this option. Do you have any idea why the 183 does not propagate? -------------- next part -------------- An HTML attachment was scrubbed... URL: From kkothari157 at gmail.com Wed May 30 11:20:34 2018 From: kkothari157 at gmail.com (Ketan Kothari) Date: Wed, 30 May 2018 16:50:34 +0530 Subject: [Freeswitch-users] Freeswitch records only 15 seconds of call. Message-ID: Hi All, I'm getting issue on call recordings. Freeswitch can records maximum 15 seconds call but actual call was around 5 minutes. Any suggestion to overcome this issue ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bipin at xbipin.com Wed May 30 11:37:37 2018 From: bipin at xbipin.com (Bipin Patel) Date: Wed, 30 May 2018 15:37:37 +0400 Subject: [Freeswitch-users] Gateway In-Reply-To: References: Message-ID: hi, the things thats happening is your FS doesnt need to define a gateway but it should have the user defined in the directory folder or allowed by IP so this way then it can receive the calls and then process the context and dialplan Regards, Bipin ------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] Gateway From: Hossein Gholizadeh To: FreeSWITCH Users Help Date: 5/30/2018, 2:38:41 PM > > More info: > > As I said my gateway is on 192.168.30.32. I want to send a fax from a > fax server which is out of my network for example a website that gives > me fax server like fax.ir . my topology : > > *Fax.ir <==> gateway(it's on 192.168.30.32) <==> freeswitch(it's > running on 192.168.30.211) * > > When I send fax from fax.ir to my freeswitch , I want > the gateway receive the fax and detect it and then send it to > fax_receive extension which saves the fax in a directory . > > Also I must say that my phone number(984432250161) is connected to the > gateway modem FXO1. > > The issue is that when I want to send fax from fax.ir > to freeswitch , fax is not received . > > And I have to say that my gateway is not registered in freeswitch . is > the problem because of that gate way is not registered ? > > Here is screenshot of my freeswitch gateway configurations on HX4E and > my dialplan configs for detection and receiving fax > > Best regards > > Hossein > > > > On Wed, May 30, 2018 at 1:54 PM Tihomir Culjaga > wrote: > > you didn't explain the scenario you are trying to achieve so im > afraid not many can help you. > > here i don't understand if you are trying to register freeswitch > to an external provider or you need freeswitch to be a registrar > for inbound registration. > Also, you didn't explain how remote fax machine communicates with > your freeswitch. > > > you need to explain the topology as simple as this: > > fax_machine <==> something <==> freeswitch > > > here from your e-mail i cannot guess whether you are trying to > register freeswitch to a provider or you want to register a remote > gateway to freeswitch. These are 2 different things and you need > to explain it better in order to get help. > > Regards, > Tihomir. > > > > On 30 May 2018 at 07:22, Hossein Gholizadeh > wrote: > > Hello all > I need to send fax from a fax machine which is out of our > network to our freeswitch > i need to register my gateway in freeswitch . my gateway > configs is on HX4E which is on 192.168.30.32 . > here i added a xml file in /conf/sip-profiles/external which > content is like this: > > ------------------------------------------------------------------------------------------------------- > >     > >       >       >       >       >       >     > > ------------------------------------------------------------------------------------------------------ > > but after running freeswitch it cannot be registered and says : > ---------------------------------------------------------------------------------------------------------- > *2018-05-30 09:47:58.634332 [NOTICE] sofia_reg.c:448 > Registering providerA* > *2018-05-30 09:47:58.634332 [NOTICE] sofia_reg.c:448 > Registering provider* > *2018-05-30 09:47:58.655309 [WARNING] sofia_reg.c:2906 Can't > find user [Etraab2018 at 192.168.30.211 > ] from 192.168.30.211* > *You must define a domain called '192.168.30.211' in your > directory and add a user with the id="Etraab2018" attribute* > *and you must configure your device to use the proper domain > in it's authentication credentials.* > *2018-05-30 09:47:58.675323 [ERR] sofia_reg.c:2447 provider > Failed Registration with status Forbidden [403]. failure #8* > *2018-05-30 09:47:58.684466 [ERR] sofia_reg.c:2447 providerA > Failed Registration with status Method Not Allowed [405]. > failure #8* > *2018-05-30 09:47:59.634936 [WARNING] sofia_reg.c:505 > providerA Failed Registration [405], setting retry to 240 > seconds.* > *2018-05-30 09:47:59.644552 [WARNING] sofia_reg.c:505 provider > Failed Registration [403], setting retry to 240 seconds.* > > ---------------------------------------------------------------------------------------------------------- > > can anyone help me? > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.peral at airenetworks.es Wed May 30 09:47:00 2018 From: j.peral at airenetworks.es (Joaquin Peral) Date: Wed, 30 May 2018 11:47:00 +0200 Subject: [Freeswitch-users] No send 183 with Ring Groups Message-ID: <6a3ce598-6cbd-c307-3f27-7561565ff467@airenetworks.es> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Airenetworks-Firma.jpg Type: image/jpeg Size: 165816 bytes Desc: not available URL: From both at antek.it Wed May 30 13:49:42 2018 From: both at antek.it (Petr Both) Date: Wed, 30 May 2018 15:49:42 +0200 Subject: [Freeswitch-users] Dialplan - bridging with transfer of destination_number In-Reply-To: References: <076401d3f5b0$97145e20$c53d1a60$@delagarda.com> <07a901d3f5d3$8db7bd90$a92738b0$@delagarda.com> Message-ID: <9fc25e3b-1721-682a-aec4-a4f2b7221a8a@antek.it> Hi list, I have found the solution by myself. It will be useful to have answer here. The correct DIALPLAN extension is in this case         Where device at 192.168.8.29 is the SIP client registered to FS at 192.168.8.6 like user 1005. Using such DIALPLAN the call incoming from SIP client with destination number 5000 is immediately routed back to the SIP client at 192.168.8.29. My estimation is that FS in this case searches in SIP profile "internal" for all registered clients and when founds the one with IP 192.168.8.29 it is used to route the call there using destination number for this outbound call. Regards Petr B. Dne 29.05.2018 v 18:31 Petr Both napsal(a): > Hi list, > > I'm already searching in FS manual several hours but cannot find the > solution. > > My task is to receive SIP call from remote SIP device (registered to > FS like User: 1005 at 192.168.8.6), using DIALPLAN route it back to SIP > channel with the same (or increased) destination_number back to the > remote SIP device. I.e. make such simple loopback in FS. > > Tested DIALPLAN extension is > > >     >     > > > The call is looped back to SIP channel but with destination_number > 1005. Is there any way to enforce to this bridged outbound call the > destination_number based on destination number of inbound call (which > comes with destination number 5000) ? > > Thank you in advance > > Petr B. > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Wed May 30 13:53:47 2018 From: mike at jerris.com (Michael Jerris) Date: Wed, 30 May 2018 09:53:47 -0400 Subject: [Freeswitch-users] No Resend 183 with Ring Groups In-Reply-To: References: Message-ID: <99ADC62C-C02C-4B67-A83A-0DF2CDC8E10C@jerris.com> is there a reason you are using enterprise originate instead of regular originate with | ? > On May 30, 2018, at 9:24 AM, Ximo Peral wrote: > > Hi! > I have a bridge with ring groups in the dialplan, using ":_:". When I receive 183 from my provider, FS does not resend. > > I'm "solving" this with ring_ready, but I do not like this option. > > Do you have any idea why the 183 does not propagate? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Wed May 30 13:54:22 2018 From: mike at jerris.com (Michael Jerris) Date: Wed, 30 May 2018 09:54:22 -0400 Subject: [Freeswitch-users] Freeswitch records only 15 seconds of call. In-Reply-To: References: Message-ID: <1958CFFC-111B-4E0C-8EA3-6F026BAFACB9@jerris.com> I would suggest reviewing the logs and seeing if there is any indication of what is happening > On May 30, 2018, at 7:20 AM, Ketan Kothari wrote: > > Hi All, > I'm getting issue on call recordings. > > Freeswitch can records maximum 15 seconds call but actual call was around 5 minutes. > > Any suggestion to overcome this issue ? From jurijs.ivolga at gmail.com Wed May 30 14:03:26 2018 From: jurijs.ivolga at gmail.com (Jurijs Ivolga) Date: Wed, 30 May 2018 17:03:26 +0300 Subject: [Freeswitch-users] Is there an exmple of "backup provider" ? In-Reply-To: <9477be6a-49f3-1861-8193-a719ce3f3e22@couderc.eu> References: <9477be6a-49f3-1861-8193-a719ce3f3e22@couderc.eu> Message-ID: Hi, Check here: https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+bridge#mod_dptools:bridge-Callingmultipledestinations You can use pipe(|) for this in bridge app. With kind regards Jurijs On Wed, May 30, 2018 at 12:59 AM, Pierre Couderc wrote: > I have a provider not reliable but low cost so I need a backup provider > in case of failure. > > Is there a typical configuration in this case ? Where ? > > Thanks in advance > > PC > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From avi at avimarcus.net Wed May 30 14:20:47 2018 From: avi at avimarcus.net (Avi Marcus) Date: Wed, 30 May 2018 14:20:47 +0000 Subject: [Freeswitch-users] Is there an exmple of "backup provider" ? In-Reply-To: References: <9477be6a-49f3-1861-8193-a719ce3f3e22@couderc.eu> Message-ID: <01000163b16c2ee6-5c400bb2-b1e5-404f-b8a9-d53e79357093-000000@email.amazonses.com> Beware that "low cost provider" may not just reject the call, which you can recover from, but can mess you up in a large number of ways. Some of which you can try to work around (debugging + time), some of which you may not be able to figure out. - Not properly passing along DTMF - very long PDD - FAS fake answers - Returning "USER_BUSY" when it's not actually busy - Returning "NORMAL_TEMPORARY_FAILURE" when it's actually busy - poor audio quality - Issues with proxies/re-invite/switching codecs, etc. - .. and I'm sure many more. ... Just some of the many issues I've run into when using multiple carriers and terminating to countries around the world. -Avi Marcus BestFone -------------- next part -------------- An HTML attachment was scrubbed... URL: From hggh96.hg at gmail.com Wed May 30 14:22:21 2018 From: hggh96.hg at gmail.com (Hossein Gholizadeh) Date: Wed, 30 May 2018 18:52:21 +0430 Subject: [Freeswitch-users] Gateway In-Reply-To: References: Message-ID: hi , excuse me i'm bothering you with my questions but really i need more help. you mean that if i want to send a fax from other fax(which is out of my network) , i don't need any configuration for the gateway? can you explain more about creating user in directory ? i changed /conf/directory/default/example.conf.xml file to this : -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- is this correct? and can you say me what shall i replace there in domain and user id attribute and also gateway name? and what about username and password? Kind Regards,Hossein -------------- next part -------------- An HTML attachment was scrubbed... URL: From gmina at connectfirst.com Wed May 30 14:45:09 2018 From: gmina at connectfirst.com (Geoff Mina) Date: Wed, 30 May 2018 08:45:09 -0600 Subject: [Freeswitch-users] Enterprise/Production Quality? Message-ID: <1A170859-F608-498C-AB99-C41E17E5B706@connectfirst.com> Is anyone out there actually using FS successfully in an enterprise environment? We have deployed a handful of servers in an extremely simple configuration to allow standard SIP infrastructure to communicate with WebRTC clients. We run ~150 concurrent users per host and we can’t go a week without something in the core of Sofia failing. We have seen hung profiles that simply don’t respond to REGISTER requests (tried every suggested tweak to no avail) as well as seeing FS hang every call in a RINGING state without actually ringing the end client. These seem like pretty fundamental components we are struggling with. Our use case seems quite simple - yet the software (1.6.19) seems like it has never even seen a production deployment. Anyone out there have a drastically different experience? From francesco at delagarda.com Wed May 30 15:03:32 2018 From: francesco at delagarda.com (Francesco Facco de Lagarda) Date: Wed, 30 May 2018 17:03:32 +0200 Subject: [Freeswitch-users] Call monitoring In-Reply-To: References: <076401d3f5b0$97145e20$c53d1a60$@delagarda.com> <07a901d3f5d3$8db7bd90$a92738b0$@delagarda.com> Message-ID: <018701d3f827$61a2ab60$24e80220$@delagarda.com> Thanks once again Tihomir .. Eternamente grato! From: FreeSWITCH-users On Behalf Of Tihomir Culjaga Sent: martedì 29 maggio 2018 18:07 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Call monitoring subscribe only to events you really need :=) events json CHANNEL_ANSWER CHANNEL_HANGUP CHANNEL_PROGRESS CHANNEL_PROGRESS_MEDIA ... this will limit the number of events being generated. On 27 May 2018 at 17:58, Francesco Facco de Lagarda > wrote: Grazie Giovanni! You think I didnt go through that with a fine-toothed comb? 😉 I was looking for some simpler explanations! F From: FreeSWITCH-users > On Behalf Of Giovanni Maruzzelli Sent: domenica 27 maggio 2018 16:15 To: FreeSWITCH Users Help > Subject: Re: [Freeswitch-users] Call monitoring Check https://freeswitch.org/confluence plenty of documentation about event filtering On Sun, May 27, 2018, 13:48 Francesco Facco de Lagarda > wrote: I am writing a “call monitor”, something like an operator panel. I am capturing events via esl in php, filtering down the data and then sending them to a javascript UI via websocket. My problem is that I am totally bewildered by the amount of events that fs generates, and I’d like to filter it down to a bare minimum. New outgoing call (with uuid, extension and dialed number) Call answererd from other party Line busy Call hung up from either party. Can anyone give me a pointer to which events I really need to monitor, and which fields inside? I will obviously share finished code! _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From abaci64 at gmail.com Wed May 30 15:29:37 2018 From: abaci64 at gmail.com (Abaci B) Date: Wed, 30 May 2018 11:29:37 -0400 Subject: [Freeswitch-users] Enterprise/Production Quality? In-Reply-To: <1A170859-F608-498C-AB99-C41E17E5B706@connectfirst.com> References: <1A170859-F608-498C-AB99-C41E17E5B706@connectfirst.com> Message-ID: While your issues definitely should be troubleshooted to find the cause of your problem, I will just answer your question if anyone has different experience, I have been using freeswitch in production for over 10 years with no major issues even with much higher load, and so have many others. On Wed, May 30, 2018 at 10:45 AM, Geoff Mina wrote: > Is anyone out there actually using FS successfully in an enterprise > environment? > > We have deployed a handful of servers in an extremely simple configuration > to allow standard SIP infrastructure to communicate with WebRTC clients. > > We run ~150 concurrent users per host and we can’t go a week without > something in the core of Sofia failing. We have seen hung profiles that > simply don’t respond to REGISTER requests (tried every suggested tweak to > no avail) as well as seeing FS hang every call in a RINGING state without > actually ringing the end client. > > These seem like pretty fundamental components we are struggling with. Our > use case seems quite simple - yet the software (1.6.19) seems like it has > never even seen a production deployment. > > Anyone out there have a drastically different experience? > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From ximop_22 at hotmail.com Wed May 30 15:47:56 2018 From: ximop_22 at hotmail.com (Ximo Peral) Date: Wed, 30 May 2018 15:47:56 +0000 Subject: [Freeswitch-users] No Resend 183 with Ring Groups In-Reply-To: <99ADC62C-C02C-4B67-A83A-0DF2CDC8E10C@jerris.com> References: , <99ADC62C-C02C-4B67-A83A-0DF2CDC8E10C@jerris.com> Message-ID: I'm using sofia/gateway/xx/yy:_:/sofia/gateway/xx/zz to call all the destinations simultaneously. If I use | It would not be a ring group, is a failover. Obtener Outlook para Android ________________________________ From: FreeSWITCH-users on behalf of Michael Jerris Sent: Wednesday, May 30, 2018 3:53:47 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] No Resend 183 with Ring Groups is there a reason you are using enterprise originate instead of regular originate with | ? On May 30, 2018, at 9:24 AM, Ximo Peral > wrote: Hi! I have a bridge with ring groups in the dialplan, using ":_:". When I receive 183 from my provider, FS does not resend. I'm "solving" this with ring_ready, but I do not like this option. Do you have any idea why the 183 does not propagate? -------------- next part -------------- An HTML attachment was scrubbed... URL: From asilva at wirelessmundi.com Wed May 30 15:55:06 2018 From: asilva at wirelessmundi.com (antonio) Date: Wed, 30 May 2018 17:55:06 +0200 Subject: [Freeswitch-users] Enterprise/Production Quality? In-Reply-To: References: <1A170859-F608-498C-AB99-C41E17E5B706@connectfirst.com> Message-ID: Hi, Are you using wss or verto for webrtc endpoints? For my experience FS is very stable in production environment, but the use of webrtc with sip (wss) introduces/causes random lock issues, i've open issues about this problem: https://freeswitch.org/jira/browse/FS-10474 https://freeswitch.org/jira/browse/FS-10638 https://freeswitch.org/jira/browse/FS-10676 https://freeswitch.org/jira/browse/FS-10721 The best solution for webrtc is to use verto, and leave sofia for sip only, that's how i managed to solve all the issues... i never figure out the source of the problem only that is cause by wss endpoints. On 05/30/2018 05:29 PM, Abaci B wrote: > While your issues definitely should be troubleshooted to find the > cause of your problem, I will just answer your question if anyone has > different experience, I have been using freeswitch in production for > over 10 years with no major issues even with much higher load, and so > have many others. > > On Wed, May 30, 2018 at 10:45 AM, Geoff Mina > wrote: > > Is anyone out there actually using FS successfully in an > enterprise environment? > > We have deployed a handful of servers in an extremely simple > configuration to allow standard SIP infrastructure to communicate > with WebRTC clients. > > We run ~150 concurrent users per host and we can’t go a week > without something in the core of Sofia failing. We have seen hung > profiles that simply don’t respond to REGISTER requests (tried > every suggested tweak to no avail) as well as seeing FS hang every > call in a RINGING state without actually ringing the end client. > > These seem like pretty fundamental components we are struggling > with. Our use case seems quite simple - yet the software (1.6.19) > seems like it has never even seen a production deployment. > > Anyone out there have a drastically different experience? > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -- Saludos / Regards / Cumprimentos Anónio Silva -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Wed May 30 15:58:52 2018 From: mike at jerris.com (Michael Jerris) Date: Wed, 30 May 2018 11:58:52 -0400 Subject: [Freeswitch-users] Enterprise/Production Quality? In-Reply-To: <1A170859-F608-498C-AB99-C41E17E5B706@connectfirst.com> References: <1A170859-F608-498C-AB99-C41E17E5B706@connectfirst.com> Message-ID: Geoff- I believe this issue is fixed in https://freeswitch.org/jira/browse/FS-10762 which is available to FSA customers. Mike > On May 30, 2018, at 10:45 AM, Geoff Mina wrote: > > Is anyone out there actually using FS successfully in an enterprise environment? > > We have deployed a handful of servers in an extremely simple configuration to allow standard SIP infrastructure to communicate with WebRTC clients. > > We run ~150 concurrent users per host and we can’t go a week without something in the core of Sofia failing. We have seen hung profiles that simply don’t respond to REGISTER requests (tried every suggested tweak to no avail) as well as seeing FS hang every call in a RINGING state without actually ringing the end client. > > These seem like pretty fundamental components we are struggling with. Our use case seems quite simple - yet the software (1.6.19) seems like it has never even seen a production deployment. > > Anyone out there have a drastically different experience? -------------- next part -------------- An HTML attachment was scrubbed... URL: From igorolhovskiy at gmail.com Wed May 30 16:01:24 2018 From: igorolhovskiy at gmail.com (Igor Olhovskiy) Date: Wed, 30 May 2018 19:01:24 +0300 Subject: [Freeswitch-users] Reload mod_commands Message-ID: Hi! Suddenly API command ‘system’ stop working. Like fs_cli -x 'system /bin/ls' -ERR no reply Is there any way to restart mod_commands or other module to make it work without restarting whole freeswitch? Regards, Igor -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at mailworks.org Wed May 30 16:16:58 2018 From: michael at mailworks.org (Michael Avers) Date: Wed, 30 May 2018 09:16:58 -0700 Subject: [Freeswitch-users] Enterprise/Production Quality? In-Reply-To: References: <1A170859-F608-498C-AB99-C41E17E5B706@connectfirst.com> Message-ID: <1527697018.3678744.1390660224.09199347@webmail.messagingengine.com> LOL... The issue he describes can be due to several different reasons. I don't even think we have enough information at this point to determine it let alone narrow it down to one specific bug fix. Is saying "Oh this is fixed in our paid product" going to be the standard moving forward? In any case, a response such as this basically tells potential Verto users that they shouldn't bother because it's going to break at 150 concurrent users anyway. Mike On Wed, May 30, 2018, at 8:58 AM, Michael Jerris wrote: > Geoff- > > I believe this issue is fixed in > https://freeswitch.org/jira/browse/FS-10762 which is available to FSA > customers.> > Mike > >> On May 30, 2018, at 10:45 AM, Geoff Mina >> wrote:>> >> Is anyone out there actually using FS successfully in an enterprise >> environment?>> >> We have deployed a handful of servers in an extremely simple >> configuration to allow standard SIP infrastructure to communicate >> with WebRTC clients.>> >> We run ~150 concurrent users per host and we can’t go a week without >> something in the core of Sofia failing. We have seen hung profiles >> that simply don’t respond to REGISTER requests (tried every suggested >> tweak to no avail) as well as seeing FS hang every call in a RINGING >> state without actually ringing the end client.>> >> These seem like pretty fundamental components we are struggling with. >> Our use case seems quite simple - yet the software (1.6.19) seems >> like it has never even seen a production deployment.>> >> Anyone out there have a drastically different experience? > ___________________________________________________________________- > ________> Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE: > http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Wed May 30 16:35:58 2018 From: mike at jerris.com (Michael Jerris) Date: Wed, 30 May 2018 12:35:58 -0400 Subject: [Freeswitch-users] Enterprise/Production Quality? In-Reply-To: <1527697018.3678744.1390660224.09199347@webmail.messagingengine.com> References: <1A170859-F608-498C-AB99-C41E17E5B706@connectfirst.com> <1527697018.3678744.1390660224.09199347@webmail.messagingengine.com> Message-ID: <6EF6FCCE-4ED1-49B2-BC48-2B87099FDC7D@jerris.com> Michael- This is a specific bug that I know we have fixed. We spent months of work tracking it down, I am very familiar with the issue. This issue is not at all with verto, and is specifically with the sip secure web socket support. We have never recommended the use of sip web socket support for webrtc, we think that verto is typically a better solution, and is more stable. Mike > On May 30, 2018, at 12:16 PM, Michael Avers wrote: > > LOL... The issue he describes can be due to several different reasons. I don't even think we have enough information at this point to determine it let alone narrow it down to one specific bug fix. > > Is saying "Oh this is fixed in our paid product" going to be the standard moving forward? > > In any case, a response such as this basically tells potential Verto users that they shouldn't bother because it's going to break at 150 concurrent users anyway. > > Mike > > > On Wed, May 30, 2018, at 8:58 AM, Michael Jerris wrote: >> Geoff- >> >> I believe this issue is fixed in https://freeswitch.org/jira/browse/FS-10762 which is available to FSA customers. >> >> Mike >> >>> On May 30, 2018, at 10:45 AM, Geoff Mina > wrote: >>> >>> Is anyone out there actually using FS successfully in an enterprise environment? >>> >>> We have deployed a handful of servers in an extremely simple configuration to allow standard SIP infrastructure to communicate with WebRTC clients. >>> >>> We run ~150 concurrent users per host and we can’t go a week without something in the core of Sofia failing. We have seen hung profiles that simply don’t respond to REGISTER requests (tried every suggested tweak to no avail) as well as seeing FS hang every call in a RINGING state without actually ringing the end client. >>> >>> These seem like pretty fundamental components we are struggling with. Our use case seems quite simple - yet the software (1.6.19) seems like it has never even seen a production deployment. >>> >>> Anyone out there have a drastically different experience? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mjlopez at smartic.es Wed May 30 16:46:57 2018 From: mjlopez at smartic.es (=?UTF-8?Q?Miguel_Jes=C3=BAs_L=C3=B3pez_Valverde?=) Date: Wed, 30 May 2018 18:46:57 +0200 Subject: [Freeswitch-users] Enterprise/Production Quality? In-Reply-To: References: <1A170859-F608-498C-AB99-C41E17E5B706@connectfirst.com> Message-ID: <017101d3f835$d33a8820$79af9860$@smartic.es> Hello Geoff and Freeswitch-users: Currently I have a Freeswitch server in development mode on Amazon EC2 instance and another, working in production, as a physical machine. Both are mounted on Linux Debian 8 - 64 bits and the Freeswitch version is 1.6.18 64bit in development and 1.6.19 64bit in production. Also I’ve another Freeswitch servers in development and production, but this servers only work with TCP/UDP, no WSS and they haven’t this trouble. These systems keep Sip and WSS-SipJs clients connected through their internal context. In both cases, they are connected to Proxies where they register and take calls with other external carriers. All user accounts, connection information with proxies, etc. they are maintained through externals Mysql databases, (different for each system). Everything works correctly but, on occasion, any of the Freeswitch systems working with WSS stops working without, apparently, offering information about the reason. This occurs every 2-3 weeks and it can happen to one of the two servers, the state that keep in this case the following: The Freeswitch instance remains up. The console maintains the connection and accepts the input of commands. The internal and external interface appear to be up when the sofia status statement is executed. There is connectivity with the MySQL databases. No alerts or error messages are displayed in the console. THERE ARE NO REGISTERED USERS, when executing the sofia status profile internal reg command, 0 registered users appear. When executing the sofia status, I can’t see the internal profile but I can see the others profiles. When executing the sofia status profile internal command, usually, the CLI is bloked and I need to exit with Ctrl+C. Through netstat, it can be seen that the ports and protocols are kept correctly raised. I have compared netstat results with the affected and functioning instances and there are no differences. Obtaining traces, for example, with ngrep, it is observed that Freeswitch does not respond to requests for registration or invites made by SIP clients on the intenal interface. It receives the requests correctly but does not return a response. SIP and WSS clients can not register either. Obtaining traces on the port of the external interface, it is observed that Freeswitch sends registration requests to the proxy, which are answered by this with the typical unauthorized message and information to do the digest proces, which is not managed by Freeswitch and this returns to send new registers requests without negotiating digest of the previous answers. If one of the interfaces is restarted, for example, with the sofia profile internal restart command, on some occasions the console remains dead without activity and, in others, the sentence is executed and ended correctly, but when consulting the state of the interfaces with, for example, sofia status, the internal context has disappeared. It also happens with the external context. The only way to get the Freeswitch instance working correctly is to perform a reset of this, using the systemctl stop freeswitch / systemctl star freeswitch linux command, for example. After raising the bank again, everything goes back to work properly, the registration is made against the proxies and the clients Sip and Wss re-register correctly and the calls are processed again. Checking the log of logs, (/usr/local/freeswitch/logs/freeswitch.log), there are no warnings, errors or anything that shows clues about the reason for the fall. Simply repeat attempts to register clients and against the proxy. After restarting the instance and running, the time until the next incident is repeated is random. It can be a few hours or weeks. I have no way to reproduce it or induce the fault. If you think of any reason that might lead Freeswitch to have this behavior or if you have suffered similar incidents, please, I would be very grateful if you can throw some light on me. Best Regards. Miguel J. Lopez. De: FreeSWITCH-users [mailto:freeswitch-users-bounces at lists.freeswitch.org] En nombre de Abaci B Enviado el: miércoles, 30 de mayo de 2018 17:30 Para: FreeSWITCH Users Help Asunto: Re: [Freeswitch-users] Enterprise/Production Quality? While your issues definitely should be troubleshooted to find the cause of your problem, I will just answer your question if anyone has different experience, I have been using freeswitch in production for over 10 years with no major issues even with much higher load, and so have many others. On Wed, May 30, 2018 at 10:45 AM, Geoff Mina > wrote: Is anyone out there actually using FS successfully in an enterprise environment? We have deployed a handful of servers in an extremely simple configuration to allow standard SIP infrastructure to communicate with WebRTC clients. We run ~150 concurrent users per host and we can’t go a week without something in the core of Sofia failing. We have seen hung profiles that simply don’t respond to REGISTER requests (tried every suggested tweak to no avail) as well as seeing FS hang every call in a RINGING state without actually ringing the end client. These seem like pretty fundamental components we are struggling with. Our use case seems quite simple - yet the software (1.6.19) seems like it has never even seen a production deployment. Anyone out there have a drastically different experience? _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org --- El software de antivirus Avast ha analizado este correo electrónico en busca de virus. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From hartnett.tom at gmail.com Wed May 30 17:28:47 2018 From: hartnett.tom at gmail.com (Tom Hartnett) Date: Wed, 30 May 2018 13:28:47 -0400 Subject: [Freeswitch-users] Enterprise/Production Quality? In-Reply-To: <6EF6FCCE-4ED1-49B2-BC48-2B87099FDC7D@jerris.com> References: <1A170859-F608-498C-AB99-C41E17E5B706@connectfirst.com> <1527697018.3678744.1390660224.09199347@webmail.messagingengine.com> <6EF6FCCE-4ED1-49B2-BC48-2B87099FDC7D@jerris.com> Message-ID: On Wed, May 30, 2018 at 12:35 PM, Michael Jerris wrote: > Michael- > > This is a specific bug that I know we have fixed. We spent months of work > tracking it down, I am very familiar with the issue. This issue is not at > all with verto, and is specifically with the sip secure web socket > support. We have never recommended the use of sip web socket support for > webrtc, we think that verto is typically a better solution, and is more > stable. > > Mike > > > Where is this recommendation posted? The Freeswitch 1.8 textbook seems to imply they are equally usable. As a Freeswitch implementer I agree the optics of this aren't very good. I'm happy to treat FS as a commercial offering and evaluate it's value on that basis, if that's what it has become. But touting it as OSS then not supporting key bug fixes to the OSS community isn't really a good look. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Wed May 30 17:37:19 2018 From: mike at jerris.com (Michael Jerris) Date: Wed, 30 May 2018 13:37:19 -0400 Subject: [Freeswitch-users] Enterprise/Production Quality? In-Reply-To: <017101d3f835$d33a8820$79af9860$@smartic.es> References: <1A170859-F608-498C-AB99-C41E17E5B706@connectfirst.com> <017101d3f835$d33a8820$79af9860$@smartic.es> Message-ID: <58017DB2-3EB5-49BA-99FE-2D9A948819C2@jerris.com> see my previous response in this thread. > On May 30, 2018, at 12:46 PM, Miguel Jesús López Valverde wrote: > > Hello Geoff and Freeswitch-users: > > Currently I have a Freeswitch server in development mode on Amazon EC2 instance and another, working in production, as a physical machine. Both are mounted on Linux Debian 8 - 64 bits and the Freeswitch version is 1.6.18 64bit in development and 1.6.19 64bit in production. > > Also I’ve another Freeswitch servers in development and production, but this servers only work with TCP/UDP, no WSS and they haven’t this trouble. > > These systems keep Sip and WSS-SipJs clients connected through their internal context. In both cases, they are connected to Proxies where they register and take calls with other external carriers. > > All user accounts, connection information with proxies, etc. they are maintained through externals Mysql databases, (different for each system). > > Everything works correctly but, on occasion, any of the Freeswitch systems working with WSS stops working without, apparently, offering information about the reason. This occurs every 2-3 weeks and it can happen to one of the two servers, the state that keep in this case the following: -------------- next part -------------- An HTML attachment was scrubbed... URL: From speech at pobox.com Wed May 30 17:59:43 2018 From: speech at pobox.com (M Yudkowsky) Date: Wed, 30 May 2018 12:59:43 -0500 Subject: [Freeswitch-users] Can FS avoid sending re-INVITE to client? Or bridge on its behalf? In-Reply-To: References: Message-ID: <3607DB3B-B2EE-4B67-9314-EC1F562EC69F@pobox.com> Michael, thanks for your reply. > On May 29, 2018, at 14:37 , Michael Jerris wrote: > > > >> On May 29, 2018, at 3:12 PM, M Yudkowsky wrote: >> >> Comrades! >> >> I'd like to find out of if FS, which is making calls on behalf of a client, can intercept timer-based re-INVITEs and respond to them without sending the INVITE to the client first. Alternatively, can FS be made smart enough to bridge "in the cloud" on behalf a client, even if the client uses internal RTP port numbers? > > Freeswitch deals with each leg individually unless you tell it otherwise. session timer re-invite on one side would not normally trigger a re-invite on the other, at least with default settings. In bypass media mode I believe it always still does. In our system, our separation of concerns is: Internal Server (IS): intelligence to handle inbound calls, web-initiated calls, and subsequent outbound calls. In present production, IS connects directly to SIP providers. In this test environment, it connects to FS instead. FS: a firewall between IS and the world. Certainly it will cut SIP attacks to zero, but I'd also like to use it to fix the re-INVITE problem. A typical scenario: * Someone clicks on a web page. IS makes an outbound call. In the scenario tested here, that outbound call is routed via FS. FS calls, connects IS, and the user interacts with IS. * The user wants to conference someone in. IS makes an outbound call to FS, and FS to the 2nd user. * The 2nd user assents to speak to the first one. IS sends re-INIVTEs to FS to join the two users in the cloud, and FS sends that request onwards * At various points in the call, the users may reconnect, as individuals, to IS. This requires re-INIVITEs, etc. >> >> Details: >> >> I've got an internal server (IS) that uses FS as a firewall. The IS asks for leg A, then leg B, and then bridges leg A and leg B "in the cloud." FS (working in media bypass mode) handles this without any problems. > > why are you starting each leg then bridging, starting them manually instead of just using the bridge app to start the b leg is probably the root of your issue. when you start individually there is no codec coordination for example. Codec coordination is not an issue in this environment. The constraints I'm under -- a complex IS that is already fully developed and mature; the need to handle legs separately and interact with them; the need to mix them and unmix them -- is what drives me to the separation of concerns. If I were developing this system from scratch I'd certainly consider something completely different. > >> >> For many non-NANP and some NANP calls, some SIP providers insist on a re-INVITE every 5 to 15 minutes. >> >> Unfortunately, the IS has a bug: if you send it a re-INVITE -- which is what FS does at this point -- the IS will respond correctly and continue the call in the cloud. But at the same time, the IS will open an internal RTP port (which is not used for anything) and then fail 60s later when no RTP reaches that port. > > Need more info on what config you have, by default it wont be sending this re-invite, in bypass media it does as we don’t parse the sdp at all in that case, just pass to the other side. To determine this is just a session timer re-invite we would have to parse and see its a dup sdp to skip it. Let me see if I understand that: 1) In bypass media mode, the re-INIVTE is automatically handed onwards. 2) In proxy media mode, or in the default mode (media flows through the FS platform), the re-INVITE would be handled at the FS level. I was unable to get proxy to work correctly for me, but now that bypass is working, I can go back and re-try proxy and see if RTP ends up in the cloud or not. > >> >> At this point, the IS sends a BYE for one of the legs, requests the other leg back from the cloud, and continues to handle the remaining leg. Note that the IS in the course of normal processing does break the cloud conference, talk to each individual leg, bridges them together again or each with some other new leg... it's quite a dance of INVITEs and re-INVITEs that the IS sends. But inbound re-INVITEs related to timers is the problem at the moment. >> >> >> Two possible solutions: >> >> Solution A. Is there a way for FS to be made smart enough and aggressive enough to act on a routine, timer-related re-INVITE? If so, this would bypass the bug in our IS. >> >> Solution B. When FS is set to bypass RTP media, the bridge happens up in the cloud. In normal operating mode, without bypass or proxy of RTP set, this is what happens: When the IS attempts to bridge the calls it sends the bridging re-INVITEs to FS, and those re-INVITEs are for _internal_ ports that FS offered to the IS. FS bridges these internal ports but (and perhaps I'm reading Wireshark wrong) does not attempt to bridge the external ports and take the media into the cloud. The bridge is done on FS itself. A possible solution, then, would be to configure FS to determine that the media can be bridged in the cloud and have it do so. >> > > Why are we doing internal ports here? There are two difficulties: * The bug, where after the re-INIVITE the IS sets up some port -- you're right, it's on a port visible to the external world -- and listens to it, *despite the fact that it sent out an invite to bridge the RTP in the cloud*. * The other issue I ran into was attempting to use default mode. In default mode, the RTP is flows through FS. As a result, during the bridge scenario: 1) IS sends an INVITE to FS asking that port IS-1 be connected to port IS-2, to bridge the audio in the cloud as determined by IS -- FS is the cloud to IS. 2) FS does not turn around and send INVITEs out for IS-1 and IS-2, and now that I think on it, rightly so: FS can't prove those ports are publicly visible. Instead, FS just bridges media between IS-1 and IS-2. The users connected to those ports are therefore bridged via FS. My next test, therefore, is to see if I can get proxy mode to work and then try bridging. My experience has been that proxy mode failed. -- Moshe Yudkowsky Disaggregate Corporation 2952 W Fargo Chicago, IL 60645 USA +1 773 764 8727 speech at pobox.com http://www.Disaggregate.com http://www.PebbleAndAvalanche.com From mike at jerris.com Wed May 30 18:01:06 2018 From: mike at jerris.com (Michael Jerris) Date: Wed, 30 May 2018 14:01:06 -0400 Subject: [Freeswitch-users] Can FS avoid sending re-INVITE to client? Or bridge on its behalf? In-Reply-To: <3607DB3B-B2EE-4B67-9314-EC1F562EC69F@pobox.com> References: <3607DB3B-B2EE-4B67-9314-EC1F562EC69F@pobox.com> Message-ID: <0FA4F315-DA1D-4E8B-B015-E1D3C8DF986A@jerris.com> Are you using bypass media? try without. > On May 30, 2018, at 1:59 PM, M Yudkowsky wrote: > > Michael, thanks for your reply. > > >> On May 29, 2018, at 14:37 , Michael Jerris > wrote: >> >> >> >>> On May 29, 2018, at 3:12 PM, M Yudkowsky > wrote: >>> >>> Comrades! >>> >>> I'd like to find out of if FS, which is making calls on behalf of a client, can intercept timer-based re-INVITEs and respond to them without sending the INVITE to the client first. Alternatively, can FS be made smart enough to bridge "in the cloud" on behalf a client, even if the client uses internal RTP port numbers? >> >> Freeswitch deals with each leg individually unless you tell it otherwise. session timer re-invite on one side would not normally trigger a re-invite on the other, at least with default settings. In bypass media mode I believe it always still does. > > In our system, our separation of concerns is: > > Internal Server (IS): intelligence to handle inbound calls, web-initiated calls, and subsequent outbound calls. In present production, IS connects directly to SIP providers. In this test environment, it connects to FS instead. > > FS: a firewall between IS and the world. Certainly it will cut SIP attacks to zero, but I'd also like to use it to fix the re-INVITE problem. > > A typical scenario: > > * Someone clicks on a web page. IS makes an outbound call. In the scenario tested here, that outbound call is routed via FS. FS calls, connects IS, and the user interacts with IS. > * The user wants to conference someone in. IS makes an outbound call to FS, and FS to the 2nd user. > * The 2nd user assents to speak to the first one. IS sends re-INIVTEs to FS to join the two users in the cloud, and FS sends that request onwards > * At various points in the call, the users may reconnect, as individuals, to IS. This requires re-INIVITEs, etc. > > > > >>> >>> Details: >>> >>> I've got an internal server (IS) that uses FS as a firewall. The IS asks for leg A, then leg B, and then bridges leg A and leg B "in the cloud." FS (working in media bypass mode) handles this without any problems. >> >> why are you starting each leg then bridging, starting them manually instead of just using the bridge app to start the b leg is probably the root of your issue. when you start individually there is no codec coordination for example. > > Codec coordination is not an issue in this environment. The constraints I'm under -- a complex IS that is already fully developed and mature; the need to handle legs separately and interact with them; the need to mix them and unmix them -- is what drives me to the separation of concerns. > > If I were developing this system from scratch I'd certainly consider something completely different. > > >> >>> >>> For many non-NANP and some NANP calls, some SIP providers insist on a re-INVITE every 5 to 15 minutes. >>> >>> Unfortunately, the IS has a bug: if you send it a re-INVITE -- which is what FS does at this point -- the IS will respond correctly and continue the call in the cloud. But at the same time, the IS will open an internal RTP port (which is not used for anything) and then fail 60s later when no RTP reaches that port. >> >> Need more info on what config you have, by default it wont be sending this re-invite, in bypass media it does as we don’t parse the sdp at all in that case, just pass to the other side. To determine this is just a session timer re-invite we would have to parse and see its a dup sdp to skip it. > > Let me see if I understand that: > > 1) In bypass media mode, the re-INIVTE is automatically handed onwards. > > 2) In proxy media mode, or in the default mode (media flows through the FS platform), the re-INVITE would be handled at the FS level. > > I was unable to get proxy to work correctly for me, but now that bypass is working, I can go back and re-try proxy and see if RTP ends up in the cloud or not. > >> >>> >>> At this point, the IS sends a BYE for one of the legs, requests the other leg back from the cloud, and continues to handle the remaining leg. Note that the IS in the course of normal processing does break the cloud conference, talk to each individual leg, bridges them together again or each with some other new leg... it's quite a dance of INVITEs and re-INVITEs that the IS sends. But inbound re-INVITEs related to timers is the problem at the moment. >>> >>> >>> Two possible solutions: >>> >>> Solution A. Is there a way for FS to be made smart enough and aggressive enough to act on a routine, timer-related re-INVITE? If so, this would bypass the bug in our IS. >>> >>> Solution B. When FS is set to bypass RTP media, the bridge happens up in the cloud. In normal operating mode, without bypass or proxy of RTP set, this is what happens: When the IS attempts to bridge the calls it sends the bridging re-INVITEs to FS, and those re-INVITEs are for _internal_ ports that FS offered to the IS. FS bridges these internal ports but (and perhaps I'm reading Wireshark wrong) does not attempt to bridge the external ports and take the media into the cloud. The bridge is done on FS itself. A possible solution, then, would be to configure FS to determine that the media can be bridged in the cloud and have it do so. >>> >> >> Why are we doing internal ports here? > > There are two difficulties: > > * The bug, where after the re-INIVITE the IS sets up some port -- you're right, it's on a port visible to the external world -- and listens to it, *despite the fact that it sent out an invite to bridge the RTP in the cloud*. > > * The other issue I ran into was attempting to use default mode. In default mode, the RTP is flows through FS. As a result, during the bridge scenario: > > 1) IS sends an INVITE to FS asking that port IS-1 be connected to port IS-2, to bridge the audio in the cloud as determined by IS -- FS is the cloud to IS. > > 2) FS does not turn around and send INVITEs out for IS-1 and IS-2, and now that I think on it, rightly so: FS can't prove those ports are publicly visible. Instead, FS just bridges media between IS-1 and IS-2. The users connected to those ports are therefore bridged via FS. > > My next test, therefore, is to see if I can get proxy mode to work and then try bridging. My experience has been that proxy mode failed. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at mailworks.org Wed May 30 18:10:58 2018 From: michael at mailworks.org (Michael Avers) Date: Wed, 30 May 2018 11:10:58 -0700 Subject: [Freeswitch-users] Enterprise/Production Quality? In-Reply-To: <6EF6FCCE-4ED1-49B2-BC48-2B87099FDC7D@jerris.com> References: <1A170859-F608-498C-AB99-C41E17E5B706@connectfirst.com> <1527697018.3678744.1390660224.09199347@webmail.messagingengine.com> <6EF6FCCE-4ED1-49B2-BC48-2B87099FDC7D@jerris.com> Message-ID: <1527703858.3713688.1390798312.6F72AFE2@webmail.messagingengine.com> Hi Mike, how can we, as users of the project, tell what is included/fixed in Freeswitch Advantage that isn't generally available to the public? The splash page on your website doesn't really give much detail at all, not even pricing. Mike On Wed, May 30, 2018, at 9:35 AM, Michael Jerris wrote: > Michael- > > This is a specific bug that I know we have fixed. We spent months of > work tracking it down, I am very familiar with the issue. This issue > is not at all with verto, and is specifically with the sip secure web > socket support. We have never recommended the use of sip web socket > support for webrtc, we think that verto is typically a better > solution, and is more stable.> > Mike > >> On May 30, 2018, at 12:16 PM, Michael Avers >> wrote:>> >> LOL... The issue he describes can be due to several different >> reasons. I don't even think we have enough information at this point >> to determine it let alone narrow it down to one specific bug fix.>> >> Is saying "Oh this is fixed in our paid product" going to be the >> standard moving forward?>> >> In any case, a response such as this basically tells potential Verto >> users that they shouldn't bother because it's going to break at 150 >> concurrent users anyway.>> >> Mike >> >> >> On Wed, May 30, 2018, at 8:58 AM, Michael Jerris wrote: >>> Geoff- >>> >>> I believe this issue is fixed in >>> https://freeswitch.org/jira/browse/FS-10762 which is available to >>> FSA customers.>>> >>> Mike >>> >>>> On May 30, 2018, at 10:45 AM, Geoff Mina >>>> wrote:>>>> >>>> Is anyone out there actually using FS successfully in an enterprise >>>> environment?>>>> >>>> We have deployed a handful of servers in an extremely simple >>>> configuration to allow standard SIP infrastructure to communicate >>>> with WebRTC clients.>>>> >>>> We run ~150 concurrent users per host and we can’t go a week >>>> without something in the core of Sofia failing. We have seen hung >>>> profiles that simply don’t respond to REGISTER requests (tried >>>> every suggested tweak to no avail) as well as seeing FS hang every >>>> call in a RINGING state without actually ringing the end client.>>>> >>>> These seem like pretty fundamental components we are struggling >>>> with. Our use case seems quite simple - yet the software (1.6.19) >>>> seems like it has never even seen a production deployment.>>>> >>>> Anyone out there have a drastically different experience? > ___________________________________________________________________- > ________> Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE: > http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at jerris.com Wed May 30 18:25:45 2018 From: mike at jerris.com (Michael Jerris) Date: Wed, 30 May 2018 14:25:45 -0400 Subject: [Freeswitch-users] Enterprise/Production Quality? In-Reply-To: <1527703858.3713688.1390798312.6F72AFE2@webmail.messagingengine.com> References: <1A170859-F608-498C-AB99-C41E17E5B706@connectfirst.com> <1527697018.3678744.1390660224.09199347@webmail.messagingengine.com> <6EF6FCCE-4ED1-49B2-BC48-2B87099FDC7D@jerris.com> <1527703858.3713688.1390798312.6F72AFE2@webmail.messagingengine.com> Message-ID: <81F9EF34-6424-450C-B5ED-0A6400ED9054@jerris.com> Things marked as fixed in 1.8.0 are not in a 1.6 release. Some of those fixes are in the master branch but not yet in a public release. > On May 30, 2018, at 2:10 PM, Michael Avers wrote: > > Hi Mike, how can we, as users of the project, tell what is included/fixed in Freeswitch Advantage that isn't generally available to the public? The splash page on your website doesn't really give much detail at all, not even pricing. > > Mike > > > On Wed, May 30, 2018, at 9:35 AM, Michael Jerris wrote: >> Michael- >> >> This is a specific bug that I know we have fixed. We spent months of work tracking it down, I am very familiar with the issue. This issue is not at all with verto, and is specifically with the sip secure web socket support. We have never recommended the use of sip web socket support for webrtc, we think that verto is typically a better solution, and is more stable. >> >> Mike >> >>> On May 30, 2018, at 12:16 PM, Michael Avers > wrote: >>> >>> LOL... The issue he describes can be due to several different reasons. I don't even think we have enough information at this point to determine it let alone narrow it down to one specific bug fix. >>> >>> Is saying "Oh this is fixed in our paid product" going to be the standard moving forward? >>> >>> In any case, a response such as this basically tells potential Verto users that they shouldn't bother because it's going to break at 150 concurrent users anyway. >>> >>> Mike >>> >>> >>> On Wed, May 30, 2018, at 8:58 AM, Michael Jerris wrote: >>>> Geoff- >>>> >>>> I believe this issue is fixed in https://freeswitch.org/jira/browse/FS-10762 which is available to FSA customers. >>>> >>>> Mike >>>> >>>>> On May 30, 2018, at 10:45 AM, Geoff Mina > wrote: >>>>> >>>>> Is anyone out there actually using FS successfully in an enterprise environment? >>>>> >>>>> We have deployed a handful of servers in an extremely simple configuration to allow standard SIP infrastructure to communicate with WebRTC clients. >>>>> >>>>> We run ~150 concurrent users per host and we can’t go a week without something in the core of Sofia failing. We have seen hung profiles that simply don’t respond to REGISTER requests (tried every suggested tweak to no avail) as well as seeing FS hang every call in a RINGING state without actually ringing the end client. >>>>> >>>>> These seem like pretty fundamental components we are struggling with. Our use case seems quite simple - yet the software (1.6.19) seems like it has never even seen a production deployment. >>>>> >>>>> Anyone out there have a drastically different experience? -------------- next part -------------- An HTML attachment was scrubbed... URL: From wsimon at stratusvideo.com Wed May 30 18:37:38 2018 From: wsimon at stratusvideo.com (William Simon) Date: Wed, 30 May 2018 18:37:38 +0000 Subject: [Freeswitch-users] Enterprise/Production Quality? In-Reply-To: <6EF6FCCE-4ED1-49B2-BC48-2B87099FDC7D@jerris.com> References: <1A170859-F608-498C-AB99-C41E17E5B706@connectfirst.com> <1527697018.3678744.1390660224.09199347@webmail.messagingengine.com> <6EF6FCCE-4ED1-49B2-BC48-2B87099FDC7D@jerris.com> Message-ID: I thought stability fixes were going to be included in the open source release whereas new features are covered under FSA release cycle. What I am seeing here is unfortunate. Open source users should just accept instability for the 18-month release cycle? On May 30, 2018, at 12:35 PM, Michael Jerris > wrote: Michael- This is a specific bug that I know we have fixed. We spent months of work tracking it down, I am very familiar with the issue. This issue is not at all with verto, and is specifically with the sip secure web socket support. We have never recommended the use of sip web socket support for webrtc, we think that verto is typically a better solution, and is more stable. Mike On May 30, 2018, at 12:16 PM, Michael Avers > wrote: LOL... The issue he describes can be due to several different reasons. I don't even think we have enough information at this point to determine it let alone narrow it down to one specific bug fix. Is saying "Oh this is fixed in our paid product" going to be the standard moving forward? In any case, a response such as this basically tells potential Verto users that they shouldn't bother because it's going to break at 150 concurrent users anyway. Mike On Wed, May 30, 2018, at 8:58 AM, Michael Jerris wrote: Geoff- I believe this issue is fixed in https://freeswitch.org/jira/browse/FS-10762 which is available to FSA customers. Mike On May 30, 2018, at 10:45 AM, Geoff Mina > wrote: Is anyone out there actually using FS successfully in an enterprise environment? We have deployed a handful of servers in an extremely simple configuration to allow standard SIP infrastructure to communicate with WebRTC clients. We run ~150 concurrent users per host and we can’t go a week without something in the core of Sofia failing. We have seen hung profiles that simply don’t respond to REGISTER requests (tried every suggested tweak to no avail) as well as seeing FS hang every call in a RINGING state without actually ringing the end client. These seem like pretty fundamental components we are struggling with. Our use case seems quite simple - yet the software (1.6.19) seems like it has never even seen a production deployment. Anyone out there have a drastically different experience? _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org “The information transmitted is intended only for the person or entity to which it is addressed and may contain proprietary, business-confidential and/or privileged material. If you are not the intended recipient of this message you are hereby notified that any use, review, retransmission, dissemination, distribution, reproduction or any action taken in reliance upon this message is prohibited. If you received this in error, please contact the sender and delete the material from any computer.” -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthew at brightfire.net Wed May 30 18:48:10 2018 From: matthew at brightfire.net (Matthew Grooms) Date: Wed, 30 May 2018 13:48:10 -0500 Subject: [Freeswitch-users] Enterprise/Production Quality? In-Reply-To: References: <1A170859-F608-498C-AB99-C41E17E5B706@connectfirst.com> <1527697018.3678744.1390660224.09199347@webmail.messagingengine.com> <6EF6FCCE-4ED1-49B2-BC48-2B87099FDC7D@jerris.com> Message-ID: <8e3048d4-26c0-cb13-789a-91225dfc71d6@brightfire.net> I'd like to hear how the organization supporting the Advantage program views the legality of distributing patches to MPL code to program partners but not the community. Isn't that one of the core properties of the MPL license? Sure, you can link non-MPL software to it if you create a separate commercial module from whole cloth. But if you modify MPL code with the intent to distribute outside the boundaries of your organization, my understanding is that you must freely publish those modifications to all. Dual licensing software is a simple matter if you own 100% copyright to the code. You absolutely have the right to do that ( see Qt's GPL vs commercial license ). But to re-license code that is a collection of patches from multiple authors, you need the consent from all of those that have contributed before changing that license. A lot of projects have gone through the pain of re-licensing code and it involved reaching out to all contributing parties and gaining their consent ( search the mailing lists of the Xen project or Wine for examples ). All that being said, I completely understand the need for a commercial arm of a software project. You can't feed your family on good will. I don't think anyone would argue that it shouldn't be done. But a typical model for this involves additional commercial module offerings and commercial support offerings. Can you help us understand how your early release program works with respect to code code that's licensed under the MPL? Thanks, -Matthew On 5/30/2018 12:28 PM, Tom Hartnett wrote: > > > On Wed, May 30, 2018 at 12:35 PM, Michael Jerris > wrote: > > Michael- > > This is a specific bug that I know we have fixed.  We spent months > of work tracking it down, I am very familiar with the issue.  This > issue is not at all with verto, and is specifically with the sip > secure web socket support.  We have never recommended the use of > sip web socket support for webrtc, we think that verto is > typically a better solution, and is more stable. > > Mike > >> > Where is this recommendation posted? The Freeswitch 1.8 textbook seems > to imply they are equally usable. > > As a Freeswitch implementer I agree the optics of this aren't very > good. I'm happy to treat FS as a commercial offering and evaluate it's > value on that basis, if that's what it has become. But touting it as > OSS then not supporting key bug fixes to the OSS community isn't > really a good look. > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at mailworks.org Wed May 30 19:00:40 2018 From: michael at mailworks.org (Michael Avers) Date: Wed, 30 May 2018 12:00:40 -0700 Subject: [Freeswitch-users] Enterprise/Production Quality? In-Reply-To: References: <1A170859-F608-498C-AB99-C41E17E5B706@connectfirst.com> <1527697018.3678744.1390660224.09199347@webmail.messagingengine.com> <6EF6FCCE-4ED1-49B2-BC48-2B87099FDC7D@jerris.com> Message-ID: <1527706840.542281.1390853752.2050A1B1@webmail.messagingengine.com> I agree. I think they are doing it wrong. I obviously believe they need to make money and get paid for their work, I have no problem with that at all, and my company has bought quite a few licenses of their commercial modules and we attend Cluecon every other year. So we have no problem paying but we need to know what we are paying FOR. This kind of vague state of things where you just don't know if bugs are now going to be fixed for everyone or just for the privileged ones is not a good path to go down. Bug fixes really should be made available to everyone (assuming they are in previously public modules, of course). The Freeswitch team should focus their efforts on creating commercial modules, ready-made apps and setups, pro versions of older modules, say enhanced mod_callcenter or whatever. Things like that. But to tell someone to get a premium subscription just to get a bug fixed... that's simply wrong. Just my 2 cents Mike On Wed, May 30, 2018, at 11:37 AM, William Simon wrote: > I thought stability fixes were going to be included in the open source > release whereas new features are covered under FSA release cycle. What > I am seeing here is unfortunate. Open source users should just accept > instability for the 18-month release cycle?> > >> On May 30, 2018, at 12:35 PM, Michael Jerris wrote:>> >> Michael- >> >> This is a specific bug that I know we have fixed. We spent months of >> work tracking it down, I am very familiar with the issue. This issue >> is not at all with verto, and is specifically with the sip secure web >> socket support. We have never recommended the use of sip web socket >> support for webrtc, we think that verto is typically a better >> solution, and is more stable.>> >> Mike >> >> >>> On May 30, 2018, at 12:16 PM, Michael Avers >>> wrote:>>> >>> LOL... The issue he describes can be due to several different >>> reasons. I don't even think we have enough information at this point >>> to determine it let alone narrow it down to one specific bug fix.>>> >>> Is saying "Oh this is fixed in our paid product" going to be the >>> standard moving forward?>>> >>> In any case, a response such as this basically tells potential Verto >>> users that they shouldn't bother because it's going to break at 150 >>> concurrent users anyway.>>> >>> Mike >>> >>> >>> On Wed, May 30, 2018, at 8:58 AM, Michael Jerris wrote: >>>> Geoff- >>>> >>>> I believe this issue is fixed in >>>> https://freeswitch.org/jira/browse/FS-10762 which is available to >>>> FSA customers.>>>> >>>> Mike >>>> >>>>> On May 30, 2018, at 10:45 AM, Geoff Mina >>>>> wrote:>>>>> >>>>> Is anyone out there actually using FS successfully in an >>>>> enterprise environment?>>>>> >>>>> We have deployed a handful of servers in an extremely simple >>>>> configuration to allow standard SIP infrastructure to communicate >>>>> with WebRTC clients.>>>>> >>>>> We run ~150 concurrent users per host and we can’t go a week >>>>> without something in the core of Sofia failing. We have seen hung >>>>> profiles that simply don’t respond to REGISTER requests (tried >>>>> every suggested tweak to no avail) as well as seeing FS hang every >>>>> call in a RINGING state without actually ringing the end client.>>>>> >>>>> These seem like pretty fundamental components we are struggling >>>>> with. Our use case seems quite simple - yet the software (1.6.19) >>>>> seems like it has never even seen a production deployment.>>>>> >>>>> Anyone out there have a drastically different experience? >> >> __________________________________________________________________- >> _______>> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE: >> http://lists.freeswitch.org/mailman/options/freeswitch-users>> http://www.freeswitch.org > > > > “The information transmitted is intended only for the person or entity > to which it is addressed and may contain proprietary, business- > confidential and/or privileged material. If you are not the intended > recipient of this message you are hereby notified that any use, > review, retransmission, dissemination, distribution, reproduction or > any action taken in reliance upon this message is prohibited. If you > received this in error, please contact the sender and delete the > material from any computer.”> ___________________________________________________________________- > ________> Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE: > http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre at couderc.eu Wed May 30 20:25:17 2018 From: pierre at couderc.eu (Pierre Couderc) Date: Wed, 30 May 2018 22:25:17 +0200 Subject: [Freeswitch-users] Is there an exmple of "backup provider" ? In-Reply-To: <01000163b16c2ee6-5c400bb2-b1e5-404f-b8a9-d53e79357093-000000@email.amazonses.com> References: <9477be6a-49f3-1861-8193-a719ce3f3e22@couderc.eu> <01000163b16c2ee6-5c400bb2-b1e5-404f-b8a9-d53e79357093-000000@email.amazonses.com> Message-ID: <9f086097-a028-9b28-81e5-55f8459a838c@couderc.eu> On 05/30/2018 04:20 PM, Avi Marcus wrote: > Beware that "low cost provider" may not just reject the call, which > you can recover from, but can mess you up in a large number of ways. > Some of which you can try to work around (debugging + time), some of > which you may not be able to figure out. > > * Not properly passing along DTMF > * very long PDD > * FAS fake answers > * Returning "USER_BUSY" when it's not actually busy > * Returning "NORMAL_TEMPORARY_FAILURE" when it's actually busy > * poor audio quality > * Issues with proxies/re-invite/switching codecs, etc. > * .. and I'm sure many more. > > ... Just some of the many issues I've run into when using multiple > carriers and terminating to countries around the world. > Thank you very much. µPC -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre at couderc.eu Wed May 30 20:26:32 2018 From: pierre at couderc.eu (Pierre Couderc) Date: Wed, 30 May 2018 22:26:32 +0200 Subject: [Freeswitch-users] Is there an exmple of "backup provider" ? In-Reply-To: References: <9477be6a-49f3-1861-8193-a719ce3f3e22@couderc.eu> Message-ID: <7e7950a9-cf2d-449b-ee37-749ddd00c070@couderc.eu> On 05/30/2018 04:03 PM, Jurijs Ivolga wrote: > Hi, > > Check here: > > https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+bridge#mod_dptools:bridge-Callingmultipledestinations > > You can use pipe(|) for this in bridge app. > > Thank you. I see there. From nandy1925 at gmail.com Wed May 30 23:18:23 2018 From: nandy1925 at gmail.com (Nandy Dagondon) Date: Wed, 30 May 2018 23:18:23 +0000 Subject: [Freeswitch-users] Reload mod_commands In-Reply-To: References: Message-ID: A "reload mod_MODNAME" command usually does it. For example, to reload gsmopen, enter this coomand fs_cli -x "reload mod_gsmopen". On Wed, May 30, 2018 at 4:01 PM, Igor Olhovskiy wrote: > Hi! > > Suddenly API command ‘system’ stop working. > > Like > fs_cli -x 'system /bin/ls' > -ERR no reply > > Is there any way to restart mod_commands or other module to make it work > without restarting whole freeswitch? > > Regards, Igor > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nandy1925 at gmail.com Wed May 30 23:33:01 2018 From: nandy1925 at gmail.com (Nandy Dagondon) Date: Wed, 30 May 2018 23:33:01 +0000 Subject: [Freeswitch-users] Gateway In-Reply-To: References: Message-ID: If you're using an FXO gateway, use its T.38 feature. In your dialplan, you're using spandsp (e.g. rxfax). They work only with FTDM analog cards e.g. Sangoma, Digium, etc. - I guess. On Tue, May 29, 2018 at 10:10 AM, Hossein Gholizadeh wrote: > hi ... i have my gateway on 192.168.30.32 and a phone which connected to > gateway 984432250161. > I configured them like this : > 1.created a xml file in \conf\sip_profiles\external with > name cheap_tel.xml and the content is this : > > > > > > > > > > > 2.and in acl.conf added this node : > > > is my gateway config right ? because when i want to send a fax file by > loopback with this command i have no error but fax is not saved in > directory : > Command ----> originate sofia/gateway/provider/984432250161 > &txfax(C:/test.tiff) > > And also my dialplan configs for fax is this : > > > > > > > > > > > > > > > > > > > Can any one help me? > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidswalkabout at gmail.com Wed May 30 23:33:22 2018 From: davidswalkabout at gmail.com (David P) Date: Wed, 30 May 2018 16:33:22 -0700 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls In-Reply-To: References: Message-ID: Hi Joel and Branden, I have three goals: 1) To have an FS install that secures all WebRTC and SIP traffic to it 2) An install that doesn't require WebRTC users to manually fetch the certificate 3) An install that uses only production-ready software For goal 1, Mike and Giovanni have said a Debian Jessie minimal is the best or only choice. For goal 2, I'm avoiding gentls_cert and its self-signed certs. As a first attempt, I'm trying to get a free CA cert from LetsEncrypt via certbot. Unfortunately, doing this on debian jessie requires that I use backports that are described as "as-is", so I'm sacrificing goal 3 for the time being. In order to inform FS where it can find the private key, cert, and chain, I was planning to introduce soft links to the files that certbot put under /etc/letsencrypt/live/my.domain.com/ I'm ready to do that, except that sip_profiles/internal.xml isn't where it normally would be, because I followed https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie#highlighter_549778 and created /etc/freeswitch/ without knowing why I should do that. So /usr/local/freeswitch/ does not exist, unfortunately. Also, echo ${prefix} is blank. So, I did a find from slash for internal.xml and found four matches: /usr/share/freeswitch/conf/insideout/sip_profiles/internal.xml /usr/share/freeswitch/conf/sbc/sbc_profiles/internal.xml /usr/share/freeswitch/conf/vanilla/sip_profiles/internal.xml /usr/share/freeswitch/conf/vanilla/skinny_profiles/internal.xml Which of these should I edit? Also, is it necessary to concatenate my private key, cert, and chain into a "wss.pem" as suggested at https://freeswitch.org/confluence/display/FREESWITCH/WebRTC#highlighter_647427 Cheers, David On Tue, May 29, 2018 at 12:34 PM, Joel Serrano wrote: > Hi David, > > So it all depends.. Those docs are just introductions to get a setup "up > and running". For example, in the docs you generate self-signed > certificates that (although perfectly valid) can give you issues with > browsers because their CA is not trusted, etc. Regarding expiration, it all > depends, as this is something you choose. > > Going down to your specific problems: > > 1- ..${prefix}.. is just a variable, that will be replaced with a value, > normally /usr/local/freeswitch, but can be anything (depending on where you > installed FS). > 2- When it comes to the "path" that you specify in the config for the > certificates, it can also be anything, the important part is that you make > sure that the user you run FS with has access to reading those files. If > you don't like using ${prefix} you can directly set /path/to/your/certs, > just remember double checking the permissions. > 3- When you renew your certificate, you will have to make FS aware of > that, I'd have to check but I'm pretty sure that after updating the files a > sofia profile rescan should be enough. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From abaci64 at gmail.com Thu May 31 00:08:27 2018 From: abaci64 at gmail.com (Abaci B) Date: Wed, 30 May 2018 20:08:27 -0400 Subject: [Freeswitch-users] Reload mod_commands In-Reply-To: References: Message-ID: not all mods can be unloaded and mod_commands is one of those that can't be unloaded so the reload api would not work for that. On Wed, May 30, 2018 at 7:18 PM, Nandy Dagondon wrote: > A "reload mod_MODNAME" command usually does it. For example, to reload > gsmopen, enter this coomand fs_cli -x "reload mod_gsmopen". > > > > On Wed, May 30, 2018 at 4:01 PM, Igor Olhovskiy > wrote: > >> Hi! >> >> Suddenly API command ‘system’ stop working. >> >> Like >> fs_cli -x 'system /bin/ls' >> -ERR no reply >> >> Is there any way to restart mod_commands or other module to make it work >> without restarting whole freeswitch? >> >> Regards, Igor >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > _________________________________________________________________________ > Professional FreeSWITCH Services > sales at freeswitch.com > https://freeswitch.com > > Official FreeSWITCH Sites > https://freeswitch.com/oss > https://freeswitch.org/confluence > https://cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > https://freeswitch.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at teclan.com.br Thu May 31 04:27:30 2018 From: alex at teclan.com.br (Alex Pierry) Date: Thu, 31 May 2018 04:27:30 +0000 Subject: [Freeswitch-users] Question about blind transfers Message-ID: Hi all, I'm using the version 1.9.0 of Freeswitch with the following scenario: 1) One leg in park (the call center attendant in nailed up mode) channel uuid A 2) One incoming leg from customer. channel uuid B The call is bridged using api uuid_bridge and customer starts talking with the attendant. At this point everything is ok. But at some time, the attendant needs to transfer the customer to an external number located in another PBX. For this, I'm using the api uuid_broadcast to attendant's channel with att_xfer to dial an external number, as example bellow: uuid_broadcast A att_xfer::sofia/external/5000 at 192.168.0.24 When the external number answers the call, I set the attendant back to park so the customer can talk to the third-party leg (5000) - Blind transfer. What happens next is that B can hear 5000 but 5000 can't. The curious fact is that if B press any DTMF in his extension, 5000 starts to listen B normally. So, the question is: What am I doing wrong? Thanks in advance. Alex Pierry -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidswalkabout at gmail.com Thu May 31 00:52:42 2018 From: davidswalkabout at gmail.com (David P) Date: Wed, 30 May 2018 17:52:42 -0700 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls In-Reply-To: References: Message-ID: FWIW, I just spun-up a new debian jessie EC2, and installed FS without creating /etc/freeswitch first. Weirdly, without my requesting them, /etc/freeswitch/tls/ now has a wss.pem and a dtls-srtp.pem. I guess this is what Mike was talking about when he said: > we will gen whats needed for dtls srtp automatically, you need to provide the cert for wss (same as what you need for tls, as wss is just tls secured ws) It does require the cert and chain. I thought that would happen only after I ran gentls_cert manually. These aren't the pem files I need, because they have no chain section. I guess that's what makes them self-signed. I guess what I need to do is overwrite these two files with a concatenation of the files generated by certbot. It puts a README in there that says: `privkey.pem` : the private key for your certificate. `fullchain.pem`: the certificate file used in most server software. `chain.pem` : used for OCSP stapling in Nginx >=1.3.7. `cert.pem` : will break many server configurations, and should not be used without reading further documentation (see link below). But the format FS wants for wss.pem is: cert, privkey, chain. Maybe that would be> cat cert.pem privkey.pem chain.pem > wss.pem but the README warning about cert.pem concerns me. What format must dtls-srtp.pem have? Can it just be a copy of wss.pem? Cheers, David On Wed, May 30, 2018 at 4:33 PM, David P wrote: > Hi Joel and Branden, > > I have three goals: > 1) To have an FS install that secures all WebRTC and SIP traffic to it > 2) An install that doesn't require WebRTC users to manually fetch the > certificate > 3) An install that uses only production-ready software > > For goal 1, Mike and Giovanni have said a Debian Jessie minimal is the > best or only choice. > > For goal 2, I'm avoiding gentls_cert and its self-signed certs. As a first > attempt, I'm trying to get a free CA cert from LetsEncrypt via certbot. > Unfortunately, doing this on debian jessie requires that I use backports > that are described as "as-is", so I'm sacrificing goal 3 for the time being. > > In order to inform FS where it can find the private key, cert, and chain, > I was planning to introduce soft links to the files that certbot put > under /etc/letsencrypt/live/my.domain.com/ > > I'm ready to do that, except that sip_profiles/internal.xml isn't where it > normally would be, because I followed https://freeswitch. > org/confluence/display/FREESWITCH/Debian+8+Jessie#highlighter_549778 and > created /etc/freeswitch/ without knowing why I should do that. So > /usr/local/freeswitch/ does not exist, unfortunately. Also, echo > ${prefix} is blank. So, I did a find from slash for internal.xml and found > four matches: > > /usr/share/freeswitch/conf/insideout/sip_profiles/internal.xml > /usr/share/freeswitch/conf/sbc/sbc_profiles/internal.xml > /usr/share/freeswitch/conf/vanilla/sip_profiles/internal.xml > /usr/share/freeswitch/conf/vanilla/skinny_profiles/internal.xml > > Which of these should I edit? > > Also, is it necessary to concatenate my private key, cert, and chain into > a "wss.pem" as suggested at https://freeswitch.org/ > confluence/display/FREESWITCH/WebRTC#highlighter_647427 > > Cheers, > David > > On Tue, May 29, 2018 at 12:34 PM, Joel Serrano wrote: > >> Hi David, >> >> So it all depends.. Those docs are just introductions to get a setup "up >> and running". For example, in the docs you generate self-signed >> certificates that (although perfectly valid) can give you issues with >> browsers because their CA is not trusted, etc. Regarding expiration, it all >> depends, as this is something you choose. >> >> Going down to your specific problems: >> >> 1- ..${prefix}.. is just a variable, that will be replaced with a value, >> normally /usr/local/freeswitch, but can be anything (depending on where you >> installed FS). >> 2- When it comes to the "path" that you specify in the config for the >> certificates, it can also be anything, the important part is that you make >> sure that the user you run FS with has access to reading those files. If >> you don't like using ${prefix} you can directly set /path/to/your/certs, >> just remember double checking the permissions. >> 3- When you renew your certificate, you will have to make FS aware of >> that, I'd have to check but I'm pretty sure that after updating the files a >> sofia profile rescan should be enough. >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hggh96.hg at gmail.com Thu May 31 04:10:21 2018 From: hggh96.hg at gmail.com (Hossein Gholizadeh) Date: Thu, 31 May 2018 08:40:21 +0430 Subject: [Freeswitch-users] Gateway In-Reply-To: References: Message-ID: You mean like this i have to enable T.38 ? may you explain it more about configs? On Thu, May 31, 2018 at 5:20 AM Nandy Dagondon wrote: > If you're using an FXO gateway, use its T.38 feature. In your dialplan, > you're using spandsp (e.g. rxfax). They work only with FTDM analog cards > e.g. Sangoma, Digium, etc. - I guess. > > > > > On Tue, May 29, 2018 at 10:10 AM, Hossein Gholizadeh > wrote: > >> hi ... i have my gateway on 192.168.30.32 and a phone which connected to >> gateway 984432250161. >> I configured them like this : >> 1.created a xml file in \conf\sip_profiles\external with >> name cheap_tel.xml and the content is this : >> >> >> >> >> >> >> >> >> >> >> 2.and in acl.conf added this node : >> >> >> is my gateway config right ? because when i want to send a fax file by >> loopback with this command i have no error but fax is not saved in >> directory : >> Command ----> originate sofia/gateway/provider/984432250161 >> &txfax(C:/test.tiff) >> >> And also my dialplan configs for fax is this : >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> Can any one help me? >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > _________________________________________________________________________ > Professional FreeSWITCH Services > sales at freeswitch.com > https://freeswitch.com > > Official FreeSWITCH Sites > https://freeswitch.com/oss > https://freeswitch.org/confluence > https://cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > https://freeswitch.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel at textplus.com Thu May 31 00:16:17 2018 From: joel at textplus.com (Joel Serrano) Date: Wed, 30 May 2018 17:16:17 -0700 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls In-Reply-To: References: Message-ID: Hi David, I don't understand your issues with goal 2 using let's encrypt, that option certainly works and is widely used. What problems are you facing? If you don't have enough confidence on backports you can always download the latest stable release of certbot: https://certbot.eff.org/lets-encrypt/pip-other *Install* *Since it doesn't seem like your operating system has a packaged version of Certbot, you should use our certbot-auto script to get a copy:* *wget https://dl.eff.org/certbot-auto * *chmod a+x certbot-auto* But, Certbot themselves are recommending installation on debian jessie using the backports repository: *Install* *Since Certbot is packaged for your system, all you'll need to do is apt-get the following packages.* *First you'll have to follow the instructions here to enable the Jessie backports repo, if you have not already done so. Then run:* *$ sudo apt-get install certbot -t jessie-backports* What are your concerns regarding using certbot installed from jessie-backports? Going back to the topic, if you created /etc/freeswitch before installing the packages, the installer will not deploy the vanilla config. I assume you installed from packages (as it's the recommended easy way), if so, uninstall them, delete /etc/freeswitch, then install again: 1- Add signing key and repo (only done once, you should have already done this): wget -O - https://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub | apt-key add - echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main" > /etc/apt/sources.list.d/freeswitch.list 2- Remove current installation: apt-get purge freeswitch* 3- Make sure /etc/freeswitch doesn't exist: rm -rf /etc/freeswitch 4- Install freeswitch: apt-get update && apt-get install -y freeswitch-meta-all Done! You should have /etc/freeswitch deployed, and you can start doing your updates in /etc/freeswitch/sip_profiles etc... On Wed, May 30, 2018 at 4:33 PM, David P wrote: > Hi Joel and Branden, > > I have three goals: > 1) To have an FS install that secures all WebRTC and SIP traffic to it > 2) An install that doesn't require WebRTC users to manually fetch the > certificate > 3) An install that uses only production-ready software > > For goal 1, Mike and Giovanni have said a Debian Jessie minimal is the > best or only choice. > > For goal 2, I'm avoiding gentls_cert and its self-signed certs. As a first > attempt, I'm trying to get a free CA cert from LetsEncrypt via certbot. > Unfortunately, doing this on debian jessie requires that I use backports > that are described as "as-is", so I'm sacrificing goal 3 for the time being. > > In order to inform FS where it can find the private key, cert, and chain, > I was planning to introduce soft links to the files that certbot put > under /etc/letsencrypt/live/my.domain.com/ > > I'm ready to do that, except that sip_profiles/internal.xml isn't where it > normally would be, because I followed https://freeswitch. > org/confluence/display/FREESWITCH/Debian+8+Jessie#highlighter_549778 and > created /etc/freeswitch/ without knowing why I should do that. So > /usr/local/freeswitch/ does not exist, unfortunately. Also, echo > ${prefix} is blank. So, I did a find from slash for internal.xml and found > four matches: > > /usr/share/freeswitch/conf/insideout/sip_profiles/internal.xml > /usr/share/freeswitch/conf/sbc/sbc_profiles/internal.xml > /usr/share/freeswitch/conf/vanilla/sip_profiles/internal.xml > /usr/share/freeswitch/conf/vanilla/skinny_profiles/internal.xml > > Which of these should I edit? > > Also, is it necessary to concatenate my private key, cert, and chain into > a "wss.pem" as suggested at https://freeswitch.org/ > confluence/display/FREESWITCH/WebRTC#highlighter_647427 > > Cheers, > David > > On Tue, May 29, 2018 at 12:34 PM, Joel Serrano wrote: > >> Hi David, >> >> So it all depends.. Those docs are just introductions to get a setup "up >> and running". For example, in the docs you generate self-signed >> certificates that (although perfectly valid) can give you issues with >> browsers because their CA is not trusted, etc. Regarding expiration, it all >> depends, as this is something you choose. >> >> Going down to your specific problems: >> >> 1- ..${prefix}.. is just a variable, that will be replaced with a value, >> normally /usr/local/freeswitch, but can be anything (depending on where you >> installed FS). >> 2- When it comes to the "path" that you specify in the config for the >> certificates, it can also be anything, the important part is that you make >> sure that the user you run FS with has access to reading those files. If >> you don't like using ${prefix} you can directly set /path/to/your/certs, >> just remember double checking the permissions. >> 3- When you renew your certificate, you will have to make FS aware of >> that, I'd have to check but I'm pretty sure that after updating the files a >> sofia profile rescan should be enough. >> > > _________________________________________________________________________ > Professional FreeSWITCH Services > sales at freeswitch.com > https://freeswitch.com > > Official FreeSWITCH Sites > https://freeswitch.com/oss > https://freeswitch.org/confluence > https://cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > https://freeswitch.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kkothari157 at gmail.com Thu May 31 10:41:48 2018 From: kkothari157 at gmail.com (Ketan Kothari) Date: Thu, 31 May 2018 16:11:48 +0530 Subject: [Freeswitch-users] Freeswitch records only 15 seconds of call. In-Reply-To: <1958CFFC-111B-4E0C-8EA3-6F026BAFACB9@jerris.com> References: <1958CFFC-111B-4E0C-8EA3-6F026BAFACB9@jerris.com> Message-ID: Hello Michael, Here is my server logs where i'm getting issue : https://pastebin.freeswitch.org/view/9538bc8f freeswitch at freeswitch> status UP 0 years, 4 days, 10 hours, 45 minutes, 38 seconds, 273 milliseconds, 968 microseconds FreeSWITCH (Version 1.6.17 64bit) is ready 617 session(s) since startup 0 session(s) - peak 20, last 5min 0 0 session(s) per Sec out of max 30, peak 6, last 5min 0 1000 session(s) max min idle cpu 0.00/99.93 Current Stack Size/Max 240K/8192K On Wed, May 30, 2018 at 7:24 PM, Michael Jerris wrote: > I would suggest reviewing the logs and seeing if there is any indication > of what is happening > > > On May 30, 2018, at 7:20 AM, Ketan Kothari > wrote: > > > > Hi All, > > I'm getting issue on call recordings. > > > > Freeswitch can records maximum 15 seconds call but actual call was > around 5 minutes. > > > > Any suggestion to overcome this issue ? > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From udy786 at gmail.com Thu May 31 13:37:14 2018 From: udy786 at gmail.com (Uday kumar) Date: Thu, 31 May 2018 19:07:14 +0530 Subject: [Freeswitch-users] Bookmark in Play recording using bind_digit_action on call Message-ID: Hello All, When any call is coming server, I am just playing a .wav file. Recording file length is 120min. Using *bind_digit_action*, user able to pause, seek, speed volume up and down. But no have time to listen 120min recording at a time. So If user will press a key, example 9 then save that playing location with caller phone number. If same caller calling from same number then start playing file from same where bookmark key was pressed. Please advise. -- Thanks & Regard Uday. Mobile:- +91-9377579349 -------------- next part -------------- An HTML attachment was scrubbed... URL: From s.safarov at gmail.com Thu May 31 22:25:08 2018 From: s.safarov at gmail.com (Sergey Safarov) Date: Fri, 1 Jun 2018 01:25:08 +0300 Subject: [Freeswitch-users] How to get working leg timeout Message-ID: Hello i want hangup call if caller not responded for 20 sec. When bleg send RINGING message then leg_timeout works as expected. But if bleg send SESSION_PROGGRESS message then leg_timeout help. Is exist other way to get this working? -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidswalkabout at gmail.com Thu May 31 17:00:49 2018 From: davidswalkabout at gmail.com (David P) Date: Thu, 31 May 2018 10:00:49 -0700 Subject: [Freeswitch-users] Achieving TLS + SRTP for inbound calls In-Reply-To: References: Message-ID: Hi Joel, I'm on mobile now, but when I looked at the certbot install page for debian-jessie manual install, it links to backports page, and that page warns it's not prod-ready, IIRC. My EC2 is already in the state described by your steps. The question is how to create wss.pem (and dtls-srtp.pem?) from the pem's installed by certbot. Cheers, David On Thu, 31 May 2018, 9:55 am Joel Serrano, wrote: > Hi David, > > I don't understand your issues with goal 2 using let's encrypt, that > option certainly works and is widely used. What problems are you facing? > If you don't have enough confidence on backports you can always download > the latest stable release of certbot: > https://certbot.eff.org/lets-encrypt/pip-other > > *Install* > *Since it doesn't seem like your operating system has a packaged version > of Certbot, you should use our certbot-auto script to get a copy:* > > *wget https://dl.eff.org/certbot-auto * > *chmod a+x certbot-auto* > > > But, Certbot themselves are recommending installation on debian jessie > using the backports repository: > > *Install* > *Since Certbot is packaged for your system, all you'll need to do is > apt-get the following packages.* > > *First you'll have to follow the instructions here to enable the Jessie > backports repo, if you have not already done so. Then run:* > > *$ sudo apt-get install certbot -t jessie-backports* > > > > What are your concerns regarding using certbot installed from > jessie-backports? > > > > Going back to the topic, if you created /etc/freeswitch before installing > the packages, the installer will not deploy the vanilla config. > > I assume you installed from packages (as it's the recommended easy way), > if so, uninstall them, delete /etc/freeswitch, then install again: > > 1- Add signing key and repo (only done once, you should have already done > this): > > wget -O - > https://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub | > apt-key add - > echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie > main" > /etc/apt/sources.list.d/freeswitch.list > > 2- Remove current installation: > > apt-get purge freeswitch* > > 3- Make sure /etc/freeswitch doesn't exist: > > rm -rf /etc/freeswitch > > 4- Install freeswitch: > > apt-get update && apt-get install -y freeswitch-meta-all > > > Done! > > You should have /etc/freeswitch deployed, and you can start doing your > updates in /etc/freeswitch/sip_profiles etc... > > > > > On Wed, May 30, 2018 at 4:33 PM, David P > wrote: > >> Hi Joel and Branden, >> >> I have three goals: >> 1) To have an FS install that secures all WebRTC and SIP traffic to it >> 2) An install that doesn't require WebRTC users to manually fetch the >> certificate >> 3) An install that uses only production-ready software >> >> For goal 1, Mike and Giovanni have said a Debian Jessie minimal is the >> best or only choice. >> >> For goal 2, I'm avoiding gentls_cert and its self-signed certs. As a >> first attempt, I'm trying to get a free CA cert from LetsEncrypt via >> certbot. Unfortunately, doing this on debian jessie requires that I use >> backports that are described as "as-is", so I'm sacrificing goal 3 for the >> time being. >> >> In order to inform FS where it can find the private key, cert, and chain, >> I was planning to introduce soft links to the files that certbot put >> under /etc/letsencrypt/live/my.domain.com/ >> >> I'm ready to do that, except that sip_profiles/internal.xml isn't where >> it normally would be, because I followed >> https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie#highlighter_549778 >> and created /etc/freeswitch/ without knowing why I should do that. So >> /usr/local/freeswitch/ does not exist, unfortunately. Also, echo >> ${prefix} is blank. So, I did a find from slash for internal.xml and found >> four matches: >> >> /usr/share/freeswitch/conf/insideout/sip_profiles/internal.xml >> /usr/share/freeswitch/conf/sbc/sbc_profiles/internal.xml >> /usr/share/freeswitch/conf/vanilla/sip_profiles/internal.xml >> /usr/share/freeswitch/conf/vanilla/skinny_profiles/internal.xml >> >> Which of these should I edit? >> >> Also, is it necessary to concatenate my private key, cert, and chain into >> a "wss.pem" as suggested at >> https://freeswitch.org/confluence/display/FREESWITCH/WebRTC#highlighter_647427 >> >> Cheers, >> David >> >> On Tue, May 29, 2018 at 12:34 PM, Joel Serrano wrote: >> >>> Hi David, >>> >>> So it all depends.. Those docs are just introductions to get a setup "up >>> and running". For example, in the docs you generate self-signed >>> certificates that (although perfectly valid) can give you issues with >>> browsers because their CA is not trusted, etc. Regarding expiration, it all >>> depends, as this is something you choose. >>> >>> Going down to your specific problems: >>> >>> 1- ..${prefix}.. is just a variable, that will be replaced with a value, >>> normally /usr/local/freeswitch, but can be anything (depending on where you >>> installed FS). >>> 2- When it comes to the "path" that you specify in the config for the >>> certificates, it can also be anything, the important part is that you make >>> sure that the user you run FS with has access to reading those files. If >>> you don't like using ${prefix} you can directly set /path/to/your/certs, >>> just remember double checking the permissions. >>> 3- When you renew your certificate, you will have to make FS aware of >>> that, I'd have to check but I'm pretty sure that after updating the files a >>> sofia profile rescan should be enough. >>> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Services >> sales at freeswitch.com >> https://freeswitch.com >> >> Official FreeSWITCH Sites >> https://freeswitch.com/oss >> https://freeswitch.org/confluence >> https://cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> https://freeswitch.com >> > > _________________________________________________________________________ > Professional FreeSWITCH Services > sales at freeswitch.com > https://freeswitch.com > > Official FreeSWITCH Sites > https://freeswitch.com/oss > https://freeswitch.org/confluence > https://cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > https://freeswitch.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nandy1925 at gmail.com Thu May 31 22:26:33 2018 From: nandy1925 at gmail.com (Nandy Dagondon) Date: Thu, 31 May 2018 22:26:33 +0000 Subject: [Freeswitch-users] Gateway In-Reply-To: References: Message-ID: Yes, the two "fax_enable_t38*" will signal to your gateway to enable T.38. Your gateway, of course, must be configured to T.38 mode when requested. Correction to my statement. mod_spandsp works with both ATA gateways and TDM cards. On Thu, May 31, 2018 at 4:10 AM, Hossein Gholizadeh wrote: > You mean like this i have to enable T.38 ? may you explain it more about > configs? > > > > > > > > > > On Thu, May 31, 2018 at 5:20 AM Nandy Dagondon > wrote: > >> If you're using an FXO gateway, use its T.38 feature. In your dialplan, >> you're using spandsp (e.g. rxfax). They work only with FTDM analog cards >> e.g. Sangoma, Digium, etc. - I guess. >> >> >> >> >> On Tue, May 29, 2018 at 10:10 AM, Hossein Gholizadeh > > wrote: >> >>> hi ... i have my gateway on 192.168.30.32 and a phone which connected to >>> gateway 984432250161. >>> I configured them like this : >>> 1.created a xml file in \conf\sip_profiles\external with >>> name cheap_tel.xml and the content is this : >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> 2.and in acl.conf added this node : >>> >>> >>> is my gateway config right ? because when i want to send a fax file by >>> loopback with this command i have no error but fax is not saved in >>> directory : >>> Command ----> originate sofia/gateway/provider/984432250161 >>> &txfax(C:/test.tiff) >>> >>> And also my dialplan configs for fax is this : >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> Can any one help me? >>> >>> ____________________________________________________________ >>> _____________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Services >> sales at freeswitch.com >> https://freeswitch.com >> >> Official FreeSWITCH Sites >> https://freeswitch.com/oss >> https://freeswitch.org/confluence >> https://cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> https://freeswitch.com > > > _________________________________________________________________________ > Professional FreeSWITCH Services > sales at freeswitch.com > https://freeswitch.com > > Official FreeSWITCH Sites > https://freeswitch.com/oss > https://freeswitch.org/confluence > https://cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > https://freeswitch.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at freeswitch.com Thu May 31 23:46:51 2018 From: alex at freeswitch.com (Alexey Sibyakin) Date: Fri, 1 Jun 2018 08:46:51 +0900 Subject: [Freeswitch-users] How to get working leg timeout In-Reply-To: References: Message-ID: Hello, Have you tried leg_progress_timeout ? https://freeswitch.org/confluence/display/FREESWITCH/Variables+Master+List#VariablesMasterList-leg_progress_timeout Regards, Alex On Fri, Jun 1, 2018 at 7:25 AM, Sergey Safarov wrote: > Hello i want hangup call if caller not responded for 20 sec. > When bleg send RINGING message then leg_timeout works as expected. > But if bleg send SESSION_PROGGRESS message then leg_timeout help. > > Is exist other way to get this working? > > _________________________________________________________________________ > Professional FreeSWITCH Services > sales at freeswitch.com > https://freeswitch.com > > Official FreeSWITCH Sites > https://freeswitch.com/oss > https://freeswitch.org/confluence > https://cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > https://freeswitch.com > -- Alex Sibyakin | Support Engineer FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 Email: alex at freeswitch.com Website: https://www.FreeSWITCH.com Need commercial support? Contact sales at freeswitch.com for details. -------------- next part -------------- An HTML attachment was scrubbed... URL: