Re: [Ekiga-devel-list] New stable release



Am Montag, den 27.07.2009, 20:55 +0200 schrieb Eugen Dedu:
> Christian Schäfer wrote:
> >> We plan to make a new release.  Until now, there has been:
> > 
> > I'd love to see the workaround for picky registrars as well in this 
> > release.
> 
> Me too.
> 
> -- 
> Eugen
> _______________________________________________

Sorry for not being very resposive at the moment. I am still trying to
get something meaningful out of the Vista shutdown.
The alien registrar patch which I submitted does not apply well to
stable. For stable I use a different one (attached) which lacks the "try
twice" feature. So you have to have the string %limit in the account
name.
Michael

diff -ur ekiga-3.2.5.orig/lib/engine/components/opal/opal-account.cpp ekiga-3.2.5/lib/engine/components/opal/opal-account.cpp
--- ekiga-3.2.5.orig/lib/engine/components/opal/opal-account.cpp	2009-07-19 17:40:21.000000000 +0200
+++ ekiga-3.2.5/lib/engine/components/opal/opal-account.cpp	2009-07-19 17:53:19.000000000 +0200
@@ -122,6 +122,8 @@
   else
     type = Account::H323;
 
+  limited = (name.find ("%limit") != std::string::npos);
+
   registration_event.connect (sigc::mem_fun (this, &Opal::Account::on_registration_event));
 }
 
@@ -274,6 +276,12 @@
 }
 
 
+bool Opal::Account::is_limited () const
+{
+  return limited;
+}
+
+
 bool Opal::Account::is_active () const
 {
   return active;
diff -ur ekiga-3.2.5.orig/lib/engine/components/opal/opal-account.h ekiga-3.2.5/lib/engine/components/opal/opal-account.h
--- ekiga-3.2.5.orig/lib/engine/components/opal/opal-account.h	2009-07-19 17:40:21.000000000 +0200
+++ ekiga-3.2.5/lib/engine/components/opal/opal-account.h	2009-07-19 17:51:10.000000000 +0200
@@ -122,6 +122,8 @@
 
     bool is_enabled () const;
 
+    bool is_limited () const;
+
     bool is_active () const;
 
     void remove ();
@@ -145,6 +147,7 @@
     bool dead;
     bool active;
     bool enabled;
+    bool limited;
     unsigned timeout;
     std::string aid;
     std::string name;
diff -ur ekiga-3.2.5.orig/lib/engine/components/opal/sip-endpoint.cpp ekiga-3.2.5/lib/engine/components/opal/sip-endpoint.cpp
--- ekiga-3.2.5.orig/lib/engine/components/opal/sip-endpoint.cpp	2009-07-19 17:40:21.000000000 +0200
+++ ekiga-3.2.5/lib/engine/components/opal/sip-endpoint.cpp	2009-07-19 17:51:10.000000000 +0200
@@ -82,6 +82,7 @@
 			    account.get_authentication_username (),
 			    account.get_password (),
 			    account.is_enabled (),
+			    account.is_limited (),
 			    account.get_timeout ());
 	} else {
 
@@ -574,6 +575,7 @@
 			       const std::string auth_username,
 			       const std::string password,
 			       bool is_enabled,
+			       bool is_limited,
 			       unsigned timeout)
 {
   PWaitAndSignal mut(listsMutex);
@@ -592,6 +594,8 @@
   SIPRegister::Params params;
   params.m_addressOfRecord = aor.str ();
   params.m_registrarAddress = host;
+  if (is_limited)
+    params.m_contactAddress = "%LIMITED";
   params.m_authID = auth_username;
   params.m_password = password;
   params.m_expire = is_enabled ? timeout : 0;
diff -ur ekiga-3.2.5.orig/lib/engine/components/opal/sip-endpoint.h ekiga-3.2.5/lib/engine/components/opal/sip-endpoint.h
--- ekiga-3.2.5.orig/lib/engine/components/opal/sip-endpoint.h	2009-07-19 17:40:21.000000000 +0200
+++ ekiga-3.2.5/lib/engine/components/opal/sip-endpoint.h	2009-07-19 17:51:10.000000000 +0200
@@ -153,6 +153,7 @@
 		     const std::string auth_username,
 		     const std::string password,
 		     bool is_enabled,
+		     bool is_limited,
 		     unsigned timeout);
 
       void OnRegistered (const PString & aor,


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