[ekiga] Opal: Change get_full_uri so that it can return the full AOR.



commit 145e9d03bc397c97182a448f942e2e29a3a2b799
Author: Damien Sandras <dsandras seconix com>
Date:   Sun Apr 19 13:24:19 2015 +0200

    Opal: Change get_full_uri so that it can return the full AOR.
    
    This can be used to unregister an account. We can then directly use the
    full AOR as it was registered.

 lib/engine/components/opal/opal-account.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index d7ba819..cb1b47f 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -1411,5 +1411,8 @@ Opal::Account::get_full_uri (const PString & uri) const
   if (opal_presentity && (j = opal_presentity->GetAOR ().AsString ().Find (";")) != P_MAX_INDEX)
     parameters = opal_presentity->GetAOR ().AsString ().Mid (j);
 
+  if (uri.IsEmpty () && opal_presentity)
+    return opal_presentity->GetAOR ().AsString ();
+
   return uri + parameters;
 }


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