[PATCH] Add echo/noise reduction to processing of CNAP messages

Chris Samuel chris at csamuel.org
Thu Mar 12 05:28:44 CET 2009


This patch adds the AT commands to set up noise/echo reduction upon
receiving a CNAP message from the network which is (hopefully) the
notification of an incoming call.

Signed-off-by: Chris Samuel <chris at csamuel.org>
---
 .../src/plugins/phonevendors/neo/vendor_neo.cpp    |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/devices/neo/src/plugins/phonevendors/neo/vendor_neo.cpp b/devices/neo/src/plugins/phonevendors/neo/vendor_neo.cpp
index 35f7a0b..093ff18 100644
--- a/devices/neo/src/plugins/phonevendors/neo/vendor_neo.cpp
+++ b/devices/neo/src/plugins/phonevendors/neo/vendor_neo.cpp
@@ -144,6 +144,12 @@ void NeoCallProvider::cnapNotification( const QString& msg )
     QAtUtils::skipField( msg, posn );	    // name_length
     QString name = QAtUtils::nextString( msg, posn );
     QModemCall *call = incomingCall();
+
+    // do undocumented echo cancellation and noise reduction
+
+    modemService->primaryAtChat()->chat( "AT at ST=\"-26\"" );
+    modemService->primaryAtChat()->chat( "AT%N0187" );
+
     if ( call )
         call->emitNotification( QPhoneCall::CallingName, name );
 }
-- 
1.5.6.3





More information about the community mailing list