[asterisk-commits] oej: branch oej/roibos-cng-support-1.8 r376198 - in /team/oej/roibos-cng-supp...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Nov 13 10:43:32 CST 2012
Author: oej
Date: Tue Nov 13 10:43:28 2012
New Revision: 376198
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=376198
Log:
Adding documentation for admins
Modified:
team/oej/roibos-cng-support-1.8/channels/chan_sip.c
team/oej/roibos-cng-support-1.8/configs/sip.conf.sample
team/oej/roibos-cng-support-1.8/include/asterisk/frame.h
Modified: team/oej/roibos-cng-support-1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/roibos-cng-support-1.8/channels/chan_sip.c?view=diff&rev=376198&r1=376197&r2=376198
==============================================================================
--- team/oej/roibos-cng-support-1.8/channels/chan_sip.c (original)
+++ team/oej/roibos-cng-support-1.8/channels/chan_sip.c Tue Nov 13 10:43:28 2012
@@ -4705,6 +4705,11 @@
* implied else case here
*/
break;
+ case AST_OPTION_CNG_SUPPORT:
+ /* Check if the current dialog has agreed on Comfort Noise support */
+ *((unsigned int *) data) = (dialog->noncodeccapability & AST_RTP_CN);
+ res = 0;
+ break;
default:
break;
}
Modified: team/oej/roibos-cng-support-1.8/configs/sip.conf.sample
URL: http://svnview.digium.com/svn/asterisk/team/oej/roibos-cng-support-1.8/configs/sip.conf.sample?view=diff&rev=376198&r1=376197&r2=376198
==============================================================================
--- team/oej/roibos-cng-support-1.8/configs/sip.conf.sample (original)
+++ team/oej/roibos-cng-support-1.8/configs/sip.conf.sample Tue Nov 13 10:43:28 2012
@@ -303,6 +303,8 @@
;comfort-noise=yes ; Enable Comfort Noise generation on RTP streams
; ; Available per device too
+; ; Generating comfort noise is a burden to your CPU
+; ; This should not be enabled on low-end devices.
;
; This option specifies a preference for which music on hold class this channel
; should listen to when put on hold if the music class has not been set on the
Modified: team/oej/roibos-cng-support-1.8/include/asterisk/frame.h
URL: http://svnview.digium.com/svn/asterisk/team/oej/roibos-cng-support-1.8/include/asterisk/frame.h?view=diff&rev=376198&r1=376197&r2=376198
==============================================================================
--- team/oej/roibos-cng-support-1.8/include/asterisk/frame.h (original)
+++ team/oej/roibos-cng-support-1.8/include/asterisk/frame.h Tue Nov 13 10:43:28 2012
@@ -496,6 +496,10 @@
#define AST_OPTION_SECURE_SIGNALING 18
#define AST_OPTION_SECURE_MEDIA 19
+/*! Support of CNG transmission,
+ if not enabled a noise generator will kick in */
+#define AST_OPTION_CNG_SUPPORT 20
+
struct oprmode {
struct ast_channel *peer;
int mode;
More information about the asterisk-commits
mailing list