[asterisk-scf-commits] asterisk-scf/integration/sip.git branch "srtp-support" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Jul 12 09:51:04 CDT 2011


branch "srtp-support" has been updated
       via  a0d8f595e2426565e3011f2487b3767d602c9621 (commit)
      from  cfec4e219a70134f607888d309025fa219f1a8e9 (commit)

Summary of changes:
 config/SipConfigurator.py |    2 +-
 src/SipConfiguration.cpp  |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit a0d8f595e2426565e3011f2487b3767d602c9621
Author: Brent Eagles <beagles at digium.com>
Date:   Tue Jul 12 12:20:45 2011 -0230

    Fix a couple of typos

diff --git a/config/SipConfigurator.py b/config/SipConfigurator.py
index 5138459..46064d5 100755
--- a/config/SipConfigurator.py
+++ b/config/SipConfigurator.py
@@ -137,7 +137,7 @@ class SipSectionVisitors(Configurator.SectionVisitors):
                 if stringVal == None:
                     return AsteriskSCF.Configuration.SipSessionManager.V1.SRTPCryptoSupportOptions.SRTP_DISABLED
                 v = stringVal.lower()
-                if v == 'disabled'
+                if v == 'disabled':
                     return AsteriskSCF.Configuration.SipSessionManager.V1.SRTPCryptoSupportOptions.SRTP_DISABLED
                 elif v == 'optional':
                     return AsteriskSCF.Configuration.SipSessionManager.V1.SRTPCryptoSupportOptions.SRTP_OPTIONAL
diff --git a/src/SipConfiguration.cpp b/src/SipConfiguration.cpp
index 9e5cf97..56f40df 100644
--- a/src/SipConfiguration.cpp
+++ b/src/SipConfiguration.cpp
@@ -314,8 +314,8 @@ public:
         default:
             assert("Unexpected value" == 0);
         }
-        srtpConfig.enableEncryption != srtpOptions->disableEncryption;
-        srtpConfig.enableAuthentication != srtpOptions->disableAuthentication;
+        srtpConfig.enableEncryption = !srtpOptions->disableEncryption;
+        srtpConfig.enableAuthentication = !srtpOptions->disableAuthentication;
         srtpConfig.cryptoKeys.clear();
         if (!srtpOptions->cryptoKeys.empty())
         {

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list