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 <ch...@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( "a...@st=\"-26\"" );
+    modemService->primaryAtChat()->chat( "AT%N0187" );
+
     if ( call )
         call->emitNotification( QPhoneCall::CallingName, name );
 }
-- 
1.5.6.3


_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community

Reply via email to