[ekiga/ds-opal-refactoring] SIP: Use CRLF keep-alive instead of OPTIONS requests.



commit 9cad02e6154647d929645c34910b0d5fdd4981a2
Author: Damien Sandras <dsandras seconix com>
Date:   Sat Mar 28 15:04:41 2015 +0100

    SIP: Use CRLF keep-alive instead of OPTIONS requests.
    
    This is less bandwidth intensive. Moreover, most SIP Servers will send
    OPTIONS requests themselves.

 lib/engine/components/opal/sip-call-manager.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/engine/components/opal/sip-call-manager.cpp b/lib/engine/components/opal/sip-call-manager.cpp
index 6b9ff0c..80bd059 100644
--- a/lib/engine/components/opal/sip-call-manager.cpp
+++ b/lib/engine/components/opal/sip-call-manager.cpp
@@ -172,7 +172,7 @@ void Opal::Sip::CallManager::setup (const std::string & setting)
   if (setting.empty () || setting == "binding-timeout")  {
     int delay = sip_settings->get_int ("binding-timeout");
     PTRACE (4, "Opal::Sip::CallManager\tNat binding delay set to " << delay);
-    sip_endpoint.SetKeepAlive (PTimeInterval (0, delay), SIPEndPoint::KeepAliveByOPTION);
+    sip_endpoint.SetKeepAlive (PTimeInterval (0, delay), SIPEndPoint::KeepAliveByCRLF);
   }
   if (setting.empty () || setting == "outbound-proxy-host")  {
     std::string uri = sip_settings->get_string ("outbound-proxy-host");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]