ekiga r7215 - in trunk: . src/endpoints



Author: dsandras
Date: Sun Oct 12 17:45:58 2008
New Revision: 7215
URL: http://svn.gnome.org/viewvc/ekiga?rev=7215&view=rev

Log:
Fixed compilation with latest OPAL TRUNK.


Modified:
   trunk/ChangeLog
   trunk/src/endpoints/sip-endpoint.cpp

Modified: trunk/src/endpoints/sip-endpoint.cpp
==============================================================================
--- trunk/src/endpoints/sip-endpoint.cpp	(original)
+++ trunk/src/endpoints/sip-endpoint.cpp	Sun Oct 12 17:45:58 2008
@@ -589,6 +589,7 @@
 
 void Opal::Sip::EndPoint::Register (const Opal::Account & account)
 {
+  PString _aor;
   std::stringstream aor;
   std::string host = account.get_host ();
   std::string::size_type loc = host.find (":", 0);
@@ -609,7 +610,7 @@
   params.m_minRetryTime = 0;
   params.m_maxRetryTime = 0;
 
-  if (!SIPEndPoint::Register (params))
+  if (!SIPEndPoint::Register (params, _aor))
     OnRegistrationFailed (aor.str (), SIP_PDU::MaxStatusCode, account.is_enabled ());
 }
 
@@ -1041,7 +1042,7 @@
   PSafePtr<SIPHandler> info = activeSIPHandlers.FindSIPHandlerByDomain(host.GetHostName (), SIP_PDU::Method_REGISTER, PSafeReadOnly);
   if (info != NULL) {
 
-    return SIPURL ("\"" + GetDefaultDisplayName () + "\" <" + info->GetTargetAddress ().AsString () + ">");
+    return SIPURL ("\"" + GetDefaultDisplayName () + "\" <" + info->GetAddressOfRecord ().AsString () + ">");
   }
   else {
 



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