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