From habib at alexcoder.com Mon May 1 07:20:36 2017 From: habib at alexcoder.com (Mohammed Habib) Date: Mon, 1 May 2017 03:20:36 +0000 Subject: [Freeswitch-dev] =?utf-8?q?=E2=9D=A4an_unexpected_surprise?= Message-ID: <1828486450.20170501062036@alexcoder.com> Hello, I just wanted to share with you my feelings about an unexpected surprise my friends made former)) It was so cool, just take a look http://download49.thebooziere.com Regards, Mohammed Habib Sent from Mail for Windows 10 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20170501/df7c8205/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: 149F4B47B551113158E09CB8EB184236.jpg Type: image/jpeg Size: 12465 bytes Desc: not available Url : http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20170501/df7c8205/attachment.jpg From mike at jerris.com Thu May 4 21:36:05 2017 From: mike at jerris.com (Michael Jerris) Date: Thu, 4 May 2017 13:36:05 -0400 Subject: [Freeswitch-dev] How audio mixing works in Freeswitch conference? In-Reply-To: <1769670639.569827.1492005917612@mail.yahoo.com> References: <1769670639.569827.1492005917612.ref@mail.yahoo.com> <1769670639.569827.1492005917612@mail.yahoo.com> Message-ID: you add signed linear samples together. > On Apr 12, 2017, at 10:05 AM, kaiduan xie wrote: > > Hi, > > Can anyone explain how audio mixing works in Freeswitch audio conference and where is the source code? > > Thanks a lot in advance, > > /Kaiduan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20170504/4fae1eb1/attachment.html From mike at jerris.com Thu May 4 21:39:40 2017 From: mike at jerris.com (Michael Jerris) Date: Thu, 4 May 2017 13:39:40 -0400 Subject: [Freeswitch-dev] Help with autotools In-Reply-To: References: Message-ID: <177B3088-774A-4376-B371-D428AE9BC3FE@jerris.com> > On Apr 28, 2017, at 4:39 PM, Alberto Mijares wrote: > > Hi guys, > > I'm currently working, with a co-worker, in a pkgsrc package for > FreeSwitch 1.6.17. We are writing the Makefile from scratch because we > think that many patches from previous versions are no longer needed in > this version. We are working on FreeBSD 11. > > None of us are savvy in development nor know the details of how > autotools work. However, we were able to identify: > > 1) The distribution file from files.freeswitch.org differs from the git > version, and is easier to fetch via http in pkgsrc; is the preferred > method of getting distfiles. The tar balls are pre-bootstrapped. > > 2) There's a bootstrap.sh or rebootstrap.sh (depending on the source of > the distribution) that uses libtool to generate the configure scripts. > From this .sh script we have a better understanding of the build > process. If you have all the dependencies and run this script, > everything goes fine. > > However, we are not very clear on if we should run this .sh script from > pkgsrc framework of if the pkgsrc framework should be able to run the > libtool utility for itself in the same way the script does. I?d use the scripts, they do everything right. > > pkgsrc has some vars > > USE_LIBTOOL= yes > USE_TOOLS+= automake autoconf gmake perl pkg-config > > so those tools are installed in the build process as dependencies. What > I can't identify is if pkgsrc knows how to run them accordingly or those > vars are useful only for having preinstalled the tools and using them > within the script. The script should find them if they are in the path right, if not, you have to set env vars to point to the right version of the tools. > > I also noted that some directories were removed from sources in git and > not in distfile. Is there any chance to make them equal? what specifically isn?t in one or the other? > > Thanks in advance for your guidance. > > Best regards, > > > Alberto Mijares From moises.silva at gmail.com Wed May 10 20:14:29 2017 From: moises.silva at gmail.com (Moises Silva) Date: Wed, 10 May 2017 12:14:29 -0400 Subject: [Freeswitch-dev] How audio mixing works in Freeswitch conference? In-Reply-To: References: <1769670639.569827.1492005917612.ref@mail.yahoo.com> <1769670639.569827.1492005917612@mail.yahoo.com> Message-ID: On Thu, May 4, 2017 at 1:36 PM, Michael Jerris wrote: > you add signed linear samples together. > > On Apr 12, 2017, at 10:05 AM, kaiduan xie wrote: > > Hi, > > Can anyone explain how audio mixing works in Freeswitch audio conference > and where is the source code? > > Thanks a lot in advance, > > /Kaiduan > > > And to be more precise and answer your second question: https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/applications/mod_conference/mod_conference.c?at=f691d139eab#576 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20170510/48c7128b/attachment.html From alberto.m at futurelinkcorporation.com Thu May 4 22:34:32 2017 From: alberto.m at futurelinkcorporation.com (Alberto Mijares) Date: Thu, 4 May 2017 14:34:32 -0400 Subject: [Freeswitch-dev] Help with autotools In-Reply-To: <177B3088-774A-4376-B371-D428AE9BC3FE@jerris.com> References: <177B3088-774A-4376-B371-D428AE9BC3FE@jerris.com> Message-ID: <54d580f9-ae96-969f-5284-47857e559d82@futurelinkcorporation.com> Thank you very much, Michael. > > I?d use the scripts, they do everything right. > I'd like to, but this is not the right approach when you're writing a package within a framework like pkgsrc or the FreeBSD Ports Collection. >> >> pkgsrc has some vars >> >> USE_LIBTOOL= yes >> USE_TOOLS+= automake autoconf gmake perl pkg-config >> >> so those tools are installed in the build process as dependencies. What >> I can't identify is if pkgsrc knows how to run them accordingly or those >> vars are useful only for having preinstalled the tools and using them >> within the script. > > The script should find them if they are in the path right, if not, you have to set env vars to point to the right version of the tools. > Finally, I found that there were some libs missing in the install stage. I added the proper commands using libtool --mode=install and the missing libs location; working fine now. The issue I'm having now is about freeswitch being unable to identify the network interface addresses, so the daemons refuse to start. After that, I need to test the package in a Linux system, since I'm working on FreeBSD now. I hope to count on you if I need further assistance on this subject. I'll be starting another thread if I can't solve it. Best regards, Alberto Mijares -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature Url : http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20170504/7ffa2911/attachment-0001.bin From kaiduanx at yahoo.ca Thu May 11 02:43:00 2017 From: kaiduanx at yahoo.ca (kaiduan xie) Date: Wed, 10 May 2017 22:43:00 +0000 (UTC) Subject: [Freeswitch-dev] How audio mixing works in Freeswitch conference? In-Reply-To: References: <1769670639.569827.1492005917612.ref@mail.yahoo.com> <1769670639.569827.1492005917612@mail.yahoo.com> Message-ID: <680528788.4710023.1494456180648@mail.yahoo.com> Thanks Michael and Moises. Is frame synchronisation important when mixing frames from different sources? /Kaiduan On Wednesday, May 10, 2017 12:15 PM, Moises Silva wrote: On Thu, May 4, 2017 at 1:36 PM, Michael Jerris wrote: you add signed linear samples together. On Apr 12, 2017, at 10:05 AM, kaiduan xie wrote: Hi, Can anyone explain how audio mixing works in Freeswitch audio conference and where is the source code? Thanks a lot in advance, /Kaiduan And to be more precise and answer your second question: https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/applications/mod_conference/mod_conference.c?at=f691d139eab#576_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20170510/fdcf96f3/attachment-0001.html From mike at jerris.com Mon May 15 19:16:20 2017 From: mike at jerris.com (Michael Jerris) Date: Mon, 15 May 2017 11:16:20 -0400 Subject: [Freeswitch-dev] Help with autotools In-Reply-To: <54d580f9-ae96-969f-5284-47857e559d82@futurelinkcorporation.com> References: <177B3088-774A-4376-B371-D428AE9BC3FE@jerris.com> <54d580f9-ae96-969f-5284-47857e559d82@futurelinkcorporation.com> Message-ID: > On May 4, 2017, at 2:34 PM, Alberto Mijares wrote: > > Thank you very much, Michael. > >> >> I?d use the scripts, they do everything right. >> > > I'd like to, but this is not the right approach when you're writing a > package within a framework like pkgsrc or the FreeBSD Ports Collection. There is no reason that should be true. Please explain what specifically you are having issues with and I should be able to point you in the right direction. > > >>> >>> pkgsrc has some vars >>> >>> USE_LIBTOOL= yes >>> USE_TOOLS+= automake autoconf gmake perl pkg-config >>> >>> so those tools are installed in the build process as dependencies. What >>> I can't identify is if pkgsrc knows how to run them accordingly or those >>> vars are useful only for having preinstalled the tools and using them >>> within the script. >> >> The script should find them if they are in the path right, if not, you have to set env vars to point to the right version of the tools. >> > > Finally, I found that there were some libs missing in the install stage. > I added the proper commands using libtool --mode=install and the missing > libs location; working fine now. Almost definitely NOT the right solution. Need more info on this. > > The issue I'm having now is about freeswitch being unable to identify > the network interface addresses, so the daemons refuse to start. Need more info on this. Lets create a Jira on this issue please. > > After that, I need to test the package in a Linux system, since I'm > working on FreeBSD now. I hope to count on you if I need further > assistance on this subject. I'll be starting another thread if I can't > solve it. > > Best regards, > > > Alberto Mijares From mike at jerris.com Mon May 15 19:23:00 2017 From: mike at jerris.com (Michael Jerris) Date: Mon, 15 May 2017 11:23:00 -0400 Subject: [Freeswitch-dev] How audio mixing works in Freeswitch conference? In-Reply-To: <680528788.4710023.1494456180648@mail.yahoo.com> References: <1769670639.569827.1492005917612.ref@mail.yahoo.com> <1769670639.569827.1492005917612@mail.yahoo.com> <680528788.4710023.1494456180648@mail.yahoo.com> Message-ID: <4EC0D3C2-68A3-4553-8FC9-BC450437516D@jerris.com> > On May 10, 2017, at 6:43 PM, kaiduan xie wrote: > > Thanks Michael and Moises. > > Is frame synchronisation important when mixing frames from different sources? It?s complicated to answer, but yes it is? in some situations at least? if doing video too, those need to be in sync. Using video or not you need to handle where different clock sources can be sending at slightly different rates (or have a different reference for what a rate is)? that case will give you underflow, or overflow in reference to each other.. underflow you might be able to get away with just silence for a frame or partial frame, overflow you need to do something with or a buffer will fill. There are multiple approaches to deal with this. All of the approaches end up with a balance trying to have the effect barely perceivable, but still effective. Trimming out packets that are silence (effectively shortening the silence periods) is one way for example? a much more expensive way that has even better sound results would be to insert or remove individual samples (requires some approach to keep things in phase)? On video you have similar issues where you might want to drop or ?freeze? for a frame? Lots of research on the best ways to do this. > > /Kaiduan > > > > On Wednesday, May 10, 2017 12:15 PM, Moises Silva wrote: > > > On Thu, May 4, 2017 at 1:36 PM, Michael Jerris > wrote: > you add signed linear samples together. > >> On Apr 12, 2017, at 10:05 AM, kaiduan xie > wrote: >> >> Hi, >> >> Can anyone explain how audio mixing works in Freeswitch audio conference and where is the source code? >> >> Thanks a lot in advance, >> >> /Kaiduan > > > And to be more precise and answer your second question: > > https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/applications/mod_conference/mod_conference.c?at=f691d139eab#576 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20170515/573cce37/attachment.html From imirkin at alum.mit.edu Wed May 17 09:09:56 2017 From: imirkin at alum.mit.edu (Ilia Mirkin) Date: Wed, 17 May 2017 01:09:56 -0400 Subject: [Freeswitch-dev] Shared line/call appearance, barging, and hangups Message-ID: Hi Anthony, I've been checking out the SLA functionality in FreeSWITCH. Briefly, the issue I'm running into is that if a second station barges in on the first station, and then the first station hangs up, then the call completely hangs up. I'm trying to make something where the call keeps going, effectively replicating the old analog experience. In commit a511ff3026b8, some short 5 years ago, you implemented barging as eavesdropping. You also added code, which has largely remained unchanged, in sofia_handle_sip_i_bye which looks like it attempts to deal with the situation I describe. However it's not working. With some hacks I was able to get the second call to not hang up, but the media does not pass through to it anymore. The core issue is that other_uuid is null (which is the SWITCH_SIGNAL_BOND_VARIABLE). It may be due to the fact that I was testing this by dialing e.g. a conference application or echo application, and then joined the call - as such the original call wasn't bonded in the first place. However I think I also tested it with something more akin to a regular call and it also failed. I'm less sure of that though. Something else that I think I've observed is that if the initial station puts the call on hold, then eavesdropping (i.e. barging) station is effectively muted as well. Again, primarily testing with e.g. the echo application. Any advice you can give on these issues would be greatly appreciated! Thanks, -ilia