Re: [OpenSIPStack] Cpmfort Noise Support
Brought to you by:
joegenbaclor
From: Joegen E. B. <jb...@so...> - 2007-05-30 14:28:21
|
Super! Thanks Ilian. Ilian Jeri C. Pinzon wrote: > Hi all, > > I have exposed the setting of silence detection mode and audio jitter > delay in ATLSIP and SoftPhoneInterface. > > Here are the methods: > > DisableSilenceDetection() > - Disables silence detection. Disables CNG as well. > > EnableFixedSilenceDetection( ULONG threshold ) > - Enables fixed silence detection. Any sound level below the threshold > is treated as silence (and CN is generated as a result). Don't use too > high threshold values or you'll only hear comfort noise. Try threshold=3 > as suggested by Whit in another thread. > > EnableFixedSilenceDetectionEx( ULONG threshold , ULONG signalDeadband, > ULONG silenceDeadband ) > - An extended version of the previous method. Don't tinker with this > unless you know what you're doing. For reference on how signalDeadband > and silenceDeadband are used, look in OpalSilenceDetector::ReceivedPacket(). > > EnableAdaptiveSilenceDetection( ULONG adaptivePeriod ) > - Enables an adaptive silence detection. Supposedly this enables the > threshold to *adapt* to the current sound level every adaptivePeriod > milliseconds. However, its silence detection doesn't seem to be very > effective (at least in my machine). I'll look into this further to see > what's wrong. This mode with adaptivePeriod=4800 is the default mode for > ATLSIP. > > EnableAdaptiveSilenceDetectionEx( ULONG adaptivePeriod, ULONG > signalDeadband, ULONG silenceDeadband ) > - An extended version of the previous method. Don't tinker with this > unless you know what you're doing. For reference on how signalDeadband > and silenceDeadband are used, look in OpalSilenceDetector::ReceivedPacket(). > > SetAudioJitterDelay( ULONG minDelay, ULONG maxDelay ) > - Sets audio jitter delay settings. > > > Regards, > Ilian > > Ilian Jeri C. Pinzon wrote: > >> Will prioritize this request. This should be available by tomorrow or on >> early Thursday tops. >> >> Regards, >> Ilian >> >> Joegen E. Baclor wrote: >> >> >>> Hi Ilian, >>> >>> Can you provide an ETC for exposing Jitter and Silent Detection params >>> in ATLSIP? Seems like a popular request. >>> >>> Joegen >>> >>> >>> Ilian Jeri C. Pinzon wrote: >>> >>> >>> >>>> Hi, >>>> >>>> We haven't exposed this yet but we will soon. Please wait for updates >>>> in this list. >>>> >>>> For the meantime, please refer to the attached email on how this can >>>> be done. >>>> >>>> Thanks. >>>> >>>> Regards, >>>> Ilian >>>> >>>> Yacine Auczone wrote: >>>> >>>> >>>> >>>>> Hi All, >>>>> First, Thanks a lot for all the great job you are doing for >>>>> OpenSipStack and AtlSIP >>>>> I'm doing some devlopement test with the Softphone ActiveX, the >>>>> quality is very good and no bugs detected, the only thing is that the >>>>> softphone is doing by default some VAD and it is not transmiting the >>>>> silence, so there is no Comfort Noise generation sent whene the >>>>> calling party stop talking. i heard about a new ActiveX version which >>>>> will be available and gives the option to enable or disable CNG, is it >>>>> ready? if yes can i have it please? >>>>> Other Thing, on my Asterisk Server only G729 Work and not G729A >>>>> What's Wrong ? >>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------ >>>>> Avec Windows Live Spaces, publiez directement des messages >>>>> électroniques sur votre blog ou ajoutez-y des photos, des blagues et >>>>> d'autres infos. C'est gratuit ! >>>>> <http://clk.atdmt.com/MSN/go/msnnksac0030000001msn/direct/01/?href=http://www.imagine-msn.com/spaces> >>>>> >>>>> ------------------------------------------------------------------------ >>>>> >>>>> ------------------------------------------------------------------------- >>>>> >>>>> This SF.net email is sponsored by DB2 Express >>>>> Download DB2 Express C - the FREE version of DB2 express and take >>>>> control of your XML. No limits. Just data. Click to get it now. >>>>> http://sourceforge.net/powerbar/db2/ >>>>> ------------------------------------------------------------------------ >>>>> >>>>> _______________________________________________ >>>>> opensipstack-devel mailing list >>>>> ope...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>> >>>>> ------------------------------------------------------------------------ >>>>> >>>>> No virus found in this incoming message. >>>>> Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: >>>>> 269.8.1/822 - Release Date: 5/28/2007 11:40 AM >>>>> >>>>> >>>>> >>>>> >>>> ------------------------------------------------------------------------ >>>> >>>> Subject: >>>> [Fwd: Re: [OpenSIPStack] Audio problems - Jitter and Comfort Noise] >>>> From: >>>> "Joegen E. Baclor" <joe...@gm...> >>>> Date: >>>> Tue, 29 May 2007 18:26:21 +0800 >>>> To: >>>> "Ilian Jeri C. Pinzon" <ip...@so...> >>>> >>>> To: >>>> "Ilian Jeri C. Pinzon" <ip...@so...> >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> Subject: >>>> Re: [OpenSIPStack] Audio problems - Jitter and Comfort Noise >>>> From: >>>> "Joegen E. Baclor" <joe...@gm...> >>>> Date: >>>> Thu, 12 Apr 2007 16:40:04 +0800 >>>> To: >>>> ope...@li... >>>> >>>> To: >>>> ope...@li... >>>> >>>> >>>> Whit, >>>> >>>> Good to hear you nailed it! Can't wait to see your contributions if >>>> you get the chance to expose the other setters/accessors in ATLSIP. >>>> >>>> >>>> >>>> Whit Thiele wrote: >>>> >>>> >>>> >>>>> Joegen, >>>>> >>>>> Thanks for the help. I thought I'd send the list an update on what >>>>> solved my >>>>> problem. I changed the Silence Detector to Fixed with a threshold of >>>>> 3. This >>>>> eliminated all the problems! It seems that the adaptive silence >>>>> detector was >>>>> constantly incrementing and started affecting things about 10-15 seconds >>>>> into a conversation! >>>>> >>>>> I'll probably put in the ability to change the jitterbuffer and silence >>>>> detector into the ATLSIP library and send this in to the project in >>>>> the next >>>>> couple weeks... >>>>> >>>>> >>>>> Whit >>>>> >>>>> >>>>> >>>>> -----Original Message----- >>>>> From: ope...@li... >>>>> [mailto:ope...@li...] On Behalf Of >>>>> Joegen E. Baclor >>>>> Sent: Tuesday, April 10, 2007 9:36 PM >>>>> To: ope...@li... >>>>> Subject: Re: [OpenSIPStack] Audio problems - Jitter and Comfort Noise >>>>> >>>>> Whit, >>>>> >>>>> It is probably best to ask this question to >>>>> ope...@li.... However, here's how to set >>>>> the silence detection in code. >>>>> >>>>> >>>>> >>>>> OpalSilenceDetector::Param param; >>>>> param.Mode = OpalSilenceDetector::NoSilenceDetection; >>>>> sfManager.SetSilenceDetectParams( params ); >>>>> >>>>> >>>>> >>>>> >>>>> Hope that helps. >>>>> >>>>> de...@wh... wrote: >>>>> >>>>> >>>>> >>>>> >>>>>> Joegen, >>>>>> >>>>>> Thanks for the reply. I've been trying different jitterbuffer >>>>>> settings as >>>>>> >>>>>> >>>>>> >>>>>> >>>>> well >>>>> >>>>> >>>>> >>>>> >>>>>> as changing the number soundChannelBuffers to a number of different >>>>>> >>>>>> >>>>>> >>>>>> >>>>> settings >>>>> >>>>> >>>>> >>>>> >>>>>> which I came across in some online >>>>>> Opal documentation ( >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> http://www.openh323.org/pipermail/openh323/Week-of-Mon-20051219/076004.html >>>>> >>>>> ) >>>>> >>>>> >>>>> >>>>> >>>>>> I've tried setting the jitter buffer to minimums 25 through to 500 >>>>>> and the >>>>>> >>>>>> >>>>>> >>>>>> >>>>> depth >>>>> >>>>> >>>>> >>>>> >>>>>> to as high as 15 but nothing is helping. As I described before, I >>>>>> can get >>>>>> >>>>>> >>>>>> >>>>>> >>>>> about >>>>> >>>>> >>>>> >>>>> >>>>>> 10-15 consecutive seconds of decent voice quality and then it gets very >>>>>> >>>>>> >>>>>> >>>>>> >>>>> choppy. >>>>> >>>>> >>>>> >>>>>> Is anyone else experiencing this? >>>>>> >>>>>> I am wondering if it may have something to do with the Silence >>>>>> detection >>>>>> >>>>>> >>>>>> >>>>>> >>>>> portion >>>>> >>>>> >>>>> >>>>> >>>>>> of Opal. I've noticed in the opal.log file that the Silence Threshold >>>>>> >>>>>> >>>>>> >>>>>> >>>>> creeps >>>>> >>>>> >>>>> >>>>> >>>>>> upwards the longer the person talks. Is there a way to disable the >>>>>> silence >>>>>> detector? I could see that there are several Modes (Fixed, Adaptive, >>>>>> etc) >>>>>> >>>>>> >>>>>> >>>>>> >>>>> for >>>>> >>>>> >>>>> >>>>> >>>>>> it but I can't figure out where this is initialized in the code. >>>>>> I may be on the wrong track but I can't figure out this strange >>>>>> behavior. >>>>>> Any help/ideas/suggestions would be greatly appreciated! >>>>>> >>>>>> Whit >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -----Original Message----- >>>>>> From: ope...@li... >>>>>> [mailto:ope...@li...] On Behalf Of >>>>>> >>>>>> >>>>>> >>>>>> >>>>> Joegen >>>>> >>>>> >>>>> >>>>> >>>>>> E. Baclor >>>>>> Sent: Monday, April 09, 2007 5:19 AM >>>>>> To: ope...@li... >>>>>> Subject: Re: [OpenSIPStack] Audio problems - Jitter and Comfort Noise >>>>>> >>>>>> de...@wh... wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Members, >>>>>>> >>>>>>> I'm doing some testing with the ATLSIP and opensipstack libraries >>>>>>> and so >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>> far >>>>> >>>>> >>>>> >>>>> >>>>>>> with pretty good success. I have written a softphone in C# using the >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>> samples >>>>> >>>>> >>>>> >>>>> >>>>>>> provided, however I have a strange issue which I think is related to >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>> jitter >>>>> >>>>> >>>>> >>>>> >>>>>>> and/or comfort noise: >>>>>>> >>>>>>> Setup: >>>>>>> C# Softphone ----> Asterisk ---> PRI -----> Telco >>>>>>> >>>>>>> Once I make a call, the system works fine except if the person >>>>>>> using the >>>>>>> softphone talks for more then about 10-15 seconds (in a row without >>>>>>> being >>>>>>> interupted). Then, the audio starts to break up and the person on the >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>> telco >>>>> >>>>> >>>>> >>>>> >>>>>>> side can't make out what they are saying. Sometimes this situation is >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>> reversed >>>>> >>>>> >>>>> >>>>> >>>>>>> and the person on the softphone can't make out the person on the telco >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>> side. >>>>> >>>>> >>>>> >>>>>>> By the way, there aren't any problems with the telco or asterisk >>>>>>> setup as >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>> I >>>>> >>>>> >>>>> >>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> have >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> SIP hardphones using the system with no problems. >>>>>>> >>>>>>> So my question is: >>>>>>> >>>>>>> >>>>>>> 1. Can I send confort noise during silence breaks? >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> CNG is a codec functionality and is not manually generated by the >>>>>> stack. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> 2. Where can I tweak the jitter-buffer or comfort noise settings? >>>>>>> Is this >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>> done >>>>> >>>>> >>>>> >>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> SoftPhoneManager::SetAudioJitterDelay(). It is not yet exposed an the >>>>>> ActiveX properties. Feel free to send in a patch if you get the chance >>>>>> to expose it. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> in the code itself? >>>>>>> 3. Maybe I'm on the wrong track and any suggestions are welcome! >>>>>>> >>>>>>> >>>>>>> Look forward to working more with everyone on this exciting project! >>>>>>> >>>>>>> Whit >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------- >>>>>>> >>>>>>> Take Surveys. Earn Cash. Influence the Future of IT >>>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to >>>>>>> share >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>> your >>>>> >>>>> >>>>> >>>>> >>>>>>> opinions on IT & business topics through brief surveys-and earn cash >>>>>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>>>>>> >>>>>>> _______________________________________________ >>>>>>> opensipstack-devel mailing list >>>>>>> ope...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> ------------------------------------------------------------------------- >>>>>> >>>>>> Take Surveys. Earn Cash. Influence the Future of IT >>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to share >>>>>> >>>>>> >>>>>> >>>>>> >>>>> your >>>>> >>>>> >>>>> >>>>> >>>>>> opinions on IT & business topics through brief surveys-and earn cash >>>>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>>>>> >>>>>> _______________________________________________ >>>>>> opensipstack-devel mailing list >>>>>> ope...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------- >>>>>> >>>>>> Take Surveys. Earn Cash. Influence the Future of IT >>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to share >>>>>> >>>>>> >>>>>> >>>>>> >>>>> your >>>>> >>>>> >>>>> >>>>> >>>>>> opinions on IT & business topics through brief surveys-and earn cash >>>>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>>>>> >>>>>> _______________________________________________ >>>>>> opensipstack-devel mailing list >>>>>> ope...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> ------------------------------------------------------------------------- >>>>> >>>>> Take Surveys. Earn Cash. Influence the Future of IT >>>>> Join SourceForge.net's Techsay panel and you'll get the chance to >>>>> share your >>>>> opinions on IT & business topics through brief surveys-and earn cash >>>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>>>> >>>>> _______________________________________________ >>>>> opensipstack-devel mailing list >>>>> ope...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------- >>>>> >>>>> Take Surveys. Earn Cash. Influence the Future of IT >>>>> Join SourceForge.net's Techsay panel and you'll get the chance to >>>>> share your >>>>> opinions on IT & business topics through brief surveys-and earn cash >>>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>>>> >>>>> _______________________________________________ >>>>> opensipstack-devel mailing list >>>>> ope...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> ------------------------------------------------------------------------ >>>> >>>> No virus found in this incoming message. >>>> Checked by AVG Free Edition. >>>> Version: 7.5.472 / Virus Database: 269.8.1/822 - Release Date: 5/28/2007 11:40 AM >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.net email is sponsored by DB2 Express >>>> Download DB2 Express C - the FREE version of DB2 express and take >>>> control of your XML. No limits. Just data. Click to get it now. >>>> http://sourceforge.net/powerbar/db2/ >>>> ------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> opensipstack-devel mailing list >>>> ope...@li... >>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>> >>>> >>>> >>>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 express and take >>> control of your XML. No limits. Just data. Click to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> _______________________________________________ >>> opensipstack-devel mailing list >>> ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>> >>> >>> >>> >>> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > |